Column
This commit is contained in:
14
plat.s
14
plat.s
@@ -15,8 +15,6 @@ INES_SRAM = 0
|
|||||||
.segment "TILES"
|
.segment "TILES"
|
||||||
.incbin "background.chr"
|
.incbin "background.chr"
|
||||||
.incbin "sprite.chr"
|
.incbin "sprite.chr"
|
||||||
|
|
||||||
|
|
||||||
.segment "VECTORS"
|
.segment "VECTORS"
|
||||||
.word nmi
|
.word nmi
|
||||||
.word reset
|
.word reset
|
||||||
@@ -1493,6 +1491,7 @@ update_nmt_column:
|
|||||||
@row_loop:
|
@row_loop:
|
||||||
lda tile_update_pos_r
|
lda tile_update_pos_r
|
||||||
clc
|
clc
|
||||||
|
; Add offset in tiles from left edge of screen
|
||||||
adc #8
|
adc #8
|
||||||
sta var_n
|
sta var_n
|
||||||
|
|
||||||
@@ -1534,7 +1533,14 @@ update_nmt_column:
|
|||||||
adc var_p
|
adc var_p
|
||||||
tay
|
tay
|
||||||
; Specifies what tile gets written to the column
|
; Specifies what tile gets written to the column
|
||||||
lda #%10000011
|
lda #%10110001
|
||||||
|
sty var_m
|
||||||
|
:
|
||||||
|
lsr
|
||||||
|
dec var_m
|
||||||
|
bne :-
|
||||||
|
|
||||||
|
and #%00000001
|
||||||
sta (pointer), Y
|
sta (pointer), Y
|
||||||
|
|
||||||
and #%01111111
|
and #%01111111
|
||||||
@@ -1592,7 +1598,7 @@ update_nmt_column:
|
|||||||
:
|
:
|
||||||
|
|
||||||
|
|
||||||
lda #1
|
lda #15
|
||||||
sta nmt_update_len
|
sta nmt_update_len
|
||||||
|
|
||||||
rts
|
rts
|
||||||
|
|||||||
Reference in New Issue
Block a user