Download Trs8bit - FabsitesUK.com
Transcript
I decided, instead of building an array of information for the formation of the characters, I would place it all in one string. (B$ in the program below). I could then extract the information using ‘VAL’ and ‘MID$’ functions. In order to run the program continuously, the ‘L’ ‘for-next’ loop was also added. I also took the opportunity to change the matrix layout to 5x7. Once again, it was producing a number clearly and reasonably quickly, but there still remained one main problem. I would always need to print more than one number at a time. Up to seven would be ideal, though there is room for eight! A reasonably simple task in the usual run of things, but I still wanted to keep the program as a one-liner! so; I changed the input statement to a string, x$, and calculated the length of the input-number string. Then I added an additional loop (FOR NEXT t) to print each number’s 7th part formation across the screen. once again, I extracted the information using TRS8BIT - volume 07 Issue 01 - March 2013 - page 4