$E0 $FF #jsr changePause

#asm changePause
{
	mov a, !SpeedUpBackUp	;\
	mov $0387, a			;/ Restore the tempo.
	
	mov a, #$01			;\ Set pause flag to solve issue when doing start+select quickly
	mov !PauseMusic, a	;/
	
	mov $f2, #$5c		; \ Key off voices
	mov $f3, #$ff		; / (so the music doesn't restart playing when using start+select)
	
	and !NCKValue, #$bf		; Unset the mute flag.
	mov a, !NCKValue
	call ModifyNoise

	mov $f2, #$2c		;\
	mov $f3, #$00		;| Mute echo.
	mov $f2, #$3c		;|
	mov $f3, #$00		;/
	ret
}