mirror of
https://github.com/a2-4am/passport.git
synced 2025-08-15 15:27:24 +00:00
fix exit flags in IDDavidson
This commit is contained in:
@@ -11,25 +11,25 @@
|
|||||||
!zone {
|
!zone {
|
||||||
IDDavidson
|
IDDavidson
|
||||||
lda gIsProDOS ; ProDOS?
|
lda gIsProDOS ; ProDOS?
|
||||||
bne .exit ; no, give up
|
bne .fail ; no, give up
|
||||||
lda gTrack ; track $22?
|
lda gTrack ; track $22?
|
||||||
cmp #$22
|
cmp #$22
|
||||||
sec
|
bne .fail ; no, give up
|
||||||
bne .exit ; no, give up
|
|
||||||
lda gSector ; sector $00?
|
lda gSector ; sector $00?
|
||||||
bne .exit ; no, give up
|
bne .fail ; no, give up
|
||||||
;;lda #$00 ; try re-reading the sector but
|
;;lda #$00 ; try re-reading the sector but
|
||||||
sta $B92E ; ignore data field checksum failure
|
sta $B92E ; ignore data field checksum failure
|
||||||
jsr ReadSector
|
jsr ReadSector
|
||||||
lda #$13
|
lda #$13
|
||||||
sta $B92E
|
sta $B92E
|
||||||
bcs .exit ; passport-test-suite/Word Attack Plus Spanish.woz [C=0] matches
|
bcs .fail ; passport-test-suite/Word Attack Plus Spanish.woz [C=0] matches
|
||||||
; if the read didn't work, give up
|
; if the read didn't work, give up
|
||||||
jsr PrintByID
|
jsr PrintByID
|
||||||
!byte s_davidson
|
!byte s_davidson
|
||||||
lda #TRUE
|
lda #TRUE
|
||||||
sta gIsDavidson
|
sta gIsDavidson
|
||||||
clc
|
clc
|
||||||
.exit
|
!byte $24
|
||||||
rts
|
.fail sec
|
||||||
|
.exit rts
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user