mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-25 04:22:07 +00:00
Ensure that mid-section align 16 makes PC constant
This makes `align 16` a sort of `org`, which is *very* useful :)
This commit is contained in:
@@ -6,3 +6,9 @@ SECTION "Byte", ROM0
|
||||
SECTION "ROM0", ROM0, ALIGN[16]
|
||||
|
||||
db 1
|
||||
println @ ; Ensure that PC is constant.
|
||||
|
||||
SECTION "Mid-section align makes PC constant", ROM0
|
||||
|
||||
align 16, 42
|
||||
println @
|
||||
|
||||
2
test/asm/align-16.out
Normal file
2
test/asm/align-16.out
Normal file
@@ -0,0 +1,2 @@
|
||||
$1
|
||||
$2A
|
||||
Reference in New Issue
Block a user