Improved loader debug mode.

This commit is contained in:
Martin Haye 2021-02-20 15:28:56 -08:00
parent e0a29b59ba
commit 20f604119d

View File

@ -79,8 +79,8 @@ init ; Put something interesting on the screen :)
; And finally the memory mgr (fall through) ; And finally the memory mgr (fall through)
runBlk jsr getBlk ; get block size and calc pointers runBlk jsr getBlk ; get block size and calc pointers
!if DEBUG { !if DEBUG {
lda #1 ; turn on printer ; lda #1 ; turn on printer
jsr $FE95 ; jsr $FE95
jsr debug jsr debug
} }
bit setLcRW+lcBank2 bit setLcRW+lcBank2
@ -91,7 +91,14 @@ runBlk jsr getBlk ; get block size and calc pointers
jsr ROM_cout jsr ROM_cout
jsr ROM_crout jsr ROM_crout
} }
jmp $4000 ; and run it so it'll relocate itself jsr $4000 ; and run it so it'll relocate itself
bit setLcWr+lcBank2
!if DEBUG {
lda #"r"
jsr ROM_cout
jsr ROM_crout
}
rts
getByte ldy #0 getByte ldy #0
lda (pData),y lda (pData),y