diff --git a/asm/loader.s b/asm/loader.s index a39f28a..48f192b 100644 --- a/asm/loader.s +++ b/asm/loader.s @@ -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 diff --git a/bin/c2d b/bin/c2d index b0133b1..48cf306 100755 Binary files a/bin/c2d and b/bin/c2d differ diff --git a/bin/c2d.exe b/bin/c2d.exe index 64ddb24..4578870 100755 Binary files a/bin/c2d.exe and b/bin/c2d.exe differ diff --git a/test.sh b/test.sh index 2a7d004..bff44f9 100755 --- a/test.sh +++ b/test.sh @@ -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