split out PrereadT00 so IDMECC doesn't have side effects (overwrites track buffer on every call)

This commit is contained in:
4am 2017-03-29 09:01:33 -04:00
parent 694310521c
commit e999b972f4
3 changed files with 9 additions and 2 deletions

View File

@ -144,6 +144,8 @@ IDBootloader
lda #s_mecc
jsr PrintByID
jsr CopyUniversal
jsr PrereadT00
bcs .notmecc
jsr IDMECC1
bcs .notmecc1
jmp foundmecc1

View File

@ -22,7 +22,12 @@ IDMECC
!byte $01,$4C,$1A,$08,$17,$0F,$00,$00
!byte $0D,$0B,$09,$07,$05,$03,$01,$0E
!byte $0C,$0A,$08,$06,$04,$02,$0F
bcs .exit
.exit
rts
}
!zone {
PrereadT00
lda #$00
sta gTrack
sta gAddress

View File

@ -194,7 +194,7 @@ StringTable
; can be set directly before calling PrintByID.
;
.header
!text "Passport by 4am 2017-03-26",00
!text "Passport by 4am 2017-03-29",00
.mainmenu
!text "________________________________________",$8D,$8D,$8D,$8D,$8D,$8D,$8D
!text " "