From dc701294f813e3a4c9286e28a0f7f74a592a8645 Mon Sep 17 00:00:00 2001 From: Rangi42 Date: Fri, 25 Sep 2026 12:59:00 -0400 Subject: [PATCH] Add an additional check to the `jr-@` test (ported from rsgbds) --- test/asm/jr-@.asm | 5 ++++- test/asm/jr-@.out.bin | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/test/asm/jr-@.asm b/test/asm/jr-@.asm index 0f6278bc..aae90101 100644 --- a/test/asm/jr-@.asm +++ b/test/asm/jr-@.asm @@ -6,5 +6,8 @@ SECTION "fixed", ROM0[0] SECTION "floating", ROM0 jr @ -; XXX: We rely on this landing at address $0002, which isn't *guaranteed*... + ; This should thwart any attempts by RGBASM to compute the offset by itself. + jr 1 + @ - 1 + +; We rely on this landing at address $0002, which isn't *guaranteed*... assert STARTOF("floating") == 2 diff --git a/test/asm/jr-@.out.bin b/test/asm/jr-@.out.bin index 4bc11ec3..c1e5b771 100644 --- a/test/asm/jr-@.out.bin +++ b/test/asm/jr-@.out.bin @@ -1 +1 @@ -þþ \ No newline at end of file +þþþ \ No newline at end of file