Viewing the Demo

To stop the demo type:

  ?ICE ( or use Alt-1 )

  PIC16Cxx Stack Empty

you should see something like this. We now are back in TLM before running the demo.

We have loaded several new words, the only one you have used of so far is SCAN. IRTC can show you them all in two ways.

Editor - SED

The first is to use the editor SED. Type:

The editor screen should appear with the contents of the file 7-SEG.SEQ displayed. As we only have one file for this application this is sufficient.

Editor - View

The editor has a Browse mode that lets you look at the source without being able to alter the contents. So let us use this to examine the word SCAN:

  VIEW SCAN

You should now see the editor screen with the cursor flashing on a : before the word SCAN. This is the definition of the word that we have just run. The file it is in, shown at the bottom of the edit screen, is 7-SEG.SEQ.

Now we will see one of the most useful features of F-PC, viewing. When a word is defined a link is generated to the position inside the file from whence it came. When we VIEW, the word is found and the link used to show the file and the place the word was defined. Further more, we may do the same from within the editor. Move the cursor along to the word 0. With the cursor flashing over this word press Return. Oops! no file. Well not too surprising, 0 is a number, and unless made into a word we would not expect a definition. Move the cursor on to ?BUTTON and try again. The editor now loads with the same file 7-SEG.SEQ and the definition of ?BUTTON displayed. You will see that after the jump to the word the F10 in the top right corner of the screen has changed to +1. If ?BUTTON was in another file this would now be showing at the bottom of the screen. To return press the F10 function key and the editor display will revert back to our selection point. Move the cursor over to DUP and try Alt-H. Now a file appears with the cursor flashing by the description of DUP. It tells us that it duplicates the top stack item and that in-line code will be produced if the SPEED flag is on. We may continue nesting like this 18 more times. The top right hand corner of the screen shows a +number. This is the depth of inquires we have made. Pressing the F10 function key will return us, one level at a time, back to SCAN. Shift-F10 will exit from the editor and close all the files updating any that have been modified. Alt-F10 will exit without updating modifications.

We may now navigate around the Source and Help files to see how the demo was programmed. Try using Return on a word first, if there is no file, use Alt-H. Even if you locate the source you may wish the use Alt-H to see the description if there is any.

When browsing a file that requires modification use Shift-F9 to select the Insert mode to make changes.