1
0
mirror of https://github.com/safiire/n65.git synced 2024-12-12 15:29:12 +00:00

Let's change the name of nes.sprite to nes.oam, since it really points to Object Attribute Memory

This commit is contained in:
Safiire 2015-03-22 16:04:30 -07:00
parent ee643af3ef
commit 1de5b9c8ad
2 changed files with 4 additions and 2 deletions

View File

@ -257,7 +257,7 @@
; Update the sprite, I don't exactly understand the DMA call yet.
.scope update_sprite
lda #>sprite
sta nes.sprite.dma ; Jam page $200-$2FF into SPR-RAM, how do we get these numbers?
sta nes.oam.dma ; Jam page $200-$2FF into SPR-RAM, how do we get these numbers?
lda sprite.x
beq hit_left
cmp #$F7

View File

@ -7,6 +7,8 @@
; Author: Saf Allen 2015
; I picked up some extra register names for mappers etc here:
; http://wiki.nesdev.com/w/index.php/Registers
; Some different common names from here:
; http://wiki.nesdev.com/w/index.php/PPU_registers
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
.org $0000
@ -20,7 +22,7 @@
.space scroll 1 ; $2005
.
.org $2003
.scope sprite
.scope oam
.space address 1 ; $2003
.space io 1 ; $2004
.org $4014