shithub: rgbds

Download patch

ref: 02ea52f453df1b645985a53b287fa4e1c7c1dc21
parent: cdabc057a0a1e307a13f78181c782a3194362fb5
author: ISSOtm <eldredhabert0@gmail.com>
date: Sun Feb 9 13:53:48 EST 2020

Add test for `LOAD`

--- /dev/null
+++ b/test/asm/ram-code.asm
@@ -1,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"
--- /dev/null
+++ b/test/asm/ram-code.out
@@ -1,0 +1,3 @@
+$C001
+$C005
+$8
binary files /dev/null b/test/asm/ram-code.out.bin differ