gbdk-2020 | GameBoy Development Kit |
| download: https://git.y1.nz/archives/gbdk.tar.gz | |
| README | Files | Log | Refs | LICENSE |
commit bb2ddaf811c84c8704f74a6b48f53ff34d409299 parent 54ae1208b35fb21eb28ccf25f746784205481a80 Author: Toxa <untoxa@mail.ru> Date: Mon, 13 Nov 2023 20:10:35 +0300 SMS/GG/MSX: fix waitpad() function Diffstat:
| M | gbdk-lib/libc/targets/z80/gg/pad.s | 3 | ++- |
| M | gbdk-lib/libc/targets/z80/msxdos/pad.s | 3 | ++- |
| M | gbdk-lib/libc/targets/z80/sms/pad.s | 4 | +++- |
3 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/gbdk-lib/libc/targets/z80/gg/pad.s b/gbdk-lib/libc/targets/z80/gg/pad.s @@ -36,8 +36,9 @@ _waitpadup:: ;; Wait for the key to be pressed _waitpad:: .wait_pad:: + ld h, l 1$: call .jpad ; read pad - and l ; compare with mask? + and h ; compare with mask? jr z,1$ ; loop if no intersection ret diff --git a/gbdk-lib/libc/targets/z80/msxdos/pad.s b/gbdk-lib/libc/targets/z80/msxdos/pad.s @@ -59,8 +59,9 @@ _waitpadup:: ;; Wait for the key to be pressed _waitpad:: .wait_pad:: + ld h, l 1$: call .jpad ; read pad - and l ; compare with mask? + and h ; compare with mask? jr z,1$ ; loop if no intersection ret diff --git a/gbdk-lib/libc/targets/z80/sms/pad.s b/gbdk-lib/libc/targets/z80/sms/pad.s @@ -32,7 +32,9 @@ _waitpadup:: _waitpad:: .wait_pad:: 1$: + ld h, l +1$: call .jpad ; read pad - and l ; compare with mask? + and h ; compare with mask? jr z,1$ ; loop if no intersection ret
This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.