-
-
Notifications
You must be signed in to change notification settings - Fork 57
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
1 parent
a793015
commit cbe63b6
Showing
8 changed files
with
111 additions
and
14 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
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,10 @@ | ||
#ruledef test | ||
{ | ||
ld {x} => | ||
{ | ||
assert() | ||
0x55 @ x`8 | ||
} | ||
} | ||
|
||
ld 0x15 ; error: failed / note:_:3: within / error:_:5: expected 1 to 2 arguments |
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,10 @@ | ||
#ruledef test | ||
{ | ||
ld {x} => | ||
{ | ||
assert(x < 0x10, "your custom message!", "another message!") | ||
0x55 @ x`8 | ||
} | ||
} | ||
|
||
ld 0x15 ; error: failed / note:_:3: within / error:_:5: expected 1 to 2 arguments |
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,10 @@ | ||
#ruledef test | ||
{ | ||
ld {x} => | ||
{ | ||
assert("your custom message!", x < 0x10) | ||
0x55 @ x`8 | ||
} | ||
} | ||
|
||
ld 0x15 ; error: failed / note:_:3: within / error:_:5: expected boolean |
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,10 @@ | ||
#ruledef test | ||
{ | ||
ld {x} => | ||
{ | ||
assert(x < 0x10, "your custom message!") | ||
0x55 @ x`8 | ||
} | ||
} | ||
|
||
ld 0x15 ; error: failed / note:_:3: within / error:_:5: your custom message! |
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,10 @@ | ||
#ruledef test | ||
{ | ||
ld {x} => | ||
{ | ||
assert(x < 0x10, 0x1234) | ||
0x55 @ x`8 | ||
} | ||
} | ||
|
||
ld 0x15 ; error: failed / note:_:3: within / error:_:5: expected string |
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 @@ | ||
#ruledef test | ||
{ | ||
ld {x} => | ||
{ | ||
assert(x < 0x10, "your custom message!") | ||
0x55 @ x`8 | ||
} | ||
} | ||
|
||
ld 0x5 ; = 0x5505 | ||
ld -0x20 ; = 0x55e0 |