mirror of
https://github.com/safiire/n65.git
synced 2024-12-12 00:29:03 +00:00
Still messing with the symbol names in neslib
This commit is contained in:
parent
e5ef0fac5f
commit
e54e5b17fb
@ -175,8 +175,8 @@
|
|||||||
.scope load_palette
|
.scope load_palette
|
||||||
lda #$3F
|
lda #$3F
|
||||||
ldx #$00
|
ldx #$00
|
||||||
sta nes.vram.address2
|
sta nes.vram.address
|
||||||
stx nes.vram.address2
|
stx nes.vram.address
|
||||||
loop:
|
loop:
|
||||||
lda palette, x
|
lda palette, x
|
||||||
sta nes.vram.io
|
sta nes.vram.io
|
||||||
@ -198,9 +198,9 @@
|
|||||||
lda #>bg
|
lda #>bg
|
||||||
sta $11
|
sta $11
|
||||||
lda #$24
|
lda #$24
|
||||||
sta nes.vram.address2
|
sta nes.vram.address
|
||||||
lda #$00
|
lda #$00
|
||||||
sta nes.vram.address2
|
sta nes.vram.address
|
||||||
loop:
|
loop:
|
||||||
lda ($10), y
|
lda ($10), y
|
||||||
sta nes.vram.io
|
sta nes.vram.io
|
||||||
@ -324,16 +324,16 @@ reverse_dx:
|
|||||||
; Scroll the screen if we have to
|
; Scroll the screen if we have to
|
||||||
scroll_screen:
|
scroll_screen:
|
||||||
ldx #$00 ; Reset VRAM Address to $0000
|
ldx #$00 ; Reset VRAM Address to $0000
|
||||||
stx nes.vram.address2
|
stx nes.vram.address
|
||||||
stx nes.vram.address2
|
stx nes.vram.address
|
||||||
|
|
||||||
ldx scroll zp ; Do we need to scroll at all?
|
ldx scroll zp ; Do we need to scroll at all?
|
||||||
beq no_scroll
|
beq no_scroll
|
||||||
dex
|
dex
|
||||||
stx scroll zp
|
stx scroll zp
|
||||||
lda #$00
|
lda #$00
|
||||||
sta nes.vram.address1 ; Write 0 for Horiz. Scroll value
|
sta nes.ppu.scroll ; Write 0 for Horiz. Scroll value
|
||||||
stx nes.vram.address1 ; Write the value of 'scroll' for Vert. Scroll value
|
stx nes.ppu.scroll ; Write the value of 'scroll' for Vert. Scroll value
|
||||||
|
|
||||||
no_scroll:
|
no_scroll:
|
||||||
rts
|
rts
|
||||||
|
@ -16,17 +16,19 @@
|
|||||||
.space control1 1 ; $2000
|
.space control1 1 ; $2000
|
||||||
.space control2 1 ; $2001
|
.space control2 1 ; $2001
|
||||||
.space status 1 ; $2002
|
.space status 1 ; $2002
|
||||||
|
.org $2005
|
||||||
|
.space scroll 1 ; $2005
|
||||||
.
|
.
|
||||||
|
.org $2003
|
||||||
.scope sprite
|
.scope sprite
|
||||||
.space address 1 ; $2003
|
.space address 1 ; $2003
|
||||||
.space io 1 ; $2004
|
.space io 1 ; $2004
|
||||||
.org $4014
|
.org $4014
|
||||||
.space dma 1 ; $4014
|
.space dma 1 ; $4014
|
||||||
.
|
.
|
||||||
|
.org $2006
|
||||||
.scope vram
|
.scope vram
|
||||||
.org $2005
|
.space address 1 ; $2006
|
||||||
.space address1 1 ; $2005
|
|
||||||
.space address2 1 ; $2006
|
|
||||||
.space io 1 ; $2007
|
.space io 1 ; $2007
|
||||||
.
|
.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user