mirror of https://github.com/datajerk/c2d.git
loader to run from 00 now
This commit is contained in:
parent
169fa95e50
commit
9a39b98b35
12
asm/loader.s
12
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
|
||||
|
|
BIN
bin/c2d.exe
BIN
bin/c2d.exe
Binary file not shown.
Loading…
Reference in New Issue