-
-
Notifications
You must be signed in to change notification settings - Fork 173
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
46 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
assert !strcmp("{FOO}", "hello") | ||
assert !strcmp("{DEFINED}", "1") | ||
def FOO equ 42 |
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,3 @@ | ||
error: command-line-symbols.asm(3): | ||
'FOO' already defined at <command-line> | ||
error: Assembly aborted (1 error)! |
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 @@ | ||
-Weverything -DFOO=hello -DDEFINED |
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
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,5 @@ | ||
MACRO mac | ||
DEF s EQUS "\#" | ||
println "{#s:s}" | ||
ENDM | ||
mac \\\"\t\r\0\n\{\}\,\(\)\w\ |
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,5 @@ | ||
error: macro-arg-escape-chars.asm(5): | ||
Illegal character escape 'w' | ||
error: macro-arg-escape-chars.asm(5): | ||
Illegal character escape at end of input | ||
error: Assembly aborted (2 errors)! |
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 @@ | ||
\\\"\t\r\0\n\{},()w\\ |
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,11 @@ | ||
MACRO mac | ||
println "\1" | ||
println \1 | ||
ENDM | ||
mac "hello \\\"\t\r\0\n\ ; comment | ||
\wor\ | ||
ld" | ||
mac """goodbye | ||
cruel\ ; comment | ||
\nworld""" | ||
mac "\ |
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,9 @@ | ||
error: string-literal-macro-arg.asm(6): | ||
Illegal character escape 'w' | ||
error: string-literal-macro-arg.asm(11): | ||
Illegal character escape at end of input | ||
error: string-literal-macro-arg.asm(11): | ||
Unterminated string | ||
error: string-literal-macro-arg.asm(11) -> string-literal-macro-arg.asm::mac(4): | ||
Unterminated string | ||
error: Assembly aborted (4 errors)! |
Binary file not shown.