diff --git a/RAM.SRC b/RAM.SRC index 8bd494d..ba7ae55 100644 --- a/RAM.SRC +++ b/RAM.SRC @@ -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; @@ -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; @@ -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; @@ -2318,4 +2322,4 @@ BEGIN WORD SONG_POINTER_ADDRESS VALUE #GEMINI_COMMAND_POINTER; MOVE 1 TO GEMINI_NOT_PAUSED; EXIT; -END; \ No newline at end of file +END;