Skip to content

Commit

Permalink
Update RAM.SRC
Browse files Browse the repository at this point in the history
i forgot to implement that BGMOFF function

how do you forget to implement the BGMOFF function
  • Loading branch information
TheNetNomad committed Apr 16, 2022
1 parent 8c3cf37 commit 6b9306e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions RAM.SRC
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ BEGIN
BYTE BGMON_CALL VALUE JP_OPCODE;
WORD BGMON_ADDR VALUE SUB_BGMON;
BYTE BGMOFF_CALL VALUE JP_OPCODE;
WORD BGMOFF_ADDR VALUE SUB_ALL_NOTE_OFF;
WORD BGMOFF_ADDR VALUE SUB_BGMOFF;
BYTE BGMPAU_CALL VALUE JP_OPCODE;
WORD BGMPAU_ADDR VALUE SUB_PAUSE_TOGGLE;
BYTE BGMINT_CALL VALUE JP_OPCODE;
Expand Down Expand Up @@ -2270,6 +2270,7 @@ BEGIN
MOVE OPM_DATA_OUT TO OPM_DATA_ADDR;
EXIT;


SUB_PAUSE_TOGGLE:
IF GEMINI_NOT_PAUSED = 1 THEN
CALL SUB_ALL_NOTE_OFF;
Expand All @@ -2279,6 +2280,9 @@ BEGIN
FI;
EXIT;

SUB_BGMOFF:
MOVE 0 TO GEMINI_NOT_PAUSED;

SUB_ALL_NOTE_OFF:
MCALL SUB_GETSLT USING ,,^h7F00 GIVING ,,,RETURN_SLOT;
MCALL BIOS_ENASLT USING ,,^b0100000000000000,DETECT_SLOT;
Expand Down Expand Up @@ -2318,4 +2322,4 @@ BEGIN
WORD SONG_POINTER_ADDRESS VALUE #GEMINI_COMMAND_POINTER;
MOVE 1 TO GEMINI_NOT_PAUSED;
EXIT;
END;
END;

0 comments on commit 6b9306e

Please sign in to comment.