blob: 42acb064bfe7487754f4fa2edb6b0c6b98d3d4cf (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
;; WRITE_PPU_DATA is a macro that will write into PPUADDR the given address and
;; into PPUDATA the given byte value.
.macro WRITE_PPU_DATA address, value
bit $2002
lda #.HIBYTE(address)
sta $2006
lda #.LOBYTE(address)
sta $2006
lda #value
sta $2007
.endmacro
|