I am still learning assembly in the TI calculators (I use a TI-84+).
I came across the String Pixel Width program at the Assembly Hex Codes documentation here and it states:
This returns how wide a string is in pixels.
Here's the program for reference:
AsmPrgm
EFD74AD604C0
676FEB
4E234623EB
C5D5E51A
EFA342F5
EBEF9445
218D8477EFB44C06004F
F1E1D109C1
20020B13
0B1378B1
20DB
EF9247
EF5641
EFBF4A
C9
I compiled the assembly, which I named prgmZSTRLN, into prgmASMSTRLN.
The program runs fine, and I made sure to store the string in Ans.
I assumed that when the documentation stated that it returns a value, that I could implement it like any other method, e.g. randInt(row, column).
Example:
"Example
Example
Asm(prgmASMSTRLN)->A
Error
When I do this, I get a SYNTAX error. The returned value is not in Ans, even when I did the following:
"Example
Example
Asm(prgmASMSTRLN
Done
Ans
Example
What am I doing wrong?
What does the documentation mean when an assembly "returns" a value?
How do I access said value?
How do I store said value into a variable?