Search found 2 matches

by Bainemo
Sat Jun 16, 2007 11:21 pm
Forum: NESdev
Topic: Very simple 6502 asm question
Replies: 5
Views: 2914

I see. Well, that does make sense then. I was unaware the NES had special "watch out for these writes and then start doing things" instructions beyond the usually init stuff. The code I got from above came from some asm code this guy wrote, and while much of it makes sense, it uses "d...
by Bainemo
Sat Jun 16, 2007 10:42 pm
Forum: NESdev
Topic: Very simple 6502 asm question
Replies: 5
Views: 2914

Very simple 6502 asm question

lda #$01
sta $4016
lda #$00
sta $4016

Would the above code simply write $0001 to address $4016, and then instantly replace it with $0000? What purpose could that serve?

Or am I missing something?