mirror of
https://github.com/gbdev/rgbds.git
synced 2026-09-20 20:57:06 +00:00
Fix infinite loop when an aligned HRAM section cannot be placed (#2064)
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
; This used to fail as moving to the next "alignment
|
||||
; boundary" would wrap across 16 bits.
|
||||
|
||||
SECTION "A", HRAM[$FF80]
|
||||
ds 96 ; fills $FF80..$FFDF, leaving 31 bytes free
|
||||
|
||||
SECTION "B", HRAM, ALIGN[7] ; 128-byte alignment
|
||||
ds 32
|
||||
@@ -0,0 +1,2 @@
|
||||
FATAL: Unable to place "B" (HRAM section) with align mask $ff80 and offset $0
|
||||
Linking aborted with 1 error
|
||||
Reference in New Issue
Block a user