aboutsummaryrefslogtreecommitdiff
path: root/src/ap
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/ap
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/ap')
-rw-r--r--src/ap/ap.z8012
1 files changed, 1 insertions, 11 deletions
diff --git a/src/ap/ap.z80 b/src/ap/ap.z80
index b968853..882c75e 100644
--- a/src/ap/ap.z80
+++ b/src/ap/ap.z80
@@ -18,16 +18,7 @@
.ez80
_ap_uncompress::
- ld hl, #2
- add hl, sp
- ld e, (hl)
- inc hl
- ld d, (hl)
- inc hl
- ld a, (hl)
- inc hl
- ld h, (hl)
- ld l, a
+ ex de, hl
ap_uncompress::
ld ixl, #128
@@ -154,4 +145,3 @@ ap_getgammaloop:
call ap_getbit
jr c, ap_getgammaloop
ret
-