mirror of
https://github.com/safiire/n65.git
synced 2024-12-13 06:29:16 +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:
parent
ee643af3ef
commit
1de5b9c8ad
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user