SECTION 5
Some Basic Commands and Keyboard
Operations Unique to C128 Mode
INTRODUCTION
...................................................................5-3
ADVANCED LOOPING .........................................................5-3
The DO/LOOP Statement
.......................................................5-3
Until ......................................................................................... 5-3
While ........................................................................................5-4
Exit ...........................................................................................5-5
The ELSE Clause with IF-THEN
.............................................
5-5
The BEGIN/BEND Sequence with IF-THEN
........................
5-5
The SLEEP Command
.............................................................
5-6
FORMATTING OUTPUT
.......................................................
5-6
The PRINT USING Command .................................................5-6
The PUDEF Command ..............................................................5-7
SAMPLE PROGRAM
............................................................. 5-8
INPUTTING DATA WITH THE GETKEY COMMAND
..........
5-8
PROGRAMMING AIDS .........................................................5-9
Entering programs......................................................................5-9
AUTO ......................................................................................5-9
RENUMBER......................................................................... 5-10
DELETE
............................................................................... 5-10
Identifying Problems in Your Programs ............................... 5-11
HELP .................................................................................... 5-11
Error Trapping - The TRAP Command ............................ 5-11
Program Tracing - The TRON and
TROFF Commands ............................................................ 5-13
WINDOWING ...................................................................... 5-14
Using the WINDOW Command to Create a Window
........
5-14
Using the ESC key to Create a Window
.............................
5-15
5-1