From: Lukas Krickl Date: Sat, 18 Apr 2026 04:47:22 +0000 (+0200) Subject: tests: Added new macro test case X-Git-Url: https://git.krickl.dev/?a=commitdiff_plain;h=8c53f41078ac866e05479cb472dce82007221484;p=ulas%2F.git tests: Added new macro test case --- diff --git a/tests/t0.bin b/tests/t0.bin index 07421d8..11722f3 100644 Binary files a/tests/t0.bin and b/tests/t0.bin differ diff --git a/tests/t0.s b/tests/t0.s index 79d90ed..32e33e4 100644 --- a/tests/t0.s +++ b/tests/t0.s @@ -226,3 +226,13 @@ nopnest1 ld a, '/' ld a, ' ' ld a, '\'' + +#define EXPANDME 0xFABC +#macro expandinline + ld a, [$1] + sra a + ld [$1], a + call 0xFDED +#endmacro + +expandinline EXPANDME diff --git a/tests/t0_dasm.s b/tests/t0_dasm.s index 6426d46..67bf195 100644 --- a/tests/t0_dasm.s +++ b/tests/t0_dasm.s @@ -139,5 +139,9 @@ nop ld a, 0x2f ld a, 0x20 -.db 0x3e -.db 0x27 + ld a, 0x27 + ld a, [0xfabc] + rlc b + cpl + ld [0xfabc], a + call 0xfded