Skip to content

Commit

Permalink
loader to run from 00 now
Browse files Browse the repository at this point in the history
  • Loading branch information
datajerk committed Apr 16, 2017
1 parent 169fa95 commit 9a39b98
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
12 changes: 7 additions & 5 deletions asm/loader.s
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
Binary file modified bin/c2d
Binary file not shown.
Binary file modified bin/c2d.exe
Binary file not shown.
4 changes: 2 additions & 2 deletions test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ else
exit 1
fi

SUM=57557acfd26f4c1e12ced4cf125bc97f
SUM=d70651dcc97e854aad3b4164948fec4a

rm -f ${BIN}.dsk
echo
Expand Down Expand Up @@ -110,7 +110,7 @@ else
exit 1
fi

SUM=57557acfd26f4c1e12ced4cf125bc97f
SUM=d70651dcc97e854aad3b4164948fec4a

rm -f ${BIN}.dsk
echo
Expand Down

0 comments on commit 9a39b98

Please sign in to comment.