Skip to content

Commit

Permalink
Some optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
intoinside committed Jan 5, 2022
1 parent ed3ebb0 commit 4268979
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 20 deletions.
4 changes: 2 additions & 2 deletions _level1.asm
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@ Manager: {
lda GameEnded
bne CloseLevelAndGame

jmp EndLoop
jmp JoystickMovement

CloseLevelAndGotoNext:
jsr SetSpriteToBackground
IsReturnPressed()
bne LevelDone
jmp EndLoop
jmp JoystickMovement

CloseLevelAndGame:
jsr SetSpriteToBackground
Expand Down
4 changes: 2 additions & 2 deletions _level2.asm
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@ Manager: {
lda GameEnded
bne CloseLevelAndGame

jmp EndLoop
jmp JoystickMovement

CloseLevelAndGotoNext:
jsr SetSpriteToBackground
IsReturnPressed()
bne LevelDone
jmp EndLoop
jmp JoystickMovement

CloseLevelAndGame:
jsr SetSpriteToBackground
Expand Down
3 changes: 1 addition & 2 deletions _level3.asm
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,13 @@ Manager: {
lda GameEnded
bne CloseLevelAndGame

jmp EndLoop
jmp JoystickMovement

CloseLevelAndGame:
jsr SetSpriteToBackground
IsReturnPressed()
bne LevelDone

EndLoop:
jmp JoystickMovement

LevelDone:
Expand Down
14 changes: 0 additions & 14 deletions _utils.asm
Original file line number Diff line number Diff line change
Expand Up @@ -809,20 +809,6 @@ WaitRoutine: {
rts
}

StupidWaitRoutine: {
ldy #$bf
LoopY:
ldx #$ff
LoopX:
nop
nop
dex
bne LoopX
dey
bne LoopY
rts
}

.macro DrawAccumulator(position) {
pha
and #$0f
Expand Down

0 comments on commit 4268979

Please sign in to comment.