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.
Partial fix for issue hlorenzi#115: Partial support for labels inside…
… asm{}
- Loading branch information
Showing
2 changed files
with
89 additions
and
49 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,29 @@ | ||
#ruledef { | ||
emit {x:u8} => x | ||
|
||
nested_test => asm | ||
{ | ||
label: | ||
emit $ | ||
label2: | ||
emit $ | ||
emit label | ||
emit label2 | ||
emit $ | ||
test | ||
} | ||
|
||
test => asm | ||
{ | ||
label: | ||
emit $ | ||
label2: | ||
emit $ | ||
emit label | ||
emit label2 | ||
emit $ | ||
} | ||
} | ||
|
||
test ;= 00_01_00_01_04 | ||
nested_test ;= 05_06_05_06_09_0a_0b_0a_0b_0e |