diff options
| author | Miquel Sabaté Solà <msabate@suse.com> | 2023-12-03 07:45:53 +0100 |
|---|---|---|
| committer | Miquel Sabaté Solà <msabate@suse.com> | 2023-12-03 07:45:53 +0100 |
| commit | dd7a4efc643c20c56b845aa11af1fec4b0760d92 (patch) | |
| tree | b3e213c7ba4dbff04691f41bd80975bfd1eb600e /include/oam.s | |
| download | aoc2023.nes-dd7a4efc643c20c56b845aa11af1fec4b0760d92.tar.gz aoc2023.nes-dd7a4efc643c20c56b845aa11af1fec4b0760d92.zip | |
First day of advent of code
Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
Diffstat (limited to 'include/oam.s')
| -rw-r--r-- | include/oam.s | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/oam.s b/include/oam.s new file mode 100644 index 0000000..ecd1b7d --- /dev/null +++ b/include/oam.s @@ -0,0 +1,13 @@ +.segment "CODE" + +.scope OAM + ADDR = $2003 + DMA = $4014 +.endscope + +.macro OAM_WRITE_SPRITES + lda #$00 + sta OAM::ADDR + lda #$02 + sta OAM::DMA +.endmacro |
