diff options
author | Juan J. Martinez <jjm@usebox.net> | 2024-05-27 23:24:19 +0100 |
---|---|---|
committer | Juan J. Martinez <jjm@usebox.net> | 2024-05-27 23:24:19 +0100 |
commit | 703ab56587aac0d79ccc0f72f2b8d9ee235e20a5 (patch) | |
tree | 32b186dc14c56fe19c004a403eeaaf7e2dd0b10f /src/ubox/ubox_put_tile.z80 | |
parent | 420ac2c8f2307ddcbe551972544bbe11f05ee7ff (diff) | |
download | ubox-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/ubox/ubox_put_tile.z80')
-rw-r--r-- | src/ubox/ubox_put_tile.z80 | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/ubox/ubox_put_tile.z80 b/src/ubox/ubox_put_tile.z80 index 24e58b2..718027d 100644 --- a/src/ubox/ubox_put_tile.z80 +++ b/src/ubox/ubox_put_tile.z80 @@ -4,14 +4,11 @@ WRTVRM = 0x004d BG_TILE_MAP = 0x1800 _ubox_put_tile:: + ld c, a + ld b, l + ld hl, #2 add hl, sp - - ld c, (hl) - inc hl - ld b, (hl) - inc hl - ld a, (hl) ld h, #0 @@ -27,5 +24,8 @@ _ubox_put_tile:: ld bc, #BG_TILE_MAP add hl, bc - jp WRTVRM + call WRTVRM + pop hl + inc sp + jp (hl) |