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

TOP

1. BASIC

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.

    10 REM SHOW KEY BEING PRESSED
    20 A$ = KEY$
    30 PRINT CSR1;A$;
    40 GOTO 10
    10 REM DIGITAL CRICKET
    20 A$ = KEY$
    30 GOTO 10
TOP

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)

TOP

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]
    2
    B ?  [5][EXE]
    5
    7

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]
   2
   TWO ? [5][EXE]
   5
   7

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]
   2
   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]
   6
   RESULT= 30
   IN ? [EXE]
   30
   RESULT= 150