This commit is contained in:
Brooke Vibber 2024-12-31 07:33:20 -08:00
parent 4a1e35699a
commit 7184b8e03f

View file

@ -292,16 +292,16 @@ viewport_zoom:
.byte 6 .byte 6
viewport_ox: viewport_ox:
.word $0000 .dword $00000000
.word $f110 .dword $ff110000
.word $f110 .dword $ff110000
.word $e400 .dword $fe400000
viewport_oy: viewport_oy:
.word $0000 .dword $00000000
.word $fb60 .dword $ffb60000
.word $fbe0 .dword $ffbe0000
.word $0000 .dword $00000000
; 2 + 9 * byte cycles ; 2 + 9 * byte cycles
.macro add bytes, dest, arg1, arg2 .macro add bytes, dest, arg1, arg2
@ -1459,17 +1459,32 @@ zero_byte_loop:
txa txa
asl a asl a
asl a
tax tax
lda viewport_ox,x lda viewport_ox,x
sta ox sta ox
lda viewport_oy,x lda viewport_oy,x
sta oy sta oy
inx inx
lda viewport_ox,x lda viewport_ox,x
sta ox + 1 sta ox + 1
lda viewport_oy,x lda viewport_oy,x
sta oy + 1 sta oy + 1
inx
lda viewport_ox,x
sta ox + 2
lda viewport_oy,x
sta oy + 2
inx
lda viewport_ox,x
sta ox + 3
lda viewport_oy,x
sta oy + 3
rts rts
.endproc .endproc