From 1f84c4b8f064351966cc71876ae7d903efeb9d87 Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Thu, 25 Mar 2021 21:19:36 +0000 Subject: Ensure this can't be interruped If the int handler is calling mplayer_play, it could happen that an int is handled when the song is being set up, potentially leaving the player's internal structures in a invalid state. --- src/mplayer/mplayer_init.z80 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/mplayer/mplayer_init.z80') diff --git a/src/mplayer/mplayer_init.z80 b/src/mplayer/mplayer_init.z80 index 5f30b91..f1b6294 100644 --- a/src/mplayer/mplayer_init.z80 +++ b/src/mplayer/mplayer_init.z80 @@ -10,4 +10,8 @@ _mplayer_init:: ld h, 1 (ix) ld a, 2 (ix) - jp _PLY_AKM_INIT + di + call _PLY_AKM_INIT + ei + + ret -- cgit v1.2.3