Now that I have a good handle on simple text output, I'm going to need to figure out how to handle input. More than likely I will have to come up with a PUBlic function that behaves as such:
PUB instr (return S[string])
int i = 0
repeat while not(CR)
S[i] = getkey
i++
end repeat
Then figure out some way to convert from string to integer.
I started work on an unfinished program and so far, I have the following:
This is based on a program from the book, "TRS-80 Programming in Style" by Thomas Dwyer and Margot Critchfield. I was attempting to kill a few birds with one stone, until I realized that I should get the INPUT function fully realized first.
No comments:
Post a Comment