From 703ab56587aac0d79ccc0f72f2b8d9ee235e20a5 Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Mon, 27 May 2024 23:24:19 +0100 Subject: Use SDCC's new calling convention (this is an ABI breaking change, and will require changes to user-written asm functions or their declarations) --- src/mplayer/mplayer_init.z80 | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/mplayer/mplayer_init.z80') diff --git a/src/mplayer/mplayer_init.z80 b/src/mplayer/mplayer_init.z80 index 90b3824..ee922ca 100644 --- a/src/mplayer/mplayer_init.z80 +++ b/src/mplayer/mplayer_init.z80 @@ -5,13 +5,12 @@ _mplayer_init:: ld ix, #2 add ix, sp - - ld l, 0 (ix) - ld h, 1 (ix) - ld a, 2 (ix) + ld a, 0 (ix) di call _PLY_AKM_INIT ei - ret + pop hl + inc sp + jp (hl) -- cgit v1.2.3