Skip to content

Commit

Permalink
Fixed ROM restart
Browse files Browse the repository at this point in the history
  • Loading branch information
Hacktix committed Jan 16, 2021
1 parent 3777c06 commit 156bc2c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/emu.asm
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ EmuLoop::
; Check for reset combo
and $F0
cp $F0
jp z, Main
jp z, Restart

.noReset

Expand Down
1 change: 1 addition & 0 deletions src/main.asm
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ Main::
; Store initial value of L in RAM
ld [wInitialRegA], a

Restart::
; Wait for VBlank, disable LCD
ldh a, [rLY]
cp SCRN_Y
Expand Down

0 comments on commit 156bc2c

Please sign in to comment.