add option to enforce address field checksum verification in built-in RWTS

This commit is contained in:
4am 2017-10-29 21:00:15 -04:00
parent 086a6b1b20
commit 1ce44ea234
4 changed files with 15 additions and 1 deletions

View File

@ -15,6 +15,7 @@ TraceDOS33
sta gTrack
lda #$09
sta gSector
jsr IgnoreAddressChecksum
precheck
jsr ReadSector
bcc +

View File

@ -290,6 +290,7 @@ Action
sta TEXTTOP
lda #s_reading
jsr PrintByID
jsr IgnoreAddressChecksum
jsr ReadSector
bcc +
lda #s_fail
@ -508,6 +509,10 @@ StartWithUniv
; note: execution falls through here
CopyUniversal
lda #>EnforceAddressChecksum-1
pha
lda #<EnforceAddressChecksum-1
pha
lda #$B8
CopyUniversalAnywhere
sta dst+1

View File

@ -104,6 +104,14 @@ PreReadSector
.exit rts
}
IgnoreAddressChecksum
lda #$00
!byte $2C ; hide next LDA
EnforceAddressChecksum
lda #$B7
sta $B98A
rts
gTrack !byte $00
gSector !byte $00

View File

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