diff --git a/plat.nes b/plat.nes index 1a9f9b6..2516194 100644 Binary files a/plat.nes and b/plat.nes differ diff --git a/plat.s b/plat.s index 8252ac8..d59222a 100644 --- a/plat.s +++ b/plat.s @@ -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