Re: What was the "killer app" for the Commodore PET?
Posted: Thu May 11, 2017 8:13 pm
barrym95838 wrote:
Yeah, you could shift the second character of the keyword and stop there. So RETURN could be shortened to rE when you were entering the program line. It got a little tricky when there was ambiguity ... (was gO equivalent to GOTO or GOSUB)? PETSCII had some cool attributes, but I could never get around the fact that there were two different PETSCII codes for each member of the upper-case alphabet, depending on what "display mode" you were in.
Mike B.
P.S. The "P." shorthand was an attribute of TRS-80 Level 1 BASIC, which didn't tokenize. If you entered "P." the interpreter would store it as two bytes and look for the first keyword entry that started with "P", which was "PRINT". Entering "PRINT" used five bytes, and made the slow interpreter even slower.
Mike B.
P.S. The "P." shorthand was an attribute of TRS-80 Level 1 BASIC, which didn't tokenize. If you entered "P." the interpreter would store it as two bytes and look for the first keyword entry that started with "P", which was "PRINT". Entering "PRINT" used five bytes, and made the slow interpreter even slower.
What's funny is that the keyboard is all uppercase, shifted you get symbols.
But there was also a "lowercase mode", which replaced the symbols with lowercase letters.
So, unlike most everything else, where lowercase is normal, and uppercase shifted, the PET was opposite.
I even remembered that you could PRINT "<CLS>", and it would capture the Clear Screen as a character (in this case, and inverted heart, but only in quotes.
I have no real memories of how to move the cursor, I guess I just stuck a HOME plus a bunch of DOWN and RIGHT in a string. Truth is, most of my work was done simply by POKEing in to the screen memory. But I know I did some stuff with just BASIC. (I had a neat little Star Trek game where the display was the front view screen, so I had several face-on ship silhouettes, like \_=_/ for a Romulan, only using the nice characters vs just ascii [and I'm too lazy to dig up the unicode]).
I worked on the PET for 2 years in high school, very formative experience.