mirror of
https://github.com/a2-4am/passport.git
synced 2025-01-25 17:30:52 +00:00
add option to enforce address field checksum verification in built-in RWTS
This commit is contained in:
parent
086a6b1b20
commit
1ce44ea234
@ -15,6 +15,7 @@ TraceDOS33
|
|||||||
sta gTrack
|
sta gTrack
|
||||||
lda #$09
|
lda #$09
|
||||||
sta gSector
|
sta gSector
|
||||||
|
jsr IgnoreAddressChecksum
|
||||||
precheck
|
precheck
|
||||||
jsr ReadSector
|
jsr ReadSector
|
||||||
bcc +
|
bcc +
|
||||||
|
@ -290,6 +290,7 @@ Action
|
|||||||
sta TEXTTOP
|
sta TEXTTOP
|
||||||
lda #s_reading
|
lda #s_reading
|
||||||
jsr PrintByID
|
jsr PrintByID
|
||||||
|
jsr IgnoreAddressChecksum
|
||||||
jsr ReadSector
|
jsr ReadSector
|
||||||
bcc +
|
bcc +
|
||||||
lda #s_fail
|
lda #s_fail
|
||||||
@ -508,6 +509,10 @@ StartWithUniv
|
|||||||
; note: execution falls through here
|
; note: execution falls through here
|
||||||
|
|
||||||
CopyUniversal
|
CopyUniversal
|
||||||
|
lda #>EnforceAddressChecksum-1
|
||||||
|
pha
|
||||||
|
lda #<EnforceAddressChecksum-1
|
||||||
|
pha
|
||||||
lda #$B8
|
lda #$B8
|
||||||
CopyUniversalAnywhere
|
CopyUniversalAnywhere
|
||||||
sta dst+1
|
sta dst+1
|
||||||
|
@ -104,6 +104,14 @@ PreReadSector
|
|||||||
.exit rts
|
.exit rts
|
||||||
}
|
}
|
||||||
|
|
||||||
|
IgnoreAddressChecksum
|
||||||
|
lda #$00
|
||||||
|
!byte $2C ; hide next LDA
|
||||||
|
EnforceAddressChecksum
|
||||||
|
lda #$B7
|
||||||
|
sta $B98A
|
||||||
|
rts
|
||||||
|
|
||||||
gTrack !byte $00
|
gTrack !byte $00
|
||||||
gSector !byte $00
|
gSector !byte $00
|
||||||
|
|
||||||
|
@ -234,7 +234,7 @@ StringTable
|
|||||||
; can be set directly before calling PrintByID.
|
; can be set directly before calling PrintByID.
|
||||||
;
|
;
|
||||||
.header
|
.header
|
||||||
!text "Passport by 4am 2017-10-26",$00
|
!text "Passport by 4am 2017-10-29",$00
|
||||||
.mainmenu
|
.mainmenu
|
||||||
!text "________________________________________",$8D,$8D,$8D,$8D,$8D,$8D,$8D
|
!text "________________________________________",$8D,$8D,$8D,$8D,$8D,$8D,$8D
|
||||||
!text " "
|
!text " "
|
||||||
|
Loading…
x
Reference in New Issue
Block a user