This repository has been archived by the owner on Dec 10, 2023. It is now read-only.
forked from hlorenzi/customasm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Final fix for issue hlorenzi#115: local labels in asm{} are resolved …
…out-of-order
- Loading branch information
Showing
2 changed files
with
151 additions
and
105 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#ruledef { | ||
emit {x:u8} => x | ||
|
||
test => asm | ||
{ | ||
test2 end | ||
test2 end | ||
end: | ||
} | ||
|
||
test2 {l: u32} => asm | ||
{ | ||
emit l | ||
emit end | ||
end: | ||
} | ||
|
||
run => asm | ||
{ | ||
test | ||
emit 0x10 | ||
} | ||
} | ||
|
||
run ; = 0x04_02_04_04_10 | ||
emit $ ; = 0x05 |