shithub: rgbds

Download patch

ref: ed06981f57cc9913a3d61b98e3708efe116e3010
parent: ec6c42e9d60d3695e89f675588195597efbf32ff
author: ISSOtm <[email protected]>
date: Sun Jan 26 16:40:58 EST 2020

Add test for `db X, @`
It should behave identically to both of these on separate lines

--- /dev/null
+++ b/test/link/[email protected]
@@ -1,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, @
--- /dev/null
+++ b/test/link/[email protected]
@@ -1,0 +1,1 @@
+
\ No newline at end of file