passport/src/id/dinkeydos.a
2021-06-20 00:18:55 -04:00

19 lines
556 B
Plaintext

;-------------------------------
; IDDinkeyDOS
; identify Dinkey-DOS by filename in ProDOS catalog
;
; in: track buffer contains T00,S0B
; out: C clear if Dinkey-DOS found
; C set otherwise
; A = #$0B
; all other registers & flags clobbered
;-------------------------------
!macro IDDinkeyDOS {
lda #$0B
ldx #$2B
tay
jsr compare ; if T00,S0B,$2B ==
!byte $29,$44,$49,$4E,$4B,$45,$59,$44,$4F,$53,$00
; passport-test-suite/Ultima V.woz [C=0] matches
}