passport/src/id/quickdos.a

26 lines
776 B
Plaintext
Raw Normal View History

;-------------------------------
; IDQuickDOS
; identify Quick-DOS bootloader
;
2021-06-20 04:18:55 +00:00
; in: $0800..$08FF contains T00,S00
; first page of track buffer also contains T00,S00
; A = 0
; X = 0
; out: C clear if Quick-DOS bootloader found
; C set otherwise
; A = 0
; X = 0
; all other registers & flags clobbered
;-------------------------------
2021-06-19 02:06:12 +00:00
!macro IDQuickDOS {
2021-06-20 04:18:55 +00:00
ldy #$0B
jsr compare ; if T00,S00,$01 ==
2021-06-20 04:18:55 +00:00
!byte $01
!byte $A5,$27 ; LDA $27
!byte $C9,$09 ; CMP #$09
!byte $D0,$27 ; BNE +$27
!byte $78 ; SEI
!byte $AD,$83,$C0; LDA $C083
2021-06-19 02:06:12 +00:00
; passport-test-suite/Kid Niki.woz [C=0] matches
}