diff --git a/SYS/KM.RAMWORKS.S.txt b/SYS/KM.RAMWORKS.S.txt index 5c3f1cb6..f88ffd1b 100644 --- a/SYS/KM.RAMWORKS.S.txt +++ b/SYS/KM.RAMWORKS.S.txt @@ -77,6 +77,7 @@ RW.Detect2 php ldx #0 start detection at page $00 .1 stx RWBankSelect + nop lda 0 sta RW.SAVEZP0,x save Bank 0 $0000 to prevent ALTZP trash lda 1 @@ -88,13 +89,12 @@ RW.Detect2 php .2 sta RWBankSelect *-------------------------------------- -* Added after Dog Cow from macgui.com testing sessions +* Added after David Finnigan from macgui.com testing sessions * - pha - pla - + nop + nop * -* to address possibly a timing issue +* to address possibly a timing issue with Accelerators *-------------------------------------- sta 0 @@ -107,6 +107,10 @@ RW.Detect2 php ldx #0 .3 txa sta RWBankSelect + + nop + nop + cmp 0 bne .4 eor #$FF @@ -119,6 +123,10 @@ RW.Detect2 php .4 ldy #255 X = detected page count .6 sty RWBankSelect + + nop + nop + lda RW.SAVEZP0,y sta 0 lda RW.SAVEZP1,y @@ -127,6 +135,10 @@ RW.Detect2 php bne .6 stz RWBankSelect + + nop + nop + lda RW.SAVEZP0 Don't forget to restore Bank 0 sta 0 lda RW.SAVEZP1