Skip to content

Commit

Permalink
tetris-PRG.info: Rename switch_s_plus_2a to switchOnA
Browse files Browse the repository at this point in the history
Makes the usages read better.
  • Loading branch information
ejona86 committed Jan 22, 2024
1 parent 29d9d6c commit 2725a12
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion screens.s
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ load_background:
lda screenToDisplay
cmp #$07
bpl @continue
jsr switch_s_plus_2a
jsr switchOnA
.addr @continue
.addr @continue
.addr @continue
Expand Down
2 changes: 1 addition & 1 deletion taus.s
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ statsPerBlock:
statsPerLineClear:
; Manage the burn
lda completedLines
jsr switch_s_plus_2a
jsr switchOnA
.addr statsPerLineClearDone
.addr @worstenBurn1
.addr @worstenBurn2
Expand Down
3 changes: 2 additions & 1 deletion tetris-PRG.info
Original file line number Diff line number Diff line change
Expand Up @@ -998,7 +998,8 @@ LABEL { ADDR $AC61; NAME "@storeAttributeTableByte"; };
LABEL { ADDR $AC67; NAME "@ret"; };
LABEL { ADDR $AC6A; NAME "memset_page"; COMMENT "reg a: value; reg x: start page; reg y: end page (inclusive)"; };
LABEL { ADDR $AC77; NAME "@setByte"; };
LABEL { ADDR $AC82; NAME "switch_s_plus_2a"; };
LABEL { ADDR $AC82; NAME "switchOnA"; COMMENT "Jumps to the address stored at the return address + 'reg a'*2"; };
LABEL { ADDR $AC98; NAME "unreferenced_func3"; };
LABEL { ADDR $ACA3; NAME "setMMC1Control"; };
LABEL { ADDR $ACB7; NAME "changeCHRBank0"; };
LABEL { ADDR $ACCB; NAME "changeCHRBank1"; };
Expand Down
2 changes: 1 addition & 1 deletion twoplayer-tetris-PRG.s.diff
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@

gameMode_playAndEndingHighScore:
lda gameModeState
jsr switch_s_plus_2a
jsr switchOnA
.addr gameModeState_initGameBackground
.addr gameModeState_initGameState
.addr gameModeState_updateCountersAndNonPlayerState
Expand Down

0 comments on commit 2725a12

Please sign in to comment.