home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CBM Funet Archive
/
cbm-funet-archive-2003.iso
/
cbm
/
maps
/
C16.MemoryMap
< prev
next >
Wrap
Text File
|
1995-03-08
|
25KB
|
737 lines
;cOMMODORE PLUS/4 AND
;cOMMODORE 16 mEMORY mAP
;
;v1.19 dEC 1994
;
lABEL hEX aDDR. dECIMAL lOC.dESCRIPTION
pdir$000007501 ON-CHIP DATA-DIRECTION REGISTER
port$000117501 ON-CHIP 8-BIT iNPUT/oUTPUT REGISTER
srchtk$00022tOKEN 'SEARCH' LOOKS FOR (RUN-TIME STACK)
zpvec1$0003-00043-4tEMP (RENUMBER)
zpvec2$0005-00065-6tEMP (RENUMBER)
charac$00077sEARCH CHARACTER
endchr$00088fLAG: SCAN FOR QUOTE AT END OF STRING
trmpos$00099sCREEN COLUMN FROM LAST tab
verck$000a10fLAG: 0 = LOAD 1 - VERIFY
count$000b11iNPUT BUFFER POINTER / nO. OF SUBSCTIPTS
dimflg$000c12fLAG: dEFAULT aRRAY dimENSION
valtyp$000d13dATA TYPE: $ff = STRING$00 = NUMERIC
intflg$000e14dATA TYPE: $80 = INTEGER, $00 = FLOATING
dores$000f15fLAG: data SCAN/list QUOTE/GARBAGE COLL
subflg$001016fLAG: SUBSCRIPT REF / USER FUNCTION COLL
inpflg$001117fLAG: $00 = input, $43 = get, $98 = read
tansgn$001218fLAG tan SIQN / COMPARISON RESULT
channl$001319fLAG: input PROMPT
linnum$0014-001520-21tEMP: INTEGER VALUE
temppt$001622pOINTER: TEMPORARY STRING STACK
lastpt$0317-001823-24lAST TEMP STRING ADDRESS
tempst$0019-002125-33sTACK FOR TEMPORARY STRINGS
index1$0022-002334-35uTILITY POINTER AREA
index2$0024-002536-37uTILITY POINTER AREA
resho$002638
resmoh$002739
resmo$002840
reslo$002941
$002a42
txttab$002b-002c43-44pOINTER: START OF basic TEXT
vartab$002d-002e45-46pOINTER: START OF basic VARIABLES
arytab$002e-003047-48pOINTER: START OF basic ARRAYS
strend$0031-003249-50pOINTER: END OF basic ARRAYS (+1)
frftop$0033-003451-52pOINTER: BOTTOM OF STRING STORAGE
frespc$0035-003653-54uTILITY STRING POINTER
memsiz$0037-003855-56pOINTER: HIGHEST ADDRESS USED BY basic
curlin$0039-003a57-58cURRENT basic LINE NUMBER
txtptr$003b-003c59-60
fndpnt$003d-003f61-62
datlin$003f-004063-64cURRENT data LINE NUMBER
datptr$0041-004265-66pOINTER: cURRENT data ITEM ADDRESS
inpptr$0043-004467-68vECTOR: input ROUTINE
varnam$0045-004669-70cURRENT basic VARIABLE NAME
varpnt$0047-004871-72pOINTER: cURRENT basic VARIABLE DATA
forpnt$0049-004a73-74pOINTER: iNDEX VARIABLE FOR for/next
opptr $0048-004c75-76
opmask$004d77
defpnt$004e-004f78-79
dscpnt$0050-005180-81
$005282
helper$005383
jmper$005484
size$005585
oldov$005686
tempf1$005787
highds $0058-005988-89
hightr $005a-005b90-91
$005c92
lowds$005d-005e93-94
lOwtr$005f95
expsgn$006096
facexp$006197fLOATING-POINT ACCUMULATOR #1: EXPONENT
facho$006298fLOATING ACCUM. #1: MANTISSA
facmoh$006399
facmo$0064100
faclO$0065101
facsgn $0066102fLOATING ACCUM. #1: SIGN
sgnflg $0067103pOINTER: SERIES EVALUATION CONSTANT
bits$0068104fLOATING ACCUM. #1: OVERFLOW DIGIT
argexp $0069105fLOATING-POINT ACCUMULATOR #2: EXPONENT
argho$006a106fLOATING ACCUM. #2: MANTISSA
argmoh$006b107
argmo$006c108
arglo$006d109
argsgn $006e110fLOATING ACCUM. #2: SIGN
arisgn $006f111sIGN COMPARISON RESULT: ACCUM. #1 VS #2
facov$0070112fLOATING ACCUM. #1. LOW-ORDER (ROUNDING)
fbufpt $0071-0072113pOINTER: CASSETTE BUFFER
autinc $0073-0074115-116iNCREMENT VALUE FOR AUTO (0 = OFF)
mvdflg $0075117fLAG IF 10k HIRES ALLOCATED
keynum $0076118
keysiz $0077119
syntmp $0078120uSED AS TEMP eOR INDIRECT LOADS
dsdesc $0079-0078121-123dESCRIPTOR FOR dss
tos$007c-037d124-125tOP OF RUN TIME STACK
tmpton $007e-007f126-127tEMPS USED BY MUSIC (TONE & VOLUME)
voicno $0080128
runmod $0081129
point$0082130
graphm $0083131cURRENT GRAPHIC MODE
colsel$0084132cURRENT COLOR SELECTED
mc1$0085133mULTICOLOR 1
fg$0086134fOREGROUND COLOR
scxmax$0087135mAXIMUM # OF COLUMNS
scymax $0088136mAXIMUM # OF ROWS
ltflag $0089137pAINT-LEFT FLAG
rtflag$008a138pAINT-rIGHT FLAG
stopnh$008b139sTOP PAINT IF NOT bg (nOT SAME cOLOR)
grapnt$008c-008d140-141
vtemp1$008e142
vtemp2 $008f143
status $0090144kERNAL i/o STATUS WORD: st
strey$0091145fLAG: stop KEY / rvs KEY
spverr$0092146tEMP
verfck $0093147fLAG: 0 = LOAD, 1 = VERIFY
c3po$0094148pLAG: SERIAL BUS - OUTPUT CHAR BUFFERED
bsour$0095149bUFFERED CHARACTER FOR SERIAL BUS
xsav$0096150tEMP FOR BASIN
ldtnd$0097151# OF OPEN FILES / INDEX TO FILE TABLE
dfltn$0098152dEFAULT INPUT DEVICE (0)
dflto$0099153dEFAULT OUTPUT (cmd) DEVICE (3)
msgflg $009a154fLAG:$80 = DIRECT MODE $00 = PROGRAM
sal$009b155tAPE PASS 1 ERROR LOG
sah$009c156tAPE PASS 2 ERROR LOG
eal$009d157
eah$009e158
t1$009f-00a0159-160tEMP DATA AREA
t2$00a1-00a2161-162tEMP DATA AREA
time$00a3-00a5163-165rEAL-TIME JIFFY CLOCK (APPROX) 1/60 SEC
r2d2$00a6166sERIAL BUS USAGE (eoi ON OUTPUT)
tpbyte$00a7167bYTE TO BE WRITTEN/READ ON/OFF TAPE
bsour1$00a8168tEMP USED BY SERIAL ROUTINE
fpverr$00a9169
dcount$00aa170
fnlen$00a8171lENGTH OF CURRENT FILE NAME
la$00ac172cURRENT LOGICAL FIIE NUMBER
sa$00ad173cURRENT SECONDA.Y ADDRESS
fa$00ae174cURRENT DEVICE NUMBER
fnadr$00af-00b0175-176pOINTER: CURRENT FILE NAME
errsum$00b1177
stal $00b2178 i/o START ADDRESS
stah $00b3179
memuss$00b4-00b5180-181lOAD RAM BASE
tapebs$00b6-00b7182-183bASE POINTER TO CASSETTE BASE
tmp2 $00b8-00b9184-185
wrbase$00ba-00bb186-187pOINTER TO DATA FOR TAPE WRITES
imparm$00bc-00bd188-189pOINTER TO IMMEDIATE STRING FOR PRIMMS
fetptr$00be-00bf190-191pOINTER TO BYTE TO BE FETCHED IN BANK FETC
sedsal$00c0-00c1192-193tEMP FOR SCROLLING
rvs$00c2194rvs FIELD FLAG ON
indx $00c3195
lsxp $00c4196x POSITION AT START
lstp $00c5197
sfdx $00c6198fLAG: SHIFT MODE FOR PRINT
crsw $00c7199fLAG: input OR get FROM KEYBOARD
pnt$00c8-00c9200-201pOINTER: CURRENT SCREEN LINE ADDRESS
pntr $00ca202cURSOR COLUMN ON CURRENT LINE
qtsw $00cb203fLAG: EDITOR IN QUOTE MODE, $00 = NO
sedt1$00cc204eDITOR TEMP USE
tblx$00cd205cURRENT CURSOR PHYSICAL LINE NUMBER
datax$00ce206tEMP DATA AREA
insrt$00cf207fLAG: INSERT MODE, >0 = # instS
$00d0-$00d7208-215aREA FOR USE BY SPEECH SOFTWARE
$00d8-00e8216-232aREA FOR USE BY APPLICATION SOFTWARE
cirseg$00e9233sCREEN LINE LINK TABLE / EDITOR TEMPS
user$00ea-00eb234-235sCREEN EDITOR COLOR ip
keytab$00ec-00ed236-237kEY SCAN TABLE INDIRECT
tmpkey$00ee238
ndx$00ef239iNDEX TO KEYBOARD QUEUE
stpflg$00f0240pAUSE FLAG
to$00f1-00f2241-242mONITOR zp STORAGE
chrptr$00f3243
bufend$00f4244
chksum$00f5245tEMP FOR CHECKSUM CALCULATION
length$00f6246
pass$00f7247wHICH PASS WE ARE DOING STR
type$00f8248tYPE OF BLOCK
use4dy$00f9249(b.7 = 1)=> FOR WR, (b.6 = 1)=> FOR RD
xstop$00fa250sAVE XREG FOR QUICK STOPKEY TEST
curbnk$00fb251cURRENT BANK CONFIGURATION
xOn$00fc252cHAR TO SEND FOR A X-ON (rs232)
xOff$00fd253cHAR TO SEND FOR A X-OFF (rs232)
sedt2$00fe254eDITOR TEMPORARY USE
lofbuf$00ff255
fbuffr$0100-$010f256-271
savea$0110272tEMP lOCATIONS FOR
savey$0111273... FOR sAVE AND
savex$0112274... rESTORE
colkey$0113-0122275-289cOLOR/LUMINANCE TABLE IN ram
sysstk$0124-01ff291-511sYSTEM STACK
buf$0200-0258512-606bASIC/MONITOR INPUT BUFFER
oldlin$0259-025a601-602bASIC STORAGE
oldtxt$025b-025c603-604bASIC STORAGE
$025d-02ac605-684basic/dos interface area
xcnt $025ddos LOOP COUNTER
pnbufr$025e-026daREA FOR FILENAME
dosf1l$026edos FILENAME 1 LENGTH
dosds1$026fdos DISK DRIVE 1
dosf1a$0270-0271dos FILENAME 1 ADDR
dosf2l$0272dos FILENAME 2 LENGTH
dosds2$0273dos DISK DRIVE 2
dosf2a$0274-0275dos FILENAME 2 ADDR
dosla$0276dos LOGICAL ADDRESS
dosea$0277dos PHYS ADDR
dossa$0278dos SECORDARY ADDRESS
dosdid$0279-027ados DISK IDENTIFIER
didchk$0278dos did FLAG
dosstr$027cdos OUTPUT STRING BUFFER
dosspc$027d-02acaREA USED TO BUILD dos STRING
gRAPHICS vARIABLES
xpos$02ad-02ae685-686cURRENT X POSITION
ypos$02ae-02b0687-688cURRENT Y POSITION
xdest $02b1-02b2689-690x COORDINATE DESTINATION
ydest $02b3-02b4691-692y COORDINATE DESTINATION
xabs$02b5-02b6693-694
yabs$02b7-028869s-696
xsgn$02b9-02ba697-69b
ysgn$02bb-028c699-700
fct1$02bd-02be701-702
fct2$02bf-02c0703-704
errval$02c1-02c2705-706
lesser$02c3707
greatr$02c4708
angsgn$02c5709sIGN OF ANGLE
sinval$02c6-02c7710-711sINE OF VALUE OF ANGLE
cosval$02c8-02c9712-713cOSINE OF VALUE OF ANGLE
angcnt$02ca-02cb714-715tEMPS FOR ANGLE DISTANCE ROUTINES
sTART OF MULTIPLY DEFINED AREA #1
$02cc716pLACEHOLDER
bnr$02cd717pOINTER TO BEGIN NO.
enr$02ce718pOINTER TO END NO.
dolr$02cf719dOLLAR FLAG
flag$02do720cOMMA FLAG
swe$02d1721cOUNTER
usgn$02d2722sIGN EXPONENT
uexp$02d3723pOINTER TO EXPONENT
vn$02d4724# OF DIGITS BEFORE DECIMAL POINT
chsn$02d5725jUSTIFY FLAG
vf$02d6726# OF POS BEFORE DECIMAL POINT (FIELD)
nf$02d7727# OF POS AFTER DECIMAL POINT (FIELD)
posp$02d8728+/- FLAG (FIELD)
fesp$02d9729eXPONENT FLAG (FIELD)
etof$02da730sWITCH
cform$02d8731cHAR COUNTER (FIELD)
sno$02dc732sIGN NO.
blfd$02dd733bLANK/STAR FLAG
begfd$02de734pOINTER TO BEGINNING OF FIELD
lfor$02df735lENGTH OF FORMAT
endfd$02e0736pOINTER TO END OF FIELD
xcentr$02cc-02cd716-717
ycentr$02ce-02cf718-719
xdist1$02d0-02d1720-721
ydist1$02d2-02d3722-723
xdist2$02d4-02d5724-725
ydist2$02d6-02d7726-727
$02d8-02d0728-729pLACEHOLDER
colcnt$02da730cHARACTERS COLUMN COUNTER
rowcnt$02db731cHARACTERS ROW COUNTER
strcnt$02dc732
sTART OF MULTIPLY DEFINED AREA #2
xcord1$02cc-02cd716-717
ycord1$02ce-02cf718-719
boxang$02d0-02d1720-721rOTATION ANGLE
xcount$02d2-02d3722-723
ycount$02d4-02d5724-725
bxleng$02d6-02d7726-727lENGTH OF A SIDE
xcord2$02d8-02d9728-729
ycord2$02da-02db730-731
xcircl$02cc-02cd716-717cIRCLE CENTER, X COORDINATE
ycircl $02ce-02cf718-719cIRCLE CENTER, Y COORDINATE
xradus$02d0-02d1720-721x RADIUS
yradus$02d2-02d3722-723y RADIUS
rotang$02d4-02d5724-725rOTATION ANGLE
angbeg$02d8-02d9728-729aRC ANGLE START
angend$02da-02db730-731aRC ANGLE END
xrcos$02dc-02dd732-733x RADIUS * COS (ROTATION ANGLE)
yrsin $02de-02df734-735y RADIUS * SIN (ROTATION ANGLE)
xrsin $02e0-02e1736-737x RADIUS * SIN (ROTATION ANGLE)
yrcos$02e2-02e3738-739y RADIUS * COS (ROTATION ANGLE)
sTART OF MULTIPLY DEFINED AREA #3
$02cc716pLACEHOLDER
keylen$02cd717
keynxt$02ce718
strs2$02ce719sTRING LENGTH
gettyp$02d0720rEPLACE STRING MODE
strptr$02d1721sTRING POSITION COUNTER
oldbyt$02d2722oLD BIT MAP BYTE
newbyt$02d3723nEW STRING OR BIT MAP BYTE
$02d4724pLACEHOLDER
xsi2e$02d5-02d6725-726sHAPE COLUMN LENGTH
ysize$02d7-02d8727-728sHAPE ROW LENGTH
xsave$02d9-02da729-730tEMP FOR COLUMN LENGTH
stradr$02d8-02dc731-732sAVE SHAPE STRING DESCRIPTOR
bitidx$02dd733bIT INDEX INTO BYTE
saysiz$02de-02e1734-737 tEMPORARY WORK LOCATIONS
chrpag$02e4740hIGH BYTE ADDR OF CHAR rom FOR CHAR CMD
litcnt$02e5741tEMP FOR GSHAPE
scalem$02e6742sCALE MODE FLAG
width$02e7743dOUBLE WIDTH FLAG
filflg$02e8744bOX FILL FLAG
bitmsk$02e9745tEMP FOR BIT MASK
numcnt$02ea746
trcflg$02eb747fLAGS TRACE MODE
t3$02ec748
t4$02ed-02ee749-750
vtemp3$02ef751gRAPHIC TEMP STORAGE
vtemp4$02f0752
vtemp5$02f1753
adray1$02e2-02f3754-755pTR TO ROUTINE: CONVERT FLOAT TO INTEGER
adray2$02f4-02f5756-757pTR TO ROUTINE: CONVERT INTEGER TO FLOAT
bnkvec$02fe-02ff766-767 vECTOR FOR FUNCTION CARTRIDGE USERS
ierror$0300-0301768-769 iNDIRECT eRROR (oUTPUT eRROR IN .x)
imain$0302-0303770-771 iNDIRECT mAIN (sYSTEM dIRECT lOOP)
icrnch$0304-0305772-773 iNDIRECT cRUNCH (tOKENIZATION rOUTINE)
ioplop$0306-0307774-775 iNDIRECT lIST (cHAR lIST)
igone$0308-0309776-777 iNDIRECT gONE (cHARACTER dISPATCH)
ieval$030a-0303778-779 iNDIRECT eVAL (sYMBOL eVALUATION)
iesclk$030c-030d780-781 eSCAPE TOKEN CRUNCH
iescpr$030e-030f782-783
iescex$0310-0311784-785
itime $0312-0313786-787
cinv$0314-03157b8-789irq rAM vECTOR
cbinv$0316-0317790-791 brk iNSTR ram vECTOR
iopen $0318-0319792-793iNDIRECTS FOR cODE
iclose$031a-031b794-795
ichkin$031c-031d796-797
ickout$031e-031f798-799
iclrch$0320-0321800-801
ibasin$0322-0323802-803
ibsout$0324-q325804-805
istop $0326-0327806-807
igetin$0328-0329808-809
iclall$032a-032b810-811
usrcmd$032c-032d812-813
iload $032e-032e814-815
isave $0330-0331816-817sAVESP
tapbuf$0333-03f2819-1010cASSETTE TAPE BUFFER
wrlen$03f3-03f41011-1012lENGTH OF DATA TO BE WRITTEN TO TAPE
rdcnt $03f5-03f61013-1014lENGTH OF DATA TO BE READ FROM TAPE
inpque $03f7-04361015-1078rs-232 INPUT QUEUE
estarl$0437-04541079-1108
estakh$0455-04721109-1138
chrget$0473-04781139-1144
chrgot$04?9-04841145-1156
qnum$0485-04931157-1171
indsub$0494-04a11172-1185sHARED rom FETCH SUB
zero $04a2-04a41186-1188nUMERIC CONSTANT FOR bASIC
indtxt$04a5-04af1189-1199tXTPTR
indin1$04b0-04ba1200-1210iNDEX & iNDEX1
indin2$04bb-04c51211-1221iNDEX2
indst1$04c6-04d01222-1232sTRNG1
indlow$04d1-04db1233-1243lOWTR
indfmo$04dc-04e61244-1254fACMO
pufill$04e71255pRINT USING FILL SYMBOL [SPACE]
pucoma$04e81256pRINT USING COMMA SYMBOL [;]
pudot $04e91257pRINT USING d.p. SYMBOL [.]
pumony$04ea1258pRINT USING MONETARY SYMBOL [$]
tmpdes$04eb-04ee1259-1262tEMP FOR INSTR
errnum$04ef1263lAST ERROR NUMBER
errlin$04f0-04f11264-1265lINE # OF LAST ERROR
trapno$04f2-04f31266-1267lINE TO GO ON ERROR
tmptrp$04f41268hOLD TRAP NO. TEMPORARILY
errtxt$04f5-04e61269-1270
oldstr$04f71271
tmptxt$04f8-04f91272-1273
tmplin$04fa-04f81274-1275
mtimlo$04fc-04fd1276-1277tABLE OF PENDING JIFFIES (2'S COMP)
mtimhi$04fe-04ff1278-1279
usrpok$0500-05021280-1282
kerndx$0503-05071283-1287
dejavu$05081288'COLD' OR 'WARM' START STATUS
lat$0509-05121289-1298lOGICAL FILE NUMBERS
fat$0513-051c1299-1308pRIMARY DEVICE NUMBERS
sat$051d-05261309-1318sECONDARY ADDRESSES
keyd$0527-05301319-1328irq KEYBOARD BUFFER
memstr$0531-05321329-1330sTART OF MEMORY [1000]
msiz$0533-0534 1331-1332tOP OF MEMORY [fd00]
timout$05351333ieee TIMEOUT FLAG
filend$05361334fILE END REACHED = 1, 0 OTHERWISE
ctally$05371335# OF CHARS LEFT IN BUFFER (FOR r & w)
cbufva$05381336# OF TOTAL VALID CHARS IN BUFFER (r)
tptr$05391337pTR TO NEXT CHAR IN BUFFER (FOR r & w)
fltype$053a1338cONTAINS TYPE OF CURRENT CASS FILE
color$053b1339aCTIVE ATTRIBUTE BYTE
flash$053c1340cHARACTER FLASH FLAG
$053d1341free
hibase$053e1342oc bASE LOCATION OF SCREEN (TOP) [0c]
xmax $053f1343
rptflg$05401344kEY REPEAT FLAG
kouut$05411345
delay$05421346
shflag$05431347sHIFT FLAG BYTE
lstshf$05441348lAST SHIFT PATTERN
keylog$0545-05461349-1350iNDIRECT FOR KEYBOARD TABLE SETUP
mode $05471351SHIFT, c=
autodn$05481352aUTO SCROLL DOWN FLAG (0=ON,0<>OFF)
lintmp$05491353
rolflg$054a1354
format$054b1355mONITOR NON-ZPAGE STORAGE
msal $054c-054e1356-1358
wrap $054f1359
tmpc $05501360
diff $05511361
pch$05521362
pcl$05531363
flgs $05541364
acc$05551365
xr$05561366
yr$05571367
sp$05581368
inyl $05591369
invh $055a1370
cmpflg$055b1371uSED BY VARIOUS MONITOR ROUTINES
bad$055c1372
kyndx$055d1373uSED FOR PROGRAMMABLE KEYS
keyidx$055e1374
keybuf$055f-05661375-1382tABLE OF p.f. LENGTHS
pky9uf$0567-05e61383-1510p.f. kEY STORAGE AREA
kdata$05e71511tEMP FOR DATA WRITE TO KENNEDY
rdycmd$05e81512sELECT FOR KENNEDY READ OR WRITE
kdynum$05e91513kENNEDY'S DEV #
rdyprs$05ea1514rENNEDY PRESENT = $FF, ELSE = $00
kdytyp$05eb1515tEMP FOR TYPE OF OPEN FOR KENNEDY
savram$05ec-06e81516-17711 PAGE USED BY BANKING ROUTINES
pat$05ec-05ef1516-1519pHYSICAL aDDRESS tABLE
lngjmp$05f0-05f11520-1521lONG JUMP ADDRESS
fetarg$05f21522lONG JUMP ACCUMULATOR
fetxrg$05f31523lONG JUMP X REGISTER
fetsrg$05f41524lONG JUMP STATUS REGISTER
areas$05f5-065d1525-1629ram AREAS FOR BANKING
aspech$065e-06eb1630-1771ram AREA FOR SPEECH
stktop$06ec-07af1772-1967basic RUN-TIME STACK
wrout$07b01968bYTE TO BE WRITTEN ON TAPE
parity$07b11969tEMP FOR PARITY CALC
tt1$07b21970tEMP FOR WRITE-HEADER
tt2$07b31971tEMP FOR WRITE-HEADER
rdbits$07b51973lOCAL INDEX FOR readbyte ROUTINE
errsp$07b61974pOINTER INTO THE ERROR STACK
fperrs$07b71975nUMBER OF FIRST PASS ERRORS
dsamp1$07b8-07b91976-1977tIME CONSTANT
dsamp2$07ba-07bb1978-1979tIME CONSTANT
zcell $07bc-07bd1980-1981tIME CONSTANT
srecov$07be1982sTACK MARKER FOR STOPKEY RECOVER
drecov$07bf1983sTACK MARKER FOR DROPKEY RECOVER
trsave$07c0-07c31984-1987PARAMS PASSED TO rdblok
rdetmp$07c41988tEMP STAT SAVE FOR rdblok
ldrscn$07c51989# CONSEC SHORTS TO FIND IN LEADER
cderrm$07c61990# eRRORS FATAL IN rd COUNTDOWN
vsave $07c71991tEMP FOR vERIFY COMMAND
t1pipe$07c8-A7cb1992-1995pIPE TEMP FOR t1
enext$07cc1996rEAD ERROR PROPAGATE
for rs-232
uoutq$07cd1997uSER CHRACTER TO SEND
uoutfg$07ce19980 = EMPTY ; 1 = FULL
sout9$07cf1999sYSTEM CHARACTER TO SEND
sounfg$07d020000 = EMPTY ; 1 = FULL
inofpt$07d12001pNTR TO FRONT OF INPUT QUEUE
inqrpt$07d22002pNTR TO REAR OF INPUT QUEUE
inqcnt$07d32003# OF CHARS IN INPUT QUEUE
astat$07d42004tEMP STATUS FOR acia
aintmp$07d52005tEMP FOR INPUT ROUTINE
alstop$07d62006flg FOR LOCAL PAUSE
arstop$07d72007flg FOR REMOTE PAUSE
apres $07d82008flg TO INDICATE PRESENCE OF acia
rludes$07d9-07e42009-2020iNDIRECT ROUTINE DOWNLOADED
scbot$07e52021sCREEN BOTTOM (0...24)
sctop$07e62022sCREEN TOP
sclf$07e72023sCREEN LEFT (0...39)
scrt$07e82024sCREEN RIGHT
scrdis$07e92025nEGATIVE = SCROLL OUT
insflg$07ea2026iNSERT MODE: ff = ON, 00 = OFF
lstchr$07eb2027
logscr$07ec2028
tcolor$07ed2029
bitabl$07ee-07f12030-2033
sareg$07f22034rEGISTERS FOR sys COMMAND
sxreg $07f32035
syreg $07f42036
spreg $07f52037
lstx$07f62038kEY SCAN INDEX
stpdsb$07f72039fLAG TO DISABLE ctrl-s PAUSE
ramrom$07f82040msb FOR MONITOR FETCHES FROM rom=0;ram=1
colsw $07f92041msb FOR COLOR/LIM TABLE IN ram=0;rom=1
ffrmsk$07fa2042rom MASK FOR SPLIT SCREEN
vmbmsk$07fb2043vm BASE MASK FOR SPLIT SCREEN
lsem$07fc2044mOTOR LOCK SEMAPHORE FOR CASSETTE
palcnt$07fd2045pal TOD
tedatr$0800-0bff2048-3071ted ATTRIBUTE BYTES
tedscn$0c00-0fff3072-4095ted CHARACTER POINTERS
basbgn$1000-4096-sTART OF basic TEXT AREA
bmlum$1800-1bff6144-7167lUMINANCE FOR BIT MAP SCREEN
bmcolr$1c00-1fff7168-8191cOLOR FOR BIT MAP
cOMMODORE 16 AND PLUS/4 mEMORY cONFIGURATION
$0000 sYSTEM MEMORY
$0800 cOLOR MEMORY (tEXT)
$0c00 vIDEO MATRIX (tEXT)
$1000 bEGINNING OF basic ram (WITHOUT GRAPHICS)
$1800 lUMINANCE (gRAPHICS)
$1c00 cOLOUR TABLE (gRAPHICS)
$2000 gRAPHICS SCREEN DATA
$4000 bEGINNING OF basic ram (WITH GRAPHICS)
$8000 rom bank low (basic)
$c000 basic EXPANSIONS
$d000 cHARACTER TABLE
$d800 oPERATING SYSTEM
$fc00 rOUTINES FOR SWITCHING BANKS
$fd00 eND OF basic ram, i/o AREA
aCCORDING TO THE SCHEMATICS DIAGRAM, $fd00-$ff3f CONTAINS THE FOLLOWING,
REGARDLESS OF THE ram/rom BANKING CONFIGURATION:
$fd00-fd0f: 6551 acia (FOR THE rs232, ONLY ON THE +4. 4 REGISTERS.)
$fd10-fd1f: 6529b (1 REGISTER, DRIVES 8 i/o-LINES ON THE +4 USER PORT)
$fd30-fd3f: 6529b (1 REGISTER, KEYBOARD SCAN. tHE OTHER 8 LINES COME FROM ted)
$ff00: ted (REGISTERS SHOWN BELOW)
$ff40: rom
0 tIMER 1 LOW
1 tIMER 1 HIGH
2 tIMER 2 LOW
3 tIMER 2 HIGH
4 tIMER 3 LOW
5 tIMER 3 HIGH
6 tEST ecm bmm bLANK rOWSy2 y1 y0
7 rvs OFF pal fREEZE mcm cOLUMNSx2 x1 x0
8 kEYBOARD lATCH
9 irq i-t3 - i-t2 i-t1 i-lp i-ras -
a - ei-t3 - ei-t2 ei-t1 ei-lp ei-ras rc8
b rc7 rc6 rc5 rc4 rc3 rc2 rc1 rc0
c - - - - - - c9 cur8
d cur7 cur6 cur5 cur4 cur3 cur2 cur1 cur0
e snd1-7 snd1-6 snd1-5 snd1-4 snd1-3 snd1-2 snd1-1 snd1-0
f snd2-7 snd2-6 snd2-5 snd2-4 snd2-3 snd2-2 snd2-1 snd2-0
10 - - - - - - snd2-9 snd2-8
11 snd-rel nOISE v2-sel v1-sel vol3 vol2 vol1 vol0
12 - - bmb2 bmb1 bmb0 r-bANK s1-9 s1-8
13 cb5 cb4 cb3 cb2 cb1 cb0 sclock sTATUS
14 vm4 vm3 vm2 vm1 vm0 - - -
15 - lum2 lum1 lum0 color3 color2 color1 color0
16 - lum2 lum1 lum0 color3 color2 color1 color0
17 - lum2 lum1 lum0 color3 color2 color1 color0
18 - lum2 lum1 lum0 color3 color2 color1 color0
19 - lum2 lum1 lum0 color3 color2 color1 color0
1a - - - - - - bre9 bre8
1b bre7 bre6 bre5 bre4 bre3 bre2 bre1 bre0
1c - - - - - - - vl8
1d vl7 vl6 vl5 vl4 vl3 vl2 vl1 vl0
1e h8 h7 h6 h5 h4 h3 h2 h1
1f - bl3 bl2 bl1 bl0 vsub2 vsub1 vsub0
3e wRITE SWITCHES ON rom BANK
3f wRITE SWITCHES ON ram BANK
$ff0e65294vOICE #1 FREQUENCY, BITS 0-7
$ff0f65295vOICE #2 FREQUENCY, BITS 0-7
$ff1065296vOICE #2 FREQUENCY, BITS 8 & 9
(BIT 0 IS BIT 8, BIT 1 IS BIT 9)
$ff1165297bITS 0-3 : vOLUME CONTROL
bIT 4: vOICE #1 SELECT
bIT 5: vOICE #2 SELECT
bIT 6: vOICE #2 NOISE SELECT
bIT 7: sOUND RELOAD
$ff1265298bIT 0-1 : vOICE #1 FREQUENCY, BITS 8 & 9
bIT 2 : ted DATA FETCH rom/ram SELECT
bITS 0-5 : bIT MAP BASE ADDRESS
$ff1365299bIT 0 :cLOCK STATUS
bIT 1 :sET SINGLE CLOCK
bITS 2-7 : cHARACTER DATA BASE ADDRESS
$ff1465309bITS 3-7 : vIDEO MATRIX/COLOR MEMORY BASE ADDRESS
$ff1565301bACKGROUND COLOR REGISTER
bITS 0-3 : cOLOR
bITS 4-6 : lUMINANCE
$ff1665302cOLOR REGISTER #1
bITS 0-3 : cOLOR
bITS 4-6 : lUMINANCE
$ff1765303cOLOR REGISTER #2
bITS 0-3 : cOLOR
bITS 4-6 : lUMINANCE
$ff1865304cOLOR REGISTES #3
bITS 0-3 : cOLOR
bITS 4-6 : lUMINANCE
$ff1965305cOLOR REGISTER #4
bITS 0-3 : cOLOR
bITS 4-6 : lUMINANCE
$ff1a65306bIT MAP RELOAD
$ff1b65307bIT MAP RELOAD
$ff1c65308bIT 0 : vERTICAL LINE BIT 8
$ff1d65309bITS 0-7 : vERTICAL LINE BITS 0-7
$ff1e65310hORIZONTAL POSITION
$ff1f65311bLINK, VERTICAL SUB ADDRESS
$ff3e65342rom SELECT
$ff3f65343ram SELECT
banking jump table
$fcf164753jmp TO CARTRIDGE irq ROUTINE
$fcf464756jmp TO phoenix ROUTINE
$fcf764759jmp TO long fetch ROUTINE
$fcfa64762jmp TO long jump ROUTINE
$fcfd64765jmp TO long irq ROUTINE
unofficial jump table
$ff49 65353jmp TO DEFINE FUNCTION KEY ROUTINE
$ff4c 65356jmp TO print ROUTINE
$ff4f 65359jmp TO primm ROUTINE
$ff52 65362jmp TO entry ROUTINE
$ff80 65408release # of kernal (msb: 0 = ntsc ; 1 = pal)
kernal jump table
; name addressdescription
; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
cint$ff8165409iNITIALIZE SCREEN EDITOR
ioinit$ff8465412iNITIALIZE i/o DEVICES
ramtas$ff8765415rAM TEST
restor$ff8a65418rESTORE VECTORS TO INITIAL VALUES
vector$ff8d65421cHANGE VECTORS FOR USER
setmsg$ff9065424cONTROL o.s. MESSAGES
secnd$ff9365427sEND sa AFTER listen
tksa$ff9665430sEND sa AFTER talk
memtop$ff9965433sET/rEAD TOP OF MEMORY
membot$ff9c65436sET/rEAD BOTTOM OF MEMORY
scnkey$ff9f65439sCAN KEYBOARD
settmo$ffa265442sET TIMEOUT IN dma DISK
acptr$ffa565445hANDSHAKE SERIAL BUS OR dma DISK BYTE IN
ciOut$ffa865448hANDSHAKE SERIAL BUS OR dma DISK BYTE OUT
untlr$ffab65451sEND untalk OUT SERIAL BUS OR dma DISK
unlsn$ffae65454sEND unlisten OUT SERIAL BUS OR dma DISK
listn$ffb165457sEND listen OUT SERIAL BUS OR dma DISK
talk$ffb465460sEND talk OUT SERIAL BUS OR dma DISK
readss$ffb765463rETURN i/o status BYTE
setlfssef8a65466sET la, fa, sa
setnam$ffbd65469sET LENGTH AND fn ADDRESS
open $ffc065472oPEN LOGICAL FILE
close$ffc365475cLOSE LOGICAL FILE
chkin$ffc665478oPEN CHANNEL IN
chout$fec965481OPEN CHANNEL OUT
clrch$fecc65484cLOSE i/o CHANNELS
8asin$ffcf65487iNPUT FROM CHANNEL
bsout$ffd265490OUTPUT TO CHANNEL
loadsp$ffd565493lOAD FROM FILE
sayesp$ffd865496sAVE TO FILE
settim$ffdb65499sET INTERNAL CLOCK
rdtim$ffde65502rEAD INTERNAL CLOCK
stop$ffe16s50ssCAN stop KEY
getin$ffe465508gET CHARACTER FROM QUEUE
clall$ffe765511cLOSE ALL FILES
udtim$ffea65514iNCREMENT CLOCK
scrorg$ffed65517sCREEN ORG.
plot $fff065520rEAD/sET x,y COORD OF CURSOR
iobase$fff365523rETURN LOCATION OF START OF i/o