From ed06981f57cc9913a3d61b98e3708efe116e3010 Mon Sep 17 00:00:00 2001 From: ISSOtm Date: Sun, 26 Jan 2020 21:40:58 +0100 Subject: [PATCH] Add test for `db X, @` It should behave identically to both of these on separate lines --- test/link/db-@.asm | 7 +++++++ test/link/db-@.out | 0 test/link/db-@.out.bin | Bin 0 -> 4 bytes 3 files changed, 7 insertions(+) create mode 100644 test/link/db-@.asm create mode 100644 test/link/db-@.out create mode 100644 test/link/db-@.out.bin diff --git a/test/link/db-@.asm b/test/link/db-@.asm new file mode 100644 index 00000000..50d69e0b --- /dev/null +++ b/test/link/db-@.asm @@ -0,0 +1,7 @@ +SECTION "fixed", ROM0[0] + db 0, @ +; We need this section to be floating because RGBASM can know the value of PC +; otherwise, leading to different behavior +; FIXME: we rely on this landing at address 2, which isn't *guaranteed*... +SECTION "floating", ROM0 + db 2, @ diff --git a/test/link/db-@.out b/test/link/db-@.out new file mode 100644 index 00000000..e69de29b diff --git a/test/link/db-@.out.bin b/test/link/db-@.out.bin new file mode 100644 index 0000000000000000000000000000000000000000..eaf36c1daccfdf325514461cd1a2ffbc139b5464 GIT binary patch literal 4 LcmZQzWMT#Y01f~L literal 0 HcmV?d00001