Getting string input
Back to the TI-83 page
First of all, we put a prompt at 821ch. Max 16 chars.
Then we call PGMIO_EXEC with the String Input command.
Now OP1 contains the name of a temporary string variable. The string
contains tokens, but if you're only interested in alphanumeric input that
doesn't matter, because uppercase letters and digits are still ascii.
This routine is an example of how to display the string without checking for
tokens like sin(.
And of course:
|
ld de,821ch ;put the prompt here ld hl,prompt ld bc,prompt_len ;length of prompt, max = 16 ldir