mirror of
https://github.com/a2-4am/4cade.git
synced 2024-12-26 04:33:10 +00:00
shave another 197109 cycles off HGR per-pixel fizzle fade
now 45% faster than yesterday
This commit is contained in:
parent
a48216f841
commit
ab80cfa04b
@ -17,12 +17,13 @@ rnd2=$ff
|
||||
|
||||
;iterate
|
||||
|
||||
ldx #0
|
||||
@loop
|
||||
lda rnd1
|
||||
@loop2
|
||||
eor #$ff
|
||||
sta $26
|
||||
sta $3c
|
||||
ldx rnd2
|
||||
lsr rnd2
|
||||
ror rnd1
|
||||
bcc +
|
||||
@ -62,14 +63,14 @@ rnd2=$ff
|
||||
|
||||
;wait while checking for keypress
|
||||
|
||||
ldx $c000
|
||||
lda $c000
|
||||
bmi @exit
|
||||
|
||||
;exit condition 2
|
||||
|
||||
ldx rnd1
|
||||
dex
|
||||
bne @loop
|
||||
lda rnd1
|
||||
cmp #1
|
||||
bne @loop2
|
||||
|
||||
@exit rts
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user