Closed shazz closed 3 years ago
* = $1010
data_ptr_msb: !byte data>8
data_ptr_lsb: !byte data
I think you meant:
* = $1010
data_ptr_msb: !byte data>>8
data_ptr_lsb: !byte data
(Just thought I'd mention as the former probably compiles too but will evaluate to true or false.)
I might in fact choose not to support this syntax for generic expressions, as I am worried it will conflict in the parser as there are already <
and >
operators in the grammar. The <
and >
for lo/hi bytes is currently only supported in the immediate field denoted with #<foo
.
Sorry for the typo. I think the workaround using >> 8 is good enough. Just need to be documented: if < > for immediate values, the shift operator for labels.
Example:
Error:
Workaround:
Workaround is fine for me. But maybe a proper operator could be define ?