aboutsummaryrefslogtreecommitdiff
path: root/src/mplayer/mplayer_play_effect.z80
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2024-05-27 23:24:19 +0100
committerJuan J. Martinez <jjm@usebox.net>2024-05-27 23:24:19 +0100
commit703ab56587aac0d79ccc0f72f2b8d9ee235e20a5 (patch)
tree32b186dc14c56fe19c004a403eeaaf7e2dd0b10f /src/mplayer/mplayer_play_effect.z80
parent420ac2c8f2307ddcbe551972544bbe11f05ee7ff (diff)
downloadubox-msx-lib-703ab56587aac0d79ccc0f72f2b8d9ee235e20a5.tar.gz
ubox-msx-lib-703ab56587aac0d79ccc0f72f2b8d9ee235e20a5.zip
Use SDCC's new calling convention
(this is an ABI breaking change, and will require changes to user-written asm functions or their declarations)
Diffstat (limited to 'src/mplayer/mplayer_play_effect.z80')
-rw-r--r--src/mplayer/mplayer_play_effect.z8017
1 files changed, 8 insertions, 9 deletions
diff --git a/src/mplayer/mplayer_play_effect.z80 b/src/mplayer/mplayer_play_effect.z80
index adf41b9..e2a233f 100644
--- a/src/mplayer/mplayer_play_effect.z80
+++ b/src/mplayer/mplayer_play_effect.z80
@@ -5,14 +5,13 @@
.globl _PLY_AKM_PLAYSOUNDEFFECT
_mplayer_play_effect::
- ld hl, #2
- add hl, sp
+ ld c, l
+ ld ix, #2
+ add ix, sp
+ ld b, 0 (ix)
- ld a, (hl)
- inc hl
- ld c, (hl)
- inc hl
- ld b, (hl)
-
- jp _PLY_AKM_PLAYSOUNDEFFECT
+ call _PLY_AKM_PLAYSOUNDEFFECT
+ pop hl
+ inc sp
+ jp (hl)