Improve Cricket! detection on ROM4 //c (#17)

* Improve Cricket! detection on ROM4 //c

* Add PHP/PLP
This commit is contained in:
frankmilliron 2023-05-15 18:21:31 -07:00 committed by GitHub
parent 5211dc6296
commit 774889ec2e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -75,6 +75,8 @@ ssc_not_found:
;; Init SSC and try the "Read Cricket ID code" sequence.
init_ssc:
php
sei
lda COMMAND ; save status of SSC registers
sta saved_command
lda CONTROL
@ -113,10 +115,12 @@ digit: cmp #HI('0') ; < '0' ?
cricket_found:
jsr restore_cmd_ctl
plp
jmp install_driver
cricket_not_found:
jsr restore_cmd_ctl
plp
;; fall through...
not_found: