Prev: $947F Up: Map Next: $94FF
$94E8: Move sprites #0-#6 right by 64 pixels (3)
Used by the routine at $93E8.
Input
X Bit 8 of the sprites' x-coordinates
$94E8 LDA $D000 Add 64 to the x-coordinate (bits 0-7) of sprite #0, #1, #2, #3, #4, #5 or #6. The operands of the LDA and STA instructions here are modified by the routine at $93E8.
$94EB CLC
$94EC ADC #$40
$94EE STA $D000
$94F1 BCC $94F7 Branch unless there was overflow on addition.
$94F3 TXA Set bit 7 of X. This sets the record of bit 8 of the same sprite's x-coordinate.
$94F4 ORA #$80
$94F6 TAX
$94F7 TXA Transfer bit 8 of the sprites' x-coordinates to A.
$94F8 CLC Rotate A left, including bit 7 into bit 0.
$94F9 ROL A
$94FA ADC #$00
$94FC JMP $93EB Point at the next sprite before returning to this routine.
Prev: $947F Up: Map Next: $94FF