27.01.2015 Views

titus-larsen-titus-1981-apple-interfacing

titus-larsen-titus-1981-apple-interfacing

titus-larsen-titus-1981-apple-interfacing

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

of the monitor screen each time the computer restarts the program.<br />

This takes time, and it slows down the display. Can you suggest any<br />

further changes to the program to reduce or eliminate the flicker<br />

7<br />

By removing the HOME command, you can reduce the time that<br />

the Apple takes to clear the entire screen and "home" the cursor to<br />

the upper left-hand corner of the video display area. When the<br />

HT AB and VT AB commands are used, they position the cursor at<br />

exactly the right place to print each ON or OFF on each line, one<br />

bit. If no spaces are left after the "ON" at line 450, the printing<br />

the ON would not cover the last F in OFF, and you would see<br />

ONF, instead of ON. Thus, the spaces are needed to "erase" any<br />

characters remaining on a line.<br />

We suggest that you use the following for line 410 in your pro-<br />

410 A = 128<br />

Now, start the program by typing in HOME:GOTO 400, and then<br />

pressing ENTER. If you do not use the HOME command, the program<br />

will simply write over whatever is on the screen. The HOME<br />

command clears the screen for you just before the program is started.<br />

Step 8<br />

The VT AB and HT AB commands can also be used to generate<br />

titles or captions for each of the eight lines of information in the display.<br />

Several captions follow, and you may add or change the ones<br />

provided:<br />

5 HOME<br />

10 VTAB 8: HTAB l<br />

15 PRINT "ACID PUMP";<br />

20 VTAB 9: HTAB 1<br />

25 PRINT "BASE PUMP";<br />

30 VTAB 10: HTAB 1<br />

35 PRINT "HEATER";<br />

40 VTAB 11: HTAB l<br />

45 PRINT "MIXER";<br />

VTAB 12: HTAB 1<br />

PRINT "FLUSH CYCLE";<br />

60 VTAB 13: HTAB 1<br />

50<br />

55<br />

65 PRINT "DISHWASHER";<br />

70 VTAB 14: HTAB 1<br />

1M

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!