Currently, you can write strings inside the assembly editor as separate tokens, but a desirable feature would be to extract numerical values from strings inside operands. A one-character string would turn into a byte, a two-character string would turn into a 16-bit word, etc. This way, we can do something like
out console|"H"
for example, to use character codes as operands.
Doing this currently results in weird behavior that seems to invalidate all further code in the assembly editor.
#Using one-character strings as operands in the assembly editor
12 messages · Page 1 of 1 (latest)
only the first token, which is lia representing 3 gets assembled. The bitwise or and the next instruction+argument don't
weird
I double checked and it works fine if you replace the H with an integer literal
that is funny
Once again, a line consisting entirely of a string gets assembled byte-by-byte just fine
But you can't inline strings
Can you use a character literal using ' instead?