limit pixel_draw to only write pixel with 0 - 255 x_pos
This commit is contained in:
parent
c336e43c19
commit
9b5fd7d6e5
2 changed files with 2 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
Y_pos = $FB
|
||||
X_pos = $FC ; 16-bit value (uses FD)
|
||||
X_pos = $FC
|
||||
byte_to_paint = $FE
|
||||
btp_mem_pos = $F9 ; 16-bit value (uses FA), byte to paint memory position
|
||||
C = $F7 ; 16-bit value (uses F8)
|
||||
|
|
|
@ -36,7 +36,7 @@ end__:
|
|||
AND X_pos
|
||||
STA btp_mem_pos
|
||||
|
||||
LDA X_pos + 1
|
||||
LDA #$00
|
||||
STA btp_mem_pos + 1
|
||||
|
||||
;;The y_pos adds offset because chunk offsets + inside chunk offset.
|
||||
|
|
Loading…
Add table
Reference in a new issue