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:
ISSOtm
2024-02-18 22:30:52 +01:00
committed by Sylvie
parent 36dad4380e
commit 1b08a12b26
3 changed files with 18 additions and 2 deletions

View File

@@ -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
View File

@@ -0,0 +1,2 @@
$1
$2A