tests: Added new macro test case master origin/HEAD origin/master
authorLukas Krickl <lukas@krickl.dev>
Sat, 18 Apr 2026 04:47:22 +0000 (06:47 +0200)
committerLukas Krickl <lukas@krickl.dev>
Sat, 18 Apr 2026 04:47:22 +0000 (06:47 +0200)
tests/t0.bin
tests/t0.s
tests/t0_dasm.s

index 07421d86f071a5d72fa6a2165c5069a723d3244f..11722f3e886e0541fd30196a02c856dff2f8970f 100644 (file)
Binary files a/tests/t0.bin and b/tests/t0.bin differ
index 79d90ed42e01cbf93c933f95accea48fbba85b82..32e33e46775651153c53138e95da6e2b1c262969 100644 (file)
@@ -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
index 6426d46425a74da8f3ef5bc8ac22e3426e31e495..67bf19506d4925d31f96bec73f6509bc08e26609 100644 (file)
   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