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 00000000..0c2d78c7 Binary files /dev/null and b/test/asm/ram-code.out.bin differ