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_read_ctl.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_read_ctl.z80')
-rw-r--r-- | src/ubox/ubox_read_ctl.z80 | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/ubox/ubox_read_ctl.z80 b/src/ubox/ubox_read_ctl.z80 index ae4fff9..d6f6a07 100644 --- a/src/ubox/ubox_read_ctl.z80 +++ b/src/ubox/ubox_read_ctl.z80 @@ -5,7 +5,6 @@ WRTPSG = 0x0093 SNSMAT = 0x0141 _ubox_read_ctl:: - ld a, l or a jr z, is_keyb dec a @@ -13,7 +12,7 @@ _ubox_read_ctl:: dec a jr z, is_joy2 - ld l, #0 + xor a ret is_joy2: @@ -49,7 +48,6 @@ call_psg: xor a joy_extra_m: or e - ld l, a ret is_keyb: @@ -96,5 +94,4 @@ is_keyb_dir: or e ; added 2nd fire (M) - ld l, a ret |