Section 4 - Advanced Basic Programming - Commodore 128 System Manual

Hide thumbs Also See for 128:
Table of Contents

Advertisement

SECTION 4
Advanced Basic Programming
Using the C o lon.......................................................................... 4-4
LOOPS- The FOR-NEXT Com m and........................................ 4-5
Empty Loops- Inserting Delays in a Program ........................ 4-6
The STEP Command .................................................................4-6
INPUTTING D A T A ......................................................................... 4-7
The INPUT C o m m and............................................................... 4-7
Assigning a value to a variable............................................. 4-7
Prompt m essages.................................................................. 4-8
The GET Command .................................................................. 4-9
Sample P rogram ...................................................................... 4-10
The READ-DATA Command ................................................. 4-11
The RESTORE C o m m and..................................................... 4-12
Using A rra y s ............................................................................ 4-13
Subscripted V ariables......................................................... 4-13
Dimensioning A rra y s .......................................................... 4-14
Sample Program.................................................................. 4-15
PROGRAMMING SUBROUTINES.......................................... 4-17
The GOSUB-RETURN Comm ands....................................... 4-17
The ON GOTO/GOSUB Commands.................................... 4-17
USING MEMORY LO CATIO N.................................................. 4-18
Using PEEK and POKE for RAM A c ce ss............................. 4-18
Using PEEK........................................................................... 4-19
Using P O K E ......................................................................... 4-19
4-1

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

128d

Table of Contents