mirror of
https://github.com/a2stuff/prodos-drivers.git
synced 2025-01-02 16:32:32 +00:00
Improve Cricket! detection on ROM4 //c (#17)
* Improve Cricket! detection on ROM4 //c * Add PHP/PLP
This commit is contained in:
parent
5211dc6296
commit
774889ec2e
@ -75,6 +75,8 @@ ssc_not_found:
|
|||||||
|
|
||||||
;; Init SSC and try the "Read Cricket ID code" sequence.
|
;; Init SSC and try the "Read Cricket ID code" sequence.
|
||||||
init_ssc:
|
init_ssc:
|
||||||
|
php
|
||||||
|
sei
|
||||||
lda COMMAND ; save status of SSC registers
|
lda COMMAND ; save status of SSC registers
|
||||||
sta saved_command
|
sta saved_command
|
||||||
lda CONTROL
|
lda CONTROL
|
||||||
@ -113,10 +115,12 @@ digit: cmp #HI('0') ; < '0' ?
|
|||||||
|
|
||||||
cricket_found:
|
cricket_found:
|
||||||
jsr restore_cmd_ctl
|
jsr restore_cmd_ctl
|
||||||
|
plp
|
||||||
jmp install_driver
|
jmp install_driver
|
||||||
|
|
||||||
cricket_not_found:
|
cricket_not_found:
|
||||||
jsr restore_cmd_ctl
|
jsr restore_cmd_ctl
|
||||||
|
plp
|
||||||
;; fall through...
|
;; fall through...
|
||||||
|
|
||||||
not_found:
|
not_found:
|
||||||
|
Loading…
Reference in New Issue
Block a user