mirror of
https://github.com/a2-4am/4cade.git
synced 2024-11-27 08:50:01 +00:00
shave some cycles
This commit is contained in:
parent
872da54d49
commit
e318fe031c
@ -219,11 +219,11 @@ k_bitcopy = 30 ; must be last token
|
|||||||
|
|
||||||
sta $C001 ; 80STORE mode so we can bank $2000/aux in & out with STA $C055 & $C054
|
sta $C001 ; 80STORE mode so we can bank $2000/aux in & out with STA $C055 & $C054
|
||||||
MainLoop ldx #48
|
MainLoop ldx #48
|
||||||
BoxLoop stx box
|
BoxLoop ldy BoxStages-1, x ; for each box, get its current stage
|
||||||
ldy BoxStages-1, x ; for each box, get its current stage
|
|
||||||
inc BoxStages-1, x ; increment every box's stage every time through the loop
|
inc BoxStages-1, x ; increment every box's stage every time through the loop
|
||||||
lda StagesHi, y
|
lda StagesHi, y
|
||||||
beq NextBox ; if stage's drawing routine is 0, nothing to do
|
beq NextBox ; if stage's drawing routine is 0, nothing to do
|
||||||
|
stx box
|
||||||
sta j+2
|
sta j+2
|
||||||
lda BoxesX-1, x
|
lda BoxesX-1, x
|
||||||
ldy BoxesY-1, x ; Y = starting byte offset for this box
|
ldy BoxesY-1, x ; Y = starting byte offset for this box
|
||||||
|
@ -211,11 +211,11 @@ k_right_mask = 17
|
|||||||
+BUILD_HGR_LOOKUP_TABLES_X_IS_ALREADY_0 hgrlo, hgrhi
|
+BUILD_HGR_LOOKUP_TABLES_X_IS_ALREADY_0 hgrlo, hgrhi
|
||||||
|
|
||||||
MainLoop ldx #48
|
MainLoop ldx #48
|
||||||
BoxLoop stx box
|
BoxLoop ldy BoxStages-1, x ; for each box, get its current stage
|
||||||
ldy BoxStages-1, x ; for each box, get its current stage
|
|
||||||
inc BoxStages-1, x ; increment every box's stage every time through the loop
|
inc BoxStages-1, x ; increment every box's stage every time through the loop
|
||||||
lda StagesHi, y
|
lda StagesHi, y
|
||||||
beq NextBox ; if stage's drawing routine is 0, nothing to do
|
beq NextBox ; if stage's drawing routine is 0, nothing to do
|
||||||
|
stx box
|
||||||
sta j+2
|
sta j+2
|
||||||
lda BoxesX-1, x
|
lda BoxesX-1, x
|
||||||
ldy BoxesY-1, x ; Y = starting byte offset for this box
|
ldy BoxesY-1, x ; Y = starting byte offset for this box
|
||||||
|
Loading…
Reference in New Issue
Block a user