From 02ea52f453df1b645985a53b287fa4e1c7c1dc21 Mon Sep 17 00:00:00 2001 From: ISSOtm Date: Sun, 9 Feb 2020 18:53:48 +0100 Subject: [PATCH] Add test for `LOAD` --- test/asm/ram-code.asm | 20 ++++++++++++++++++++ test/asm/ram-code.err | 0 test/asm/ram-code.out | 3 +++ test/asm/ram-code.out.bin | Bin 0 -> 20 bytes 4 files changed, 23 insertions(+) create mode 100644 test/asm/ram-code.asm create mode 100644 test/asm/ram-code.err create mode 100644 test/asm/ram-code.out create mode 100644 test/asm/ram-code.out.bin diff --git a/test/asm/ram-code.asm b/test/asm/ram-code.asm new file mode 100644 index 00000000..e832e78d --- /dev/null +++ b/test/asm/ram-code.asm @@ -0,0 +1,20 @@ +SECTION "test", ROM0[1] + call Target + LOAD "new", WRAM0[$C001] +Target: dl $DEADBEEF +.end + ENDL +After: + jp Target + ld hl, Word + dw Byte, Target.end, After + +SECTION "ram test", WRAM0 ; Should end up at $C005 +Word: + dw + +SECTION "small ram test", WRAM0 ; Should end up at $C000 +Byte: + db + + PRINTT "{Target}\n{Target.end}\n{After}\n" diff --git a/test/asm/ram-code.err b/test/asm/ram-code.err new file mode 100644 index 00000000..e69de29b diff --git a/test/asm/ram-code.out b/test/asm/ram-code.out new file mode 100644 index 00000000..ad509cfc --- /dev/null +++ b/test/asm/ram-code.out @@ -0,0 +1,3 @@ +$C001 +$C005 +$8 diff --git a/test/asm/ram-code.out.bin b/test/asm/ram-code.out.bin new file mode 100644 index 0000000000000000000000000000000000000000..0c2d78c77f3272b1364e80eb3bdd5d25f4a2e625 GIT binary patch literal 20 ccmZQL%Xr}ZzP0xbGagW6J-~2)^#BJ00BBDLz5oCK literal 0 HcmV?d00001