aboutsummaryrefslogtreecommitdiff
path: root/src/mplayer
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2021-03-25 21:19:36 +0000
committerJuan J. Martinez <jjm@usebox.net>2021-03-25 21:19:36 +0000
commit1f84c4b8f064351966cc71876ae7d903efeb9d87 (patch)
treed8420a131fb9cb8d1da89e19fcd8bf94c8f1ea81 /src/mplayer
parenta253a42d5fa06fd913169a84a3cc7a8034a82104 (diff)
downloadubox-msx-lib-1f84c4b8f064351966cc71876ae7d903efeb9d87.tar.gz
ubox-msx-lib-1f84c4b8f064351966cc71876ae7d903efeb9d87.zip
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.
Diffstat (limited to 'src/mplayer')
-rw-r--r--src/mplayer/mplayer_init.z806
1 files changed, 5 insertions, 1 deletions
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