loader to run from 00 now

This commit is contained in:
Egan Ford 2017-04-15 19:41:29 -06:00
parent 169fa95e50
commit 9a39b98b35
4 changed files with 9 additions and 7 deletions

View File

@ -18,8 +18,9 @@ rwts = $B7B5 ; rwts jsr
; vars
lopage = $800
hipage = $B600 ; overwrite track 0/sector 0, not needed any more?
stage1 = $800
;stage2 = $B600 ; overwrite track 0/sector 0, not needed any more?
stage2 = $300 ; $300 looks open
;;;run time
trkcnt = $00 ; track counter
segcnt = $01 ; loop var
@ -29,18 +30,19 @@ trknum = $04 ; loop var
start:
.org lopage
.org stage1
ldx #0 ; move code to hi memory
move:
lda moved,x
sta loader,x
inx
bne move ; move 256 bytes
;bne move ; move 256 bytes
bpl move ; move 128 bytes
jmp loader
moved:
.org hipage
.org stage2
loader:
lda #1 ; read(1)/write(2) command

BIN
bin/c2d

Binary file not shown.

Binary file not shown.

View File

@ -37,7 +37,7 @@ else
exit 1
fi
SUM=57557acfd26f4c1e12ced4cf125bc97f
SUM=d70651dcc97e854aad3b4164948fec4a
rm -f ${BIN}.dsk
echo
@ -110,7 +110,7 @@ else
exit 1
fi
SUM=57557acfd26f4c1e12ced4cf125bc97f
SUM=d70651dcc97e854aad3b4164948fec4a
rm -f ${BIN}.dsk
echo