mirror of
https://github.com/tomcw/Cybernoid.git
synced 2024-05-28 10:41:30 +00:00
Reduce AY access times some more.
This commit is contained in:
parent
581c02e7dd
commit
8e100ae88a
|
@ -58,6 +58,13 @@ GotMBSlot:
|
||||||
stx MB4+2
|
stx MB4+2
|
||||||
stx MB5+2
|
stx MB5+2
|
||||||
stx MB6+2
|
stx MB6+2
|
||||||
|
|
||||||
|
stx MB1x+2
|
||||||
|
stx MB2x+2
|
||||||
|
stx MB3x+2
|
||||||
|
stx MB4x+2
|
||||||
|
stx MB5x+2
|
||||||
|
stx MB6x+2
|
||||||
}
|
}
|
||||||
stx MB7+2
|
stx MB7+2
|
||||||
|
|
||||||
|
@ -198,12 +205,18 @@ Interrupt
|
||||||
lda AYDataDoneFlag
|
lda AYDataDoneFlag
|
||||||
bne .done
|
bne .done
|
||||||
|
|
||||||
ldx #0
|
ldx #AY_INACTIVE
|
||||||
ldy #0
|
ldy #0
|
||||||
.sf_loop0 tya
|
.sf_loop0
|
||||||
jsr SF_SelectReg
|
MB1x sty CARD_BASE+SY6522_ORA
|
||||||
.smcAYData lda (pAYData),y
|
lda #AY_LATCH
|
||||||
jsr SF_WriteReg
|
MB2x sta CARD_BASE+SY6522_ORB
|
||||||
|
MB3x stx CARD_BASE+SY6522_ORB ; Set INACTIVE
|
||||||
|
lda (pAYData),y
|
||||||
|
MB4x sta CARD_BASE+SY6522_ORA
|
||||||
|
lda #AY_WRITE
|
||||||
|
MB5x sta CARD_BASE+SY6522_ORB
|
||||||
|
MB6x stx CARD_BASE+SY6522_ORB ; Set INACTIVE
|
||||||
iny
|
iny
|
||||||
cpy #$0E
|
cpy #$0E
|
||||||
bne .sf_loop0
|
bne .sf_loop0
|
||||||
|
|
Loading…
Reference in New Issue
Block a user