EasyManua.ls Logo

Commodore 128D - Section 4; Section 4 - Advanced Basic Programming

Commodore 128D
448 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
SECTION 4
Advanced Basic Programming
COMPUTER DECISIONS—The IF-THEN Statement
.............
4-3
Using the Colon
.......................................................................... 4-4
LOOPS—The FOR-NEXT Command
........................................
4-5
Empty Loops- Inserting Delays in a Program
........................
4-6
The STEP Command .................................................................4-6
INPUTTING DATA.........................................................................4-7
The INPUT Command...............................................................4-7
Assigning a value to a variable
.............................................
4-7
Prompt messages
.................................................................. 4-8
The GET Command
.................................................................. 4-9
Sample Program...................................................................... 4-10
The READ-DATA Command ................................................. 4-11
The RESTORE Command
.....................................................
4-12
Using Arrays............................................................................ 4-13
Subscripted Variables......................................................... 4-13
Dimensioning Arrays
.......................................................... 4-14
Sample Program
.................................................................. 4-15
PROGRAMMING SUBROUTINES
.......................................... 4-17
The GOSUB-RETURN Commands....................................... 4-17
The ON GOTO/GOSUB Commands.................................... 4-17
USING MEMORY LOCATION
.................................................. 4-18
Using PEEK and POKE for RAM Access
.............................
4-18
Using PEEK........................................................................... 4-19
Using POKE......................................................................... 4-19
4-1

Table of Contents

Other manuals for Commodore 128D

Related product manuals