Tandy PC-6 Fun Stuff 16-Jul-2015 4:08 PM
Edit FancyEdit New New Blog Upload All Recent Home Logout

Table Of Contents

Here are some things that I always forget about programming/working with my Tandy PC-6 (Casio fx-790p) Much of these will work on the PC-4 as well, and probably the PC-5, which is very similar to the PC-6.

I've made a screen font that looks just like the PC-4/5/6, and is available at Fontstruct.com



When editing, shift-l to list, and then EXE will move on line by line. Shift-EXE will go back to the previous line.

Most of the Tandy PC-4/PC-5/PC-6 follow standard BASIC keywords although there are of course some that are specific to these devices.

    20 A$ = KEY$
    30 PRINT CSR1;A$;
    40 GOTO 10
    20 A$ = KEY$
    30 GOTO 10

2. Using Memos

PC-5 and PC-6 added a MEMO function. This is not available on PC-4.

To enter a memo, you need to be in RUN mode (mode 0). then just type stuff and hit mode-9 to write it into the memo bank.

Press MEMO to roll through all entries.

Type the first letter(s) of an entry and hit MEMO. It will go to the entry if it finds one that starts with that text. If it can't find it, it will display an empty line. (Probably not on PC-5)


3. Using the Function Memory

PC-5 and PC-6 added Function Memory and execution. This is not available on PC-4.

To start with, let's put a simple function in there. Go to run mode, mode-0. Next, let's enter a simple function. Type:

And run it by pressing [CALC]. it will prompt you for A and B, and then print out the answer. You can also store this into a MEMO:

    A ?  [2][EXE]
    B ?  [5][EXE]

Now you can recall this function at any time by hitting [MEMO] until you find the function, then [IN] to load it into function memory. Next, you can press [CALC] to run this function.

Next, we can label the variables, so that the user (you) is prompted with actual names for the variables, rather than the variable letter. This is done by putting the name to be displayed in quotes immediately after the variable. These variables will be prompted to the user in the order they're pre-listed, rather than the order they're in the function.

Now, when you run it, you get different results:

   ONE ? [2][EXE]
   TWO ? [5][EXE]

Note that it will display the values as you enter them. This is handy if you put in complex functions there. when you entered '2' above, you could enter "10*3" and it will display "30" back at you.

You can also change the order like so:

You can also just define the names inline, which isn't as readable when the function is complex.

It should also be noted that these values are the same as the BASIC memory space, so you can store the results in another variable, like so:

   INA ? [2][EXE]
   C= 10

And you can also do something like this, in this case, where you use the previous value of 'A' without changing its value. Note that you can also name result values. - A"IN":A"RESULT"=A*5 [IN]

   IN ? [6][EXE]
   RESULT= 30
   IN ? [EXE]
   RESULT= 150