This commit is contained in:
2026-03-18 16:56:37 -04:00
parent 930b34dadc
commit f86bc9b23b
2 changed files with 10 additions and 4 deletions

BIN
plat.nes

Binary file not shown.

14
plat.s
View File

@@ -15,8 +15,6 @@ INES_SRAM = 0
.segment "TILES"
.incbin "background.chr"
.incbin "sprite.chr"
.segment "VECTORS"
.word nmi
.word reset
@@ -1493,6 +1491,7 @@ update_nmt_column:
@row_loop:
lda tile_update_pos_r
clc
; Add offset in tiles from left edge of screen
adc #8
sta var_n
@@ -1534,7 +1533,14 @@ update_nmt_column:
adc var_p
tay
; 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
and #%01111111
@@ -1592,7 +1598,7 @@ update_nmt_column:
:
lda #1
lda #15
sta nmt_update_len
rts