-
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.
spcasm: add warning for too high address in full-range bit addressing…
… instructions
- Loading branch information
1 parent
6ae6e99
commit d14f30a
Showing
3 changed files
with
27 additions
and
2 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,2 @@ | ||
org 0 | ||
and1 C,$fe2b.0 |
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,16 @@ | ||
```trycmd | ||
$ spcasm tests/bit-index-overflow.s | ||
spcasm::value_too_large | ||
|
||
⚠ The value `FE2B` is being used as a 13-bit operand here, but it is larger | ||
│ than this. The extra upper bits are truncated. | ||
╭─[tests/bit-index-overflow.s:2:8] | ||
1 │ org 0 | ||
2 │ and1 C,$fe2b.0 | ||
· ──┬── | ||
· ╰── 13-bit operand | ||
╰──── | ||
help: If this was intentional, explicitly truncate the value. | ||
|
||
|
||
``` |