mirror of
https://github.com/antoinevignau/source.git
synced 2024-12-27 13:29:22 +00:00
Enhancing TWGS support
and fixing the JSR to $bcffxx, ahem...
This commit is contained in:
parent
b7002066e8
commit
c5af410e9e
@ -99,7 +99,17 @@ no_AS rep #$20 ; Check Transwarp IIgs
|
|||||||
jsl GetCurSpeed ; get current speed
|
jsl GetCurSpeed ; get current speed
|
||||||
sta accSPEED ; save it
|
sta accSPEED ; save it
|
||||||
lda #2600 ; set 2.6MHz
|
lda #2600 ; set 2.6MHz
|
||||||
jsr SetCurSpeed ; the closest match
|
jsl SetCurSpeed ; the closest match
|
||||||
|
|
||||||
|
* If you prefer the index stuff...
|
||||||
|
|
||||||
|
jsl GetCurISpeed ; get current speed
|
||||||
|
stx accSPEED ; save it
|
||||||
|
ldx #1 ; set 2.6MHz
|
||||||
|
jsl SetCurISpeed ; the closest match
|
||||||
|
|
||||||
|
*... end of preference
|
||||||
|
|
||||||
lda #2
|
lda #2
|
||||||
sta theACC ; tell we have a TWGS
|
sta theACC ; tell we have a TWGS
|
||||||
rts
|
rts
|
||||||
@ -154,6 +164,14 @@ check_TW cmp #2 ; Transwarp GS?
|
|||||||
|
|
||||||
lda accSPEED ; restore speed
|
lda accSPEED ; restore speed
|
||||||
jsl SetCurSpeed
|
jsl SetCurSpeed
|
||||||
|
|
||||||
|
* If you prefer the index stuff...
|
||||||
|
|
||||||
|
ldx accSPEED
|
||||||
|
jsl SetCurISpeed
|
||||||
|
|
||||||
|
*... end of preference
|
||||||
|
|
||||||
rts
|
rts
|
||||||
|
|
||||||
check_ZIP cmp #3 ; ZipGSX?
|
check_ZIP cmp #3 ; ZipGSX?
|
||||||
|
Loading…
Reference in New Issue
Block a user