Commodore VIC-20 Programmer's Reference Manual page 194

Hide thumbs Also See for VIC-20:
Table of Contents

Advertisement

USEFUL MEMORY LOCATIONS
This is a more in-depth guide lo some of the memory locations
you
can use.
HEX
0014-0015
002B-002C
009A
DECIMAL
20-21
43-44
002D-002E
45-46
002F-0030
47-48
0031 -0032
0033-0034
0037-0033
0043-0044
0061-0066
0069-006E
0073-00BA
0090
0098
0099
49-50
51-52
55-56
67-68
97-102
105-110
115-138
144
152
153
154
DESCRIPTION
Where BASIC stores integer variables
used in calculations. The fixed-float and
float-fixed routines (vectors at 3-4 and
5-6) use the value in this area.
The start of the
BASIC program in
memory. Location 43 contains the low
byte, and location 44 has the high byte.
To compute the
start of
BASIC
in
decimal, use the formula: PEEK(43) -
256 - PEEK(44)
The
start of the
numeric variables,
which is usually immediately after the
end of the BASIC program.
The start of arrays in memory, usually
immediately following the numeric vari
ables.
The end of the arrays in memory.
Bottom of string storage, moving from
the top of available memory down to the
top of arrays.
The top of free RAM. By lowering this
value, some RAM can be "protected"
against BASIC putting values here.
Jump vector for INPUT statement.
Floating point accumulator #1 for cal
culations.
Floating point accumulator #2.
The CHRGET subroutine resides here.
This
routine
gets
the
next
BASIC
character from machine language.
Status word ST.
Number of open files.
Device number for input, normally 0
(keyboard).
Output (CMD) device, normally 3
(screen).
178
I
I

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents