mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-24 12:02:08 +00:00
Allow negative alignment offsets (#1255)
This commit is contained in:
6
test/asm/align-offset.asm
Normal file
6
test/asm/align-offset.asm
Normal file
@@ -0,0 +1,6 @@
|
||||
SECTION "good", ROM0, ALIGN[4, -2]
|
||||
align 4, 14 ; -2 == (1 << 4) - 2 == -2 mod (1 << 4)
|
||||
|
||||
SECTION "bad+", ROM0, ALIGN[4, 18] ; out of range
|
||||
|
||||
SECTION "bad-", ROM0, ALIGN[4, -20] ; out of range negative
|
||||
Reference in New Issue
Block a user