shithub: rgbds

Download patch

ref: 2d15e405395912ea4e6bd3b3ce90010427ab44d8
parent: 50aaa6524dbeea1b571132e5f7a63a95b2f6f8f6
author: ISSOtm <[email protected]>
date: Sat Jan 7 17:20:42 EST 2023

Fix WRAM0/WRAMX test

The previous test did not expect failure when trying to stuff
$3000 bytes into $2000-byte WRAM; this is now fixed, and we
also test the reverse now (that we cannot stuff more than
$1000 bytes into WRAM0 without `-d`/`-w`.

--- a/test/link/wramx-dmg-mode-d.out
+++ b/test/link/wramx-dmg-mode-d.out
@@ -1,0 +1,1 @@
+error: Unable to place "wx1" (WRAM0 section) anywhere
--- a/test/link/wramx-dmg-mode.asm
+++ b/test/link/wramx-dmg-mode.asm
@@ -1,8 +1,13 @@
+; With `-w`, there is not enough WRAM (0 & X) to accomodate $4000 bytes;
+; without it, there is not enough WRAM0 to accomodate $4001 bytes.
 SECTION "w0a", WRAM0
 DS $1000
 
-SECTION "wx", WRAMX
-DS $1000
-
 SECTION "w0b", WRAM0
+DS 1
+
+SECTION "wx0", WRAMX
 DS $1000
+
+SECTION "wx1", WRAMX
+DS 1