Code: Select all
LDA $2002
LDA #$10
TAY
Loop:
STA $2006
STA $2006
EOR #$10
DEY
BNE Loop
EDIT: I should also add that there are no writes to $2007 anywhere near this loop
Moderator: Moderators
Code: Select all
LDA $2002
LDA #$10
TAY
Loop:
STA $2006
STA $2006
EOR #$10
DEY
BNE Loop
If rendering is disabled, only the last two writes will have any significant results. (nesdevwiki:PPU scrolling)SusiKette wrote:As far as I know only the first two writes to $2006
$2005 is a write-only register. They might have meant to type $2002...after reading $2005
It doesn't obviously do anything useful.it still doesn't have any significant meaning what the loop is supposed to achieve.
Code: Select all
BANKF:EC7E LDA #$10
BANKF:EC80 LDX #$FF
BANKF:EC82 LDY #0
BANKF:EC84 STY PPU_ADDRESS
BANKF:EC87 STY PPU_ADDRESS
BANKF:EC8A STA PPU_ADDRESS
BANKF:EC8D STA PPU_ADDRESS
BANKF:EC90 STY PPU_ADDRESS
BANKF:EC93 STY PPU_ADDRESS
BANKF:EC96 STA PPU_ADDRESS
BANKF:EC99 STA PPU_ADDRESS
BANKF:EC9C STY PPU_ADDRESS
BANKF:EC9F STY PPU_ADDRESS
BANKF:ECA2 STX $C000
BANKF:ECA5 STX $C001
Code: Select all
BANKE:8F8C WAIT_NOP:
BANKE:8F8C NOP
BANKE:8F8D NOP
BANKE:8F8E NOP
BANKE:8F8F NOP
BANKE:8F90 NOP
BANKE:8F91 NOP
BANKE:8F92 NOP
BANKE:8F93 NOP
BANKE:8F94 NOP
BANKE:8F95 NOP
BANKE:8F96 RTS
BANKE:8F96 ; End of function WAIT_NOP