rotozoom: add bg color change

This commit is contained in:
Vince Weaver 2021-01-07 15:21:57 -05:00
parent 97f20e3c0c
commit cba3b2865c
2 changed files with 17 additions and 0 deletions

View File

@ -93,6 +93,21 @@ refresh_image:
at_far_end:
; change bg color
lda roto_color_even_smc+1
clc
adc #$01
and #$0f
sta roto_color_even_smc+1
lda roto_color_odd_smc+1
clc
adc #$10
and #$f0
sta roto_color_odd_smc+1
; reverse direction
lda direction
eor #$ff

View File

@ -219,6 +219,7 @@ rotozoom_xloop:
; on the edges of the screen? Tricky due to Apple II
; interlacing
roto_color_even_smc:
lda #0 ; default color ; 2
ldy XPH ; 3
@ -413,6 +414,7 @@ rotozoom_xloop2:
; on the edges of the screen? Tricky due to Apple II
; interlacing
roto_color_odd_smc:
lda #0 ; default color ; 2
ldy XPH ; 3