From 9a39b98b351e24969c693baf809d0649c812d93a Mon Sep 17 00:00:00 2001 From: Egan Ford Date: Sat, 15 Apr 2017 19:41:29 -0600 Subject: [PATCH] loader to run from 00 now --- asm/loader.s | 12 +++++++----- bin/c2d | Bin 156904 -> 156904 bytes bin/c2d.exe | Bin 185064 -> 185064 bytes test.sh | 4 ++-- 4 files changed, 9 insertions(+), 7 deletions(-) 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 b0133b1fe44a885a6121eaeee50299fa0c9c7232..48cf306feabe8d19414e075e0b29c22aad0f87b1 100755 GIT binary patch delta 102 zcmaEHlJmt$&J6{u0=`D7b7%RLoidvnSly+KnO_Ke_hDdO$+&=L=8Nqs z85VGWD5h4HwVBMVOzYB_Pn~LGSjw`11t`3f;R5U04Ccwd6wDc!n~fCPjT9NT8!0kv Ga|QtZj$qDGm39xVl5SRRxAIfGh@{)}A{K|Hgce8*6M;kM?=+O5}0Jf5a}?g<@CVy7o|`7!ZM+jvV?+nD)KcxJxXzLH@92Z&;7Wm%ia v+{&~ro%z(MHio4v3s``{OBpV(uFYVcY^7t)$lP3{(_W;*xV=b+scabl`jjNI delta 92 zcmaE{l>5a}?g<@C8!IMu`7y;eZ@i_eZM^Nph3`HL+g36z;FDx}7YGYW+vVa9Byp-Vr>)MQMldW{j8MieT>9iN=Fm5l>VJce&00w?4EC2ui 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