mirror of
https://github.com/A2osX/A2osX.git
synced 2025-01-09 10:31:45 +00:00
fixed timing more issues
This commit is contained in:
parent
c182de64c0
commit
d1974f0153
@ -77,6 +77,7 @@ RW.Detect2 php
|
|||||||
|
|
||||||
ldx #0 start detection at page $00
|
ldx #0 start detection at page $00
|
||||||
.1 stx RWBankSelect
|
.1 stx RWBankSelect
|
||||||
|
nop
|
||||||
lda 0
|
lda 0
|
||||||
sta RW.SAVEZP0,x save Bank 0 $0000 to prevent ALTZP trash
|
sta RW.SAVEZP0,x save Bank 0 $0000 to prevent ALTZP trash
|
||||||
lda 1
|
lda 1
|
||||||
@ -88,13 +89,12 @@ RW.Detect2 php
|
|||||||
.2 sta RWBankSelect
|
.2 sta RWBankSelect
|
||||||
|
|
||||||
*--------------------------------------
|
*--------------------------------------
|
||||||
* Added after Dog Cow from macgui.com testing sessions
|
* Added after David Finnigan from macgui.com testing sessions
|
||||||
*
|
*
|
||||||
pha
|
nop
|
||||||
pla
|
nop
|
||||||
|
|
||||||
*
|
*
|
||||||
* to address possibly a timing issue
|
* to address possibly a timing issue with Accelerators
|
||||||
*--------------------------------------
|
*--------------------------------------
|
||||||
|
|
||||||
sta 0
|
sta 0
|
||||||
@ -107,6 +107,10 @@ RW.Detect2 php
|
|||||||
ldx #0
|
ldx #0
|
||||||
.3 txa
|
.3 txa
|
||||||
sta RWBankSelect
|
sta RWBankSelect
|
||||||
|
|
||||||
|
nop
|
||||||
|
nop
|
||||||
|
|
||||||
cmp 0
|
cmp 0
|
||||||
bne .4
|
bne .4
|
||||||
eor #$FF
|
eor #$FF
|
||||||
@ -119,6 +123,10 @@ RW.Detect2 php
|
|||||||
.4 ldy #255 X = detected page count
|
.4 ldy #255 X = detected page count
|
||||||
|
|
||||||
.6 sty RWBankSelect
|
.6 sty RWBankSelect
|
||||||
|
|
||||||
|
nop
|
||||||
|
nop
|
||||||
|
|
||||||
lda RW.SAVEZP0,y
|
lda RW.SAVEZP0,y
|
||||||
sta 0
|
sta 0
|
||||||
lda RW.SAVEZP1,y
|
lda RW.SAVEZP1,y
|
||||||
@ -127,6 +135,10 @@ RW.Detect2 php
|
|||||||
bne .6
|
bne .6
|
||||||
|
|
||||||
stz RWBankSelect
|
stz RWBankSelect
|
||||||
|
|
||||||
|
nop
|
||||||
|
nop
|
||||||
|
|
||||||
lda RW.SAVEZP0 Don't forget to restore Bank 0
|
lda RW.SAVEZP0 Don't forget to restore Bank 0
|
||||||
sta 0
|
sta 0
|
||||||
lda RW.SAVEZP1
|
lda RW.SAVEZP1
|
||||||
|
Loading…
Reference in New Issue
Block a user