From 8c53f41078ac866e05479cb472dce82007221484 Mon Sep 17 00:00:00 2001 From: Lukas Krickl Date: Sat, 18 Apr 2026 06:47:22 +0200 Subject: [PATCH] tests: Added new macro test case --- tests/t0.bin | Bin 253 -> 264 bytes tests/t0.s | 10 ++++++++++ tests/t0_dasm.s | 8 ++++++-- 3 files changed, 16 insertions(+), 2 deletions(-) diff --git a/tests/t0.bin b/tests/t0.bin index 07421d86f071a5d72fa6a2165c5069a723d3244f..11722f3e886e0541fd30196a02c856dff2f8970f 100644 GIT binary patch delta 18 acmey%*uga6FZZuKzfSAF+Vkt|+rI#0mkc5R delta 6 NcmeBR`pY=sF8~Qt0~P=P 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 -- 2.30.2