Skip to content

Commit

Permalink
Fix stupid typos/errors made in the recent updates to hucc-baselib an…
Browse files Browse the repository at this point in the history
…d hucc-scroll.
  • Loading branch information
jbrandwood committed Dec 19, 2024
1 parent 87de700 commit 64fec7a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions include/hucc/hucc-baselib.asm
Original file line number Diff line number Diff line change
Expand Up @@ -272,8 +272,8 @@ _vsync.1 .macro
_joy.1 .macro
.if SUPPORT_6BUTTON
tax
lda joy6now, x
ldy joynow, x
lda joynow, x
ldy joy6now, x
.else
tay
lda joynow, y
Expand All @@ -291,8 +291,8 @@ _joy.1 .macro
_joytrg.1 .macro
.if SUPPORT_6BUTTON
tax
lda joy6trg, x
ldy joytrg, x
lda joytrg, x
ldy joy6trg, x
.else
tay
lda joytrg, y
Expand Down
16 changes: 8 additions & 8 deletions include/hucc/hucc-scroll.asm
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,6 @@ HUCC_SCR_HEIGHT = 224

lda #1 ; Mark that we've changed the
sta sgx_region_new, x ; selected region.

sta sgx_region_sel, x

!done: plp ; Restore interrupts.
Expand Down Expand Up @@ -217,7 +216,6 @@ HUCC_SCR_HEIGHT = 224

lda #1 ; Mark that we've changed the
sta sgx_region_new, x ; selected region.

stz sgx_region_sel, x

!done: plp ; Restore interrupts.
Expand Down Expand Up @@ -447,6 +445,8 @@ vbl_init_scroll .proc
!next_region: dex ; All regions updated?
bmi !save_first+

stz sgx_region_new, x ; Clear region modified flag.

ldy sgx_region_sel, x ; 0=regionA or 1=regionB.
beq !use_regionA+

Expand Down Expand Up @@ -540,8 +540,8 @@ USING_RCR_MACROS = 1 ; Tell IRQ1 to use the macros.
bra !clr_next_rcr+ ; 4 as if the branch were taken.

!set_next_rcr: lda vdc_regionA_rcr, y ; 5 Set next RCR 1 line before
adc #64-1 ; 2 the region begins.
!clr_next_rcr: sta VDC_DL ; 6
adc #64-1 ; 2 the region begins, or 0 to
!clr_next_rcr: sta VDC_DL ; 6 disable.
cla ; 2
rol a ; 2
sta VDC_DH ; 6
Expand Down Expand Up @@ -587,8 +587,8 @@ USING_RCR_MACROS = 1 ; Tell IRQ1 to use the macros.
bra !clr_next_rcr+ ; 4 as if the branch were taken.

!set_next_rcr: lda sgx_regionA_rcr, y ; 5 Set next RCR 1 line before
adc #64-1 ; 2 the region begins.
!clr_next_rcr: sta SGX_DL ; 6
adc #64-1 ; 2 the region begins, or 0 to
!clr_next_rcr: sta SGX_DL ; 6 disable.
cla ; 2
rol a ; 2
sta SGX_DH ; 6
Expand Down Expand Up @@ -667,8 +667,8 @@ USING_RCR_MACROS = 1 ; Tell IRQ1 to use the macros.
bra !clr_next_rcr+ ; 4 as if the branch were taken.

!set_next_rcr: lda vdc_regionA_rcr, y ; 5 Set next RCR 1 line before
adc #64-1 ; 2 the region begins.
!clr_next_rcr: sta VDC_DL ; 6
adc #64-1 ; 2 the region begins, or 0 to
!clr_next_rcr: sta VDC_DL ; 6 disable.
cla ; 2
rol a ; 2
sta VDC_DH ; 6
Expand Down

0 comments on commit 64fec7a

Please sign in to comment.