MITSUBISHI ELECTRIC T-60 User Manual

Page 23

Advertising
background image

Simple Example

To demonstrate the power of the ApplicationBuilder, a very simple example

program will be read from disk, viewed, converted to BASIC, downloaded,
and run.

Select the FILE menu (ALT-F) and OPEN (move the cursor or type O)
followed by ENTER. You will see a window appear which contains a listing

of the demonstration builder files on the ApplicationBuilder diskette. Move

the highlight to EASY.BLD and press ENTER. The PSEUDOCODE for
EASY.BLD will appear on the screen. Scroll up and down through the
PSEUDOCODE with the cursor keys. Here is a listing of the PSEUDOCODE
for EASY.BLD:

- GOTO SCREEN begin

*>SCREEN begin
- PUT TEXT AT (7,7): “PRESS THE ‘MORE’ SOFTKEY”

- PUT LARGE TEXT AT (3,3): “TO THE BUILDER”
- PUT HUGE TEXT AT (2,1): “WELCOME”
- SOFTKEY (1) “MORE” GOTO SCREEN morescr

- SOFTKEY WAIT
*>SCREEN morescr

- PUT LARGE TEXT AT (3,1): “EMERSON EMC”
- PUT LARGE TEXT AT (2,2): “MAKES PROGRAMMING”
- PUT HUGE TEXT AT (3,2): “EASY!!”

- DELAY 2000
- GOTO SCREEN begin

- END OF PSEUDOCODE

Observe the first two lines and the last line of the PSEUDOCODE. These
three lines are automatically inserted by the BUILDER. You may have

noticed them on the screen before you retrieved EASY.BLD from disk. These
lines cannot be deleted, edited or moved. They are essential for the builder’s
operation. Notice that each line begins with a dash (-) or a * sequence. These

tell the BUILDER that the line is PSEUDOCODE, and what to do with it.

A line starting with * is a new screen, while a line starting with a dash is
PSEUDOCODE that will execute for that screen. Don’t worry about
generating these special symbols, the BUILDER does that for you.

Next move the cursor (blinking block) over the “*SCREEN begin”

PSEUDOCODE. Notice that the SIMULATION OF THE T-60’S SCREEN
contains text. This is the text which will be placed on the T-60 actual screen

when BASIC is generated and the program is run on the T-60. Now try
placing the cursor over the fourth line:

- PUT TEXT AT (7,7): “PRESS THE ‘MORE’ SOFTKEY”

Press ENTER. Notice that the “PRESS THE ‘MORE’ SOFTKEY” is
highlighted on the T-60’s screen. If you hold down the SHIFT key and move

the cursor key, the text block will move on the screen. Notice that the two
numbers in parentheses are changing. This action changes the place where
the BUILDER will place the BASIC text string when the PSEUDOCODE is

converted to BASIC.Press ESC (leave the program unchanged). If you were
to press ENTER, new position would have been saved.

ApplicationBuilder

Getting Started

15

Advertising