The Complete Commodore 64 ROM Disassembly
The Complete Commodore 64 ROM Disassembly
Peter Gerrard & Kevin Bergin
Duckworth
First published in 1964 by Gerald Duckworth & Co. ltd. The Old Piano Factory 43 Gloucester Crescent, London NWI
© 1964 by Peter Gerrard All rights reserved. No part otthis publication may be reproduced. stored in a retrieval system, or transmitted, in any form or by any means. electronic, mechanical. photocopying, recording or otherwise. without the prior permission of the
publisher. ISBN0715618350 British l ibrary Cataloguing in Publication Data Gerrard, Peter Complete Commodore 64 ROM disassembly 1. Commodore 64 (Computer) I. Title II. Bergin, Kevin
001.64 '04
0A78.S.C64
ISBN 0-7156-1835-0
Printed in Great Britain by
Redwood Burn ltd., Trowbridge and bound by Pegasus Bookbinding, Melksham
Contents
p~~
6
Fundamental memory map and ROM disassembly
7
ROM disassembly
35
6510 machine code instruction set
129
Extramon and assembler/ disassembler
149
Index
153
Preface This book is intended to be used by the serious Commodore 64 programmer, and gives a complete disassembly of all the 64 ROM routines. Also included for reference is the complete 6510 machine code instruction set, together with a listing for a full assembler/ disassembler for the Commodore 64. Some sections of the code will obviously not make sense as disassemblies: error messages, for instance, will disassemble into pure garbage! However, for the sake of completeness, it's all been left in. Many programmers could have produced this book, but not many programmers have access to amenable publishers, as we have. The book has been produced to serve purely as a reference guide and nothing else. If it leads you to a better understanding of your computer and the way that it works, and if it helps you to write better machine code programs, then the purpose of this book will have been achieved. We'd like to thank the publishers for their help and advice in producing this book, and also the Hare and Hounds public house in Ashford, where the idea for this series of books was first conceived. P.G.&K.B.
Fundamental memory map and ROM disassembly
Complete Commodore 64 ROM 0000
o
Di6.5se~blv
Ch1p directional register Chip 1/O;memory & tape control
000 1
0003-0004
3- 4
Float -Fixed v ector
0 005-0006
5-6
Flxed-Flo.t vector
0007
7
Search character
0008
8
Scan-quotes flag
0009
q
TAB column save
OOCA
10
O=LOAD,
000 8
11
Input buffer pointer / .
OOOC
12
Defaul t
0000
13
000£
14
Ty pe : 8 0= integer , OO=floating pOint
OOOF
15
DATA scan / LIST quote / memor y flag
00 10
16
Subscript/FNx flag
OO LI
17
O=INPUT;$40=GE T;$98=READ
00 12
18
ATN sign /Comparison avel flag
00 1 3
19
Current 1 1 0
00 14-(1015
20-2 1
Integer v alue
00 16
22
POintEr:temporary string stack
0(117-0018
23-24
Last temp string vector
00 19-0021
25-33
St ac k for temporary strin g .
002 2-0025
3 4 -37
Utility pOinter area
0026-002A
38-42
Pr odu ~t
0 02B-002C
4 3 -44
Pointer:Start of
l"" VERJFV
§ubscript
OH1 f l ag
pro~pt
flag
area for Multiplication B. si~
7
002D-002E
45-46
Pointer:Start of Variables
002F-0030
47-48
Pointer:5tart of Arrays
0031-0032
49-50
Pointer;End of Arrays
0033-0034
51-52
Pointer:5tring-storage (moving down)
0035 - 0036
53-54
Utility strin9 pointer
003 7 - 0038
55-56
Pointer:Limit of memory
0039-003A
57-58
Current Basic line number
003B- OQ3C
59-60
Previous Basic line number
003D- 003E
61-62
Pointer:Basic statement for CONT
003F-0040
63-64
Current DATA line number
0041 - 0042
65-66
Current DATA address
0043-0044
67-68
Input vector
0045-0046
69-70
Current variable
O()47-0048
71-72
Current variable .ddr.S6
0049-o04A
73-74
Variable pointer for FOR/NEXT
004B-004C
75-76
Y-save;op-save;Basic pointer save
0040
77
Co~parison
004E-OQ53
78-83
Misc. work area, pointers,etc.
0054-0056
84-86
Jump vector for fUnctions
0057-0060
87-96
Misc. nUMeric work area
0061
97
Acc:u ... l : Exponent
0062-0065
98-101
Acc:um*l:Mantissa
0066
102
Acculn'.t : Si gn
0067
103
Series
0068
104
Acc:um.l hi-order (overflow)
0069-006E
105-110 Accum.2:Exponent,etc.
006F
III
5i9n ceMparison,Ac.l vs .2
0070
ll2
Acc:u~.l
0071-0072
113-114 CaS5ette buff len/5.ries pointer
0073-0Q8A
115-138 CHRGET subroutin.;get Basic ch.ract.r
8
na~
symbol accumulator
evaluati~
constant pointer
Ie-order (rounding)
00lA-007B
122-123 Basic point.r (within subroutine)
008B-OOBF
139-1~3
RND seed value
0090
144
Status word ST
0091
145
Key.witch PIA:STOP .nd RVS flags
0092
146
Timing constant for tape
009 3
147
LoadEO, Verify-l
0094
148
Serial
0095
149
Serial deferred character
0096
ISO
Tape EOT received
0097
151
R@9ister Siave
0098
152
How
0099
153
I nput d.vice, normall y 0
009"
154
Output CHD device , nor.all y 3
0090
155
Tape character par i t y
009C
156
Byte- received flaq
0090
157
Dir ec t=S80/RUNsO outpu t
009E
158
Tp Pass
OQ9F
159
Tp Pass 2 error log corrected
OOAQ-OOA2
160- 162 J iffy Clock HML
00"3
163
Serial bit count/EOI flag
OOA4
164
Cycl e count
O0ll5
165
Countdown, tape write / b i t count
OOA6
166
Tap. buffer pOinter
OOA7
167
Tp Wrt
OOAB
168
Tp
00Il9
169
Wrt start bit / Rd bit
OOAA
170
Tp s can;Cnt;Ld;End/byte assy
OOAB
17 1
Wr l ead length/Rd ch.cksum/parity
OOAC-ooAD
172-17 3 Pointerltape buffer, sc rolling
OOAE-OOAF
174-175 Tape end adds / End of
output:d.~Rrred
~ny
character
~lag
open files
control
error log/char. buffer
Idr count/Rd pa •• /inbit
Wrt new byte/Rd error /i nbit cnt ~rlstbit
progra~
9
const~ts
ooBo-0081
17b-177 TApe timing
0082-0083
178-179 Pnt,..:§tl&rt of t .. p. buffer
0084
180
1-Tp timer enabled,bit count
0085
IBI
Tp EOT/RS232 neNt bit to
008b
IB2
Rel&d ch ..,...ctltr .rror/outbyte buff •
00B7
IB3
• characte,..s in f i III!' name
0088
IB4
Cu,..rent logical fi Ie
OOB9
IBS
Current second.ry address
OOBA
IB6
Current device
OOBS-OOBC
187-188 Pointer to f i 1 II!' na",1I!'
OOBD
IB9
Wr shift wordlAd input char.cter
OOBE
190
• blocks remaining to Wr/Rd
OOBF
191
Sertal word buffer
ooeo
192
Tape monitor interlock
OOC1-QOC2
193-194 110 start address
00C3-00C4
195-196 Kernel setup pointer
oocs
197
Last key prll!'ssed
OOC6
198
* characters
OOC7
199
Screen reverse flag
ooca
200
End-of-lina for input point.,..
OOC9-00CA
201-202 Input cursor 109 (row, column)
ooce
203
Which key: 64 if no key
ooce
204
O::zflash cursor
OOCO
205
Cursor ti.ing countdown
OOCE
206
Character under cursor
OOCF
207
Cursor in blink ph ••e
OODO
208
Input from screen/from keybo.rd
0001-0002
209-210 Pointer to screen lin.
00D3
211
Position of cursor on above line
0004
212
O-direct cursor, .1se prograMMed
10
SRF\d
in keyboard buffe,..
ooDS
213
Current screen line length
ooOb
214
Row where cursor lives
0007
21S
Last inkey/checksom / buffer
oooa
21b
• of INSERTs outstandinQ
OOD9-00F2
217-242 Screen line link table
OOF3-00F4
2 4 3 - 2 44 Screen colour point@r
OOFS- OOF b
2 45-246 Ke y board
OOF7-00F B
2 4 7-248 RS-232 Rev pntr
OOF9-00FA
2 49-250 RS-232 Tx pntr
OOFF-OIOA
256-266 Floating to ASCII work area
0 100-0 13E
2 56-31 8 Tape error log
0100-0 tFF
256 - 511 Processor stack area
0200-0258
512-600 Basic input buffer
0259-026 2
601-610 Log i cal file table
026 3-026C
611 - 620 Device. table
0260-0276
621-630 Sec Adds table
0277-0280
631-640 Keyboard buffer
028 1-0282
641 - 642 Start of Basic memory
028 3-0284
643-644 Top of Bas1 c memor y
0285
6 45
Serial bus timeout f lag
028 b
bOb
Current colour code
0287
b47
Co lour under c ursor
0288
bOB
Sc reen
0289
b49
Max size of k eyboard buffer
02BA
bSO
RQopeat all k e ys
0288
b51
Repeat speed count er
028 C
652
Repeat dela y counter
0290
b53
Keyboard Shift/Control flag
028E
bS4
Last shift pattern
028F-0290
b55-b~
Keyboard table setup pointer
pcint~
~~mory
page
,,
0291
657
Keyboard shiit mode
0292
658
O=scroll enable
0293
659
RS-232 control r.g.
0294
660
RS-232 cOMMand reg.
0295-0296
661-062 Bit timing
0297
663
RS-232 status
0298
664
tt bits to
0298
667
RS232 receive point.,.
029C
668
RS232 input pointer
0290
669
RS232 transmit pointer
029E
670
RS232 output painter
029F-02AO
671-672 IRQ save during tape 110
02Al
673
CIA 2
(NHI)
02A2
674
CIA
Timer A control log
02A3
675
CIA
Interrupt log
02A4
676
CIA
Timer A enabled flag
02AS
677
Screen
02CO-02FE
704-766 (Sprite 11)
0300-0301
768-769 Error messag. link
0302-0303
770-771 Basic warm start link
0304-0305
772-773 Crunch Basic tokens link
0306-0307
774-775 Print tokens link
0308-0309
776-777 Start naw Basic code link
030A-Q30B
778-779 Get arithmetic
030C
780
SVS A-rag save
030D
7Bl
SVS X-reg save
030E
782
SVS V-reg •• ve-
030F
783
SYS status reg save
0310-0312
784-785 USR function jump
12
5lmd
ro~
Interrupt Control
marker
el~nt
link
(8248)
0314-0315
788-789 HardMare interrupt v.ctor
(EA31)
0316-0317
790-791 Break int.rrupt vector
(FEb6)
0319-0319
792-793 NHI
(FE4?)
031A-0318
794-795 OPEN vector
(F34A)
031C-031D
7·96- 797 CLOSE vector
(F291 )
031E-031F
798-799 Set-input v.ctor
(F20E)
0320-0321
800-BOI Set-output vector
(F250)
0322-0323
802-803 Restore 110 vector
(F333)
0324-0325
804-80S INPUT vector
(F157)
0326-0327
806-807 Output vector
(FICA)
0328-0329
808-809 Test-STOP vectot
(FbEO)
032A-032B
810-Bll GET vector
032C-0320
812-81 3 Abort 110 vector
(F32F)
032E-032F
814-815 Warm start vector
(FEbb)
0330-0331
816- B17 LOAD link
(F4AS)
0332-0333
818-819 SAVE link
(FSEO)
033C-03FB
828- 1019
0340-037E
832-995
(Sprite 13)
0380-03BE
896-958
(Sprite 14)
03C0-Q3FE
960-1022
(Sprite 15)
0400-07FF
1024-2047
Scre.n .e.ary
0800-9FFF
2048-40959
Basic RAM . . .cry
inte~rupt
v.ctor
Cassette buffer
BOOQ-9FFF
32768-40959 Alternate: ROM plug-in ar.a
AOOO-BFFF
40960 49151 ROM: Basic
AOOQ-BFFF
40960-49151 Alternate: RAM
COOO-CFFF
49152-53247 RAM meMor y.
0000-D02E
5 3248-5 3294 Video chip
(6566)
D400-D41C
54272-54300 Sound chip
(6581 SID)
DBOO-DOFF
55296-56319 Colour nybble memory
ceoo-DeoF
56320-56335 Interface chip 1.lRQ <6526 CIA)
including
alt~nate
13
DDOO-DDOF
56576-56591 Interface chip 2,NMI
(6526 CI A)
DOOO-DFFF
53248-57343 Alternate: Character set
EOOO-FFFF
57344-65535 ROM; Operating system
EOOO-FFFF
57344-65535 Alternat.: RAM
FF81-FFF5
65409-65525 Jump table, lncluding:-
FFC6
- Set Input channel
FFC9
- Set Output channel
FFCC
-Restore default I/O channels
FFCF
-INPUT
FFD2
-PRINT
FFEt
- Test Stop key
FFE4
-GET
14
Commodore 64 - ROM Memory Map AOOO;
ROM control vectors
AOOC;
Keyword action vectors
AOS2;
Function vectors
AOBO;
Operator vectors
A09E;
Keywords
A19E;
Error messages
A328;
Error message vectors
A3SB;
Misc.
A3B9;
Scan stack for FOR/GOSUB
A3 B8;
Move memory
A3FB;
Check stack depth
A40B;
Check memory space
A43S;
' out of memory '
A437;
Error routine
A469;
BREAK entry
A474;
. ready '
A4BO;
Ready for Basic
messages
15
A49C; AS33;
Re-chain lines
A560;
Receive input line
A579;
Crunch tokens
A613;
Find Basic line
A642;
Perform [NEW]
A65E;
Perform [CLR]
A6SE;
Back up text pointer
A69C;
Perform [LIST]
A742;
Perform [FOR]
A7ED;
Execute statement
ASID;
Perform [RESTORE]
AS2C;
Break
AS2F;
Perform [STOP]
A83 1;
Perform [END)
A857;
Perform [CONT]
AS71;
Perform [RUN]
ASS3;
Perform [GOSUB]
A8AO;
Perform [GOTO]
ASD2;
Perform [RETURN]
ASF8;
Perform [DATA]
16
A906;
Scan for next statement
A92B;
Perform [IF)
A93B;
Perform [REM)
A948;
Perform [ON)
A96B;
Get fixed point number
A9A5;
Perform [LET)
AABO;
Perform [PRINT.]
AAB6;
Perform [CMD)
AAAO;
Perform [PRINT)
ABlE;
Print string from (y.a)
AB3B;
Print format character
AB4D;
Bad input routine
AB7B;
Perform [GET)
ABA5;
Perform [INPUT.)
ABBF;
Perform [INPUT)
ABF9;
Prompt & input
AC06;
Perform [READ)
ACFC;
Input error messages
ADlE;
Perform [NEXT)
AD7B;
Type match check
AD9E;
Evaluate expression 17
AEAB;
Constant
AEF1;
Evaluate within brackets
AEF7;
pi
, ) ,
AEFF;
Comma ••
AFOB;
Syntax error
AFI4;
Check range
AF2B;
Search for variable
AFA7;
Setup FN reference
AFE9;
Perform [OR]
AFFO;
Perform [AND]
B016;
Compare
BOB1;
Perform [DIM]
BOBB;
Locate variable
B113;
Check alphabetic
BlID;
Create variable
B194;
Array pointer subroutine
BlAS;
Value 32768
BIB2;
Float-fixed
BID1;
Set up array
(. B24B;
' bad subscript '
'" B24D;
' illegal quantity '
18
B34C;
Compute array size
8370;
Perform [FRE)
8391;
Fix-float
839E;
Perform CPOS)
B3A6;
Check direct
8383;
Perform [OEF)
83El;
Check fn syntax
B3F4;
Perform [FN)
8465;
Perform [STR$)
B475;
Calculate string vector
B487;
Set up string
84F4;
Make room for string
8526;
Garbage collection
85BO;
Check salvageability
8606;
Collect string
8630;
Concatenate
867A;
Build string to memory
86A3;
Discard unwanted string
B6DB;
Clean descriptor stack
B6EC;
Perform (CHR$)
8700;
Perform [LEFT$) 19
B72C;
Perform [RIGHT$]
B737;
Perform [MIO$]
B761;
Pull string parameters
B77C;
Perform [LEN]
B782;
Exit string-mode
B7BB;
Perform [ASC]
B798;
Input byte parameter
B7AO;
Perform [VAL]
B7EB;
Parameters for POKE/WAIT
B7F7;
Float-fixed
B800;
Perform [PEEK]
B824;
Perform [POKE]
B820;
Perform [WAIT]
B849;
Add 0.5
B850;
Subtract-from
B853;
Perform [subtract]
B86A;
Perform [add]
B947;
Complement FAC*1
B97E;
' overflow'
B983;
Multiply by zero byte
B9EA;
Perform [LOG]
20
BA2B;
Perform [multiply]
BAS9;
Multiply-a-bit
BASC;
Memory tp FAC#2
BAB7;
Adjust FAC#1/#2
BAD4;
Underflow/overflow
BAE2;
Multiply by 10
BAF9;
+ 10 in floating pt.
BAFE;
Divide by 10
BB12;
Perform [divide]
BBA2;
Memory to FAC#l
BBC7;
FAC#l to memory
BBFC;
FAC#2 to FAC#l
BCOC;
FAC#l to FAC#2
BCIB;
Round FAC#l
BC2B;
Get sign
BC39;
Perform [SGN]
BCSS;
Perform [ABS]
BCSB;
Compare FAC#l to memo
BC9B;
Float-fixed
BCCC;
Perform lint]
BCF3;
String to FAC 21
BD7E;
Get ASCII digit
BDC2;
Print · IN ••• ·
BDCD;
Print line number
BDDD;
Float to ASCII
BF16;
Decimal constants
BF3A;
TI constants
BF71;
Perform [SQR]
BF7B;
Perform [power]
BFB4;
Perform [negativeJ
BFED;
Perform [EXPJ
E043;
Series eval. 1
E059;
Series eval. 2
E097;
Perform [RNDJ
EOF9;
?? breakpoints ??
E12A;
Perform [SYS]
E156;
Perform [SAVE]
E165;
Perfqrm [LOAD]
EIBE;
Perform [OPEN]
EIC7;
Perform [CLOSE]
EID4;
Parameters for LOAD/SAVE
E206;
Check default parameters
22
E20E;
Check for comma
E219;
Parameters for OPEN/CLOSE
E264;
Perform [COS]
E26B;
Perform [SIN]
E2B4;
Perform [TAN]
E30E;
Perform [ATN]
E37B;
Warm restart
R394;
Initialize
E3A2;
CHRGET for zero page
E3BF;
Initialize Basic
E447;
Vectors for $300
R4S3;
Initialize vectors
E4SF;
Power-up message
E500;
Get I/O address
ESOS;
Get screen size
E50A;
Put/get row/column
E518;
Initialize I/O
ES44;
Clear screen
ES66;
Home cursor
ES6C;
Set screen pointers
E5AO;
Set 110 defaults 23
E5B4;
Input
f~om
keyboa~d
E632;
Input
f~om
sc~een
E6B4;
Quote test
E691 ;
Setup
E6B6;
Advance cursor
E6ED;
Ret~eat
E701 ;
Back into
p~evious
E716;
Output to
sc~een
EB7C;
Go to next line
EB91;
Perfo~m
EBAI ;
Check line
dec~ement
EBB3;
Check line
inc~ement
EBCB;
Set
code
EBDA;
Col ou~ code t oabl e
EBEA;
Sc~oll
E965;
Open space on screen
E9CB;
Move a screen line
E9EO;
Synchronize colour transfer
E9FO;
Inte~~upt
EAB7;
Read
EB79;
Keyboa~d
24
sc~een
p~int
cu~so~
line
< ~etu~n >
colou~
sc~een
- clock etc.
keyboa~d
select
vecto~s
EBB1 ;
Keyboard 1
unshifted
EBC2;
Keyboard 2
shifted
EC03;
Keyboard 3
EC44;
Graphics/text control
EC4F;
Set graphics/text mode
EC7B;
Keyboard 4
ECB9;
Video chip setup
ECE7;
Shift/run equivalent
ECF9;
Screen in address low
EDOB;
Send ' tal k '
ED 11 ;
Send ' lis ten '
ED40;
Send to serial bus
EDB2;
Serial timeout
EDB9;
Send listen SA
EDBE;
Clear ATN
EDC7;
Send talk SA
EDCC;
Wait for clock
EDDD;
Send serial deferred
EDEF;
Send ' untalk '
EE03;
Send ' unlisten '
EE13;
Receive from serial bus
c:omm
25
EEB5;
Serial clock on
EEBE;
Serial clock off
EE97;
Serial output · 1 ·
EEAO;
Serial output ·0·
EEA9;
Get serial in
EEB3;
Delay 1 ms.
EEBB;
RS-232 send
EF06;
Send new RS-232 byte
EF2E;
No
DSR error
EF33;
No
CTS error
EF3B;
Disable timer
EF4A;
Compute bit count
EF59;
RS232 receive
EF7E;
Setup to
EFC4;
Receive parity error
EFCC;
Receive overflow
EFCF;
Receive break
EFD2;
Framing error
EFEl;
Submit to RS232
FOOD;
No - DSR error
F017;
Send to RS232 buffer
26
n~c . ei
~
clock
ve
F04D;
Input from RS232
F086;
Get from RS232
FOA4;
Check serial bus idle
FOBD;
Messages
F12B;
Print if direct
F13E;
GeL.
Fl4E;
•• from RS232
Fl57;
Input
F199;
Get .• tape/sRriaI/RS232
FlCA;
Output .•
FIDD;
•• to tape
F20E;
Set input device
F250;
Set output device
F291;
Close file
F30F;
Fi nd f i I e
F31F;
Set file values
F32F;
Abort all files
F333;
Restore default 1/0
F34A;
Do open file
F3D5;
Send SA
F409;
Open RS232 27
F49E;
Load program
FSAF;
'searching '
FSC1;
Print filename
FSD2;
' loading/verifying '
FSDD;
Save program
F68F;
Print 'saving'
F69B;
Bump clock
F6BCl
Log PIA key reading
F6DD;
Get time
F6E4;
Set time
F6ED;
Check stop key
F6FB;
Output error mess;oges
F72C;
Find any tape header
F76A;
Write tape header
F7DO;
Get buffer address
F7D7;
Set buffer start/end pointers
F7EA;
Find specific header
FBOD;
Bump tape pointer
FB17;
'press play'
FB2E;
Check tape status
FB3B; 28
'press recor-d'
FB41;
Initiate tap. read
FB64;
Initiate tape write
FB7S;
Common tape code
FBDO;
Check tape stop
FBE2;
Set read timing
F92C;
Read tape bits
FA60·;
Store tape chars.
FBSE;
Reset pointer
FB97;
New character setup
FBA6;
Send transition to tape
FBCS;
Write data to tape
FBCD;
IRQ entry point
FCS7;
Write tape leader
FC93;
Restore normal IRQ
FCBS;
Set IRQ vector
FCCA;
Kill tape motor
FCD1;
Check r/w pointer
FCDB;
Bump r/w pointer
FCE2;
Power reset entry
FD02;
Check S-rom
FD10;
B-rom mask 29
FD1S;
Kernal reset
FDIA;
Kernal move
FD30;
Vectors
FD50;
Initialize system consts.
FD9B;
IRQ vectors
FDA3;
initialize 110
FDDD;
Enable timer
FDF9;
Save filename data
FEOO;
Save file details
FE07;
Get status
FE1B;
Flag status
FE1C;
Set status
FE21;
Set timeout
FE25;
Read/set top of memory
FE27;
Read top of memory
FE2D;
Sat top of memory
FE34;
Read/set bottom of memory
FE43;
NMI entry
FE66;
Warm start
FEB6;
Reset IRQ
FEBC;
Interrupt e x it
30
~
exit
FEC2;
RS-23 2 timing table
FED6;
NMI RS-232 in
FF07;
NMI RS-232 out
FF43;
Fake IRQ
FF4B;
IRQ entry
FFB1;
Jumbo jump table
FFF6;
Hardware vectors
31
Commodore-64 Architecture Map IfFF'F ,------- '" m, ' I(ER~"
" ' " " 0
., , """', .. .... .",.
CLA ), CIA?
(boI201~IJ
0 .. CHAR 110104
_
"".
, . 110 NOIolfRAIoI
RAM
I ..
K r.J!fll ~ lbl
.... !'uP)
,~
"' " •,,_.
~HIRAIo4
(\lollolSOOQI)
o~
t1CR4frot nI"I6lO 50000 .. 1>t1\
hOI. flo!. I 01$1)001 .. 0
1 - - - - 1491
"
..
"
•
,.
"'.
11K
..,.
I
VIC II Chip >eft llou IQ; !liork Oft
.,,'"
!819Zf
fIOW"-1I11
L 32
"'" • 138912 B)'ltoi
(1 6l8tJ
.""" IO~OO
....
""'"
RO"'~MI";"f
mill'
132 1608)
....
"''''UM
(tMi 001 100011 0 .. RAIo4 I .. !ASIC ItOII4
" .. _""" "o.a..,.. ~
,.. """
UK I
,(11(1
'"Il(!O'I)
ht,~
Processor 1/ 0 Port (6510) )llOllO
I
IN
IN
lO()OI
OUT
IN
OUT
OUT
T""
T.".
Tape
D-RO~'
s.,~
Motor
OUT
OUT
EfRAM "i.iR... M 5"',I( h Swuch Swuch
Write
OUR 0
I'R
SID (6581) VO lrt' I
Voice '2
Voice J
'D400
10407
SD40E
10401
soeat:
sDeOf
$0402
$0409
S0410
SD40l
SD40A.
104 \ 1
S040..
i0406
S[}412
S0405
"'4(lC
men
""06
SD4DD
54212
Vo,ce2 54279
VOI~3
L
H
54273
54280
54287
Volet'l
r
-
f.equtOC}
L
54274
!le:!8l
54288
H
542;5
54282
54289
<"
54216
54:!8J
54290
i:a:,~'r::
54271
54284
54291
~:ir'=
54218
54285
54292
Poise Width
0
0
-
1
o
0
V~Tpe
NS(
PUl
SAW
T~
Allack Tm-.r 2m~-8m$
SuSlllin~
50414
!)4~8(j
Voices (wrue only)
S[).I IS
0
0
I
l
113011
v,
...
fiherV~
ResoiU.n~
Pusbind_ HI BP
54293
H
Filler FI~lI~CY
10417
$0418
o
0
0
S().4 16
'"
LO
V2
" V~mt'
VI
"296
rilier & Volume (write only)
10419
PaddkX (AlO "I )
54291
Si).41A
PaddleY
(AlO " 2)
S~298
SD41B
NOI ~
$Dele
3 (ra ndom)
Envelope 3
"299 54300
Sense (read only)
Note: Spedal Voice Features (fEST. RING MOD SYNC) are omitted from the above diagram.
33
CIA I
(IRQ) (6526)
"j(UO
PRA
.~(~1 2n
SO(O I
I'RB
~ f;321
SFF - An Ou tfllll
OIlRA
~fi32:!
son - " "Inpul
IIORt! 5(.323
SOC02
1--- --
.ncoo
---
i-----------c
.[J(04
.00>5 .0C06 U)C07
- - ----------
r-
Time! A
f-
TImet' B
'"
sr.:1:!4
TAH
56.' 25
TBL
Sf,.~2 6
nUl
5f,3 ~i
A__
ICR
sr.3]]
TUTle'
e RA
56334
e RB
;;6]35
PRA
56576
PRO
56577
~ORA
56578
-
I InTI~put
'OCOD
TAL
-
THY>!." Inlenupl
0
0"
.OCOE
Sh.
'OCOF
0"
"'"
Ou,
TIIM
""'"
PHfiOut
T,~ Ou' Moo. P810ut
A~~ TI ~I
B SI~
CIA 2 (NMI) (6526) >DDOO SOOOI
I ~rial I a ,oc' IN IN OSR IN
m
t ~.rial OUT
I~~ ~:;; DCD'
IN
IN
50003
'0005
' DD06 S0007
'DDOD
SOO - P.U.P. AU Input
I-
r-
~
DORB 56S7!1
506 - 15-232
-
Timer A
-
TIIT~rB
I
IRS-2321
TimeT Inle,rope
IN
o
,.
TAL
'6S80
TAH
56'8l
TBL
~ 658 2
TBH
'''''
ICR
S65R~
e RB
56591
Timer
'DDO£
A SIan
SODOF
BSI.vt
T, ~
• CoonKled buT
34
IN
I
UF _ ~rial
S0002
'000<
".
RS-232[.Y1C [I ~.!g! OlIT MIdi 15 add, 14 DTR RTS 1tS--232 OlIT OlIT IN
nul
uSl!d by O.S
ROM disassembly AOOO; AOOO AOO2 A003 AOO4 ADOS OOOb AOO9 AOOA
AOOC;
R!J1 control vectors 94 E3 7D E3 43 42 40 42 41 S3 49 43
STY SE3,X
??? ??? ??? ??? E~
$4142
??7 EOR U43
OO3/' 0040 A042 0043 A04S A047 A04S A04A A040 A04F 0050
AA 56 9B Ab Ab AA 29 DO EI AD 41
AS
TAX LSR
.A8,X
??? 50 85 El El Cb 7A
LOX LOX TAX ANO LOA SBC
$5D S85
.SEI SCbEl,X ($7A, X)
??? Ab
EOR (SAb,X)
keyword action vectors A0521
oooe
30 AS
AOOE AOIO AOl3 0014 AOlb A019 AOID OOIE OOIF A020 A022 A023 A02S A02b A027 A028 A02A 0028 OO2D OO2E OO2F 0031 0032 0033 0035 0037 A039 A03A OO3B A03C 0030 OO3E
41 10 AS A4 DE
A7 AO F7
AB AD SO eo OS AC A4 A9 9F A8 70 AS 27 A9 IC A8 B2 A8 01 AS 3A A9 2E AS 4A A9 2C 8B 1>7 EI 55 EI 1>4 El 82 B3 23 DB 7F AA 9F
B"I EOR ORA TAY LOY LOX BCS LOY
S9FBb (SA7,X) $F7AD,X $AB
SSOAB,V $A020 SA9A4
??? TAY
BVS S9FCA ??? LOA "IC TAY ??? TAY CI'I' (SAS) ,Y
??? LOA U2E TAY LSR LDA "2C
CLV
??? SBC ($55, X) SDC (SI>4,X)
sse ??? ???
0052 AOSS OOSB AOSA A050 OOSE OObO AObI OOb3 OObb AOb7 AOb8 OOb9 OObA OObC AObF 0070 0071 0072 0074 0077 A078 OO7D A07C A07F
Function v.ctcr. 39 DC CC
Be 58 Be 10 70 B3 71 97 EO B9 b4 E2 bB E2 84 OE DB 7C B7 I>S AO B7 EC D7 2C B7
03 B3 9E
BF
AND LOY BPL ADC ??? AOC
SCCBC,Y
SBC58,X SOOSO S9EB3,X ($BF) tV
???
EA
EDBF
CPX HEA LOA SBFED.Y ??? ??? ??? ???
E2 E3 00
LOY SE2,X ASL $00E3 CLV
??? ??? 84 B7 8B
ADC S84 LDA S8BB7
??? Db 00
CPX SOODI>
??? D7 37
DIT S37D7
???
1$92,x>
AOOO;
IIp_ator vectars
CLV
??? TAX
???
AOBO 79 b9 8B AOB3 79 52 8B AOSb 7B
AOC SB869,Y ADC 58852, Y ???
35
OOB7 2A AOBB BA AOB9 7B AOBA II OOBC 7F AOBD 7A OOBE BF AOBF 50 A091 AF 0092 4b A094 AF A09:5 70 A09B SA A099 D3 OO9A AE OO9D 80
RIlL TSX
??? DB
ORA (SBB), Y ???
??? ??? EB
BYe SA079
??? E5
LSA
SE5
AOE2
??? 83 SF
b4 15 45
ADC SBFB3,X ??? ??? LDX SI564 BC5 SA0E4
K.y..,..""
A09E;
OODO AOD2 AOD3 ACD4 AOOb ACD7 AOD9 AODB AODE ACE I ACE4 AOE7
AOE9 ACEC AOEE AOFO AOF2 AOF4 AOFb
C5 47 4F
ClIP S47
??? ???
53 55 C2 52 45 54 55 52 CE 52 CD 53 4F DO 'IF CE 57 49 D4 4C 4F C4 53 41 5b C5 56 45 52 49 4b D9 44
EDR
45 54
41 41
4S
PtOF9 C6
A0A2 4F A0A3 D2
?"n
??? EOR .S4E BVC SA lOB
AOFB AOFC AOFD AOFF Aloo AI02 AI03 AI04 AIOb AlOB Al09 AlOA
???
A10B 4£ n.ot 4C
???
AlOE A110 A111 A112 A115 Al1B AIlS AIlD AI20 AI21 AI22 AI24 Al2b Al29 AI2A Al2C AI2D AI2E
A0A4 AOA7 AOAB AOA9
AOAB AOAD A080 AOBI AOB2 AOB4 AOBb AOB7 AOBB AOBA AOBD AOBD AOBF ACeI AOC2 ACe3
4E 45 5B D4
44 41 CI 4E 54 A3 49 50 D4 44 49 52 45 C4 45 47 4F 54
SSB45
???
??? 54 49 SO 55
ElJR (S54,X) CI1P (S49,Xl LSR SSSSO
??? 4E 55
CD
41 4C D4
AOC4 CF ACe5 52 AOCb 55 CE ACeB 49 Cb AOCA 52 ACeB 45 53 AOCD 54 ACeE 4F AOCF 52
36
LSA
EOR .seD ??? EOR S41 CPY $4C
EOR SD4
??? ???
??? ??? ??? EOR SCE,X
.scb
EDR ??? EOR $S3
??? ??? ???
49 D4 43 4C 4D 59 50 CE 'IF 53 CS 45 4E 54 41 AB 54
CF
S54 S52,X S4552 S5453
BNE$AI33 DEC S4157 EOR UD4 JI1P S41'IF CPY $S3 EOR ($56,X)
LSR $461:4 ???
EOR EOR DEC CI1P
???
AO'1F 4E C4 4b
4F 4B CS 52 49 54 A3 50 49 D4 43 4F
SC2,X
???
~
CI1P EOR EOR CI1P
$Sb
$52 1I$4b $4544, Y
DEC S50
???
??? 50
C!1P S50 ??? EOR 'S4E ???
4E
???
ave SAI5B
52 4E
53
D2 C4 D3 45 43
43
53 4F 4C
EOR 'S4E ??? ??? ??? LSR $4CD4 EOR U53 ??? ??? JI1P $43D2 EOR SS3C4 EOR S4FD3,Y ave SAlb2 DEC S4C43
??? ??? 47 D4 45 D7
CI1P $47 EDR $D4 LSR $D745
42
EDR
??? TAY
???
???
(S42.X)
AI2F AI31 AI32 AI34 AI3S AI3b AI37 AI39 AI3C AI3D AI3E AI40 AI41 AI44 AI47 A14'1 AI4A AI4D
4b CE 53
SO 43 AS 54
???
BVC SAI77 TAV
???
4B
PHA
45 CE 4E 4F D4
EDR $CE LSR SD44F ??? ??? EDR SOO ???
53
54 45 AD AD DE C4 D2
00 AA AF
LOA SAFAA
41 4E 4F
DEC $4E41,X
BE DD DC 53
A14E 47
AI4F AI52 A153 AI55 AISb Al5B A15'1 Al5D AI5D AI5E AISF AlbO Alb2 Alb3 AIM Alb7 AlbB AlbA AlbC AlbO AlbE AlbF Al71 AI72 Al74 Al76 A17'1 AI7B AI7E AI7F AlliO AIBI AI83
LSR $CE
CE D4 41 D3 55 D2 4b C5 4F D3 53 51 52 4E 4F C7 45 00 4F 03 53 4'1 54 41 41 CE 45 4C 53 54 52 A4 41
CPY S4F ??? LOX SBCBD, Y
41 53 C3 43 4B 52 A4 4C 45 46 54
AI85 AIB7 AIBS AID'I AlBA A1BD AI8D AI8F
Al90 A4 S2
AI'12 AI'I4 Al'15 AI96 AI9B AI9A AI'IC AI9D
4'1 4B 54 A4 49 A4
47
EOR (:S53,X) 777
??? PHA ???
LOY S4C EDR S4b
??? LOY $52 EDR 11$47 PHA ???
40 44 47
CF 00
LOY $4D EDR 11$44 LOY $47 ??? 8RI(
??? ?77
4'1 4E 42 53
52 SO
DEC S4E49 ??? EIlR /$42, Xl 177 EDR S53,X ??? LSR S52 CI1P SSO ??? ???
02
??? EOR ($D2),Y ???
C4 4C
LSR S4CC4
58 43
??? EDR S58 8NE SAIAF
???
??? ???
???
CE CE 54 SO 45 CB 45 CE
EDR e$CE 777 EOR ($CE.,X) EOR (Ss.4,X)
DEC S4550 EDR SCD JP1P $CE45 777 ???
Tn
Sb ec
LOY S5b EDR <Sec,Xl
Error _
Al'iE;
AI9E Al9F AlAO AlAI AIA4 AIA7
54 4F 4F 20 40 41 4E 59 20 4b 4'1
...ges ??? ???
???
JSR S414D LSR $205'1 LSR S49
AIA9 4C 45 03
JI'W' $D345
AlAe AlAE AIBI AIB2 AIB4 AIB7
LSR S4'1 JI'P S2045
4b 4C 4F SO CE
4'1 45 20
???
45 4b 4'1 4C 45 20
eve SAIF9 DEC S4'146 JI'P $2045
AlBA 4E 4F :54
LSR $:544F
AIBO AICO AIC2 AIC4 AIC7 AICA AICD AICF AIDI AID3 AI05 AID7 AIDA AIDD AIDF AIEl AIE2
JSR EDR LSR JP1P LSR JSR
20 45 4b 4C
4F SO CE 4'1 45 20 4E 4F 54 20 46 4F 55 4E C4 44 45 Sb 4'1 43 45 20 4E 4F 54 20 SO 52 45 53 4:5 4E D4 4E 4F 54
S504F $CE S49 $2045 S544F S4F4b
EOR $4E,X
CPY S44 EDRSSb EDR 11$43 EDR S20 LSR SS44F JSR S5250 EDR S53 EDR S4E ??? LSR SS44F
37
A1E5 20 49 4E A1EB 50 55
JSR $4E49 BYe $A23F
A1EA S4
???
A1EB AlEE A1Fl A1F2 A1F3 A1FI> A1F7 A1F9 A1FA A1FD A200 A202 A203 A205
JSR $4941> JI1P S4EC5 ???
20 41> 49 4C C5 4E 4F 54 20 4F 55 54 50 55 54 20 41> 49 4C C5 4D 49 53 53 49 4E 47
???
JSR SS54F
??? IlVC SA24E 777 JSR $4946 JMP $4OC5 EOR .S53
A24C 53
???
A24D A24F A250 A252 A255 A25B A259 A25B
EOR ??? EOR J5R J5R
A25E
55 C2 4F 55 54 20 4F 20 44 54 Cl 49 4C 4C 47 41 4C 20 51 41 4E 54 49 54 09 4F 45 52 41> 4C 4F 07 4F 55 54
41> 41
C11P ($49, X)
45
A206 20 46 49
JSR $4946
A209 A20C A20F A211 A214 A215 A217 A21A A21C A21D A21F
JI1P S2045 L5R S4041 CI1P $49 JI1P $454C ???
A275 20 4F 46
4C 45 4E 41 C5 49 4C 4C 47 41 4C 20 44 56 49 43 45 20 4E 55 42 A223 45 02 A225 4E 45
A=
20
4D 45 45
4D 5B
38
???
EOR J5R LSR ??? EOR L5R ??? EOR LSR
(S4C,X) $4544 $49,X S20 $4055 $02 S5845
??'?
A229 S4
A229 20 A22C 54 A22D 4B A22E 4F A22F 55 A231 20 A234 02 A235 53 A231> 59 A239 41 A23B 52 A23C 45 A23E 55 A240 4E A243 49 A245 4B A246 4F A247 55 A249 20
EOR U4E
57 49
JSR $4957 ??? PHA
54 46 4F
??? EOR SS4,X JSR S4F41> ??? ???
4E 54 DB
EOR S544E,Y EOR
(:$08,X)
???
54 52 20 57 54
EOR $54 Em $S2,X
L5R $5720 EOR U54 PHA
54 47 4F
??? EOR $54,X
JSR $4F47
A27B A278 A27E A2B1 A2B2 A2B4 A2B5 A2Bb
A2B9 A2BB A2BO A2BF A290 A291
20 40 09 44 45 27 44 20 41 45 45 04 42 41
JI1P S454C ??? EOR ($4C,X)
55
56
40 45 4F 52 55 4E
J5R SS551 EOR ($4E,X) ??? EDR 1S54 01P $Sb4F,Y
EOR $52 L5R S4C ???
??? ??? EOR JSR J5R EOR CI1P
$54,X S41>4F $454D S524F $4E55,Y
???
41>
EOR S41>
??? 53 54
54 40 4E 44
A293 20 S3 5S
A291> 42 A297 53 A29B 43 A299 52 A29A 49 A29C 04 A29D 52 A29E 45 A2AO 49 A2A2 27 A2A3 44 A2A4 20 A2A7 52 A2AB 41
S54,X $41>4F $4144
??7
A25F A261 A2b4 A2b6 A21>7 A2/'9 A2bC A2bE A270 A271 A272 A273
???
SC2,X
??? J5R EOR EOR EOR ??? ??? EOR
$5453 (S54,X) $40 S4E ($44,X)
JSR $5553 ??? ??? ???
??? 50
EOR .$50 ??? ???
44 4D
EOR$44 EOR .$40 ??? ???
41 52
JSR $5241
??? 09
EOR (S09,XI
A2AA 44 A2AB 49 56 A2AD 49 53 A2PF 49 4F A2BI 4E 20 A2B4 59 20 A2B7 45 52 A2B9 CF A2BA 49 4C A2BC 4C 45 A2BF 41 4C A2CI 20 44 A2C4 52 A2C5 45 43 A2C7 D4 A2CB 54 A2C9 59 SO A2CC 20 4D A2CF 53 A2DO 4D 41 A2D3 43 A2D4 CB A2D5 53 A2Db 54 A207 52 A2D8 49 4E A2tlA 47
49
??7 EOR EOR EOR LSR EOR EOR ??? EOR JI'P EOR JSR
45 49
??? EOR $43 17? ??7 EOR $45SO,V JSR $494D
42 SA
47
.SS6 HS3 U4F $4220 $5A20, V $52 "4C $4745 (Me,X) $4944
?71 54
EOR $5441 ???
INY ?7?
111 ??? EOR H4E ???
A2DB 20 54 4F
JSR S4F"54
A2DE A2DF A2E2 A2E5 A2E7 A2E9 A2EA A2EC
??? JSR$4F4C LSR $4bC7 EORe$4C EOR S20
A2EE A2EF A2FO A2F3 A2F5 A2Fb A2F7 A2FB A2FB A2FE A300 A301 A303
4F 20 4E 49 45 44 41 CI 4F 52 40 41 54 4F 4F 20 40 45 43 41 27
4C 4F C7 4b 4C 20
??? 54 4b
55 4C 20
43 4F SO 4C DB 4E
A304 54
A30S 20 43 4F A30B 4E 54 49
EOR 0tP ??? ??? EOR EOR 17? ??? 777 JSR EOR EOR ??? EOR ?7?
(.54,X) ($46,X)
$4C55 ($20,X)
$4F43 $4CSO $DB
A30B 4E 55 A30E 55 4E A310 44 A311 45 4b A313 27 A314 44 A315 20 410 A31B 4E 43 A3IB 4'1 4F A31D CE 56
C5
?1? 55 54 45
A320 :52
A321 4'1 410 A323 D'1 4C 4F A32b 41 C~
A32B 9E A32'1 AI AC A32BAIBS A32D AI C2 A32FAIDO 11331 AI E2 A333 AI FO A33S AI FF A337 AI 10 11339 A2 2S A33B A2 35 A331) A2 39 A33F A2 4F A341 A2 :5A A343 A2 loA A345 A2 72 A347 A2 7F A349 A2 90 A34B A2 90 A34D A2 All A34F A2 IlA A351 A2 CB A3S3A205 A355 A2 E4 A3S7 A2 ED A359 A2 00
A3S8J
LSR $C555 EOR $4E,X ??? EOR $410
??? JSR LSR EOR DEC
S554b $5443 .$4F $4556
??? EOR "410 ctF :S4F4C, V f;O!!.. ,<$C~_,X)_
??7 LDA (SAC,X) LOA ($BS,X) LDA
($C2,X)
LOA ($DO,X) LDA (SE2,X)
LOA LOA LOA LOX LOX LOX LOX LOX LOX
(SFO, X) ($FF,X) ($IO,X) .$25 "35 . .3D "4F .$SA
_
LOX "72 LOX "7F LDX . .90 LOX
~D
LDX LOX LOX LOX LOX LOX LOX
esAA UBA HCB .$05 HE4 UED .-00
Misc._aaves
($4E,X)
??? JSR $4F43 LSR $4'154
A35B A3 A3SC OE A3 IE ~A3
11360 24 A3
??? ASL $1EA3 ??? BITSA3
39
??? ???
A362 83 A3b3 A3
A364 00 4F 4B A367 00 00 20 A3bA 20 45 52 A36D 52 A3bE 4F
A36F 52 A370 00
A371 20 49 4E A374 20 00 00 A377 OA A37B 52 A379 45 41 A37B 44 A37C 59 2E 00 A37F OA A380 00 A381 00 OA 42 A3B4 52 A3B5 45 41 A3B7 48 A3BB 00
ORA $4B4F ORA $2000
JSR $5245
A3BB 20 OD A4
??? ??? ??? BRK
A3BB
31 A3BO B4 32 A3BF 3D A3C0 A5 SA
JSR $4E49
A3C2 ~ SF A3C4 BS 22 A3Cb AS A3C7 AS 58 A3C9 ~ 1.0 A3CD AA
JSR $0000
ASL ??? EOR $41 ??? EOR SOD2E,Y
ASL BRK
ORA $4200 ??? EOR $41 1?1 BRK
A389; SC.n .t.ck for FDR/GOSUB A'3B'7 AO BA
LDY ...BA
EB A3BC EB A3BD EB
INX INX INX INX
A3BB
A3BE EB A3BF BD 01 01 A392 C9 BI A394 DO 21 A39b A5 4A A398 DO OA A39A DO 02 01
A39D as 49 A39F DO 03 01 A3A2 A3A4
as
4A
DO 03 01
A3A7 DO 07
A3A9 A5 49 DO 02 01 A3AE FO 07 A3BO SA A3B1 IB A3AB
A3B2 1.9 12 A384
AA
l.DA SOlOl,X Ct1P 11$81 BNE $A3D7 LOA $4A BNE $A3A4
LOA $()102,X STA $49 LDA $0103,X STA $4A Ct1P $0103, X
JSR SA40B STA $31 STY S32
SEC LDA SSA
SBC$SF STA $22 TAV LOA $58 SBC SbO TAX
A3CC EB
INX
A3CD 98
TVA
A3CE A3DO A3D2 A3D3
FO 23 AS SA 3D
8EQ SA3F3 LOA $SA
E5 22 A3D5 as SA
A3D7 A3D9 A3DD A30C
DO 03
SOC S22 STA SSA OC5 SA3DC DEC SSB
Cb 58
3B
AS 58 A3IlE E5 22 A3EO B5 58 A3E2 DO OS A3E4 Cb 59 A3Eb 90 04 A3EB 01 SA
A3EA 91 5B A3EC BB
A3ED DO F9 A3EF BI SA A3FI 91 SB
SEC
SEC LDA SSB SDC $22 STA $SB BCS SA3EC
DEC SS9
BCC SA3EC LOA (S5A) , Y STA (S58) , Y DEV ONE SA3EB LOA ($5A),V
STA (SSB). V
A3F3 Cb SD
DEC S58
A3F5 Cb 59 A3F7 CA
DEC $S9 DEX
A3FD DO F2
DNE SA3EC
A3FA bO
RTS
BNE .A300
LOA $49 Ct1P $0102,X BE!;! SA3B7
A3FB;
TXA
A3FB 00
AOC 11$12
A3FC 1.9 3E A3FE DO 35 A400 OS 22
a..C TAX
A385 DO DB
DNE $A3BF
A3B7 1.0
RTS
40
as
Chack stACk dllPth
A402 BA A403 E4 22
ASL AOC U3E BCS $A43S STA $22
TSX CPX $22
A40S 90 2E A407 60
AAOB A40A A40C A40E AAl0 A412 A413 A415 A416
C4 90 DO C5 90 4B A2
34 28 04 33 22
09
98 4B
61
STA $6L,X
34 Ob OS 33 01
A4b:5
A~
AO 00 BI 22 48 29 7F 20 47 AD
INX BHI $A421 PLA TAY PLA CPY $34 BCC $A434 BIE $AA35 Ct1P $33 BeS $A435 RTS
STA J5R J5ft LDY
LDA AND INY PLA
A469;
tI$7F
J5R $A847
loB 10 F4 20 7A Ab 09
($22), Y
PHA
CD
A467 AO A3
$13 $M07 fAB45 UOO
BPL $A456 J5R $Ab7A LDA U69 LOY"A3
BREAK ...try
A469201EAD A4be AA :sA A4bE CB A4bF FO 03 A471 20 C2 BD
JSR fABlE LDY S3A
INY
BEll $A474 J5R $BDC2
A474 A9 7b
LOA U76
A476 AO A3
LDY •• A3
A47B 20 IE AD A478 A9 00 AA7D 20 90 FF
JSR $ABIE LOA .$BO J5R fFF90
AAOO A4B3 A48b A4BB MBA AABD AAaE A490
JI1P J5R STX STY JSR TAX BEQ LOX
'out of - . . - y ' LOX "10
Err-cr routine be 00 03 BA OA AA BI) 26 A3
A440 BS 22
AA42 A445 A447 A44A
95 13 20 D7 AA 20 45 AB
BPL
$A416 JSR $9526 LOX"F7 PLA
FA
A44C A44E A451 AA54 A456 A458 AA59 AA5B AA& AASF AAbO A462
PHA LOA S57,X
FA 26 95 F7
A435 A2 10
A437 A43A A43B A43C A431)
LDX H09 TYA
DEX
CA 10 20 A2 bB 95 EB 30 loB AS bB C4 90 DO C5 BO bO
A43S;
A437;
CPY $34 BeC $AA34 BNE $A412 Ct1P $33 BeC $A434
PHA
A417 OS 57
AA19 AAIA AA1C A41F A421 A422 A424 A425 AA27 A42B A429 A42A A42C AA2E A430 A432 A434
BCC $AA35 RTS
BD Bs 20 A9
27 A3 23 CC FF 00
Jt1P ($0300) TXA ASL TAX LOA .$A326,X
STA $22 LDA $A327,X STA $23 35ft fFFCC LOA .$00
be 20 Bb B4 20 AA FO A2
02 03 60 AS 7A 7B 73 00 FO FF
($0302) $AS60 $7A $78 $0073 $A4BO HFF
A492 86 3A
STX $3A
A494 90 06 AA96 20 79 AS A499 4C E1 A7
BCC $A49C J5R $A579 Jt1P $A7EI
41
A49C 20 bB A9 A49F 20 79 AS A4A2 84 OB
JSR $A'lbB JSR 'AS7'1 STY 'OB
A4A4 20 13 At.
.JSR $A613
A4A7 90 44 A4A9 AO 01 A4AB Bl SF MAD as 23 AAAF AS 20 AABI as 22 A4B3 AS bO A4B5 as 25 AAB7 AS SF A4B9 8B A4BA F1 5F A4BC 18 MSD bS 20 A4BF as 20 A4CI as 24 A4C3 A5 2E AACS 6'1 FF MC7 as 2E AAC'I ES bO A4CS AA A4CC 38 A4CO AS 5F A4CF ES 20 A401 AB A4D2 IlO 03 AA04 EB A40S Cb 25 AA07 18 A4DB bS 22 AAOA 90 03 A4DC Cb 23 A4DE IB A4DF BI 22 AAEI 91 24 A4E3 CB AAE4 DO F'I A4Eb Eb 23
BCC LDY LOA STA LOA STA LDA STA LOA
.A4EO .$01 (t5F) , Y $23 t2D $22 $bO
t25 $SF
DEY
SBC ($SF), V CLC ADC $20 STA $2D STA $24 LOA $2E AIlC ••FF STA $2E SBC tbO TAX SEC LOA $5F SSC $20 TAY 8CS $A407 INX DEC $25 CLC AOC $22
BCC $AADF DEC $23 CLC LDA ($22), Y
STA ($24),Y INY ONE $A4DF INC $23
MEB E:b 2S
INC .25
MEA CA
DEX
F2 MED 20 5'1 Ab AAFO 20 33 AS A4F3 AD 00 02 AAFb FO 8B MFB IB AAF9 AS 20
ONE $AADF JSR .Ab59 JSR $AS33
A4EB DO
A4FB as SA A4FD bS OB
42
LOA .0200 BEQ $11480
CLC
LOA $20 STA $SA ADCSOB
A4FF ASOI AS03 ASOS AS07
BS sa A4 2E S4 S8 '10 01
STA $SB LOY $2E STY $58
BCC $ASOB INY
CB
ASOB 84 59
STY $5'1
A50A 20 B8 A3
JSR $A3B8
ASOD AS 14 ASOF A4 IS ASII 80 FE ASI4 BC FF A517 A5 31 ASI'I AA 32 A51B BS 20 A51D S4 2E ASIF A4 OB A521 8B AS22 B9 FC AS25'1ISF AS27 BB AS2B 10 FB AS2A 20 59 AS2D 20 33 AS30 4C 80
LOA LDY STA STY
A53J;
= AS3S P537
AS39 AS3B
AS3C A53E A540 AS42 AS44 AS4S AS47 AS4'1
01 01
.14 .15 $OIFE $OIFF
LOA $31
LOV .32 STA $2D STY $2E LOY SOB DEY
01
LOA $OIFC,Y STA ($SF) , V
DEY BPL
Ab
A5 A4
$AS22
JSR $AbS9 JSR $AS33 JI'tP
$MOO
R.-ch.ain lin . .
AS A4 B5 84 18 AO BI FO
2B 2C 22
23 01
22 10 AO 04 CB BI 22 DO FB C8 A54A 98 AS4B b5 22 AS4D AA AS4E AO 00 ASSO 'II 22 ASS2 AS 23 As54 b9 00 ASSb CB ASS7 91 22
ASS'! B6 22 ASSB as 23
LOA $28 LOY .2[; STA $22 STY $23 CLC LOY UOI LOA ($22), Y SEQ $A:l5F LOY U04 INY LOA ($22) 1 Y lINE $AS44
INY TVA ADC $22 TAX LDY ••00 STA ($22), Y
LDA $23 ADC UOO INY STA ($22) ,V STX $22
STA $23
A55D 90 DO
AS51' bO
A5b0; ASbO ASb2 ASb5 ASb7 ASb9 ASbC ASbo
ASbF =1 AS73 A57b
R.cRive input line A2 20 C9 FO 90 E8 EO 90 A2 4C 4C
AS79;
AS79 A57C A57E AS80 ASS2 A585 ASS7 ASB9 ASSB ASBC A58E AS90 A592 AS94 AS9b AS9B AS9A AS9C A59E A5AO ASA2 ASA4 ASAb
acc S = RTS
00 12 EI 00 00 00 02 59
FI 17 37 A4 CA AA
LOX JSR CHI' BEQ STA lNX CPX BCC LOX JI'IP JI1P
IISOO SEII2 IISOO SAS7b S0200,X ISS9 SA5b2 1S17 SA437 SMeA
Crunch t.ok.... s
(0$0304) o$7A 1S04 SOF S0200,X SASBE DIP ISFF BEg SASC9 lNX
bC 04 03 Ab 7A AO 04 84 OF BO 00 02 10 07 C9 FF FO 3E EB 00 F4 C9 20 FO 37 85 08
JI'IP LOX LOY STY LDA BPL
C9 22
CI1P 1$22
FO 24 70 C9
BEQ SASEE BIT SOF BVS SA5C9 CI1P IS3F BNE SA5A4 LOA 1$99 ONE SASC'/
5b OF 20 3F 00 04 A9 99 00 25
C9 90 A5AB C9 A5AA 90 A5AC B4 ASAE AO
30 04 3C
10 71 00
8NE SA582 CI1P 1$20 BEQ o$ASC9 STA .$08
DIP BCC DIP BCC
1S30 S=
1S3C
SASC'/ STY S71 LOY ISOO
A::iBO 84 OB
STY $OB
A5B2 88 ASB3 8b 7A A58S CA
DEY STX S7A DEX
ASBb ASB7 AS88 ASBB ASOC ASBF ASCI ASC3 ASC5 ASC7 ASC9
CB E8 BO 00 02
A:5CA
ce
INY
ASCB ASCE ASOI AS03 AS04 ASDb ASD8 ASDA
99 FB 01 B'/ FB 0 I FO 3b
STA SOIFB,Y
38 F9 9E AO FO FS
C9
eo
00 30 05 OB A4 71 E8
38
E9 FO C9 00 ASDC BS A5DE 38 ASOF E9 ASEI 00 A5E3 95 ASE5 8D A5EB FO ASEA CS ASEC FO A5EE CB A5EF 99 ASF2 E8 A5F3 00 A51'S Ab ASF7 Eb A5F9 CB ASFA B9 ASFO 10 ASFF B'/
3A 04 49 02 OF
55 'IF 00 00 02 OF 08 DB
SAb09 (l$3A
SASDC (1$49 BNE SASDE STA $OF SEC SBC 1$55 BNE SA582 STA SOO LOA S0200,X BEg SA5C9 CHI' SOB BEQ SASC9
90 AO
STA INX BNE LOX INC lNY LOA
FA
BPL
FO 7A OB
BD 00 02
10 BE 99 Fe 01 Cb 7B A9 IT B5 7A
A612 60
A613;
LOA $OlFB,Y BEQ SEC SBC BEg CI'IP
lNY
Fe 01
9E AO Ab02 00 94 Ab04 Ab07 Ab09 AbOC AbOE AbIO
lNY lNX LOA S0200,X SEC sec SA09E,V BEQ SASBb DIP 1S80 ONE SA5F5 ORA SOB LOYS7I lNX
SOIFB,Y
SA5ES S7A SOB
SAO'/O,Y SA5F9 LOA SA09E,Y BNE SA588 LOA S0200,X BPL SA5C7 STA SOIFO, Y DEC S7B LOAISFF STA S7A
RTS
Find Sa.ie line
Abl3 AS 2B
LDA S2B
43
Ab15 Abl7 Ab19 AblB AbID AblF Ab21 Ab22 Ab23 Ab2S Ab27 Ab29 Ab2B Ab2C Ab2E Ab30 Ab31 Ab33 Ab35 Ab37 Ab38 Ab3A Ab3B Ab3C Ab3E Ab40 Ab41
AI. PIJ BS Bb BI FO CB CD AS DI
01 SF
100 SF IF
15 SF 90 IB FO 03 BB DO 09 A5 14 BB DI SF 90 OC FO OA B8 BI SF AA B8 BI SF BO D7 I.B bO
Ab42; Ab42 Ab44 Ab4b Ab47 Ab49 Ab4A Ab4C Ab4E Ab4F AbSI Ab53 Ab55 Ab57 Ab59 Ab5C
2C
$2C
lISOI SSF $60 (SSF). Y SAb40
LDA SIS
CPF (SSF). Y BCC SA641
BEg SAb2E
DEY BNE $A637
LDA $14
DEY CPF
sec
($SF). Y
$A641 BEQ SAb41
DEY LDA ($SF) , Y
TAX
DEY LDA ($SF),Y BCS $Ab17
00 A9 AB 91 CD 91 AS 18
FD 00 2B 2B 29
109 02 as 2D AS 2C 109 00 85 2E 20 BE Ab A9 00
Abb3 AS AbbS A4 Abb7 as Abb9 84
37 38 33 34 AbbB AS 2D AbbD A4 2E AbOF as 2F Ab71 84 30 Ab73 as 31 Ab75 84 32 Ab77 20 ID AB Ab7A A2 19 Ab7C Bb II. Ab7E loB Ab7F AB AbBO b8 AbBI A2 FA Ab83 9A AbB4 48 Abas 9B Ab8b 48 Ab87 A9 00 AbB9 as 3E AbBB 8S 10 Ab8D bO
LDA LDY STA STY
$37 S3B $33 $34 LDA $2D LDY $2E STA $2F STY $30 STA S31 STY $32 JSR $ABID LOX . . 19 STX $110
PLA TAY PLA LDX . .FA TXS PHA TYA PHA LDA"OO STA $3E STA $10 RTS
CLC RTS
p.,-for,. nEW]
Ab5E 00 2D AbbO 20 E7 FF
44
LDX LDY STA STX LDA BEQ INY INY
BI£ LDA TAY STA INY STA LOA CLC ADC STA
SAb41 HOO ($2B),Y ($2B),Y *29 "02 $2D
LDA $2C
ADC STA JSR LDA
"00 S2E sAbBE "00
BNE $AbBD JSR tFFE7
AbBE Ab8F Ab91 Ab93 Ab9S Ab97 Ab99 Ab9B
Ab9C1 Ab9C Ab9E AbAO AbA2 AbA4 AbA7 AbAA AbAD A6PF AbBI AbB3
CLC
18 AS 2B 109 FF BS 7A AS 2C 109 FF as 7B
LDA _28
ADC UFF STA S7A LDA S2C ADC lItFF STA $7B RTS
100
P..,-fcr. [LIST] 90 FO C9 00 20 20 20 FO C9 00 20
Ob 04 AB E9 loB 13 79 OC AS IE 73
A9 AI. 00
00
Bec BEg CPF BIE JSR JSR J5R BEll CPF BNE JSR
$AbA4 $AbA4 HAB $AbBD $A9bB $Ab13 $0079 $AbBB UAS SAb41 SOO73
AbBb AbB'l AbBB AbBe AbBD AbBF AbCI AbC3 AbC5
20 DO 68 bB A5 05 DO A9
as
bB A9 Bb
JSR SA9bB BNE $Ab41 PLA
14 IS Ob FF 14
LOA SI4 ORA SIS BNO SAbC9 LDA esFF STA SI4 STA $15 LDY 4IS01 STY SOF LDA (.SF) ,V BEQ SA7l4 JSR SAB2C JSR SAAD7 lNY LDA (SSF). V TAX lNV
PLA
AbC7 as 1~ A6C9 AO 01
AbCB 54 OF A6CD BI SF
A6CF FO 43 AbDI 20 2C AbD4 20 D7 AbD7 CO AbDBBI5F AbDA AA AbDB CB AbDC BI SF AbDE C5 IS AbEO DO 04 AbE2 E4 14 AbE4 FO 02 AbEb BO 2C AbEB B4 49 AbEA 20 CD AbED A9 20 AbEF A4 49 AbFI 29 7F AbF3 20 47 AbFb C9 22 AbFB DO 06
AD AA
LDA
BEQ .A6ES
BD
BCS STV J5R LOA LOV
AND AB
AbFC 49 FF AbFE as OF A700 CB A701 FO 11 A703 81 SF
DO 10 AD BI SF AA CB BI SF
JSR CI'1P BNE
SA7l4 $49 SBDeD 1$20 $49 IS7F SAD47 es22 SA700
LDA SOF
EOR ISFF STA SOF INY BEIi! SA714 LDA (SSF) , Y BNE SA717 TAV LOA (SSF) , V TAX lNY LOA (SSF), V
A70E B6 SF
STX
~F
A710 A712 A714 A717 A71A
STA BNE Ji'1P JltP BPL
S60 SAbC9 SE3B6 ($0306) SA6F3
as 60 DO as 4C B6 E3 bC 06 03 10 07
C9 FO 24 30 38 E9 AA B4 AO
FF D3 OF
CF
CI'1P BEQ BIT Bltl
ISFF SA6F3 SOF SAbF3
SEC 7F 49
FF
CA FO OS CB
B9 9E AO 10 FA 30 F5 CB B'I 9E AO 30 B2 20 47 AB DO F5
SOC es7F TAX STV S49 LDV ISFF DEX BEQ SA737 lNY
LOA $A09E,Y BPL Bltl lNV LOA 81'11 JSR BNE
SA72F SA72C
SA09E,V SAbEF SAS47 SA737
Y
CI1P SIS BNE $AbE6 CPX SI4
AbFA AS OF
A705 A707 A70B A70A A70B A70C
($5F) ,
A71C A71E A720 A722 A724 A725 A727 A72B A72A A72C A72D A72F A730 A733 A735 A737 A738 A738 A73D A740
A7421
Parf .... [FOR]
A742 A9 DO A744 B5 10
LOA ISBO STA S10
A74b 20 A5 A9
JSR SA9A5
A749 A74C A74E A74F A751 A752 A753 A754 A755 A7S7 A75A A7SO A7SE A7SF A761 A762 A764 A76b A7b7 A769 A76A
20 DO SA 69 AA 9A 6B 68 A9 20 20 IB 9B 6S 4B A5 69
SA A3 05
JSR SA3BA BNO SA753
TXA OF
ADC esOF TAX TXS
PLA PLA 09 FB A3 06 A9
7A 7B 00
4B AS 3A 4B AS 39
LDA JSR J5R CLC TVA ADC PHIl LDA ADe
1$09 SA3FB
SA906
S7A S7B ISoo
PHA LDA S3A PHIl LDA $39
A7bC 48
PHA
A76D A9 A4 A7bF 20 FF AE An2 20 BD AD
LDA .SA4 JSR SAEFF JSR SADBD
45
A77S A778 A77A A77C A77E A780 A782 A784 A786 A788 A78B A780 A78F A792 A79S A797 A799 A79C A79F A7A:2 A7AS A7A7 A7AB A7AA A7AB A7AO A7AE A7Bl A7B3 A7BS A7B7
20 SA AD AS 66 09 7F 2:5 62 85 62 A9 8B AO A7 85 22 84 23 4C 43 AE A9 BC AO B9 20 A2 BB 20 79 00 C9 A9 DO 06 20 73 00 20 BA AD :20 2B BC 20 3B AE AS 4A 4B AS 49 4B A9 81 4B 20 2C AB AS 7A A4 7B CO 02
A7BA
as
A7BC A7BE A7CO A7C2 A7C4 A7Cb A7CB A7C9 A7CB A7CE A7CF A7DI A703 A7D4 A706 A70B A709 A70B A70D
B4 AO Bl DO AO BI
EA A7B8 FO 04
46
3D
3E 00
7A 43 02 7A
IB
DO 03 'IC 'IB AB C8
BI 7A 85 39 CB BI 7A as 3A '1B 65 7A B5 7A '10 02
JSR SAD8A LOA S66 ORA 1$7F AND S62 STA S62 LDA UBB LOY lISA7 STA S22 STY S:23 JIIP SAE43 LOA UBC LOY UB'I JSR SBSA2 JSR S007'1 CtlP lISA9 BNE $A7'1F JSR $0073 JSR SADBA JSR SBC2B JSR SAE3B LOA $4A PHA
LDA $49
A7EO A7EF A7FI A7F3 A71'S A7F7 A7FB A7F'I A7FC
FO E'I 90 C'I BO
BEQ SAB2B
BO II 23 17
SOC ,$80
OA AB B9 00 AO
4B
BCC $AB04 CI1P 1$23 BCS SMOE
ASL TAY LOA SAOOO,Y PHA
A7FD Bq OC AO ABOO 4B
LOA SAOOC,Y
ABOI 'Ie 73 00 AB04 'Ie AS A'I AB07 C'I 3A
JtlP JI1P CI1P BEQ JI1P
SAB2C $7A $7B 1$0:2
ABIO ABI2 ABIS ABI7 ABIA
DO F9 20 73 00 A'I A4 20 FF AE 4C AO AB
AB1D;
PHA $0073
SA'IAS lIS3A $A7EI SAF08
ct1P ••49
BtE: SABOB
JSR soo73 LDA HA4
JSR SAEFF JIIP $ABAO
Perfar. [RESTORE]
ttsOo
($7A),Y SAB07 1$02
LDA ($7A),Y
ABIO 3B
SEC
ABlE A5 2B
LDA $28
A820 E'I 01 AB22 A4 2C
SBC LOV BCS OEY STA STY RTS
CLC BNE SA7CE JI1P $AB4B INY LOA (S7A) , Y STA $3'1
AB26 BB AB27 as 41 AB29 B4 42 AB2B 60
INY LOA ($7A),Y
AB2C;
STA TYA ADC STA sec
S7B ($030B) S0073 $A7EC SA7AE
3C
ABOB 4C OB AF ABOE C9 49
$A7DE $30 $3E
INC JtlP JSR JSR JtlP
Execute st..t...,t
A7ED;
I$Bl
NOP
BEQ STA STY LOY LOA BNE LOY
E6 7B bC 08 03 20 73 00 20 EC A7 'Ie AE A7
AB09 FO D6
PHA
LOA PHA JSR LOA LDY CPY
A7DF A7El A7E4 A7E7 A7EA
A824 BO 01
'$01 S2C
sAB27 S41 S42
Bre.. k
$3A AB2C
$7A $7A SA7EI
A82F;
20 EI FF
JSR SFFEI
Parfor. [STOP]
A82F BO 01
BCS $A832
AB70 20 100 Ab AOOO 4C 97 AS
A831,
P.... fer. tENOl
AB8J; AB31 AB32 AB34 A93b
IB DO AS A4 AB3B AI. AB:sA EB AB39 FO AB30 as AB3F 94 AB41 AS AB43 A4 AB4S as AB47 94 A949 1.9 AB4A bB AB48 A9 AB40 AO AB4F 90 ABSI 4C A9S4 4C
3C 7A 78 :sA
OC 3D
3E 39 :sA 38 3C
CLC DNE $A870 LOA $7A LOY $78 LOX $:sA INX 8EQ $AB49 STA $30 STY $3E LOA $39 LOY$:sA STA $38 STY $3C PLA
PLA BI
A3 03 109 A4 Bb E3
LOA USI LOY UA3 9CC $A8S4 JMI' SA4b9 JI1P $E38b
AB93 ABBS ABB9 ABBA ABB8 ABBO
PM-"for. (BOSlln A9 03 20 F8 A3 A!5 78
LOA . .03 JSR SA3F9 LOA $79
4B
PHA
AS 7A 49
PHA
A88E A:5 ::SA
LDA _::sA
AB90 49 AB91 AS 39
PHA
A893 48
P....
AB94 A9 AB'Ib 4B AB97 20 AB'IA 20 AIIQO 4C
ABAO;
BD
P.... for. [CONTl
AB!57 AB!59 AB59 ABSO AB5F A8b2 A8b4
DO A2 A4 DO 41: AS BS ABbb B4 ABbB AS ABbA A4 ABbe as ABbE B4 AB70 1.0
AB71; AB71 AB72 AB74 AB77 A979 AB7A
17 IA 3E 03 37 A4 30 7A 78 38 3C 39 :sA
ONE $A870 LOX UIA LOY $3E 9NE SA8b2 J'IP SA437 LOA S30 STA S7A STY S78 LOA $38 LOY $3C STA $39 STY S:sA RTS
P.... for. [ _ l 09 A9 20 29 DO 4C
ptp
00 90 FF 03 S9 AI.
LOA 1$00 JSR .FF90 PLP 9NE SA970 J"" SAbS9
LOA S3'1 LOA "BO
PHA 79 00 AO A9 N: A7
JSR S0079 JSR $A8AO JIt> SA7N:
P.,-for. (SOTO]
A8A3 20 ()CiI A9
JSR SA9b9 JSR $A909
A8Ab 38
SEC
ABAO 20 1.9 A'I
A857;
LOA S7A
ABA7 ABA9 ABA9 ABAO ABAF AB81 ABB2 ABB3 ABBS AB87 ABB9 ABBA ABOC ABBE
AS ES AS ES BO 'IB 39 bS Ab 90 EB BO AS
39 14 3A IS 09
LOA S39 SBC LOA SOC OCS TYA
SI4 S3A SIS .ABOC
SEC 7A
.7A S7B $AOCO
ABCO 20 17 Ab
ADC LOX Bce INX BCS LOA LOX JSR
ABC3 90 IE ABCS AS SF ABC7 E9 01 AOC'l as 7A ABCB AS 100 ABCD E'I 00 ABCF as 79 ABOI 100
ace
SABE3
LOA $SF S9C 1$01 STA $7A LDASbO S9C 1$00 STA $79 RTS
7B
07
04 2B
Ab 2C
$ABCO $2B S2C SAbl7
47
A8D2;
Perfer. [RETURN]
BI£ $ABOI lOA I$FF
AB02 DO FD
ABD4 A'I FF ABOb B5 4A MOB 20 SA A3 ABOD ABoe ABOE ABEO ABE2 ABE5 ABEB ABEB ABEC ABED ABEF ABFO ABF2
9A
C9 BO
FO
OB A2 OC
2C A2 11
4C 4C bB bB 85 bB 85 b8 ABF3 85 ABF5 b8 ABFb B5
PLA PLA 39 3A
iS22 $11919 sA911
P.,..fer. [IF]
A928 20 'IE AD A92B 20 79 00 A92E C9 89 A930 FO 05 A932 A9 A7 A'I34 20 FF AE A937 AS bl A939 DO OS
JSR sAD'IE
J5R S0079 ClIP "89 BEQ SA'l37 LOA i$ll7 JSR SAEFF LOA sbl ONE SA940
STA $3A
7A
STA $7A PLA STA S7B
7B
A901 90 02
INC $7B RTS
A905 bO ScAn
JSR $A9Ob TVA CLC AOC $7A STA S7A Bce SA90S
A903 Eb 7B
fer next stat...,t
AWb A2 :sA AWB 2C A2 00
LOX ":sA BIT SOOO2
A90B Bb 07
STX S07
A900 A90F A911 A913 A91S A917 A919 A91B A91D
LOVISOO STY $08 LDA SOB LOX S07 STA S07 STX sOB
48
$11905
PLA
98 18 b5 7A BS 7A
AO B4 A5 Ab 85 8b Bl FO C5
A928;
BEQ INV CI1P BNE BEQ
STA $39
20 Ob A9
A906;
FO E4 C8 C9 22 DO F3 FO E9
PLA
P .... fcr. [DATAl
_8; ABFB ABFB ABFC ABFO ABFF
37 A4 OS AF
STA $4A JSR sA3SA TXS CI1P iS80 BEQ SABEB LOX isOC BIT $IIA2 JI1P $A437 JIIP SAFOB
A91F A921 A922 A924 A92b
00 08 08 07 07 08 7A E8 OB
A93B A93E A940 A943 A94S
A94B;
20 09 A9 FO BB 20 79 00 BO 03 4C AO AB
JSR $11909 BEQ $ABFB
JSR S0079 BCS $1194B JHP sABAO
P.,..+er. (ON]
A94B 4C ED A7
JI1P $AlED
A94B 20 9E 87
JSR SB79E
A94E A94F A9S1 A953
4B C9 BD FO 04 C9 89
PHA
A~
DO 91
A957 Cb oS A9S9 DO 04 A9SB b8 A95C 4C EF A7 A9SF 20 73 00 A'Ib2 20 bB A9 A9b5 C9 2C A9b7 FO g: A9b9 bB A9bA bO
ClIP ISBD BEQ SA9S7
CI1P .$89 BHE SABE8
DEC SOS BNE SA9SF
PLA JI1P SA7EF JSRSO073 JSR SA9bB CI1P 1S2C
9£Q SA957
PLA RTS
Set fixed paint nlWber
LOA {S7A),Y
A96B;
BEQ SA905 CI'IP $08
A9bD A2 00
LOX 1$00
A9bO Bb 14 A9bF Bb 15 A971 F1
eo
STX S I 4 STX SIS BCS SA9bA
A"t73 E? 2F
SBC ttSZF
A'i7'5 55 07
STA $07
A977 AS 15
LDA SIS STA $22 01P UI9 Bes $A953 LOA $14
A979 85 22
A97B C9 19 A97D
eo
A97f A9BI A9Il2 A9B4 A9BS A9B7 A9B9 A9BB A980 A9BF A991 A993 A995 A997 A999 A99B A990 A99F A9A2
AS 14 OA 210 22
04
OA 210 22 105 14 14 AS 22 105 IS BS 15 010 14 26 15 AS 14 b5 07 BS 14 90 02 E6 15 20 73 00 4C 71 A9
as
ASL ROL :$22
ASL ROL $22 AOC STA LDA AOC STA
ASL ROL LOA AOC STA
Bee
INC JSR JI'1P
$14 $14 S22 SIS SIS $14 SIS SI4 S07 SI4 $A99F SIS $0073 SA971
P..... fcr. tLETl
A9AS;
A9AS 20 8B BO A9A8 49 A9AA 84 4A
as
JSR SBOBB STA S49 STY S4A
A9CE A900 A901 A903 A90S
'it 49
STA (S49) , Y
CB
IHY
AS b5
LOA SbS STA (S49),Y RTS
91 49
be
A9D6 4C 00 DB
JMP $DBDO
A9D9 A90A A9DC A9DE A9EO A9E3 A9ES A9E7 A9E9 A9EB A9EO A9EF A9F2 A9FS
PLA LDY S4A CPVUBF BNE SAA2C JSR SBbAb CI1P HOI. BNE SAA24 lOVUoo STY $61
b8 A4 CO DO 20 C'1 00 AO B4 B4
4A BF 4C A6 Bb 010 3D 00 bl lob
B4 71
20 10 AA 20 E2 BA
STY STY JSR JSR
INC
Eb 71
Sbb S71 $MIO SBAE2 $71
A9F7 A4 71
LDV $71
A9F9 A9FC A9FF AAOO AA02 M03 AA04 M07 AA09 AAOA AAOC MOE AAII AAI4
os
JSR SAAIO JSR SBeOC TAX BEQ $AA07
ED BA 71
TXA JSR $BAEO LOY S71
20 20 AA FO E8 BA 20 A4
10 AA OC Be
INX
CB CO 00 20 20 A6
IHY Ob OF E2 BA 9B BC 64
A9AC A9 82
LOA .S92
AA16 A4 63
A9AE 20 FF AE
JSR SAEFF lOA SOE
AAI8 MIA MID AAIF
CPY UOb atE SA9EO JSR SBAE2 JSR SBC9B LOX $64 LDY $63
BPL SA9D6 JSR SBeIB JSR SBIBF
AS bS 4C DB 81 22 20 80 AA22 qo 03 AA24 4C 48 AA2 7 E9 2F AA29 4C 7E AA2C AO 02 AA2E BI 104 AA30CS34 M32 90 17 AA34 DO 07 AA3b 8B
A9CA AO 00
LOY ••00
AA37 91 b4
LOA
A9CC AS 64
LOA Sb4
AA39 CS 3 3
CI1P S33
A9Bl AS OE
A9B3 A9B4 A9Bb A9B7 A9BA A9BB A9Be A9BF A9C1 A9C2 A9C4 A9C7
4B AS 4B 20 b8 2A 20 DO loB 10 20 20
PHA 00 9E AD
lOA SOO PH:\ JSR SAD9E PLA
ROL 90 AD IB
JSR $AD90 BNE SA909
PLA 12 IB BC BF BI
FF
LDA SbS JI'1P $FFDB LDA (.$22), V
00
JSR $OOBO BCC $M27
B2 BO
JI1P SBe JI'1P lOY LDA 01P BeC
SB248 .S2F SB07E .S02 CSb4), Y S34 SAA4B atE SAA3D DEY (Sb4),V
49
AA3B AA30 AA3F AA41 AA43
90 A4 C4 90 DO
OE
10:5
2E 08
OD
AA4~
A!) b4 AA47 C5 2D
AA49 BO 07 AA4B AS 104 AA40 A4 b:5
AA4F 4C 68 AA AA:52 AO 00 AA:54 Bl 104 AAS6 20 75 B4 AA59 AS 50 AASB A4 51 AA50 B:5 bF AASF 84 70
AA97 4C AO AA AA9A 20 21 AB AA90 20 79 00
OCC SAA4B LOY $10:5 CPYS2E Bee SAA4B iII'E SAA:52 LDA $104 OP $20 BC5 SAA:52
AAAO;
LOY LOA JSR LDA LOY STA
1$00 ($104), Y $B475
$50 S51 $bF STY S70
AA61 20 7A 8b
JSR SBb7A
AAb4 A9 01
LOA
lSol
AAoo AAbS AAbA AAbC
AO 00 B:5 50 84 51 20 DB Db AAbF AO 00
LOY 5TA 5TY J5R LOY
1$00
AA71 Bl :50
LOA ($50)
AA73 AA75 AA7b AA78 AA7A AA7B AA7D AA7F
91 49
5TA ($49), Y
C8
INY
Bl 91 CB Bl 91
50
49 50 49
$50 S51 $BbOB 1$00
,v
LOA ($50), Y 5TA (S49),Y INY LDA (S50) , Y STA ($49), Y
RT5
bO
MAO FO FO C9 MAl> FO AAAB C9 AAAA IB AAAB FO AAAO C9 AAAF FO AABI C9 AAB3 FO AA8S 20 AABB 24 MBA 30 MBC 20 MBF 20 AAC2 20 AACS 20 MeB DO AACA A9 AACC 90
Pwrfor. (PRINTI]
AABO 20 Db AA AAB3 4C BS AB
AA8b 20 'IE B7 AA89 FO OS MBB A9 2C AABO 20 FF AE AA90 08 AA91 Bo 13 AA93 20 lB El AA9b 2B
50
J5R SAABo JI1P SABB5
JSR SB79E BEg $AA90
LDA tlS2C J5R SAEFF PHP
STX S13 JSR SEllB PLP
35 43 A3
SAA07 SME7 CMP ISA3 BEQ SAAFB BEQ BEQ
50 Ab
CMP ISAb
CLC
48 2C 37
BEQ
3D
Ct1P 1S3B
~E
BEQ
AADI AA03 AAD5 AA07 AAD9 AAOC MEO AAE2 ME5 AAE7 MEB ME9 AAEC AAEO AAEE
SMFB
Ct1P 1S2C
BEQ SAAEB
9E AD 00
SABI3 JSR SA09E BIT SOD
DE
BMI :SAA9A
DO B7 21 3B 03
BO B4 AB AB
00
00 02 MeF A2 FF
MOE
AABO;
P.rfc:r. [PRINT]
AAA2 AAA4
LOA $104 LOY $b5 JI1P SAAb8
JI1P SMAO JSR $AB21 J5R $0079
AO 01 13 DO 10 A9 00 20 47 AS 24 13 10 OS A9 OA 20 47 AB 49 FF AS
bO
3B 20 FO FF 9B
3B E9 OA AAFO DO FC AAF2 49 FF AAF4 109 01
AAFb DO Ib AAFB OB AAF9 3D
AAFA 20 FO FF
JSR J5R J5R JSR BNE LOA STA LOX LOY
SBOOO SB487 SAB21 SAB3B SAA90 1$00 S0200,X ISFF
LOA
SI3
1$01
BNE SME7
LDA 1$00 J5R SAB47 BIT SI3 BPL SAllES
LOA J5R EOR RTS SEC JSR TYA SEC SOC
tlSOA SAB47 tlSFF
SFFFO ISOA
SAAEE EOR tlSFF BCS
ADC ISOI iII'E SABOE PHP
SEC JSR $FFFO
AAFD 84 09 AAFF 20 9B B7 AB02 C'I 29 AB04 DO S9 ABOb 2B AB07 90 Ob
STY $09
AB09
BA
TXA
ABOA
E5 09
ABOC 90 05 ABOE AA ABOf" £8
ABIO ABll ABI3 ABila ABI9 ABIC
ABlE AB21 AB24 AB25
ClIP 1$29
BNE: $AB5F
PLP BCC $ABOF
SOC S09 BCC $ABI3 TAX INX
DEX
CA DO Ob
20 73 00 4C A2 AA 20 3B AB DO F2
ABlE;
JSR $B79B
BIE
$ABI9 JSR $0073 JI1P SAAA2 JSR $AB3B BIE $ABIO
Print string froa (y •• ) 20 B7 84 20 Ab Bb
AA AO 00
JSR SB4B7 JSR $BbAb TAX LDY UOO
AB27 E8
IN'
AB2B CA AB29 FO AB2B BI AB2D 20 AB30 CB AB31 C'I AB33 DO AB35 20 AB3B 4C
DEX BC
22 47 AB OD F3
E5 AA 2B AB
AB3B A:5 13 AB3D FO 03
AB3F AB41 AB44 AB47 AB4A AB4C
AB4D;
A9 20 2C A9 ID 2C A9 3F
20 OC El 29 FF bO
BEQ $APE7 LOA ($22 ), V
JSR $A847 INV CI1P I$OD BNE $AB2B JSR SAAE5 JI1P $AB2B
LDA $13
BEg LDA BIT BIT
$AB42 . .20 SIDA9 S3FA9
AB7B;
BEQ sABb2
9111 SAB57 LOY ISFF BNE SAB5B
LDA LOY STA STY JI1P LOA
.3F S40 .39 $3A SAFOB
SI3
SEQ SABbB LDX .S18
JI1P LDA LOY JSR
$A437 . .oc . . AD SABlE
LOA .30 LOYS3E STA HA STY $7B RTS
P..,.for. [SETl
AB7B 20 Ab AB7E C9 23 ABBO DO 10 AB82 20 73 ABBS 20 9E ABBB A9 2C ABBA 20 FF ABBD Bb 13 AB8F 20 IE AB92 A2 01 AB94 AO 02 AB9b A9 00 AB9B BD 01 AB9B A9 40 AB9D 20 OF ABAO Ab 13 ABA2 DO 13 ABA4 bO
B3
JSR $B3Ab
ClIP 1$23 BNE $AB92
00 B7
AF-
JSR JSR LDA JSR STX
EI
J5R
02
LDX LDV LDA STA
LOA AC
JSR LOX BNE
$0073 $B79E I$2C
S/IEFF $13 SEliE . .01 ••02 ISoo $0201 . .40 $ACOF $13 SABB7
RTS
JSR SEtOC
AND .SFF RTS
bd input routine
A84D AS II
A84F FO 11 ABSI 30 04 ABS3 AO FF ABS5 DO 04 ABS7 AS 3F ABS9 A4 40 ABSB 85 39 ABSD B4 3A ABSF 4C OB AF ABb2 AS 13 ABM FO 05 ABb6 A2 IB ABbB 4C 37 A4 ABbB A9 OC ABbD AO AD ABbF 20 IE AB AB72 AS 3D AB74 A4 3E AB7b B5 7A AB7B 84 7B AB7A bO
LOA SII
ABAS ABAB ABAA ABAD ABAF
20 A9 20 Bb 20
9E B7 2C
FF AE 13 IE EI
JSR S979E LDA 1$2C JSR SAEFF STX $13 JSR SEliE
51
ABB2 ABBS ABB7 ABBA ABBe ABBE
20 AS 20 A2 Bb 100
C9 DO 20 A9 20 20 20 A9 80 20 AS FO 20 29 FO 20 4C AD DO AS DO 20 4C
AS DO 20 20 4C
52
SABCE S13 $FFCC "00 $13
CI'P U22 lINE SABCE JSR SAEeD LDA U:sB JSR SAEFF JSR $AB21 JSR S83Ab LOA U2C STA $OIFF JSR SABF9 LOA $13 BEll SABEA JSR $FFlI7 AND . .02 BEll SABEA JSR SABDS JI1P _ S LOA S0200 BNE SACOO LOA S13 lINE $ABOb JSR SA906 JI1f> _ B
AE AE AB 83 01 AB
FF
AB AS 02
A9 AB
13 06 45 AB 3D AS 60 AS
.
input LOA lINE JSR JSR JI1f>
$13 SAC03 $AB45 $AB3B
SAS60
P.-far_ [READ]
AC06;
AC06 AC08 ACOA ACOC ACOF ACII
22 08 BD 3D FF 21 Ab 2C FF F9 13 00 B7 02 06 BS FS 00 IE 13 E3 01. FB
Pr~t
ABF9; ABF9 ABFB ABFD ACoo AC03
JSR LOA JSR LOX STX RTS
P.-for. CINPtlT]
ABBF; ABBF ABCI ABC3 ABCb ABC8 ABeB ABCE ABOI AB03 ABDb AB09 ABOB ABOO ABEO ABE2 ABE4 ABE7 ABEA ABED ABEF ABFl ABF3 ABF6
CE AB 13 CC FF 00 13
AI. A4 A9 2C BS Db
41 42 98 A9 00 11 43
lOX LOY lOA BIT STA STX
$41 $42 1$98 $OOA9 S11 $43
AC13 ACIS AC18 ACIA ACIC ACIE AC20 AC22 AC24 AC2b AC28 AC2A AC2C AC2F AC31 AC33 AC3S AC38 AC3B AC3D AC3F AC41 AC43 AC4S AC47 AC4A AC4D AC4F ACSI ACS4 ACSb ACS8 AC5A AC:5C AC50 ACSF ACbl ACb3 ACbS AC67 ACb9 ACbB ACbO ACbF AC7I AC72 AC74 AC76 AC7B AC7A AC7C AC70
B4 20 BS 84 AS A4 115 B4 Ab A4
pb B4 20 DO 24 SO 20 BO A2 AO DO 30 AS DO 20 20 Db 84 20 24 10 24 SO EB Db A9 BS FO BS C9 FO A9 B:5 A9 18 BS AS A4 109 90 CB 20
44 BB 49 4A 7A 70 4B 4C 43 44 7A 70 79 20 11 OC 24 00 FF 01 OC 7S 13 03 4S F9 7A 70 73 00 31 11 09
DO
STY JSR STA STY
$44 SB08B $49 $4A
LDA S7A
00
EI 02
AB AB
LOY STA STY lOX lOY STX STY JSR BNE BIT BVC JSR STA LOX LOY BNE BtlI lOA BNE JSR JSR
$7B $4B $4C $43 $44 S7A $7B
S0079 SACSI S11 SAC41 SEl24 S0200 UFF HOI SAC40 SACB8 S13 SAC4A SA84S SABF9
STX S7A 00
7A 00 07 OC 07 22 07 :sA 07 2C 08 7A 7B 00 01 80 84
STY $70 JSR $0073 SIT $00 BPL SAC89 BIT $11 BVC SACOS INX STX S7A LOA . .00 STA S07 BEll $AC71 STA S07 C"" .$22 BEQ SAC72 LOA ":sA STA $07 lOA"2C CLC STA S08 LDA $7A lOY S7B Ace .SOO BCC $AC70 INY JSR $B48O
ACBO ACe3 ACB6 ACB9 ACBC ACBE AC91 AC94 AC96
20 E2 B7 20 DA A9 4C 91 AC 20 F3 DC AS OE 20 C2 A9 20 79 00 FO 07 C9 2C
AC98 FO 03
AC9A 4C 40 AC90 AS 7A AC9F A4 7B ACAI B:5 43 ACA3 B4 44 ACAS AS 48 ACA7 A4 4C ACA9 B:5 7A ACAB B4 7B ACAO 20 7'1 ACBO FO 2D ACB2 20 FO ACB:5 4C IS ACBB 20 06
AB
00 AE AC A9
ACBS C8
ACDC AA ACBD DO 12 ACBF A2 00 ACeI CB ACe2 BI 7A ACe4 FO be ACC6 CB ACC7 BI 7A ACC'I B:5 :sf ACCB CB ACCC BI 7A ACCE CB ACCF B:5 40 ACOI 20 FB AB AC04 20 79 00 AC07 AA ACOB EO B3 ACDA DO DC ACDC 4C SI AC ACDF AS 43
ACEI ACE3 ACES ACE7 ACEA
A4 44 Ab 11
10 03 4C 27 AS AO 00 ACEC BI 43 ACEE FO OB
J5R J5R J I1P J5R
SB7E2 SA'IDA
SAC'lI SBCF3
LDA $OE J5R SA'1C2 J5R $0079
BEg SAC'lD CI1P H2C SEQ $AC9D Jt1P SAB40 LDA LDY STA STY LDA LOY STA STY JSR BEll
S7A $7B S43 $44 $4B $4C S7A $7B $007'1 SACDF J5R SAEFD JI1P SACIS J5R SA90b INV TAX Bt£ SACOI LDX UOO INY LDA (S7A),Y BEll SAD32 INY LDA (S7A) , Y STA $:sF
INY LOA ($7A) , Y INY STA $40 JSR $ABFII J5R $007'1 TAX CPX UB3 BNE $ACBB JI1P SACSI LDA $43 LOY $44 LDX$lI BPL $ACEA
JI1P SAB27 LDYUoo LDA ($43), Y BED SACFB
ACFO ACF2 ACF4 ACF6 ACFB
ACFB
AS DO A'I AO 4C 60
ACFC;
13 07 FC AC IE AB
LDA SI3 BI£ SACFB LDA -.FC LDY HAC JI1P SABlE RTS
Input .... ,..ot""
ACFC :sf ACFD 4S ACFF S4 ADOO 52 ADOI 41 AD03 4'1 AOOS 4E ADOB 4S ADOA 00 AOOD S2 AOOE 4:5 ADIO 4F ADlI 20 AD14 4F ADIS 4D ADIB 54 ADI9 41 AOIB 54 ADIC OD
sa
_~
??? EOR$SB
??? ??? 20 47 4F S2 44 00 :sf
EOR (S20,X) EOR U47 LSR $S24F EDR $44 ORA $3F00
44
EDR$44
46 52
??? J5R $S246 ???
20 53
EDR $5320
52
??? EOR CS52 , X)
00 DO
??? ORA $0000
???
P....'for-. nEXT]
ADtE;
ADIE 00 04 AD20 AO 00 AD22 FO 03
AD24 20 88 90 AD27
as
A029 AD2B AD2E AD30 AD32 A03S A03b AD37 AD3B AD3A AD3B AD3D AD3F AD40
B4 4A
49
lINE SAD24 LDY 1$00 BEll $AD27 JSR $BooB STA $4'1 STY $4A
20 SA A3
JSR $A3BA
FO
BEQ SAD35 LDX UOA SA437 TXS TXA
os
A2 OA 4C 37 A4 '1A
SA IB 6'1 04 4B 69 Db B:5 24 68 AO 01
J""
CLC ADC 1$04 PHA ADC UDb STA $24
PLA LDV 1$01
53
AD42 A04S A04b A049 AD4B
20 A2 BB BA BO 09 01
as
61.
AS 49
AD4D A4 4A AD4F 20 1.7
sa
AD52 20 DO BB
ADSS AO ADS7 20 AOSA BA AOSB 38 ADSC FO AOSF FO ADbI BO A064 85 AObb BO AOb9 as AObB BO AObE as A070 DO A073 BS
01 SO
BC
09 17 OF 39 10 3A 12 7A II 7D
01
A07B A079 A07D A07C AD70 ADBO AOBZ AOB4 ADB7 AOBA ADBO ADBE AD90 AD92 A094 AD96 A097 A099 AD9B
AD9E; AI)qE
S0109,X Sbb
S49
LDV :S"4A
JSR JSR LOY JSR TSX SEC
SBBb7 SBBDO .SOI SBeSO
SBC $Ol09,X
01 01 01 01
LOA SOlOF,X
STA S39 LOA SOIlO,X STA S3A LOA $01l2,X STA S7A LDASOIII,X STA S7B JHP SA7I'£
Type .iIIItc:h check
TXA
BA 11
1.9
AA 9A 20 C9 00 20 20 20 IB 24 24 30 BO
ADC .SII
TAX TXS
79 2C Fl 73 24 'IE
00 00 AD AD
3B 00 03 03
1.0
BO FO A2 II. 4C 37 A4
JSR ClIP BNE JSR JSR JSR CLC DIT BIT 11111 BCS RTS BCS LOX
S0079 1S2C SA07S $()()73 SA024 SA09E S3B SOD SA097 SAD99
SAD9b lISlb JHP SA437
EVAlUAte expres.ion A6 7A
ADAO DO 02
54
SBBA2
BEll SA07B
AD7S 4C PtE. A7
AD7a;
JSR TSX LOA STA LOA
LDX S7A
BNE SADM
ADA2 ADM ADAb ADAB ADM ADAB ADAC ADAE ADBI ADD4 ADBb ADBB ADBB ADBe ADBE ADCO AOC2 ADC4
Cb C6 A2 24
7B 7A 00 4B
BA
TXA
4B A9 20 20 A9 BS 20 3B E9 90 C9 BO C9
PHA
01 FB A3 B3 AE 00 40 79 00
49 4S CS 90 BS 20
LOA HOI JSR SA3FB JSRSAEB3 LOA lISoo STA S4D JSR S0079 SEC
Bl 17 03 13 01
ADeb 2A
ADC7 ADC9 ADCD AceD ADCF ADDI
DEC $78 DEC S7A LOX tl$00 BIT $4B
01 40 40 61 40 73 00
SBC BCC CHP BCS ClIP ROL EDR EOR CI1P BeC STA JSR
lISBI SADD7 .S03 SADD7 ISOI .SOI S4D S4D SAE30 S4D SOO73
ADD4 4C BB AD
JHP $ADDD
ADD7 ADD9 ADDB ADDD ADDF ADEI ADE3
LOX BNE BCS ADC BCC
AOEB 69 FF ADEA BS 22
$40 SAE07 SAESB 1S07 SAESB Aoe $00 BNE SADEB JMP SDb3D ADC ISFF STA $22
AOEC OA
ASL
ACED bS 22 ADEF AB ADFO bB
ADC $22 TAY PLA
ADFl 09 80 AO
CI"IP SA080,V
ADF4 ADF6 ADF9 ADFA ADFD AOFE AEoo AE02 AE03 AEOS AE07
BCS SAESD JSR SADBD
AI. DO BO 69 90 bS DO
40 2C 7D 07 77 00 03
AD£S 4C 3D 9b
BO 20 4B 20 bB A4 10 M FO DO 46
67 BD AD
PHIl
20 AE
JSR SAE20
4B 17
LOY S48 BPL SAE19 TAX
PLA
56 SF 00
BEg SAESD
BNE SAE6b LSR SOD
TXA ROL
PE.CY9 BA AEOA AE08 PE.OO PE.OF
2A Ai> DO C6 Cb AO B5 DO 09
7A 02 78 PE.1I 7A PE.13 18 AE15 40 PE.17 07 PE.19 80 AO PE.1C 80 48 PE.1E 90 09 AE20 B9 82 AO PE.23 48 PE.24 89 81 AO PE.27 48 AE28 20 33 AE AE28 A5 40 AE20 4C A9 AO AE30 4C 08 IIF AE33 A5 66 AE35 BE 80 AO AE38 AS
LOX $7A BNE SAE11
DEC$7B DEC $7A LOY 1$IB STA $40 lINE $ADFO CIU' SAOBO, Y 8CS SAEbb
SCC $ADF9 LOA SA082, Y PHA
LOA SA081,Y PHA
JSR LOA JI'IP JI'IP LOA LDX TAY
$AE33 $40 $A0A9 $/>FOB $66
$AOBO, Y
AE3'9 b8
PLA
PE.3A 85 22
STA $22 INC $22
AE3C AE3E AE3F AE41 AE42 AE43 AE46 AE48 AE49 AE4B AE4C AE4E PE.4F AE51 AE52 AE54 AE55 AE58 AESA AE58
E6 68 B5 98 48 20 A5 48 A5 48 A5 48 A5 48 AS 48 6C AO 6B FO
AESD C9
22
PLA 23
STA $23 TVA
PE.6A AE68 PE.60 AEbE AE70
AE71 AE73 AE74 AE76 AE77 AE79 AE7A AE7C AE7E PE.80 AE82 AE83 AE86 AE88 PE.BA PE.80 PE.BF AE92 AE95 AE97 PE.9A
bB B5 bB B5 6B B5 bB B5 bB B5 68 B5 45
PLA STA S69
69
PLA STA $6A
6A
PLA 68
STA $6B
PLA 6C
STA PLA STA PLA STA EOR STA
60
6E 66 B:I 6F A5 61 60 6C OA A9 00 B5 00 20 73 80 03 41: F3 20 13 90 03 4C 2B C9 FF PE.9C DO OF AE9E A9 AS
03
00 SC Bl IIF
AEAO AO AE
PHA
PE.A2 20 A2 BB
18 BC 65
JSR $SC1B LOA $65
AE~
b4
LOA $b4
4C 73 00
S6C $60
S6E $66 $6F LOA $61 RTS JI'IP ($030A) LOA "00 STA $00 JSR SOO73 SCS $AE92 JI'IP SBCF3 JSR $B1I3 SCC $AE9A JI'IP $1IF28 Ct1P .$FF BIlE $AEAD LOA . .AS LDY ••AE JSR $8BA2 JI'P $0073
PHA
ean.tant - pi
AEA8;
PHA
63
LOA$b3
PHA 62
LOA $62 PHA
61
LOA $61 PHA
22 00 FF
JI'IP ($0022) LOV . .FF
23
BEll SPE.80
PLA 6~
AE5F FO 03 AE61 20 80 AD PE.64 B4 48 AE66 bB AE67 4A AEbB B5 12
CI'IP . _
BEll SPE.64 JSR $ADBO STY $48
PLA LSR STA S12
AEA8 AEA9 AEAB PE.AC AEPE. AE81 AEB3 AE85 AEB7 AEB9 AEBB AE80
82
A[DI'
AC 7Il
49 OA Al 2E C'I FO C'I FO C'I DO A5
??? OF C9 FO OE
AS
sa
AA
01
22 OF 7A
PE.Cl 69 00 AEC3 90 01 PE.C5 CB PE.Cb 20 87 B4
EOR 1 _ ??? LOA (SC9,X) ROL $DEFO
CI'IP I$AS BEll $/>FOO CI'IP ••AA BEll $AEBA CI'IP . .22 BIlE $AECC LDA $7A
LDV C7lI ADC
ace
esoo
$AECb IHY JSR $8497
55
AEC'1 4C E2 87 AECC C'1 AS
Jt1P SB7E2 CIW HAS
AECE DO 13 AEDO PO) 18 AED2 DO 38 AED4 20 BF Bl AED7 AS 1,5 AED9 49 FF AEDB AS AEOC AS b4 AEDE 49 FF AEEO 4C 91 B3 AEE3 C9 AS AEE5 DO 03 AEE7 4C F4 B3 AEEA C9 B4 AEEC 90 03 AEEE 4C A7 AF
lINE SAEE3
LDY BNE J5R LDA
lIS18 SAFOF s81BF $b5
EOR .sFF TAY LDA
AEF7;
EOR HFF J"" CI1P BNE Jt1P
SB391 HAS SAEEA SB3F4 CI1P ISB4 BCC SAEFI Jt1P $AFA7
J5R SAEFA JSR SAD9E
.) •
AEF7 A9 29 AEF9 2C A9 2B AEFC 2C A9 2C
BIT S2CA9
AEFF PO) 00 AFOI DI 7A AF03 DO 03 AF05 4C 73 00
LOY O1P (S7A), Y BNE SAF08 Jt1P s0073
AFOB; AFOB AFOA AFOD AFOF AFIO AFl1
56
A2 4C AO 6B 1,8 4C
LDA "29 BIT S2BA9
esoo
Syntu. .-ror 08 37 A4 IS
FA AD
LOX Jt1P LOY PLA PLA Jt1P
38 AS b4 E9 00 AS /,5
AF1B E9 AO $/,4
AEFt; Evaluat. wi thin brackets AEFI 20 FA AE AEF4 20 9E AD
AFI4 AF15 AFI7 AF19
HOB sA437 "IS
$ADFA
AFIO AFIF AF21 AF23 AF25 AF27
90 OB A9 A2 E5 64 A9 E3 E5 65 1,0
AF2B;
PF2F Ab 45
AF3£ AF40 AF42 AF44 AF46 AF49 AF4B AF4D AF4E AFSO AF52 AFS4 AF5b AF59 AF5C AFSD AFSF AF61 AF63 AFb5 AFbI>
SOC LOA SOC BCC LOA SOC LOA SBC RTS
1$00 s/,5 .$A() _27 HA2 $64 lISE3 $/,5
S.M"ch for v.,-i.-bl.
AF2B 20 8B BO AF2B as b4 AF20 84 /,5
AF31 AF33 AF35 AF37 AF39 AF3B
SEC LOA $b4
A4 AS FO A9 85 20 90 EO DO CO DO 20 84 B8 84
46 OD 26 00 70 14 AF IC 54 18 C9 14 84 AF SE 71
AO Ob 94 AO 20 4C 60 24 10
5D 24 68 BE
6F 54
OE
OD PO) 00 BI 64 AA CB M67 BI 64 AF69 AS
JSR SBOBB STA $b4 STY s/,5 LOX $45
LOY $46 LOA sOD BEQ $AFSD LDA 1$00 STA $70 JSR $AF14 Bec SAFSC CPX H54 BNE $AFSC CPY HC9 BNE SAFSC J5R SAF84 STY $SE DEV STY $71 LOvesOb STY SSO LDY _$24
JSR $BEb8 Jt1P $B46F RTS
BIT SOE BPL sAFbE LOV lISOO LOA ($04), Y TAX JNY
LDA (Sb4). V TAY
AFbA AF69 AF6E AF71 AF73 1'£75 AF77 AF79 AF7B AF7E
AF7F AFBI AFB4 AFB7 AFB9 AFBB AF8D AFSF 1'£91 AF92 AF94 AF91> AF9B AF9A AF9D AFAO AFA2 AFA4
AFA7 AFAS AFA9 AFAA AFAD AFAF AFBI AFB4 AFB7
BA 4C 20 90 EO DO CO DO
91 93 14 AF 2D 54 IB 49
25 20 B4 AF
9B A2 AO 4E: 4F BE: 20 DE FF Bb 1.4 84 1.3 B5 65 AO 00 B4 1.2
60 EO DO CO DO 20 4C A5 A4 4C
53 OA
54 01. B7 FF 3E: BC 64 65 A2 BB
AFBO b8 AFBE AA AFBF A5 65 AFCI 48 AFC2 A5 64 AFC4 48
BA 48
20 9E B7 bB
B5 55 B9 ED 'iF 95 56 20 54 00 4C 80 AD AO FF
AFE9 AO 00
!:PY IS54 ONE SAFAO JSR $FFB7 JIIP LDA $64 LDY $65 Jr1P SBBA2
$=
TAX
AD
b8 AS B9 EA 'iF,
AFEB B4 DB AFEO 20 BF BI
PHA
AE
4C 06 AF 20 FI AE
CPX U53 BNE $AFAO
4B AA 20 73 EO 8F 90 20 20 FA 20 9E 20 FD
AE
AS SA 48
STA $65 LDY UOO STY Sb2 RTS
ASL
00
AFCB AFCC AFCD AFCE AFOI AF04 AF05 AFOI> AFD9 AFOB AFOE AFEO AFE3 AFEb
TAY TXA PHA Jr1P JSR PLA TAY LOA 5TA LOA STA JSR Jr1P LOY
$AFDb
$AEFI
S9FEA,Y $SS $9FEB,Y $Sb
$0054 $ADSO I$FF
STY $1.3
OA
AFBA 20 !IF AD
AFC5 AFC6 AFC7 AFCA
TXA JP1P S9391 JSR SAFI4 BeE: SAFAO !:PX U54 BNE $AF92 CPY U49 BNE SAFAO JSR $AF84 TYA LDX UAO Jr1P SBC4F JSR $FFDE STX S64
JSR CPX BCC JSR
$0073
P.... f.".. [DR]
AFE9;
A5 b4
LOA $64
45 OB B5 07 A5 loS 45 OB 85 08 20 FC BB 20 BF BI A5 65 45 OB
EDR STA LDA EOR STA
25 os BOOB 45 OB
nSF SAFOI SAEFA JSR $A09E JSR SAEFO JSR $AD8F PLA TAX LOA $65
BOOA AS BOOB AS 1.4 BOOO 45 OB 800F 25 07 BOil 45 OB BOl3 4C 91 B3
PHA
801b;
LOA $b4 PHA TXA PHIl JSR $B79E
BOI6 20 BOI9 BO BOIB AS BOlD 09
PLA
JSR $OIBF
p.,.f.".. [AND]
AFFO; AFFO AFF2 AFF4 AFFb AFF8 AFFA AFFC AFFF 8002 8004 BOOb
LDV . .OO STY $00
SOB $07 $65 SOB _
JSR SBSFC JSR $OIBF LOA $1.5 EOR $OB AND $08 EOR SOB TAY LOA SI>4 EOR$OB AND $07 EOR$OB JIIP $9391
CoIIp . . e
90 AD
13
bE 7F BOIF 25 bA
JSR BE:S LOA ORA AND
$AD90 SB02E SbE 1$7F $/,A
57
B021 8023 8025 8027 B02A 802B B02E 8030 B032 8034 B037 B039
85 A9 AO 20 AA 4C A9 85 Cb
loA 1.9 00 SB BC
bI BO 00 00 40 20 Ab Bb 85 1.1 Db 1.2
STA LOA LOY JSR TAX JIIP
LDA STA DEC JSR STA STX
SbA 1$1.9 1$00
.BCSB SBObI 1$00 .00 S40 SBbAb $1.1 $1.2
8038 84 63
STY $63
8030 B03F 8041 B044 8041. B04B B049 B04A 804C B04E 8050 8052 8054 0051.
LOA LOY JSR STX STY TAX SEC SOC BEQ LOA BCC LOX LOA STA LOV
A5 A4 20 Bb B4 AA 3D E5 FO A9 90 Ab A9 B5
be 1.0 AA Bb bC 1.0
1.1 OB 01 04 1.1 FF lob
8058 AO FF
B05A 805B B05C 8050 80SF BOI.l BOb3 BOb4 BOOb BObS BObA 80be BObE 8070 8072 8073 8074 8075 8077 8079 B07B B07E
58
EB CB CA 00 Ab 30 IB 90 BI 01 FO A2 BO A2 EB SA 2A 25 FO A9 4C 20
'be '1.0 SBbM SbC $1.0
SbI SB05b 1$01 '8051. $1.1 I$FF SU I$FF
INX INY 07 lob
OF OC be
1.2 EF FF 02 01
DEX BNE LOX BPII CLC BCC LOA ClIP BEg LOX BCS LOX
'BOU
B08B; BOBB BODO 8090 8092 BO'I4 B097 B09A B09C 809F BOAI 8OA3 BOAS BOAS BOM
A2 20 91. B5 20 20 BO 4C A2 Bb Bb 20 90 20
00 7'1 OC 45 7'1 13 03 OB 00 00 OE 73 05 13
SB05B UFF S8072 1$01
TXA RDL ANO '12 BEQ SB07B
LDA I$FF JIIP SOC3C
JSR SAEFD
AF
SOC $4S S007'1 SB1I3 SBO'IF SAFOB 1$00 STX '00
STX SOE
00 BI
J5R s0073 BCC SBOAF JSR SBI13 BeC SBOBA
TAX JSR BCC JSR BCS CPIP
AA 20 73 00 '10 FB 20 13 Bl
BOBS 80 F6
($&C). Y
00 81
J5R $0079
STX STA JSR JSR DCS JIIP LOX
BOAF BOBO 8OB3 BOBS BOBA BOBC BOBE BOCO OOC2 BOC4 00Cb BOca BOCA BOCC BOCE BODO 8002 BOD4 BODS B007 BODS
('1.2). Y
LOX ISOO 00
BOAn 9'0 08
Slob S8072
TAX JSR SB090 JSR S()()79 BI£ SB07E RTS
Locat. variable
SOO72
INX 12 02 FF 3C DC FO AE
BOBI M BOB2 20 90 BO BOBS 20 79 00 BOBS DO F4 BOBA 1.0
C9 DO A9 85 DO C9 DO AS 00 A9 85
os
as
24 01. FF 00 10 25 13 10 DO
BI£ LOA STA BNE
otP BNE LOA
S0073 SOOOO SB1I3 $BOBO 1$24 SBOC4 UFF SOD SOO04 1$25 SOOOB SIO
BNE .B09C
eo
LOA 1$80
OE 45 45
STA 'OE ORA S45 STA S45
SA 09 BO AA 20 73 00
TXA
ORA 1$90 TAX .JSR $0073
BOOB BODO BODE 80£0 B0E2 B0E4 B0E7
86 46 38 05 10 E9 28 DO 03 4C 01 BI AO 00
B0E9 84 10 BOEB AS 20
BOED BOEF BOFI BOF3 BOF5 BOF7 BOF9 BOFB BOFO BOFF BIOI B103 BI04 BlOb BlOB
Ab 2E B6 60 SF E4 30 DO 04 C5 2F FO 22 AS 45 01 SF DO OB A5 46 CB 01 SF FO 70
as
BS BI09 IB BlOA BlOC BlOE B110 Bill
B113; BI13 B115 BII7 B119 BllA Bl1C
AS SF
69 07 90 EI EB DO DC
STX $46 SEC ORA $10 sse lI$28 lINE $DOE7 JI'I' $BIOI
LOY HOO STY $10
LOA $20
LOX STX STA CPX lINE
$2E
$60 $SF
$30 $BOFB CPIP $2F BEll $B110 LOA $45 CI1P ($SF), Y BNE $BI09
LOA
$4b
INY CP1P ($SF), Y BEg $BIBS DEY
CLC LOA $SF ADC U07 BCC $1lOF1
INX BNE $BOEF
O1eck .1phabeUc C9 90 E9 38 E9 60
41 05
58
CI1P "41 BCC $BIIC SBC 1$5B
AS
SEC sac _SAS RTS
BI2A BI2C BI2E BI30 BI32 8134 BI3b B13E1 BUB BI30 BI3F BI41 B143 BI45 BI47 BI49 BI4B BHO Bl4F BI51 BI53 BI54 BI56 BI58 BI59 BI5B BI50 BlbO BI62
BI64 BI6S BI67 B169 BI6B BI60 BlbF B170 9172 BI74 B176
A4 4b C9 54 DO OB CO C9 FO EF CO 49 DO 03 4C OIl AF C9 53 DO 04 CO 54 FO F5 AS 2F A4 30 B5 SF B4 60 AS 31 A4 32
as
5A
B4 IB 69 90 CB BS 94 20
5B
er ••t.. v.-iilbl.
8110; BIIO BilE BIIF BI21 BI23
bB 4B
C9 2A DO 05 A9 13
PLA PHIl CI1P 1$2A IlNE $BI28 LOA 1$13
BI25 AO BF
LOY UBF
BI27 bO BI28 AS 45
LOA
RTS
$45
CPY
.SC9
BEQ $B123
CPY *$49 lINE $BI38 JI1P $AFOB OIP . .53 BNE $8143 CPY 1$54 BEg $BI38 LOA $2F LOY $30 STA $SF STY $60 LOA $31 LOY $32 STA $SA STY $5B CLC AIJC 1$07 Bec $B159
INY
58 59 DB A3 AS 58 A4 59 CB BS 2F 84 30 AO 00 AS 45 91 SF C9 A5 4b 91 SF A9 00 CB
STA $58 STY $59 J5R $A3B8 LOA ssa
LOY INY
STA
,V
STA ($SF),Y LOA .$00
INY
CB 91 SF CB 91 SF CB 91 SF
INY
BIB3 91 SF BIBS AS SF BIB7 19 BIBS 69 02
(S~)
INY LOA $46
STA
8182 CB
$59
STA $2F STY $30 LOY . .OO LOA $45
~
B177 91
B179 BI7A BI7C B170 BI7F 81BO
07 01
LOY $46 CI'I' It$54 BNE $BI38
($SF) ,
Y
STA ($SF) , V
INY STA ($SF) , Y
INY STA ($SF) ,Y INY STA ($SF) , Y LOA $SF
CLC ADC .$02
59
BIllA BISC 919E BIBF 9191 BI93
A4 &0 90 01 CB B5 47 B4 4B 60
LDY BCC INY STA STY RTS
$bO
$91BF $47 $411
8194; Ar-ray pDinter subroutine
9194 9196 9197 BI99
AS 09 OA 69 05 65 SF
8198 A4 60
BI9D 919F 81AO BIA2 BIA4 BIA5;
BIA5 91A7 BlAB BIA9 BIM BIAD BIAF BIBI
90 01 CB 85 58 B4 59
BIOI;
60
SOB 1$05 $5F $60 $91AO
$58 STY $59
RTS
bO
Valua 32768
90 00 00 00 20 A5 A4
BO
BF Bl b4 65
1.0
BI82; BIB2 BIBS BIBB BIBB BIBD BIBF BICI BIC3 BIC5 BIC7 BIC9 BICC BlCE
LOA ASL AOC AOC LOV BCC INV STA
BCC BRK BRK BRK JSR LOA LDV RTS
$B127
$BIBF $64 $65
Float-fixMl
20 20 20 AS 30 AS C9 90 A9 AO 20 DO 4C
13 00
9E AD BD AD bb
00 61 90 09 AS BI 5B Be 7A 9B Be
JSR JSR J5R LOA Bt1l LDA CtIP BCC LOA LOY JSR BNE JtIP
Set up array
BIOI 91D3 9105 BlOb BIDB BID9 BlOB BlOC
A5 05 4B AS 4B AO 9B 4B
OC OE 00 00
$AD9E $ADBD $66 $BICC $61 41$90 $BICE . .A5 UBI $BCSB $824B $BC9B
SOC $OE $00 10$00
PHA
B1DD AS 46
LOA $46
BIDF BIEO BIE2 91E3 91E6 BIE7 91E9 91EA 91EC BlED 91EE BIEF BIF2 BIF3 BIF6 BIF7 BIF9 BIFC BlFE B201 8202
PHA
4B A5 4B 20 6B 85 6B 85 68· AD BA 90 4B BD 4B A5 90 A5 9D CB 20
45
LOA $45 PHA
45
JSR $B182 PLA STA $45
40
STA $46
02 01
TAY TSX LOA SOlO2,X
01 01
LDA $OlOl,X
B2 91
PLA
PLA
PHA PHA
64 02 01 65 01 01 79 00
LOA $64 STA $OlO2,X
LOA $65 STA $OIOI,X INY JSR $0079
B20S C9 2C
CI"P 4S2C
B207 FO 02 B209 B4 OB 920B· 20 F7 AE
BEG STY JSR PLA STA PLA STA AND STA LOX LOA
B20E bB $0013
LOA ORA PHA LOA PHA LDY TYA
B20F 8211 B212 B214 B216 B21B B21A B21C B21E B220 B222 B224 B226 B22B B22A B22C B22D
85 bB 85 29 85 Ab AS Bb
as
00 OE 7F OC 2F 30 SF 60 32 04 31 39 00 SF
C5 DO E4 FO AO BI CB C5 45
$BIDB SOB $AEF7 $00 fOE H7F SOC $2F $30
STX $SF
STA CMP BNE CPX BEG LOY LOA INY
$60 $32 $B228 $31 $B261 1$00 ($SF)
CI'IP $45
1
Y
822F B231 8233 B23S 8237 B238 823A B23B 823D B23E B23F B241 8243 8245
DO AS DI FO C8 BI 18 OS M C8 BI OS 90 A2
06 46 SF 16
BNE $8237 LOA $46
SF
LOA
INY
bO
B256 B2SB B2SA B2SC
A2 AS DO 20 AS AO DI DO
13 OC F7 94 BI 08 04
SF
E7 B2SE 4C EA B2 8261 20 94 BI 8264 20 OS A4 B267 AO 00 8269 84 72 B26B A2 OS 826D AS 4S 82/oF 91 SF B271 10 01 B273 CA 8274 CB
8282 OS SB
ADC
BCC $8289
BPL S827D DEX DEX STX S71 LOA SOB
8284 90 03 B2Bb CB 82B7 FO 52 B2B9 20 OS A4 B2BC B5 31 82BE B4 32 B2CO A9 00 B2C2 E6 72 B2C4 A4 71 B2C6 FO OS 82C8 BB B2C9 91 sa B2C8 DO FB 82CO CO 59 B2CF C6 72 B2DI DO F5 82D3 E6 59 B2DS 3B 82D6 AS 31 B2DB ES SF 820A AO 02
INY
B2DC 71 :5F
STA
INY
B2DE AS 32
LOA $32
LDX HOE J/1P $A437
LOX
_.OS
LDA $45 STA ($SF). V
BPL S8274 DEX
INY
8275 AS 46
LOA $4b
8277 B279 8278 B27C 8270 B27F 8291 8282
5TA ($5F),V
91 SF 10 02 CA
CA B6 71 AS 08 CB C8
8VC $8296 PLA
LDY"04 CHP ($'5F), Y BNE $8245 JI1P SB2EA JSR S8194 JSR SA40S LOY .$00 STY $72 LOX
subscr i pt '
' ill.gal quantity'
824D;
BIT SOC
LDA $08
INY LDA ($SF), V AOC $bO BCC $82IC LOX UI2
D7 12
LOX M08 LOA . .00
"13 LOA SOC BNE $824A JSR $B194
TAX
SF
B2BC 50 OS
INY STA ($SF). Y
B2SE 68 B2BF 18 B290 69 82'/2 AA 8293 6B 8294 69 B29b CB 8297 91 B299 C8 829A SA 8298 91 B29D 20 82AO Db 82A2 B5 82A4 A4 82M C6 82AB DO 82M 65 B2AC 80 B2AE B5 B280 AB B2BI SA
AOC $SF
SF
824B A2 OE B24A 4C 37 A4
824D B24F 8251 B253
($SF). Y
CLC
'b~d
824B;
CI1P ($SF). Y BEG $B24D
82B3 C8 B2B4 91 SF B2B6 A2 OB B2B8 A9 00 B2BA 24 OC
CLC
01
ADC HOI TAX PLA
.soo
00
AOC INY
SF
STA (SS) t Y
INY
TXA SF 4C 83 71 72 22 08
DC 59 5D
SOl
STA ($SF), Y JSR $B34C STX S71 STA $72
LDY $22 DEC $08 BNE $B2Bb AOC S59 BCS $B308 STA $59 TAY TXA
$se
INY BEG $B30B JSR $A4OS STA $31 STY $32 LDA ••00
II«: $72 LOY $71 BEll $B2CD
DEY STA ($58) 1 V BNE $B2C8 DEC $59 DEC $72 lINE $B2CB INC $59
SEC LDA $31 $SF LDY .$02
sec
l~),Y
61
B2E0 B2El B2E3 B2E5 B2E7 B2E'1 B2EA B2EC B2EE B2FO B2F2 B2F4
C8 E5 'II AS DO
ca Bl 85 A'1 85 85 C8
60 SF OC 62 SF OB 00
71 72
INV SBC STA LOA 8NE INV LOA STA LOA STA STA PLA
B2Fb B2F7 B2F'1 B2FA 82FC B2FE 8300 B302 8303 8304 B30b B30II B30B B30E 830F 0311 8313 0314 8316 031'1 O31A O3IC 831D 83IE 8320 9322 8324 0326 9328 832A B32C B32E B330 B331 8333 8335 8336 B337 833'1
TAX
62
AA
bB 85 01 '10 DO C8 BA 01 '10 4C 4C CB AS 05 18 FO 20 BA 65 AA
b4
1$00
$71 $72
JSR SB3SS TXA AOC SS8
e;:5:41
e:5 47
STA $47
B343 8344 8346 B34B 8349 8348
'1B 65 5'1 BS 4B AD AS 47 60
TVA
B34C;
STA S64 PLA
bS SF OE 06 SF 07 45 B2 35 A4
STA SbS Cit' (SSF) , v BCC S830E BIllE $8308 INY TXA CIt' (S5F) , Y 8CC SB30F JIt' S824S JHP SA435
INY 72 71 OA 4C 83 64
LDA S72 ORA S71 CLC BEQ S8320 JSR SB34C TXA ADC S64
TAX TVA
'1B
A4 bS 86 C6 DO as A2 AS 10 CA AS 10 CA CA 86 A'1
($SF) , V $08
B33B 20 55 83 B33E BA B33F bS 58
ADC $59 STA $48 TAY LOA S47
RTS
INY
B2FS b8
as
$60 ($SF), Y SOC $8348
22 65 71 08 CA 72 05 45 01 46 02
LDY ACe STX DEC SNE STA LDX LOA
S22 S6S $71 SOB SS2F2 $72 11$0:5
$45
BPL $8331
O34C 84 22 B34E B\ SF B350 as 2B B352 BB B3S381SF B35S as 2'1 D357 AQ 10
8359 B3SB O35D B3SF 9360 8361 9362 B363 9364 8365 8367 9369 83bB O36D D36E B36F 9371 8372 8373 B37s B376 9378 B37A O37C
as 50 A2 00 AO 00 BA OA AA '1B
2A AD 90 06 26 90 IB BA 65 All
TXA ASL
TAX TVA ROL
A4 71 72 08
TAY BCS S830B ASL S71 ROL S72 !ICC S8378 CLC
2B
ADC S28
TXA TAX
'1B
65 AB DO C6 DO 60
STY S22 LDA (SSF) , V STA S28 DEY LOA ($SF), V STA S29 LDA 1$10 STA SSO LOX noo LDV noo
29 93 SO E3
TYA AOC TAY BCS DEC IlNE
$29 $93OB SSO $B3SF
RTS
DEX LDA S46 BPL $8337
DEX DEX 28 00
eo.put • .rray size
BTX $28
LDA
noo
B37D AS 00 B37F FO 03 8381 20 Ab Bb
LOA SOD 9EQ S83B4 JSR SB6Ab
B384 20 26 85 8387 838B B3BA B38C
3B A5 E5 AS B3BD A5 B3BF E5
33 31 34 32
8391;
B391 8393 B395 8397 B399 839B
JSR S8526 SEC LOA S33 SOC S31 TAY LOA S34 SBC S32
8302 83D4 83D5 83D7 83DB
AS 47 4B A5 1B 4B A5 7A B3DA 48 83DB 20 FB AS 83DE 4C 4F B4
A2 00 Bb OD BS 62 B4 b3 A2 90
4C 44 OC
LDX STX STA STY LDX JI1P
. .00 SOD S62 S63 . .90 SOC44
83EI A9 A5 B3E3 20 FF AE B3Eb 09 eo B3EB BS 10 B3EA 20 92 BO
BlED 85 4E 839E;
83A6;
P.,.fc:r. [POS]
38 20 FO FF A9 00 FO ED
SEC JSR SFFFO LOA 1$00 BEg S8391
Ch.ck direct
83Ft 4C 80 AD
B3F4; B3F4 83F7 B3F9 83FA B3FC
B3Ab A6 3A
B3AB EB B3A9 DO AO B3A8 A2 IS B3AD 2C A2 18 83BO 4C 37 A4
PHA LOA S7A
PHA JSR SABFB Jill' S844F
LDX S3A INX BIE S8348 LDX "IS 81T SIBA2 Jill' SA437
B3FD 8400 8403 8404
20 EI 83 AS 4F 4B A5 4E 4B 20 FI AE 20 BO AD 6B as 4E
840b bB
8407
Perfor. [DEFl
B3B3 20 B3Bb 20 B3B9 20 B30C A9 83BE BS B3CO 20 B3C3 20 Bleb 20 B3C9 A9 B3C8 20 B3CE 4B
EI 83 Ab B3
FA AE 80
10 B8 BO BD AD F7 AE 82 FF AE
B3CF A5 4B
B3DI 4B
JSR SB3EI JSR SB3Ab JSR SAEFA LDAI$SO STA SIO JSR SBOB8 JSR SADBD JSR SAEF7 LOA "B2 JSR SAEFF PHA
LDA S48 PHA
LDA JSR ORA STA JSR STA
UA5 SAEFF
.sao
SIO $8092 S4E STY S4F JIP $ADBD
Pwr-f ..... CFNl
as
4F AO 02 8408 BI 4E 840D BS 47 a40F AA 8410 CB 8411 81 4E B413 FO 99 B415 as 4B 8417 CB B41B Bl 47 B409
83B3;
PHA
LOA S1B
Fix-float
B3EF B4 4F
B39E 839F B3A2 B3A4
LOA S47
B41A 49
841B BB 841C 10 FA B41E A4 4B 8420 20 D4 8B 8423 AS 78 8425 48
JSR SB3EI LOA S:4F
PHA LDA PHA JSR JSR PLA STA PLA STA LOY
S4E SAEFI SADBO S4E S4F
••02 LOA ($4£) t Y
5TA TAX INY LOA 8EQ STA INY LOA
S47 (S4E) tV
S8lAE S4B ($47) ,Y
PHIl
DEY
BPL $841B LDY S4B JSR SBBD. LDA $78 PHA
63
B42b AS 7A B42B 48 B42';1014E B42B 85 7A B42D C8 842E 81 4E 8430 9S 7D 8432 A5 48 8434 4B 8435 A5 47 8437 48 B438 20 SA AD B438 68 B43C 85 4E 843E 68 843F 85 4F 8441 20 79 00 8444 FO 03 9446 41: 08 AF 8449 68 944A 85 7A 844C 68 9440 B5 79
(S4El,Y S7A
LOA $48
8478 84 :51
STY .:51
PHA LOA $47
B47D 20 F4 84 B480 86 62 94B2 84 b3 8484 B5 61 8486 60
$62 STY S63 STA $61 RTS
PHA
JSR SADSA PLA STA S4E PLA
STA
$4F
JSR S0079 BEg $9449 JI1P SAF08
91 4E
STA (S4E),Y
PLA
1:8
lIlY STA (S4E),V
PLA
C8
lIlY
91 4E
STA ($4El,Y
68
PLA INY
C8
91 4E 68
C8 91 4E 60
STA ($4El, Y PLA
INY STA (S4El, V RTS
P..-for. CSTRSJ
84105;
0487 A2 22 B489 86 07 B489 86 08 B48D B5 6F B48F 84 70 B491 8S 102 B493 84. b3 B495 AO FF B497 C8 8498 01 6F B49A FO OC B49C C5 07 B49E FO 04 B4AO CS 08 B4A2 DO F3 B4A4
B4Ab 04A8 B4A9 B4AB B4AC 84AE 84BO 9482 9494
22
FO 01 18 84 101 98 105 6F B5 71 Ab 70 90 01 EB 86 72 A5 70 FO 04 C9 02 DO 09 98
A9 FF
LOA UFF
AO 00
LDY ••00
B4C3 Ab bF
FO 12
BEt! S04B7
84C5 A4
00
B4bA 20 DF BD
64
C~
LOY .SOO
JSR $BDDF
68
PLA
loB
PLA
JSR S84F4 STX
up .tring
8487 9489 948B 0490 B4BF B4CO 20 75 B4
8468 AO
04100 04bE 046F B471 9473
JSR SADBO
s.t
8487,
84B5 94b5 20 80 AD
Calculat. string vector
LDX S64 LOY Sb!? SIX SSO
68
68
8475,
B475 Ab M 9477 A4 65 0479 86 50
(S4El, Y $78
68
8456 91 4E
94SB B459 845A 845C 945D 845E 8460 94M 84b2 9464
PHA LOA STA IIIV LDA STA
PLA STA $7A PLA STA S79 LOY UOO PLA
B44F AO 00
8451 9452 84S4 9455
LDA $7A
70 04C7 20 88 Bb
LOX U22 STX $07 STl S08 STA S6F STY S70 STA Sb2 STY $b;5 LOY UFF
INY LDA (S6F),V BEQ $B4A8 01P S07 BEQ SB4A4 01P S08 BIlE S9497 Cr1P • •22-
BEQ S04A9 CLI:
STY TYA AOC STA LOX
$61
S6F S71 S70 BCC SB485
INX $72 LOA $70 BEQ S948F 01P .$02 BIlE $94CA TYA SIX
JSR $9475 LOX $/oF LOY $70 JSR SBb88
B4CA B4CC B4CE B4DO B402 B4D5 B407 B4D9 B40B B400 B4DF B4EI B4E3 B4ES B4E7 B4E9 B4EA 84EC B4EE B4EF B4FO B4FI B4F3
Ab EO DO A2 4C A5 95 AS 9S A5 95 AO B6 84 B4
ea B4 00 B6 17 EB EB EB B6 16 60
LDX CPX BNE LOX JttP LOA STA LOA STA LOA
SI6 1$22 SB40S HI9 SA437 S61 SOO,X S62 SOI,X S63
STA S02,X LOY STX STY STY DEY STY STX INX INX INX STX RTS
HOO S64 S65 S70 SOD SI7
Sib
.... k. roaa far string
B4F4; B4F4 B4Fb B4F7 B4F9 B4FA B4FC B4FE
16 22 OS 19 37 A4 61 00 62 01 63 02 00 64 bS 70
46 4B 49 3D 65 A4 DO
B500
ea
8501 8503 BS05 B507 B:509 B:50B BSOO B50F 8511 8513 8514 BSI5 85lb BSIB 85IA B:iIC BSIF
C4 90 DO C:5 90 85 B4 85 84 AA b8 60 A2 AS 30 20 A9
OF
LSR $OF
FF
EOR ISFF SEC AD!: S33 LDY $34 BeS SB:501 DEY CPY S32 OCC SBSI6 BNE SBSOB CttP S31 BeC S8516 STA S33 STY S34 STA S35 STY S36 TAX PLA RTS LOX 11$10 LOA SOF BIll S8402 JSR SB526 LDAISSO
PHA 33 34 01 32 11
04 31 OB 33 34 35 36
10 OF B6 26 SO
as
B:i21 85 OF B:i23 b8 8524 DO DO
9526; 8526 Ab B52B AS BS2A B6 BS2C BS BS2E AO BS30 B4 BS32 84 BS34 AS 8536 Ab BS3D 85 BS3A B6 BS3C A9 BS3E A2 BS40 BS 8542 B6 8544 C5 BS46 FO BS4B 20 BS4B FO 854D A'1 BS4F BS 9551 AS BSS3 Ab 8:5:5:5BS BSS7 B6 8559 E4 BSSB DO BSSD C:5 B5SF FO 8561 20 BS64 FO 8566 85 BS68 B6 BS6A A9 BSbC 85 BS6E AS 8570 Ab 8572 E4 BS74 DO 8576 CS 857B DO 857A 4C 8570 B5 857F B6 B:iB1 AO
STA $OF PLA ONE SB4F6
s.rb.ag_ coll.ction 37 3D 33 34 00 4F 4E 31 32 SF 60 19 00 22 23 16 0:5 C7 BS F7 07 53 20 2E 22 23 30 04 2F 05 BO 85 F3 58 59 03 53 58 59 32 07 31 03 06 B6 22 23 00
LDX LOA STX STA LDY STY STY LOA LOX STA STX LDA LDX STA STX CttP BEQ JSR BEll LDA STA LOA LDX STA STX CPX ONE CttP BEQ JSR BEll STA STX LDA STA LOA LOX CPX BNE
C/'1P BNE JttP STA STX LOY
S37 $3B
S33 S34 ISOO S4F S4E S31 S32 SSF S60 1S19 I$()() S22 $23 Sib SBS40 SBSC7 S8544 1$07 S53 S20 S2E S22 $23 S30 SBS61 S2F S8:566 SBSBO SBSS9 $S8
S:;9 H03 $S3 S58 $59 S32 SBS70 S31 $B57D SB606 $22 S23 HOO
65
BS83 BS85 B5Bb B5B7 BS89 B58A B58B B5BD BS8F 8591 8592 8594 BS9b 8598 8599 859B 859C 859E B59F
BSAI B5A3 B5A4 85Ab BSAB
Bl 22 AA CB BI" 22 08 C8 Bl 22 b5 SB BS 58 CB Bl 22 65 S9 B5 59 2B 10 D3 BA 30 DO CB 81 22 AO 00 OA 69 OS b5 22 BS 22
BSAA 90 02 BSAC Eb 23
LDA ($22), Y TAX
INY LDA ($22) ,V
PHP INY LOA ($22) 1 Y AOC S5B STA S5B
INY LDA ($22), Y
ADC "59 STA S59 PLP BPL $B56E TXA BI11 SB56E
INV LOA (S22) , V
LDV
ASL
noo
AOC nos AOC S22 STA $22 BCC SBSAE INC $23
gSA!:: Ab 23
LOX S23
85BO B5B2 85B4 8580 85BB
CPX S59 BNE SB5B8 CtI' $5B BEl;! SB572 JSR SB5C7 BEl;! SBSBO
E4 DO C5 FO 20 B5BB FO
B5BDj
59 04 SB SA C7 85 F3
Check -..1 v~Abi 1 i ty
BSBD 81 22
BSBF 30 35 BSCI CB BSC2 Bl 22 BSC4 10 30 ascb C8 BSC7 81 22 B5C9 FO 2B BSCB CB B5CC Bl 22 BSCE AA B5CF C8 85DO Bl 22 B5D2 CS 34 B5D4 90 06
66
LDA ($22) 1 Y BI11 SBSF6
INV LOA (S22) , Y BPL $BSF6
INY LDA
($22), Y
BEl;! SBSFb
INV LOA (S22) , Y TAX
INV LDA (S221,V CHP S34 SBSOC
ace
B5Db 85DB 85DA 850C 85DE
DO E4 BO CS 90 BSEO DO
IE 33 lA 60 16 04
B5E2 E4 SF BSE4 90 10 B5Eb 80 SF BSEB as 60 BSEA AS 22 85EC Ab 23 BSEE B5 4E BSFO Bb 4F 85F2 AS 53 BSF4 85 55 B5Fb AS 53 BSFB 18 B5F9 65 22 BSFB as 22 BSFD 90 02 BSFF Eb 23 8601 Ab 23 8603 AO 00 B60S 60
8606; 860b 8008 800A B60C 860E 8010 8611 8012 8014 B616 86IB 80IA B61C 80lE 8020
8022 8024 8626 802B 862B 862D B62E 8030
8NE SB5F6 CPX S33 BCS SB5F6 CHP S60 Bce SB5F6 BNE S85E6 CPX SSF BCC S8SF6 STX SSF STA S60 LDA S22 LDX S23 STA $4E STX S4F LOA S53 STA SS5 LDA S53 CLC ADC $22 STA S22 Bce S8601 INC $23 LDX S23 LDV *SOO RTS
Collect string AS OS FO AS 29 4A AS
4F 4E FS 55 04
as 55 Bl 4E 65 SF as SA AS 60 69 00 as 5B AS 33 Ab 34 BS 58 B6 59 20 BF A3 A4 SS C8 AS 58 91 4E
LDA S4F ORA S4E 8EI;! S8601 LOA SSS AND ..,04 LSR TAV STA SSS LDA (nE) , V ADC SSF STA ·S5A LDA S60 AOC .$00 STA SSB LDA S33 LDX S34 STA srx S59
sse
JSR SA3BF LDY $SS
INY LDA STA
sse ($4E), Y
Bb32 Bb33 B635 B637 Bb3B Bb3A
AA E6 AS CB 91 4C
Bb3D;
S9 S9 4E 2A 85
Concatena'te
8b3D AS bS Bb3F 4B Bb40 AS b4 8642 48
8643 B64b 8649 864A B64C 864D 864F B6S1 8653 B6S4 86S6 86SB 865A 86SD 86bO
B663 8665 8667 B6bA 86bD B66F 8671 8674 8677 867A;
20 20 bB as bB as AO 81 IB 71 90 A2 4C 20 20 AS A4 20 20 A5 A4 20 20 4C
B3 AE BF AD bF 70 00 bF
LOA $bS PHA LDA $64 PHIl JSR $AEB3 JSR $ADBF PLA STA $bF PLA STA $70 LDY.sOO LDA ($6F),Y
CLC 64
ADC ($b4),Y
OS
BCC LOX JPlP JSR JSR LDA LDY JSR JSR LDA LDY JSR JSR JIiP
17 37 7S 7A SO SI All 8C bF 70 All CA B8
A4 84 86 86 86 86 84 AD
$BbSD UI7 SA437 $B47S $Bb7A $SO $SI $B6AA $B6BC $6F $70 $B6AA $B4CA $ADOO
Build string to ...cry
8b7A AO 00
Bb7C Bb7E B67F BbBO 86B2 8683 BbB4 86Bb BbB7
TAX INC $S9 LDA $:59 INY STA ($4E) , Y JIiP $BS2A
Bl bF 4B CB BI OF All CB BI bF AB bB
LOY UOO LOA <SbFl ,Y PHA INY LDA ($bF) I Y TAX INY LOA ($OF) I Y TAY PLA
9b99 86 22
B68A 86BC 868D B6BF 8690 8691 8693 869S 8696 B69B 8699 Bb9A 869C 869E BbAO B6A2
B4 AB FO 4B DB 81 91 9B DO bB IB 6S BS 90 Eb 60
23 OA
STX ~22 STY $23 TAY BEg $8699 PHA DEY
22 3S FB 3S 3S 02 36
LDA STA TYA ONE PLA CLC ADC STA Bce INC RTS
($22)
I
Y
($35)
I
Y
$8690 $3S $3S $BbA2 $36
BbA3; Disc&rd un...,ted string B6A3 20 BF AD B6A6 AS 64 86AB A4 6S B6AA as 22 86AC B4 23 B6AE 20 DB 86 86BI OS 86B2 AO 00 BbB4 BI 22 8686 4B 86B7 CB 86B8BI22 BbBA All 86BB CB BbBC Bl 22 86BE AB 86BF bB 86CO 2B BbCl DO 13 BbC3 C" 34 BbC5 DO OF BbC7 H -33 BbC9 DO OB B6CB 4B B6CC IB
JSR SADBF LDA $b4
LOY STA STY JSR
$65 $22 $23 .B6DB
PHI'
LOY 1$00 LDA
($22)
INY LOA ($22) ,Y TAX INY LOA ($22) ,V TAY PLA
PLP $86Db CPY $34 lINE $86Db CPX $33 BNE $86D6 PHA CLC ONE
BbeD b5 33
ADC $33
B6CF B6DI 86D3 Bb05 86D6
5TA $33 sec $B6D5 INC $34
B5 90 E6 bB B6
33 02 34
,Y
PHA
PLA
22
5TX $22
67
BbD8 84 23 BbDA bO
C1e.n d.scriptar .tAck
B6DB;
BbDB 8000 BbDF 80EI BbE3 BbES 8OE7 BbE9 BbEB
C4 IB DO OC CS 17
DO OB BS II. PI 03 as 17 AO 00 1.0
BbEC;
BbEF SA
BbFO BbFI 8OF3 BbFb BbF7 BbF9
4B A'I 20 loB AO 91 BbFB bB BbFC loB BbFD 4C
PHA
01 7D B4 00 1.2
I:A B4
LOA JSR PLA LDY STA PLA PLA JI1P
20 1.1 B7 01 50 '1B 90 04 BI 50 AA
11$01 SB47D ISOO (Sb2),V SB4CA
'IB
4B BA 4B 20 AS A4 20 bB AS bB IB
JSR $B7bl eMP ($SO), Y
TVA Bel: SB701: LDA
B71D B71F B721 B723 B725 B72b B729
OS B5 90 Eb 9B 20 4C
8721:; B721: B72F B730 B732 B734 8737;
JSR SB7AI TXA
Per-for. [LEFTS]
B700;
68
CPV SIB BNE SBbEB CI'IP SI7 BNE SBbEB STA Sib SBe 1$03 STA SI7 LDV 11$00 RTS
P.,-for. [CIflS]
BbEC 20 AI B7
B700 B703 B705 B70b B70B 870A B70B B70C B70D B70E B70F 8712 8714 B7Ib 8719 871A B71B B71C
STY $23 RTS
($SO) tV
TAX TYA
B737 B739 B73B B73E B740 B742 B745 B749 B74B B74D B74E B74F B7S0 B151 B753 B755 B757 B75'1 B75B B15D B75F
22 22 02 23 8C 80 CA B4
ADC S22 STA $22 ace SB725 INC $23 TVA JSR S80BC JI1P SB4CA
P.... for. [RII3HTS]
20 1.1 B7 lB Fl 50 49 FF 4C Ob B7
JSR SB7b1 CLI: SBe (S50) , Y EOR lISFF JMP SS70b
Perfor. ["IllS]
A'I B:5 20 C9 FO 20 20 20 FO CA 9A 49 19 A2 FI SO 4'1 C5 90 AS SO
FF OS 7'1 29 01. FO 'IE 1.1 4B
00
LDA UFF STA SOS JSR S007'1 CIP 1$29
AE B7 B7
BEQ JSR JSR JSR BEQ DEX TXA
SB74B SAEFO SB79E SB7bl SB7'1B
PHA
00 50 80 FF loS BI OS AD
eLC LOX sec IICS EOR CI1P IICC LDA BCS
1$00 ($50), V
SB70D UFF Sb5 SB70E $OS
SB70E
PHA
TXA PHA
7D B4 50 51 AA 80
JSR LDA LOY JSR PLA
TAY PLA CLI:
B761; SB47D S50 S:51 S80AA
871.1 87M 871.5 B7bb 871.7 B7b9 B7bA
Pull string par_ters 20 F7 AE bB AS bB as 55 bB loB
JSR SAEF7 PLA
TAY PLA
STA S55 PLA PLA
B7bB B7bC B7bO B7bE B770 8771
PLA TAX
bB
AA bB
PLA
B5 bB
50
85 51 B773 AS SS 8775 4B B77b 98 B777 4B B77B AD 00 B77A SA B77B 1.0 B77C;
P...-for-.
B77C 20 B2 B7 B77F 4C A2 B3 8782;
STA $SO PLA STA .51 LOA $SS PHA
TYA
PHA LOY .$00 TXA RTS [LEN]
J5R .B7B2 JI1P .B3A2
Exi t. st,.ing-.:xt.
8,7B2 20 A3 Db B7B5 A2 00 B7B7 Bb 00 B7B9 AB B7BA bO
J5R .BbA3 LOX ..00 STX SOD TAY RTS
B7BB 20 B2 87
J5R $B7B2
B78E FO 08
BEQ .B799 LOY •• 00
B790 AD B792 81 B794 AB B79S 4C B799 4C
B79B B79E B7Al B7M B7Ab B7Aa B7M
00 22
20 B2 B7
DO 03
4C F7 BB Ab 7A A4 7B Db 71
B4 72 AI. 22 81. 7A 18 1.5 22 85 24 AI. 23 Db 7B 87CA 90 01 B7CC E8
LOA (S2.2) \ If
J5R .B782 BNE .87DS JP1P $B8F7 LOX $7A LOY $78 STX $71 STY .77. LOX $22 STX $7A I:LC ADC '22 STA $24 LDX .23 STX .7B BCC S87CD INX
B7eD 8b 2S
STX $25
B7CF B701 B703 B704 B705 B707 B70A B70D
LOY 1$00 LOA (S24),Y
AD 00
Bl 24 48 98 91 24 20 79 00 20 F3 DC
bB B7DE AD
P.... fcr. [ASe)
878B;
B7AD B780 87B2 87BS 87B7 8789 87BB B7BD B78F 871:1 B7C2 871:4 B7Cb B7CB
BlEO B7E2 B7E4 BlEb BlEB B7EA
91 Ab A4 Db
B4 60
PHA
TYA STA (S24l,V
J5R S007'1 JSR $BCF3 PLA
00 24 71 72 7A 7B
LOY . .OO STA (S24),Y LOX $71 LOYS72 STX .7A STY .78 RTS
8A AD
JSR JSR JSR JI1P
TAY A2 B3 4B B2
20 73 00 20 SA AD 20 BB Bl
AI. 1.4 DO FO Ab 1.5 4C 79 00
JIP 'B3A2
JI1P .8248
J5R JSR J5R LOX BNE LOX JI1P
'0073
87EB 87EE 87Fl B7F4
20
20 F7 87 20 FD AE
4C 'IE B7
SAD8A .87F7 SAEJ'D
SB7'1E
SADBA
.B1BB '04
'B798 '1.5 '0079
87F7,
Float-fixlld
B7F7 AS 1.1. B7F'I 30 '10 87F8 AS 1.1 B7FO C9 91
LOA '06 BI11 S8799
LDA$bl D1P 1$91
69
B7FF BaOI Ba04 8806
97 9B 64 65 B80a 84- 14 880A B5 15 BBOC 60
BBOD; 8800 880F BaIO 8812 BB13 8816 BaIB BSIA BBIB BaIC BalE 88IF 8821
8824; Ba24 8827 B82B Ba2A 882C
Ba2D1
BO 20 AS A4
ac
P.... for. AS 4B A5 48 20 AO BI AS bB B5 bB B5 4C
BCS JSR LOA LOY STY STA RTS
SB798 SBC9B $b4 $14 SI5
[P£EI(]
15
L.DA SI5
14
PHA LDA $14
F7 B7
JSR $B7F7
00 14
LOY ISOO LOA ($14) ,Y TAY PLA STA $14
PHA
14
STA SIS JI1P SB3A2
L.DA 1$11 LOY #$BF Jt1P S8867
Subtract.-frc.
11850;
IlB50 20 BC BA
JSR $BABe
Pw'far. [subtract]
B953 AS BII5!5 49 BB57 B5 Ba59 45 Ba5B B5 BB5D AS BBSF 4C 88b2 20 BBb5 90 BBb7 20
bb FF 66 bE OF 61 6A Ba 99 89 3C BC BA
LOA $bb EOR .$FF STA$bb EOR SbE STA SbF LOA $bl JI1P $BBbA JSR S8999 acc SBBA3 JSR $BABe
Perf.".. [PD<E] 20 ED B7 BA AO 00 91 14 bO
JSR SB7EB TXA LDYISOO STA ($14) ,Y RTS
P."..for. [II/Un
Ba20 20 ED B7
JSR SB7EB
S630 8b 49
STX *49
Ba32 A2 00 BB34 20 79 00 Ba37 FO 03 8B39 20 FI B7 883C 8b 4A Ba3E AO 00 Ba40 BI 14 8842 45 4A Ba44 25 49 B84b FO F8 Ba48 60
LDX J5R BEg JSR STX LOY LOA EOR AND BEg RTS
70
8849 A9 11 1l1l41l AO IlF Ba40 4C 67 88
BBS31
PLA 15 A2 B3
Add 0.5
_91
$b5
"00 $0079 SB83C SB7Fl S4A 1$00 ($14) ,V S4A $49 S8840
_I
P .... fcr. [add]
_
DO 03
BBbC BBbF 8871 8873 Ba75 BB77 887B Ba7A
4C Ab 8b A2 AS AS FO 3D
FC BB 70 56 69 69 CE
8878 ES 61
BB70 887F BBBI BBB3 BB85 8887 BBB9 BBBB BBBD 88eF Ba91 8893
FO 90 84 A4 84 49 69 AO 84 A2 DO AO
24 12 61 bE bb FF 00 00 56 bl
04 00
BNE Jt1P LOX STX LOX LOA TAY BEg SEC
sac
SBBbF SBBFC S70 $5b . .b9 $b9 SBa4B
$61 BEg SBBA3 BCC SBB93 STY $61 LOY $bE STY $bb EOR ISFF AOC .$00 LDYISOO STY $56 LDX Hbl BNE $Ba97 LOY 1$00
B89S 8897 llB99 1lB98 889C B89E BBAO 1lBA3 BBAS B8A7 BBA9 B8AB B8AD B8AF 88BO 88B2 8884 88Bb 8889 88BB 88BD BBCO BBC2 B8C4 B8C7 B8C9 B8C1l 88CE 88DO 8802 BBD4 88D7 88D9 880A BBDB BBDD 88llF BBEI BBE3 88ES BBE7 88E9 BBEll BBED
B4 C9 30 AB AS 56 2D 24 10 AO EO FO AO 3B 49 loS B5 89 F5 as B9 F5 BS 89 F5 B5 B9 F5 B5 BO 20 AO 98 18 AI> DO AI> Bb Ab Bb AI. Bb Ab Bb
70 F9 C7
70 01 BO 89 bF 57 61 109 02 109 FF 56 70 04 04 105 03 03 b4 02 02 /03 0I 01 62 03 47 00
102 4A 103 102 /04 /03 105 104 70 65
BBEF B4 70
88Ft BBF3 BBFS BBF7 BBF9 BBFB BBFD
109 C9 DO A9 BS as 100
STY $70 CI1P _ 9 1ll1I $BB62 TAY
08 20 E4 00 101 106
LDA $70
LSR JSR BIT BPL LOY CPX BEQ LOY SEC EOR AIlC STA
$OI,X $B980 $bF $88FE l$lol 1$109 $B8AF .$109 HFF $56 $70
00
LDA $OOO4,Y
00
SBC $04,X STA $65 LOA $OOO3,Y
SBC S03,X 00
00
89
STA LOA SBC STA LOA SBC STA BCS JSR LDY TYA CLC LOX BNE LOX STX LOX STX LOX STX LOX STX STY AIlC CI1P BNE LOA STA STA RTS
$104 $0002, Y $02,X $/03 $0001, Y SOl,X $lo2 $88D7 S8947 ."00
$lo2 S8929 $b3
$lo2 $/04 $lo3 SbS S/04 $70 $loS
$70 HOB U20 S88DB
1.00 Sbl $106
88FE B900 8902 8904 B9010 8908 B90A B90C 1l9OE 8910 8912 8914 89110 8918
65 as AS loS B5 AS 6S B5 AS 105 as AS 105 BS
S6 70 65 100 105 b4 be 64 63 loB 103 102 6A 102
AIlC$S6 STA $70 LDA $65 AIlC $100 STA $65 LOA$b4 ADC $6C STA $104 LOA $b3 AIlC SloB STA $b3 LOA $lo2 ADC $6A STA $102
B'11A 4C 36 69
JI1P :$0936
89IP 89IF 8921 8923
ADC ASL ROL ROL ROL ROL BPL SEC SBC BCS EDR AIlC STA Bee INC BEg
B'n5 B927 8929 BnD B92C B92E 8930 B932 9934 893b 8938 893A 893C B93E 8940 8942 8944 B9410
109 06 210 210 26 26 10 38 ES BO 49 109 BS 90 Eb FO lob lob lob 106 lob bO
8947; 8947 8949 894B 894D 894F B951 8953 995S 8957 8959 895B
AS 49 85 AS 49 as AS 49 B5 AS 49
01 70 65 104 /03 62 F2 101 C7 FF 01 bt OE 101 42 102 63 b4 105
70
RIJR ROR ROR RDR ROR RTS
~I.-nt
lob FF lob 102 FF 102 103 FF 103 b4 FF
.$01 $70 $105 $b4 $b3
$lo2 $8910 $101 $BBF7 .SFF 11$01 $lol $89410 $lol $897E $lo2 $lo3 $b4 $loS $70
FACti
LOA $lob EOR HFF STA $Iob LOA$lo2 EOR UFF STA $102 LOA SIo3 EOR UFF STA $103 LOA $/04 EOR II$FF
71
89S0 B5 64
STA $64
89SF AS OS
LOA $65
B961 8963 896S 8967 B969 8968 B960 B9bF 8971 8973 8975 8977 B979 8978 B970
49
FF
as
EDA UFF
65
A5 49 BS E6 DO E6 DO E6 DO E6 DO E6 bO
70
STA S65 LOA $70
FF
EOR 'SFF
70 70 OE 6S OA 64 06 63 02 62
STA S70 INC S70 BNE S8970 It«: S65 BNE SB970 INC S64 B~ SB970 INC $63 BIlE SB970 INC $62 RTS
897E A2 OF B980 4C 37 A4
89B3; B9B3 B9B5 8987 B9B9
LOX 'SOF JI'1P SA437
llultipl y by z..-o byte A2 B4 84 B4
25 04 70 03
LOX LOY STY LOY
IIS25 S04,X S70 $03,X
B98B 94 04
STY $04, X
89BO B98F B991 8993 B995 8997 B999 899B B990 899F B9AI 89A2 B9M B9A6
LDY STY LOY STY LOY STY AOC BtH BEg
B4 94 B4 94 A4 94 69 30 FO E9 AS A5 BO 16
02 03 01 02 68 01 08 EB E6 OS
sse
$02,X S03,X SOl,X $02, X S68 SOI,X UOB SB9B5 S8985 U08
70 14 01
TAY LOA S70 BCS SB9BA ASL SOI,X
89AB 90 02
Bce SS9AC
89M B9AC 89AE 89BO 89B2
INC SOI,X ROO SOl,X ROR SOI,I
72
F6 76 76 76 76
01 01 01 02 03
ROR $02,X ROR $03,X
B9B4 89Bb 89B7 89B8 89BA 89BB B9BC 89BE B9BF B9C0 B9C1 B9C2 89C3 B9C6 B9C9 89CA B9CB B9CC B9CO B9CF B9DO 89D2 8903 8904 B9D5 B90B B909 890A 890B B"OO 890E 89DF 89£0 B9EI B9E2 B9E3 B9E4 B9E5 89E6 B9EB B9E9
76 bA C8 DO IB 60 81 00 00 00 03 7F 5E 79 98 OB 64 BO 76 93 16 3D AA 3D 20 04 F3 34 BI 04 F3 34 BO eo 00 00 00 BO 31 17 FB
89EA; B9EA B9EO B9EF 89F1 89F4 89F6 89FB
04
EC
00
RDA $04,X RCR INY ONE S89A6 CLC RTS STA (SOO,X) BRK
BRK
56 CB eo 13
3B B2
BRK ??? ??? LSR SCBSb,X ADC SI3BO,Y ??? ??? ??? ???
ROR $38,1 ??? ASL S82,X
SEC eo 35
TAX ??? JSR S3580
??? ??? ??? 35
STA (S35,X) ???
??? ??? ??? ??? BRK BRK BRK
777 72
AND (S72),Y ??? SED
P.,-for. [LOOl 20 FO 10 4C A5 E9 4B
2B BC 02 03 4B B2 61 7F
JSR SBC2B BEg SB9FI BPL S89F4 JMP SB24B
LDA S61 SBC tlS7F
PHA
B9F9 B9FB B9FD B9FF BAOI BA04 BA06 BAOB BAOB BAOD BAOF BAI2 BAI4 BAI6 BAI9 BAIB BAlD BA20 BA21 BA24 BA26 BA28
A9 as A9 AO 20 A9 AO 20 A9 AO 20 A9 AO 20 A9 AO 20 6B 20 A9 AO 20
t.I D6 89 67 88 DB 89 OF BB
Be 89 SO 88 CI B9 43 EO EO B'1 67 88 7E BD ES 89 Be BA
LOA STA LOA LDY JSR LDA LDY JSR LOA LDY JSR LDA LDY JSR LDA LDY JSR PLA JSR LDA LDY JSR
_0 S61 1$06 HB9 $B867 HOB 1$89 SBBOF HBC 1$89 $8850 I$CI IS89 SE043 ISEO .S8'1 $8867 $B07E UE5 HB'I SBABC
Perfor. [_ltip1yl
BA28; BA2B BA2D BA30 BA33 BA3S BA37 BA39 BA3B BA3D BA3F BA42 BA44 BA47 BA49 BA4C BA4E BASI BAS3 BAS6
80
DO 4C 20 A9 as B5 as 85 AS 20 A5 20 AS 20 AS 20 AS 20 4C
BA59;
03 BB B7 00 26 27 2B 29 70 59 65 59 64 59 63 59 62 SE SF
BA BA
BA BA BA BA BA BB
BNE JP1P JSR LDA STA STA STA STA LOA JSR LDA JSR LDA JSR LOA JSR LDA JSR JI1P
SBA30 SBABB SBAD7 1$00 $26 S27 S28 S29 S70 SBAS'1 S6S SBAS9 $64 SBAS9 S63 SBAS9 $62 SBASE SBB8F
""1 tip1 y-.-b! t
BAS9 DO 03 BASB 4C 83 B9 BASE 4A
BNE SBA5E JP1P SB983 LSR
BASF BA61 BA62 BA64 BA6S BA67 BA69 BA6B BA6D BA6F BA71 BA73 BA7S BA77 BA79 BA7B
09 AB 90 IB AS 6S as AS 65 as AS 6S B5 AS 65 as
BO 19 29 6D 29 28 6C 28 27 6B 27 26 6A 26
BA7D 66 26
BA7F BABI BAB3 BASS BAB7 BAB8 BAB'i BABB
66 66 66 66 98 4A DO 60
27 28 29 70
D6
ORA ISBO TAY Bec SBA7D CLC LDA $29 ACe S6D STA $29 LOA S28 ADC $6C STA $28 LOAS27 ADC $6B STA S27 LDA S26 ADC S6A STA S26 ROO $26 ROR S27 ROR $2B ROR $29 ROR S70 TVA LSR BtE $BA61 RTS
.....,..y to FAC.2
BAllCI BABC BABE BA90 BA92
as B4 AO BI
22 23 04 22
STA $22 STY S23 LDVU04 LOA (S22) , Y
BA94
as
60
STA S6D
BA96 BA97 BA99 BA9B BA9C BA9E BAAO BAAl BAA3 BAAS BAA7 BAA'1 BAAB BAAD 8AAF BA80 BAB2 BAB4
88 Bl as B8 Bl BS B8 BI as 4S as AS 09 as 89 Bl BS AS
22 6C
LOA (S22), Y
DEY
22 6B 22 6E 66 6F 6E 80 6A 22 b'l
61
STA $6C DEV
LDA ($22),V STA DEY LDA STA EOR STA LOA ORA STA DEY LOA STA LOA
S6B (S22) , Y S6E $66 S6F S6E IS80 S6A (S22) , V S69 $61
73
BABb bO
BAB7; BAB7 BAB9 BABB BABe BABE BACO BAC2 BAC3 BAC6 SACB BACA BACC BACF BADI BAD3
BAD41 BAD4 BAD6 BADB BADA BADB BADC BADF
BAE2;
RTS
Adjust FAClI/12 A5 69 FO IF IB b5 61 90 04 30 ID 18 2C 10 14 69 BO B5 61 DO 03 4C FB 98 AS bF BS. 66 60
AS 49 30 6B b8 4C 4C
bb FF OS
74
ADC$b1
!ICC $SAC4 Bill SBADF
CLC BIT ADC STA 9NE JIIP LDA STA RTS
$1410 1$80 $61 .BACF .BBFB
LDA .66
EOR HFF 811]
.BADF
JIIP .OOF7 Jill' .997E
llultiply by 10
10
JSR 'DCOC TAX BEll .SAFB
CLC 02 F2 00 6F 77 98 61 E7
Divide by 10
SAFE OBOI BB03 BD05 BB07 BB09 OBOC BBOF
20 A9 AO A2 8b 20 4C 20
OC F9 BA 00 bF A2 12 SC
BBI2 0014 OBI7 BOl9 BBIA BBIC OOIE 0B21 0023 BB25 BB27 BB29 BB2B BB2D OB2F BB31 BB33 BB35 B937 BB39 BB3B 0B3D BB3F BB40 0041 BB43 8844 BB4b
FO 20 A9 38 ES BS 20 E6 FO A2 A9 A4 C4 DO A4 C4 DO A4 C4 DO A4 C4 OS 2A 90 EB 'IS FO
7b
Be
BB BB BA
JSR .BCOC LOA UF9 LDY"BA LDX 1$00 STX .6F JSR $BBA2 JIIP .BOI2 JSR $BABC
10 DC 00
BEll .BBBA J5R .BeIO LDA "00
$b6
PLA
OC Be
BRK
$bF
PLA F7 98 7E 99
SAFEI
BRK BRK
CLC
Und.rflDM/ovarflDM
BAE2 20 BAES AA BAEb FO BAEB IB BAE9 69 BAEB BO BAED A2 BAEF 8b BAFI 20 BAF4 E6 OAFb FO OAFS bO
8AF9;
LDA $69 BEQ $BADA
STY $20
SAF9 B4 20 BAFB 00 SAFC 00 SAFD 00
ADC "02 BCS $BAOF LDX "00 STX $6F JSR .BB77 INC .61 BEQ $BADF RTS
+ 10 in +loating pt.
SEC 61 61 B7 BA 61 BA FC 01 bA 62 10 6B
b3 OA 6C 64 04 6D b5
SBe$b1 STA $bl JBR .9AB7 INC 'bl BEll .BADF LDX I$FC LDA 1$01 LDY$bA CPY $b2 Bf£ $BB3F LDY $bB CPY $b3 ONE $BB3F LDY $6e CPY $b4 BNE $BB3F LDY $60 CPY $bS
PIlI'
RDL 09
BeC $BB4C INX
29 32
STA S29,X
BB48 10 34
BPL SBB7E
BB4A A9 01 BB4C 2B 004D DO OE
PLP
BEQ $BB7A LOA 1$01 BCS $BBSD
BB4F Ob 60 BB51 26 6C
B9M 85 b5 8SAC BB BBAD BI 22
BBbA A5 6B BB6C ES 63
A5L $60 ROL $OC ROL $OB ROL $6A BCS S8B3F BI11 SBB2'1 BPL SBB3F TAY LDA S6D SBC so:; STA $OD LDA SOC SBC $04 STA S6C LDA $OB SBC $63
BBbE
STA .68
BBCb 1.0
BB53 BBSS BB57 BB59 BB5B BB50 BBSE
bB
21. 21.
bA BO E6 30 CE 10 E2
AS A5 60 BBbO £5 65 BB62 85 1.0 BBb4 A5 6C BBbb E5 b4 BBbB 85 6C
as be
BB70 A5 bA BB72 E5 1.2
BB74 BB76 BB77 BB7A BB7C BB7E
85 bA 98 4C 4F BB A9 40 DO CE OA
LDA $bA SBC S62 STA S6A TYA JI'P S884F LDA .S40 BNE S8B4C ASL ASL ASL
BB7F OA BBBO OA BB81 OA
ASL ASL ASL
BB82 OA BBB3 OA BBB4 85
70
STA $10
BBSb 28
PLP
BB87 4C BF BB BBBA A2 14 BBSC 4C 37 A4
JI'P
BB8F A5 21. 8891 85 BB93 A5 BB95 85
BB97 BB99 BB9B BB90
AS B5 AS 85 BB9F 4C BBA2;
62 27 63 28 64 2'1 6:5 07 BB
SBBBF
LDX .S14
89Ab AO 04
8BAB 81 22
8BBI BB 8882 81 22 BBB4 85 1.3
LDA
($22) t Y
STA $63 DEY
85 1.1.
LDA ($22). Y STA Sbb
BB
STA Sb2 DEY
Bl 22 09 so 85 62
Bl 22 85 bl B4 70
ORA HBO
LDA
($22)
BBC7 A2 :;c
LDX es:;c
BBC9 2C A2 57 BBCC AO 00 8BCE FO 04 BBDO Ab 49 BBD2 A4 4A
BIT $S7A2
BBD4 BBD7 BB09 BBDB BBDD BBDF
20 IB BC
LDY"OO BEll SBB04 LDX S49 LDY $4A JSR SBCIB
Db 22
STX $22
84 23 AO 04 AS 1.5 91 22
STY $23
BBEI BB
8BEB BB BBEC A5 Ob BBEE 09 7F B8FO 2S 1.2
BBE4 91 22 8BEb BB BBE7 AS 63 BBE9 91 22
BBF2 91 22 BBF4 BB BBF5 AS 1.1 B8F7 91 22 BBF9 B4 70 BBFB
BBFC;
1
Y
STA Sbl STY S70 RTS
FACet to _ .... y
88C7;
LOA S2B
STA S22 STY S23 LOY "04 LOA ($22). Y
(S22). Y STA S64 DEY
LOA
BBB7 BBB9 8BB8 BBBD BBBF BBCO BBC2 8BC4
BBE2 A5 b4
STA Sb4 LDA S2'1 STA SbS JI1P S8807
$b:5
BBBb BB
SA437 LDA S26 STA $02 LOA S27 STA S63 JI'P
" - r y to FACe!
BBA2 85 22 8BA4 84 23
8 _ 85 1.4
STA DEY
co
LDY 1$04 SbS STA ($22). Y DEY LDA S64 STA (S22) , Y LOA
DEY LOA Sb3 STA (S22). Y DEY LOA SOb
ORA .S7F AND S62 STA ($12). Y DEY LOA Sbl STA ($22) tV
STY S70 RTS
FAClI2 to FACeI
75
BBFC BBFE BCoo OC02 BC04 BC06 BC07 BC09
AS I.E BS 66 A2 OS BS 68 95 60 CA DO F9 B6 70
LDA STA LDX LDA STA
S6E S66 n05 S68,X S60,X
DEX BNE SBC02 STX $70 RTS
BeaB bO
to
BCOC;
FACII
BCOC BCOF OCl1 BC13 BC15 BC16 OCIB BCll1
20 lB OC A2 06 B5 60 95 68
ROL LDA 1$00
as 6S
STA s6S
B:; 64 B6 61 B5 70 B:; 66 4C D2 DB
STA STX STA STA
JSR SBCIB
BC58;
LDA $60,X
BC58 46 66
LSR $66
STA :$b8,X
BC5A
RTS
DO F9 B6 70
BNE SBCll STX $10 RTS
Round FACII
61 FB 70 F7 6F B9 DO F2 BC2B 4C 3D B9
BC2B; BC2B BC2D OC2F OC31 BC32 BC34
AS FO 06 90 20
61 09 66
FF DO 02
BC36 A9 01
BC3B 60
BC39;
LOA BEQ ASL Bec
.$61 SBCIA S70 SOCIA JSR SB96F ONE SBCIA JI1P sB93D
Set si gn AS FO AS 2A A9
LOA S61 BEQ SOC3B
LDAS66 RIlL LDA ISFF BCS sBC3D LDA .SOI RTS
P.... for. [561,;]
60
Co.pare FACet to _ .
BCSB;
BC5B as 24 BC5D B4 25 BCSF AO 00 BC63 BC64 BC65 BC67 BC69 BC6B BC6D
BCbF BC71 OC73 BC75 BC77 OC79 BC7A
AA FO BI 45 30 E4 DO BI 09 CS
C4 24 66 C2 61 21 24 BO 62 DO 19 CB BI 24
BC7E DO 12 BCDO CB BCBI BCB3 BCB5 OCB7 BCBB BCBA
BC39 20 2B BC
JSR sBC2B
BCBC
5TA S62 LDA 1$00 STA s63
BCBE
76
CB
BC7C CS b3
BC3C as 62
BC3E A9 00 BC40 as 63
$64 s61 $70 s66 JI1P SBBD2
Perfcr. [ABS]
BC61 B1 24
OCIB OCID BC1F BC21 OC23 BC26
EIlR I$FF
49 FF 2A A9 00
LDX ••06
DEX
OC1B;
BC46 BC4B BC49 BC4B BC4D BC4F BCSI BC53 BC55
LDX _ LDA $62
FACI2
CA
60
BC42 A2 BB BC44 AS 62
BC90 BC92
BI CS 00 CB A9 CS Bl ES FO A5
24 64 OB 7F 70 24
6S
2B 66
STA STY LDY LDA IHY TAX BEQ LOA
EOR BI1I
CPX BNE LDA
s24
S2S 1$00 C$24} , V
sBC2B (S24) , Y S66 sBC2F S61 sBC92 ($24), Y
ORA UDO ClIP s62 BNE SBC92
IHY LOA (S24),Y CI'1P $63 lINE SBC92 IHY
LOA
(~4),Y
ct'P s64 BHE sBC92 IHY LOA 1$7F ct'P s70 LDA ($24), Y SBCS65 BEQ sBCBA LDA $66
BC94 90 02 BC96 49 FF DC9B 4C 31 DC
A5 101 FO 4A 38 E9 AO
BCA2 24 bb
BCA4 BeA6 BCA7 BCA9 SCAB BCAE BCAF BCBI BCB3 BCBS BCB8 BCBA BCBB BCac BCBE BCCO BCC2 BCC4 BCCb BCC9 BCCB
10 M A9 85 20 SA A2 C9 10 20 84 100 AS A5 29 46 05 as 20 84 bO
ecce
09 FF 68 40 B9 61 F9 06 99 B9 68
bb 80 102 62 102 SO B9 68
LOA BEQ SEC SOC BIT BPL TAX LOA STA JSR TXA
S61 SBCE9 ISAO SOb S8CAF UFF S68 SB940
LDX .$61
CI1P BPL JSR STY RTS TAY LOA ANO LSR ORA STA JSR STY RTS
'Sf'9 sacBB SB999 Sb8
S60 '$80 $62 S62 Sb2 SB9BO SloB
p . . far. Cintl
1lCCC; BCCE BCDO BC02 BCOS BC07 BC09 BCOB BCOO BCDE BCEO BCE2 BCE4 OCE6 BCE9
BCEB BCEO BCEF ilCFI BCF2
as b3 B5 64 as 65 AB 60
STA Sb3 STA S64 STA S65 TAY RTS
FlOAt-fixed
BC9B; BC9B DC90 BC9F SCAO
Bec SBC9B EOR I$FF J"F' SBC31
AS C9 00 20 84 AS 84 49 2A A9 as A5 B5 4C B5
61 AO 20 90 BC 70 60
bb 80 AO b1 65 07 02 88 62
LOA $61 CI1P ISAO BCS SBCF2 JSR SBC9B STY S70 LOA Sb6 STY $bb EOR U80 ROL LOA 'SAO STA $61 LDA. 56S STA S07 JHP S8802 STA S62
String tD FAC
8CF3; BCF3 BCF5 BCF7 BCF9 BCFA BCFC BCFE BODO BOO2 BOO4 BOOb BOOB BODA BDOO BOOF BOll BD13 BOl5 BOl7 BOlA BOIC BOlE BOZO B022 B024 BD2b 8D2S B02A BD2C B02E B030 BD33 8035 8D37 8D39 8D3B BOX
AO A2 94 CA 10 90 C9 00 Bb FO C9 00 20 90 C9 FO t:9 00 20 90 C9 FO C9 FO C9 FO C9 FO 00 60 20 90 24 10 A9 3D E5
00 OA 50 FB OF 20 04 67 04 2B 05 73 00 58 2E 2E 45 30 73 00 17 AB DE 2D OA M OIl 2B 04 07 60 73 00 5C 60 DE 00 SE
LOY 1$00 LOX I$OA
STY SSD,X DEX BPL SBCF7 BCC SBOOO CHI' 1$20 BI£ SBOO6 STX S67 BEQ $SODA CHP 1$2B BI£ SBOOF JSR SOO73 BCC SBOaA CHP U2E BEQ SB041 CI1P 1$45 BNE SB047 JSR SOO73 BCC SB033 CKP I$AII BEQ S002E ct1P ••2D
BEQ SBD2E CI1P 15M BEQ SB030 CI1P I$2B BEQ SB030 BNE SB035 ROR SbO JSR SOO73 BCC SB091 BIT $60 BPL SB047 LOA .$00 SEC SBC SSE
BD:5E 4C 49 BD
JI'F' :SBD49
8D41 BD43 0045 B047 B049
ROIl Bll OVC LOA SEC
lob SF
24 SF 50 C3 AS SE 3D
5SF SSF SOOOA SSE
77
804A 804C B04E BOSO 80S2 BOSS 80S7 IlDS9 BOSB BOSE BObO B062 BD04
E5 BS FO 10 20 E6 00 FO 20 C6 DO
SO SE
12 0'1
FE BA SE
F'1 07
E2 BA SE F'1 AS 67 30 01 BDbb 60 BOb7 4C B4 BF BD6A 48 BObB 24 SF BObO 10 02 B06F Eb SO 8D71 20 E2 BA B074 68 BD7S 38 B076 E'1 30 BD78 20 7E BD B07B 4C OA BD
SOC $SO STA $SE SEQ SBOb2 BPL $BOSS JSR $BAFE INC SSE BNE SBOS2 SEQ SB062 J5R SBAE2 DEC SSE BNE SBOSS LDA Sb7 Bill SBDb7 RTS JI1P SBFB4 PHA BIT SSF BPL SB071 INC SSO JSR SBAE2 PLA
SEC
SOC 1$30 JSR SBD7E JI1P SBOOA
BDA'1 BOAB BOAC BOAE BOBO BOB3 BOB4 BOB7 BOBA BOBB BOOC BOBF BOCO BOCI
71 7A
AOC (S7A) , Y
38
SEC
E'1 30
as
4C 30 '1B 3E BC FO 'IE bB 27 FO 'IE
Set ASCII digit.
B07E 4B B07F 20 OC Be BD82 bB BOB3 20 3C BC BDB6 AS OE BOBB 4S 66 BOBA as bF BDBC AI. 1.1
BDBE 4C 6A BB B0'11 AS SE BD'13 C'1 OA
PHA J5R SBCce PLA JSR SOC3C LOA SbE EOR Sb6 STA SbF LOX $/,1 JI1P SBB6A LDA SSE CliP lI$OA
BD'95 90 09
BCC $BDAO
BD'17 BD'1'1 BD'1B B0'10 BOAO BDAI BDA2 BOA3 BDAS
LDA IS04 BIT $bO 8111 SBOAE JI1P $B'17E ASL ASL
A'1 24 30 4C
04 1.0
11 7E B'1
OA
OA lB bS SE OA BDAb IB BDA7 AO 00
78
CLC AOC SSE
ASL
BO IF 6E
???
bE
Print ' IN ••• '
A'1 71 BOC4 AD A3 B0C6 20 DA BO BOC'1 AS 3A BOCB Ab 3'1
LOA 1$71 LOY 1$A3 JSR SBODA LOA S3A LOX $39
Print. 1 in. nu.tJ1r
BS b2 86 63 A2
'10
STA,
sn
$/,2
S63
LOX 1$90
38
SEC
49 OC 20 OF BO 4C IE AB
JSR SBC49
20
BODO; BODO BOOF BIlEI BIlE3 BDES .BDE7
SSC $bE9E,X ???
PLP BRK
2B
BOC2
BDCO BDCF BDDI BDD3 B004 BOD7 BOOA
ROL SIFBC,X SBC S6E'1E,X ???
00
BDC2;
JI1P $B030 ???
bB
8OCD; BD7E;
SOC 1$30 STA SSE
5E
JSR SBOOF JMP SABlE
Float to ASCll
AD A9 24 10 A'1
01 20
66 02 20
99 FF 00 BDEA BS bb
BDEC B4 BDEE CB BDEF A9 BOFI Ab BOF3 DO
71 30 61 03
LOY 1S0l LDA 1$20 BIT S66 BPL SBIlE7 LDA IS2D STA $OOFF,Y STA S66 STY S71 INY LOA 1$30 LOX $/,1 BHE SBOFB
CLC
BDF!i 4C 04 OF
Jf'F SBF04
LOY 1$00
BOFB A9 00
LDA 1$00
BDFA EO 80 BOFC FO 02 BDFE BO 09 BEoo A'I BO BE02 AO BO BE04 20 28 BE07 A'I F7 BEO'l BS 50 BEOB A'I B8 BEOO AO BO BEOF 20 5B BEI2 FO IE BEI4 10 12 !lE16 A'I B3 BEI8 AO BO BElA 20 !5B BEIO FO 02 BEIF 10 OE BE21 20 E2 BE24 Cb 50 BE26 DO EE BE28 20 FE BE28 Eb 50 BE20 DO DC BE2F 20 4'1 BE32 20 '1B BE35 A2 01 BE37 A5 SO BE3'1 IB BE3A6'1OA BE3C 30 0'1 BE3E C'I OB BE40 BO Ob BE42 6'1 FF BE" AA BE4:5 A'I 02 BE47 38 BE4B E'I 02 BE4A 85 SE BE4C 8b SO BE4E SA BE4F FO 02 BE!51 10 13 BES3 A4 71 BESS A'I 2E BES7 CB BESS '1'1 FF BESB SA BESC FO Ob BESE A'I 30 BE60 ca BEl. I '1'1 FF
SA
BC
Be
SA
SA
BB BC
00
00
CPX _ 0 BEQ SBEoo BCS SBE09 LOA HBO LDV ISBO JSR SBA28 LOA "F7 STA S:50 LDAUBB LOV ISBO JSR SBC5B BEQ SBE32 BPL SBE28 LOA "83 LDV ISBO JSR SBeSB BEQ SBE21 BPL SBE2F JSR SBAE2 DEC S50 Bt£ .BElh JSR SSAFE INC S50 BNE SBEOB JSR SOO4'1 JSR SBC'IB LOX "01 LOA SSO CLC AOC ISOA BI11 SBE47 ClIP I$OB BCS SBE48 ADC tIFF TAX LOA 1$02 SEC SBC IS02 STA SSE STX SSO TXA BEQ SBES3 BPL SDE66 LDVS71 LOA IS2E INV STA SOOFF,Y TXA BEQ SBEM LOA 1$30 IHV STA SOOFF,V
BEb4 BEbb BEbS BEbA BEbC BEbO BE70 BE72 BEH BE77 BE7'1 BE7B BE7E BEBO BEB2 BEes BE87 BEOO BEBA BEBC BEBE BE90 BE91 BE'I3 BE9!5 BE'I7 BE'I'I BE'IA BE'IB BE'IC BE'IO BE'IF BEAI BEA2 BEA3 IlEAS BEA8
BEAA D£AC BEAE DEAF BEB2 BEB4 BEB6 BEB7 BEB9 BEBB BEBC BEBE BECO BEC2 BEC4
84 AO A2 A:5 18 7'1 85 AS 7'1 85 AS 7'1 85 AS 7'1 85 EB 80 10 30 30 SA 90 4'1 1.'1 6'1 CB C8 CB C8 84 A4 C8 AA
STY S71 LDVUoo LDX 1$80 LOA $1,5 CLC
71 00 80 6S 1'1 loS b4 18 1.4 1.3 17 b3 1.2 II. 1.2
BF
BF
ADC SBF19,Y
STA LOA AOC STA
SbS Sb4 SBFIB,V Sb4
LDA $63
SF SF
04 DE 02 OA 04 FF 00 2F
47 71
2'1 7F '1'1 FF 00 Cb SO DO 01. A9 2£ C8 '19 FF 00 B4 71 A4 47 SA 4'1 FF 2'1 80 AA CO 24 FO 04 CO 3C 00 A6 A4 71
AOC S8F17, Y STA $1,3 LOA S62 ADC SBFlb, V STA Sb2 INX BeS SBEBE BPL SBEbA Bll1 SBE90 Dll1 SBEbA TXA sec SBE97 EDR HFF ADC "00 AOC 1S2F IHV INV INV INV STY $47 LDVS71 IHV TAX AND U7F STA SOOFF,V DEC SSO SHE S1£B2 LOA "2E INV STA SOOFF,Y STY S71 LOY 147 TXA EOR IIFF AND "BO TAX CPV 11$24 BEQ SBEC4 CPV IS3C ONE SBEbA LDY $71
79
BECb BEC9 BECA BECt: BECE BEDO BED2 BED3
B9 BB C9 FO C9 FO C8 A9
FF 00
DEY
30 F8 2E 01
CI1P BEQ CI1P BEQ INY
2B
LOA U2B
BEDS Ab 5E
BED7 BED9 BEDB BEOO BEDE BEEO BEEI BEE3 BEEb BEE8 BEEB BEEC BEEE BEEF BEFO BEF2 BEF4 BEFb BEF9 BEFA BEFD BEFF BF02 BF04 BF07 BF09 BFOC BFOE BFIO BFII BFI2 BFI3 BFI'I BFI5
FO 10 A9 38 E5 AA A9 99 A9 99 SA A2 38 E8 E9 BO
BFl7 BFI8 BFI9 BFIA
80
5E 20 01 01 45 00 01 2F VA FB 03 01 02 00 04 08 FF 00 00 00 01
01 01 00 01
1$30 $BECb U2E $BED3
LDX $5E BED $BF07 BPL $BEE3 LDAUoo SEC SOC $5E TAX LDA 1$20 STA $OIOI,Y LOA U45 STA $OlOO,Y TXA LDX U2F SEC INX SBC tI$OA BCS $BEEF ADC U3A STA $0103,Y TXA STA $0102,Y LOA 1$00 STA $OlO4,Y
BED STA LOA STA LOA LOY RTS
$BFOC $OOFF,Y 1$00 $OIOO,Y 1$00 .$01
???
BRK BRK BRK
BRK Deci ... l constant.s
BFlbl BF1a
2E 08 00
109 :sA
99 SA 99 A9 99 FO 99 A9 99 A9 AO bO 80 00 00 00 00
LDA :SOOFF, V
FA OA IF 00 00
???
ASL ???
BRK BRK
BFIB BFIC BFlE BFIF BF21 BF23 BF25 BF27 BF28 BF29 BF28 BF2C BF20 BF2E BF2F BF30 BF31 BF32 BF33 BF34 BF35 BF3b BF37 BF38 BF39
98 910 80
FF FO CO 01 AO FF 08 FO 00 03 E8 FF FF FF 9C 00 00 00 VA FF FF FF FF
BEQ $BEDE CPY UOO ORA ($B6,X) LDY .$FF ???
00
CLD BEQ $BF2B BRK ???
INX ??? ??? ??? ???
BRK BIlK
BRK ASL ??? ??? ??? ???
FF OF OA 80 00 03 4B
BF41 CO
BF43 BF44 BF45 BF4b BF47 BF48 BF4B BF4C BF4F BF50 BF51 BF52
???
BD 00 8b FF
Tl COIlst..,ts
BF3A; BF3A BF3B BF3C BF30 BF3E BF3F BF40
TYA STX SIIO,Y
???
???
ASL ???
BRK 7??
FF
FF 73 bO 00 00 OE 10 FF FF FD AS 00 00 00 3C EC AA AA
BF55 AA BF5b AA
BF57 AA
7?? CPY tl$FF 7?? ???
RTS BRK BRK ASL $FFlO ???
SOC $00A8,X BRK BRK ???
CPX $AAAA TAX TAX TAX
TAX TAX TAX TAX TAX TIIX TAX TAX .AX 'AX TAX .AX TAX TAX TAX TAX TAX TAX TAX TAX TAX TAX TAX TAX TAX
BF58 AA 1!F59 AA BF5A AA I!F5B AA BFSC AA BF5D AA BF5E AA BF5F AA BF60 AA BF61 AA BFb2 AA BF63 AA BFb4 AA BFb5 AA BFbb AA BF67 AA BF6B AA BF69 AA BFbA AA BF6B AA BFbC AA BF6D AA BF6E AA BFbF AA BF70 AA
BF71; BF71 BF74 BF76 BF7B
BFB4;
Pl!f""for. [SQR] 20 A9 AO 20
OC DC 11
BF A2 BB
P...-for.
DF7BI BF7B BF7D BF7F BFBI BFB4 BFBb BFBB BFBB BFBO BFII!' BF92 BF94
BF9C BF9E BFAI BFA2 BFA3 BFAb BFAB BFAA BFAD BFoo BFBI BFB2
FO A5 DO 4C A2 AO 20 A5 10 20 A9 AO
70 69 03 F9 4E 00 04 bE OF CC 4E 00 BF96 20 58 BF99 DO 03 BF9B 9S
BB
JSR LDA LDY JSR
SDCOC tlSll tlSBF SBBA2
[pow.r]
BEll SBFED LOA S69 ~ SBFB4 JI1P SBlF9 LDX eS4E
BB
DC
DC
LOY UOO JSR SBB04 LOA $bE BPL SBF9E JSR SDCCC LOA U4E LDYUOO JSR SBe58 ~ . SBF9E TYA
A4 20 9S 4B 20 A9 AO 20 20 6B 4A 90
07 FE BB
EA B9 4E 00 2B BA ED BF
OA
LDY S07 JSR SBBFE TVA PHA JSII SB9EA LDA U4E LDYUOO JSR SBA2B JSR SBFED PLA LSR BeC SBFBE
P-r-for. [n.cjative]
BFD4 A5 61 BFB6 FO 06 BFBB A5 bb DFBA 49 FF BFDC B5 66 BFBE 60 BFDF Bl :sa BFCI AA BFC2 3D BFC3 29 07 BFC57134 BFC7 58 DFeB 3E 56 BFCB 16 7E BFCO 03 BFCE IB BFCF 77 BFDO 2F BFOI EE E3 BF04 7A BF05 10 B4 BFDB 2A BFD9 7C BFDA b3 BFOB 59 5B BFDE 7E 75 BFEI E7 BFE2 C6 eo BFE4 31 72 BFE6 IB BFE7 10 91 BFE9 00 BFEA 00 BFEB 00 BFEC 00
LDA BEll LDA EOR SOA RTS STA TAX
S61 SBFBE S66 tlSFF Sbb ($38,X)
???
74
AND 1$07 ADe ($34), V CLI ROL $7456.X AS\.. S7E,X
??? 777 7??
??7 B5 IC
INC SIISE3 ??? ORA SICB4,X RIlL
??7
??? c.A FO
EM SOA58,V ROR SFD75,X
??? DEC
sao
AND (S72) ,Y CLC BPL SBF6A BRK BRK BRK
BRK
81
P&rfar. [EXP]
BFED; BFED
A9
BF
BFEF AO BF BFFI 20 28
BFF4 AS 70 BFF6 69 50 BFF8 90 03 BFFA 20 23 BFFD 4C 00 EOOO B5 56 E002 20 OF E005 AS 61 E007 C9 B8 E009 90 03 EOOB 20 D4 EOOE 20 CC EOI! AS 07 EOl3 IB E014 69 BI EOl6 FO F3 EOIB 3B EOl9 E9 01 EOIB 48 EOIC A2 OS EOIE B5 69 E020 B4 61 E022 95 61 E024 94 69 E026 CA E027 10 F5 E029 AS 56 E02B B5 70 E02D 20 53
SA
BC EO
BC
BA BC
LDA LDY JSR LDA ADC BCC JSR JI1P STA JSR LDA CI1P BeC JSR JSR LDA CLC ADC BEQ SEC SBC
tlSBF lISBF SSA2B $70 $BFFD SBC23 SEOOO $56 $BCOF $61 lISBB $EOOE SBAD4 SBeCC $07 tlSBI SEOOB tI$Ol
LOX lIS05 LOA S69,X LOY Sl>I,X STA $61,X
STY DEX BPL LDA STA JSR
Sl>9,X SEOIE S5I> S70 SB8S3
E030 20 84 SF
JSR $BFB4
E033 E035 E037 E03A E03C E03E E03F E042
LDA LDY JSR LDA STA PLA JSR RTS
E043;
A9 AO 20 A9
as
C4 BF 59 EO 00 6F
bB 20 B9 SA 60
E043 BS 71 E047 20 CA BB
82
1SC4
lISBF SEOS9 lISOO $6F SBAB9
Series eval. 1
E045 B4 72
A9 20 20 A9
57
4C
28
E059 EOSB E05D E060 E062 E064 E066 E067 EObB
B5 B4 20 BI B5 A4
71 72 C7 BB 71 67 71
2B SA
5D EO
57 AO 00
LDA 41$57 JSR SBA2B JSR SEOSD LDA *$57
BA
LDY lISOO JI1P SBA2B
tl$50
PHA
DB
E04A E04C E04F E052 EOS4 EOSl>
STA $71 STY $72 JSR SBBCA
CD
98
DO 02 EObA E6 72
EObC E06E E070 E073 E075 E077 E078 E07A E07C E07D E07F E081
as
A4 20 AS A4 18 69 90
28
BA
71 72 05 01
CD
as
84 20 E0B4 A9 E086 AO EOBB CI> EOBA DO EOBC 60 EOBD 9B EOBE 35 E090 7A E091 00 E092 68 E093 2B E094 BI E096 00
E097;
71 72
71 72 67 DB 5C
00
67 E4 44
STA STY JSR LOA STA LDY INY TYA BNE INC STA LDY JSR LDA LDY CLC ADC
$71 $72 SBBe7 ($O71l, Y S67 $71 SE06C S72 571 572 5SA2B 571 $72 tI$05
SE07D INY STA $71 STY $72 JSR SBBb7 LDA 4I$5C LDYI$OO DEC S67 ONE SE070 RTS TVA AND $44,X BCC
???
BRK PLA
PLP 46
LDA ($46),Y
BRK
Perfcr. [RHO]
E097 20 2B BC E09A 30 37 E09C DO 20
. J5R $BC2B 8MI 5EOD3 BNE SEOBE
E09E 20 F3 FF EOAl 86 22 E0A3 B4 23 EOA5 AO 04 E0A7 81 22 EOA9 B5 62 EOAB C8 EOAC BI 22 EOAE 85 64 E080 AO 08 EOB2 81 22 EOD4 85 63 EOBb CB EOB7 81 22 EOB9 as 65 EOSS 4C E3 EO
JSR STX STY LDY LOA STA INY LOA STA LOY LDA STA
SFFF3 S22
S23 11$04 (SZ2),Y
S62 ($22)
($22l,Y
S63
INY
LDA (.$22) ,Y STA S65 Jt1P SEOE3
EOBE A9 SB
LOA *S88
EOCO E0C2 EOC5 EOC7 EOC9 EOCC EOCE EODO E003 EODS E007 E009 EODD EODll EODF EOEI E0E3 EOES EOE7 E0E9 EOED EOEO EOEF EOF2 EOF4 EOF6
LOYISOO JSR SDBA2 LOA lISBD LOY UEO JSR S8A2B LDA 11$92 LOY UEO JSR SBBb7 LOX SbS LOA $62 STA SOS STX S62 LOX sb3 LOA $b4
EOF9; EOF9 EOFB EOFD EOFF EIOI
AO 20 A9 AO 20 A9 AO 20 AI>
AS B5 BO A6 AS as BO A9 as AS BS A9 B5 20 A2 AO 4C
00 A2 8D BD EO 2S BA 92 EO 67 DB 6S 62 65 62 63 1>4 63 b4 00 bb
61 70 BO 61 D7 BB BB 00 D4 BB
STA $63
STX LOA STA LDA STA LDA STA JSR LDX LDY JI1P
s1>4 HOO sbb SbI S70 1$80 Sol sBBD7 lsaD 1$00 s8804
?? breakpoints 17
C9 DO B4 Bb 4C
FO 07 38 37 03 Ab
,Y
s1>4 1$08
01P lINE STY STX Jt1P
UFO sEI04 s38 S37 sAbb3
Et04 EI0'5 EI07 EI09 EIOC EIOF EIII EI12 EI15 E117 EII8 ElID EIID EIIE EI21 EI23 EI24 EI27 E!29
AA 00 A2 4C 20 80 bO 20 80 bO 20 DO bO 20 80 60 20 DO bO
02 IE 37 A4 02 FF E8 CF FF E2 AD E4 DC Co FF Db E4 FF 00
P.,.fcr. [SYSl
EI2A; EI2A 20 20 EI30 A9 EI32 4B EI33 A9 EI3S 4B E12D
BA AD F7 87 EI
E1S6;
EI56 EIS9 EI5B EI5D E!SF
4B AD AE AC 2B OC OB BD BE
JSR SADBA JSR S87F7 LDA I$EI PHA
4b
El36 AD OF 03
EI39 EI3A EI3D EI40 EI43 EI44 EI47 EI4S EI4B EI4E EISI EIS2 EI55
TAX BNE SEI09 LOX tlSIE Jt1P SA437 JSR SFF02 BCS SEOF9 RTS JSR S!'FCF BCS SEOF9 RTS JSR SE4AD DeS SEOF9 RTS JSR SFFC6 8CS $EOF9 RTS JSR SFFE4 8CS SEOF9 RTS
OC 03 OD 03 DE 03
LOA 1$41> PHA LDA S030F
PHA
LOA S030C LOX S0300 LDY S030E PLP
14 00
Jt1P (SOOI4) PHP
OC 03 OD 03 Be OE 03 bB BD OF 03 bO
STA STX STY PLA STA RTS
S030C S030D S030E S030F
P..,..for. [SAllEl
20 A6 A4 A9 20
D4 EI 2D 2E 2B DB FF
JSR LOX LOY LDA JSR
$EID4 s2D S2E 1$28 SFFDB
83
Elb2 BO '15 ElM 60
Perf or.
E165;
Elbs A9 Elb8 A9 EIOA Bs ElbC 20 ElbF AS EI71 Ab EI73 A4 EI7s 20 EI7B BO
BCS SEOF'1 RTS
01 00 OA D4 EI OA 2B
2C Ds FF 57
LIlA lI$OO
SOA SEID4 SOA
LOA $OA
EI7C FO EI7E A2 EIBO 20 EIB3 29
BEQ LDX JSR AND
EIBS DO
EIB7 AS EIB9 C9 EIBB FO EIBn A9 EIBF AO EI91 4C EI94 60 EI95 20 EI9B 29 EI9A FO EI9C A2 El'1E 4C EIAI AS EIA3 C9 EIAS DO EIA7 B6 EIA9 B4 EIAB A9 EIAD AO EIAF 20 EIB2 4C EIBS 20 EIBB 20 EIBB 4C
B7 FF BF 05
ID 37 A4 7B 02
SEI95 IISIC SFFB7 ISIO
BNE $£19E
LOA S7A CI1P 1S02 BEQ SE194 LOA IS04 LOYISA3 JMP SABlE RTS JSR SFFB7 AND ISBF BEQ SEIAI LDX IISID JI'P SA437 LDA $1B CI'P 1S02
OE
BNE $EIB5
2D 2E 76 A3
STX STY LDA LDY JSR JI'P JSR JSR
IE AB 2A AS BE A6 33 AS 77 A6
EIC7 EICA EICC EICF EIDI
84
JSR LOA JSR BCC JI'IP
SE219 S49 SFFC3 SEI94 SEOF9
EID4 A9 00
LOA ISOO
EIDb 20 aD FF
JSR WFBD
EID9 A2 01 EIDB p,o 00 EIDO 20 BA EIEO 20 Db EIE3 20 57 EIEb 20 Ob EIE9 20 00 ElEC AO 00 ElEE B6 4'1 EIFO 20 BA EIF3 20 Db EIFb 20 00 EIF'1 SA EIFA AB EIFB A6 4'1 EIFD 4C BA E200 20 OE E203 4C 9E
LOX .SOI LOV 1$00 JSR SFFBA JSR SE20b JSR SE257 JSR SE20b JSR SE200 LOVII$OO STX S49 JSR SFFBA JSR SE20b JSR SE200 TXA TAV LOX S4'1 JI1P SFFBA JSR SE20E JI1P SB7'1E
FF E2 E2 E2 E2 FF E2 E2
FF E2 B7
S2D S2E 1$7b
E206 20 7'1 00
II$A3 SABlE SAs2A
E209 DO 02 E20B b8
SA6BE
E20C 6B E200 bO
JSR $007'1 BNE SE20D PLA PLA RTS
SA533
JI1P SA677
Perfer. [OPEN]
EIBE 20 19 E2 EICI 20 CO FF EIC4 DO OB
19 E2 49 C3 FF C3 F9 EO
EID4; P..,._ter" for LOAD/SAVE
E20E; ElSE;
20 AS 20 90 4C
$2B
S2C SFFDs SEIDl
EI7A AS OA
17 IC B7 FF 10 17 7A 02 07 04 A3 IE AB
RTS
[LOAD]
LOA 'SOI STA JSR LDA LOX LDY JSR BeS
EICb 60
JSR SE219 JSR SFFCO BCS SEIDl
Cleek for
E20E 20 FD AE E211 20 79 00 E214 DO F7 E216 4C OB AF
c:.~
JSR SAEFD JSR S007'1 BI'E SE20D JI'IP SAFOB
E219;P.,.. . . .t ..... for OPEN/a...ose: E219 E21B E21E E22l E224 E22b E227 E229 E22B
A9 20 20 20 8b BA A2 AO 20
00 BO FF II E2 9E B7 49 01 00 BA FF Ob E2 00 E2 4A 00 49 03 01
E22E 20
E231 E234 E23b E23B E23A E23C E23E E23F E242 E245 E248 E249 E24A E24C E24E E251 E254 E257 E25A E2S0 E25F E2bl
20
Bb AO A5 EO 90
E2bB E2bE E270 E272
1$00 $FFBD SE211 $B79E S49 1$01
.sao $FFBA
JSR $E20b
J5R STX LOY LDA
$E200 S4A 1$00 S49
CPX U03 BCC SE23F
BB
DEY
20 BA FF 20 Db E2 20 00 E2
JSR SFFBA
BA AB Ab AS 20 20 20 20 20 Ab M 4C
4A 49 BA Db DE 9E A3 22 23 BO
E2b4 A9 EO E2bb AO E2 E2bB 20 b7
E26B;
LOA JSR JSR JSR STX TXA LDX LOY J5R
FF E2 E2 AD Bb
FF
sa
J5R SE20b J5R SE200 TXA TAY LOXS4A LOA S49 JSR $FFBA J5R $E2Ob J5R $E2OE JSR $AD9E JSR SBbA3 LOX S22 LOY $13 JMP SFFBD
LOA .SEO LOY 1SE2 JSR SB8b7
Perfor. (SIN] 20 A9 AD Ab
OC Be ES E2 bE
JSR SBeOC LDA '$£5 LOY'SE2 LOX SbE
E274 E277 E27A E27D E27F E281
E2B4 E28b E2BS
20 20 20 A9 BS 20 A9 AO 20 AS
07 BB OC Be CC Be 00
bF 53
SO
E28B bb E28D 48 E2BE 10 OD E290 20 49 E293 AS bb E29S 30 09 E297 AS 12 E299 49 FF E29B BS 12 E29D 20 B4 E2AO A9 EA E2A2 AO E2 E2A4 20 b7 E2A7 bB E2AB 10 03 E2AA 20 B4 E2AD A9 EF E2AF AO E2 E2Bl 4C 43
E284;
sa
EA E2
sa
B8
BF
BB BF
EO
JSR SBB07 J5R J5R LOA STA JSR LOA LOY
SBeOC SBece 1$00 $bF t:B9S3 UEA '$£2
JSR SBSSO LOA Sbb PHIl BPL SE29D JSR S8849 LOA Sbl> Brn fE2A0 LOA S12 EOR UFF STA S12 J5R $BFB4 LOA I$£A LDY 1$£2 J5R SB8b7 PLA BPL SE2AD J5R $BFB4 LOA "EF LOY 1$£2 J11P SE043
P..... for. [TAN]
£284 20 CA £287 A9 00 E2B9 BS 12 E2BB 20 bB E2BE A2 4E E2C0 AO 00 E2C2 20 Fb E2C5A9S7 E2C7 AO 00 E2C9 20 A2 E2CC A9 00 E2CE BS 1>1> E200 AS 12 E2D2 20 DC E2D5 A9 4E E2ll7 AO 00 E2D9 4C OF E2DC 48 E20D 4C 9D E2EO OJ q~
BB
E2
EO
DB
E2
BB E2
JSR LOA STA JSR LDX LOY JSR LOA LDY
$BBCA UOO $12 $£2bB "4E UOO SEOFI> 1$57 UOO
JSR $BBA2 LOA 'SOO STA$bb LOA $12 JSR SE2IlC LOA IS4E LOY UOO JI'1P SBBOF PHIl Jr1P $E29D STA ($49,X)
85
E2E2 E2E3 E2E4 E2Eb E2EB E2E9 E2EB E2EC E2EO
E2EE E2EF
E2FI E2F3
OF OA A2 49 OA A2 00 00 00 00 05 Eb 20
E2Fb 2B E2F7 07 E2F8 FB E2F9 FB E2FA B7 E2FB 99 E2FE 01 E300 23 E301 35 E3Q3 EI E305 AS E307 E7 E30II 2B E309 B3 E30A 49 E30C OA
E30E,
??? B3
OF 7F
??? LOX HB3 EOR ISOF ??? LOX H7F
IB Bb
???
BRK
E342 80 D3 79
LOA S79D3,X
BRK ORA SB4 INC SIA AND $BOIB
E34S E34B 04A 04B E34C E34E E34F
??? SED
???
STA
$ll9bB,Y ORA ($87, Xl
??? OF
Bb
AND SDFtX sse (SSb,X)
SO
LDA SSO
??? OF
PLP ??? EOR ISOF ???
P.,..for. CATNl
E30E AS bb E30F 1.1. 4B 011 10 03 E313 20 B4 BF E31b AS 61 OIB 4B 019 C9 BI OlD 90 07 OlD A9 BC E3IF AO 89 E321 20 OF BB E324 A9 3E 026 AO 0 E32B 20 43 EO E32B bB 02C C9 BI
LOA ROR BPL JSR LOA
ASL '*A6F4,X
sse ???
BeS SE3SE
???
??? ??? ???
DEX ??? CB
DEC $CBS3,X CI1P (S7D,Xl
??? ??? EA 30
BYS $E3A9 ADC $EAB7,X EOR (S7Al, Y ADC S3063,X
DEY 92
ROIl S927E,X
??? 7E 91
STA $7E3A,Y JI'IP $91ec
???
$4B
E372 AA 073 AA
TAX TAX TAX ???
SE316 S8FB4
S61
I$!II $E324 HBC IS89 JSR SBBOF LDA 1S3E
$7B,X
???
???
074 AA 075 13 E376 07B E379 E37A
Bl 00 00 00 00
E37B E37E E3BO E3B2 E38S
20 ec FF A9 00 as 13 20 7A A6 SB
STA ($OO,X)
BRK BIlK BIlK
(I$E3
J5R $E043
E330 A9 EO 032 AO E2
LDY ISE2
86
A6
071 7F
PHA ClIP Bee LDA LOY
LDY
IE F4 FS 7B B3 FC DO 10 7C OC E350 IF 051 67 052 CA E353 7C E3S4 DE 53 E3S7CI7D 059 14 E35A 64 O5B 70 4C 05D 7D B7 E360 51 7A 062 7D 63 E36S BB E3bb 7E 7E 069 44 E36A 99 3A O6D 4C CC E370 C7
???
Sbb
PLA CI1P I$!II Bec SE337 LDA ISEO
E32E 90 07
RTS ROR SB3,X
PLP ???
bB B9 B7
JSR SBBSO PLA BPL $E33D JI1P SBFB4
E33F76B3 041 B3
BRK
IA
E33D
20 50 BB bB 10 03 4C B4 BF 1.0
E33E OB
BRK
B4
E334 037 E33B E33A
JSR SFFCC LDA 1$00 STA SI3
J5R SA67A
CLI
E386 A2 E38B be E38B BA E38C 30 E3BE 4C E391 4C
eo 00 03 03 3A A4 74 A4
LDX JI1P TXA BIII JI1P JI1P
lsao (S03OO)
E3P6 84 06 E3P8 A9 All
E3PA AO 81 SE3'11 $A43A SA474
E3DC 85 03 E3DE 84 04 OEO A2 lC E3E2 BD A2 E3 E3ES 9S 73
E3E7 CA E394 E397 E39A E390 E39F
E3Ao
20 20 20 A2 9A DO
E3A4 E3Ab E3AII E3AB E3AD OAF E3B1 E3B3 E3B4 E3B6 E3B7 E3B9 E3BA E3BB E3BC E3BD E3BE
E3BFJ
JSR JSR JSR LDX TXS
E4
HMO SE38b
E6 DO E6 AD C9 SO C9 FO 3B E9 3B E9 60 SO 4F C7 52 58
7A 02 7B 60 EA 3A OA 20 EF 30
INC BNE INC LDA
S7A SE3AII S7B SEA60 CI1P 1$3A BCS $E389 CI1P 1$20
BEg SE3A2 SEC SBC 1$30
SEC DO
SBC ISDO RTS
??? ??? ???
n? CLl
InitiAliz. Basic
E3BF A9 4C E3C1 85 54 E3C3 SD 10 03
E3C6 E3C8 E3CA E3CD E3DO E3D2 E3P4
SE453 SE3BF SE422 4ISFB
ot:&T for z ... o pave
EJA2;
E:5Ii2
53 E4 SF E3 22 E4 FB
A9 48 AO B2 81) 11 03 BC 12 03 A9 91 AO B3 85 OS
LDA IS4C STA S54 STA *0310 LDA 1$48 LDYHB2 STA S0311 STY S0312 LDA IS91 LDYI$B3 STA SOS
E3EB E3EA E3EC E3EE OFO E3F2 OF4 OF6 OF8 E3FB E3FE E400 E402 E403 E406 E408 E40A E40B E40E E410 E412 E414 E416 E41B E419 E41B E410 E41F E421 E422 E424 E426 E429 E42B E42D E430 E432 E433 E43S E436 E43B E43A E430
10 A9 as A9 as as as A2 BE BE A2 86 3B 20 86
FB 03 53 00 6B 13 18 01 FP 01 FC 01 19 16
STY $06 LDAISAA LDY ISBI STA S03 STY $04 LOX HIC LDA SE3A2,X
STA V3,X DEl BPL LOA STA LOA STA STA STA LDX STX STX LDX STX
SEC
9C FF 2B 84 2C 3B 20 99 FF 86 37 84 3B 86 33 84 34 AO 00
JSR STX STY STX STY LDY
'18
TVA
91 Eb DO E6 60 AS A4 20 A9 AO 20 AS 3B E5
2B 2B 02 2C 2B 2C 08 A4 73 E4 IE AB 37
JSR SFF9C STX S2B STY S2C
SEC SFF99 $37
S3B $33 S34 1$00
STA (S2BI,Y INC S2B BHE SE421 INC S2C RTS LDA S2B LDY$2C JSR SAA08 LDA 1$73 LOY 1$E4 JSR SABlE LOA $37
SEC 2B
All AS ES 20 A9
SE3E2 .$03 S53 Hoo S68 $13 S18 lSOI SOIFO SOIFC 1$19 S16
3B 2C CO BO 60
SBC S2B TAX LDA S3B SBCS2C JSR SBDCO LOA 1$60
87
E43F AO E4 E441 20 IE AB E444 4C 44 A6 E447;
E447 E448 E449 E44A E44C E44E E44F E451
LDY I$E4 JSR SABlE JHP SA644
Vectors for $300
8B E3 83 A4 7C AS lA A7 E4 A7
??? ??? ??? LDY S7C
LDA SIA ???
CPX 5A7 STX SAE
B6 AE
E453 A2 OB
LDX I$OB
E4SS 8D 47 E4
LDA SE447,X STA S0300,X
E458 E45B E4SC E4S£ E4'5F;
E4SF E460 E463 E464 E466 E469 E46A E46C E46F E471 E474 E477 E47A E47B E47C E470 E4BO E4B3 E4B4 E4B5 E496 E48B E48A
88
9D 00 03 CA 10 F7 60
DEX BPL SE4SS RTS
Po..ar-up ..s••O.
00 20 53 49 20 54 45 20 45 OD 00 20 2A 2A 2A 20 40 44 4F 52 45 36 20
BRK
42 41
JSR S4142 ???
43 42 59
EOR 1$43 JSR S5942 ???
53 46 45 00 20 20
52 93 20 2A
43 4F 40 4F
20 34 42 41
EOR JSR EOR ORA ORA JSR ROL ROL ROL JSR EOR
S53
$5246 545 59300 S2020 S2A20
$4F43
54F40
E49D E48E E490 E493 E496 E497 E499
53 49 20 20 2A 2A 00
EOR 1$43 JSR S3256 JSR S2A2A ROL ROL
00 20
ORA S2OO0
E49B 3b 34
ROL S34,X
E490 E49E E4Al E4A4 E4A7 E4A9 E4AC E4AD E4AE E4Bl E4B2 E483 E4B5 E486 E4B7 E488 E4B9 E4BA E4BB E4BC E4BD E4BE E48F E4CO E4Cl E4C2 E4C3 E4C4 E4C5
??? JSR $.4152
4B 20 4D 59 4S 20 SC 48 20 AA 68 90 SA 60 AA AA AA AA AA AA AA AA
AA AA AA AA AA AA AA
E4C6 AA E4C7 AA E4C8 AA E4C9 AA E4CA
AA
E4CB E4CC E4CD E4CE
AA AA AA AA
??? ??? ???
E4CF AA
EOR 520 ROL 534,X
E402 AA
JSR $4142
???
43 56 32 2A 2A
E4DO AA E4Dl AA E4D3 AA E404 AA
52 20 53 4D 20
41 53 54 00
EOR EOR EOR JSR
55320 SS453, Y 54D S0020
??? PHA
C9 FF 01
JSR SFFC9 TAX PLA BCC SE4B6
TXA RTS TAX TAX TAX TAX TAX TAX TAX TAX TAX TAX TAX TAX TAX TAX TAX TAX TAX TAX TAX TAX TAX TAX TAX TAX TAX TAX TAX TAX TAX TAX
E4D5 E40b E407 E4D9 E40q E4IlA E400 E4DF E4EO E4E2 E4E4 E4E5 E4E7 E4E9 E4E9 E4EC E4EF E4F2 E4F3
AA AA AA AA AA
TAX TAX TAX TAX TAX
AD 21 DO
LIlA S0021
91 F3
STA RTS
60
6.9 02 A4 91 C8
DO 04 C5 AI 00 F7 6.0
19 2b 44 19 IA II E8 00 70 OC
E4Fb 06 Ob
E4F9 E4FA E4FB E4FO E4FE E5OO;
01 02 37 01 AE 00 b9 00
($F3)
,Y
ADC U02
LOY INY BNE CI1P ONE RTS
$91 SE4EB
SAl SE4E2
ORA $442 6,Y
ORA INX lIRA ASL ClIP
SI1IA, V SOC70 SOb (S02) ,Y
?7?
~bO
E51B 20 AO ES E518 A9 00 ESIO BO 91 02 E520 as CF ES22 1\9 4B E524 80 SF 02 E527 A9 EB E529 BO 90 02 ES2C A9 OA ES2E 80 B9 02 E531 BO BC 02 £534 A9 DE E530 80 eo 02 ES39 A9 04 E53B BO BB 02 E53E A9 OC E540 as co ES42 as CC
LOX 1$00 LOY UDC RTS
LOX 1$28 LOY .S19 RTS
Put/gIRt. rOll/colu.n
ESOA 90 07 E50C 8b Ob E~ 84 03 E510 20 bC ES E513 Ab Db ESI5 A4 03 ESI7 6.0
$ESAO 1$00
$02'11 SCF 1$4B S028F
LIlA I$EB
STA LOA STA SIA LOA STA LIlA STA LOA STA STA
$0290 UOA S0289 $02& HOE S028b 1$04 S028B I$OC $CD SCC
BIlK
E544 ES47 ES49 ES4A E54C ES40 ES4F ESSO ES52 E554 ES55 E55b ESSe
AD BB 02 09 BO AS A9 00 AA 94 oq 18 b9 28 90 01 C8 EB EO 11\ DO F3 E5SA A9 FF
ESSe 95 oq E50A;
JSR LOA STA STA LOA STA
ADC .SOO
Set IICr..., si ZR
E505 A2 28 E507 AO 19 ES09 6.0
Init.ializ.e 110
ORA (SAE,X)
BIIt 1/0 Addres5
E500 A2 00 E502 AO DC
E505;
ESt81
9CS SE513 SDb STY S03 JSR $ESbC LOX SDb LOY $03 RTS
STX
ESSE ESbO ESb3 £56.4
A2 18 20 FF E9 CA 10 FA
LOA $0288 ORA .$00
lAY LOA "00 TAX STY $09,X
CLC ADC 1$28
BeC INY INX CPX BNE LIlA STA LOX JSR DEX BPL
SE555 ISlA SE540 UFF $D9,X
1$18 SE9FF
SESbO
ESbb AO 00
LOV ISOO
E:5b8 84 0 3
STY $D3
ES6.A 84 Db
STY SOb
89
E56C; ESbC ESbE ES70 E572 E574 E575 ES77 E579 E57A E57C E57E E590 E583 E595
Ab AS B4 30 18 69 85 CA 10 B5 29 00 85 BO E588 B5 ES9A A9 E58C EB ESBO B4 E5BF 30 ES91 IB ES92 1.9 ES94 EB ES95 10 ES97 as ES99 60 E59A 20 1::590 4C
E5A0;
Set scr..., point.-. Db D3 D9 OB 28 03
03 B8 02 02 FO EC 01 27
D9 06 28
F6 D5 AO ES bb E5
S03 SD9,X $E57C .S28 S03
BPL
SE570 LOA SD9,X AND 1$03 ORA S02BB STA S02
LDA $ECFO,X STA LOA INX LOY Bill CLC ADC INX BPL STA RTS JSR JI1P
SOl U27 S09,X ~97
H2B SESBD S05 SESAO $£566
Sort 110 defowl to.
ESAO A9 03 as 9A E5A4 A9 00 ESAb 85 99 E5A8 A2 2F ESAA BD BB EC E5AD 90 FF CF E5BO CA E5BI DO F7 ES83 60
Input fro.
E5B4 AI: 77 02 E5B7 A2 00 E5B9 BD 7B 02
90
$Il6
DEX F4 D9
E~2
E5iM;
LOX LOA LDY 11111 CLC ADC STA
LDA STA LDA STA LOX
1$03 S9A 1$00 $99 I$2F
LDA .$ECBS, X
STA SCFFF,X
DEX BNE $E5AA
RTS
k~d
LOY S0277 LOX .~ LOA S027B,X
ESBC ESBF ESCO ESC2 ESC4 ESC6 ESC7 E5C8 ESC9
90 EB E4 DO Cb 98
77 02
STA $02n,X
C6 FS C6
INX CPX $C6 BNE SE5B9 DEC SCI.
58 IB 1.0 ESCA 20 II. E5CO AS C6 ESCF as cc ESDI BD 92 E5D4 FO F7 ES06 7B ESD7 AS CF E5D9 FO OC ESDB AS CE ESDD AE B7 ESEO AO 00 ESE2 B4 CF ESE4 20 13 E5E7 20 B4 ESEA C9 B3 ESEC 00 10 ESEE A2 09 ESFO 7B ESFI 86 C6 E5F3 BO Eb ESFb 90 76 ESF9 CA ESFA DO F7 ESFC FO CF ESFE C9 OD E600 DO C8 E602 A4 DS E604 B4 DO Eb06 Bl DI EbOB C9 20 E60A DO 03 EbOC sa E600 DO F7 EbOF C8 Ebl0 B4 C8 Ebl2 AO 00 Ebl4 BC 92 E617 B4 D3 E619 B4 D4 EbIB AS C9 E610 30 IB EblF AI. Db Eb21 20 EO
TYA
E7
02
02
EA ES
CLI CLC RTS JSR $E716 LOA SCI. STA $CC STA S0292 BEll S£5C0 SEI LOASCF SEQ SESE7 LOA SCE LOX S0287 LOY 1$00 STY $CF JSR SEAI3 JSR SESB4
OP 1$83 BNE SESFE LOX 1$09 SEI STX $C6 EC 02
LDA :tECE6, X
STA S0276,X
DEX BNE BEll CI1P BNE LOY STY LOA ClIP BNE
SESF3 SESCO UOO SESCA S05 SOO (SOU, Y H2O SE60F
DEY
02
E6
SHE INY ST¥ LOY STY STY STY LOA 81'11 LOX ' JSR
SE606 SCB .SOO S0292 S03 S04 SC9 $£63A S06 SE6EC
E624 E626 E628 E6211 E62C E62E E630
E4 C9 DO 12 AS CA D3 C:; CB 90 OIl DO 2B
as
9B 4B SA 4B A:; DO FO 93
E63A A4 D3
Eb3C Eb3E E640 Eb42 E644 Eb46 EMB E64A EMC E64E Eb:iO Eb:i2 E654 Eb56 E659 E65B E65D E65F E661 E663 E665 E667 E669 E66B E660 E66F E672 E674 E676 E677 E678 E67'1 E67A E67C
SC9 SE63A SCA SD3 CI1P $CB BCC SEb3A BCS SEbSD
Input frOil screen
E632; E632 Eb33 E634 Eb3:i Eb3b E63B
CPX BNE LOA 5TII
BI B5 29 06 24 10 09 90
DI D7 3F D7 D7 02
eo
04
lib D4
DO 70 09 E6 20 C4 DO 119 B5 A9 lib
EO FO lib
EO FO 20 A9
as
04 02 40
ro 54 E6 CB 17 00 DO OD 99 03 06 '1A 03 03 16 E7 00 07
b8 AA b8 AS II:; 07 C9 DE
TVA PHA
TXA
9NE SEb92 LDA "FF CLC RT5
£67£ DO 02
Eb80 A9 FF Ebi12 IB EbB3 60
Quat .. test
Eb84; E6B4 EbIIb EbBB EbBA EbIIC EbIlE E6'iO
C9 DO A:; 49 B5 A9 60
22 OB D4 01 D4 22
Of' IS22 IlNE LOA EOR STA LOA RTS
SE6'iO SD4 H01 SD4 *S22
PHA LOA SDO BEg SE:iCD LDY SD3 LOA (SDIl, Y STA SD7 AND 1S3F ASL SD7 BIT SD7 BPL SE64A ORA *$SO BCC SEb:iO LDX SD4 BNO SE6:i4 BVS SE6:i4 ORA IS40 INC sro JSR SEb84 CPYSCB BNO SE674 LOA 1$00 STA $DO LOA 1S0D LDX S99 CPX . .03 BEa SE66F LOX S9A CPX 1$03 BEg SE672 JSR SE716 LDA ISOO STA SD7 PLA TAX PLA lAY LOA SD7 ClIP "DE
s.tup scr..., print
Eb91, E691 E693 E695 E697 E699 Eb9B E69D E69F EbA2 EbAS EbAIl E6A9 EbAA EbAC EbAE EbDO E6BI E6B2 E6B3 E654 E6BS
E686, E6B6 E6B9 E6BB E6BO E6BF Ebel E6C3 E6C5
09 Ab FO 09 lib
40 C7 02 BO OS 02 DB Bb 02 13 EA B6 E6
FO Cb AE 20 20 b8 AS A5 OS FO 02 46 D4 b8 AA 6B IB 58 60
IRA 1S40 LDX SC7 BEg SE699 ORA 1$80 LDX SDB BEg SE6'1F DEC SDB LDX S02B6 JSR SEAI3 JSRSE6B6 PLA TAY LOA SOS BEQ SE6BO LSR SD4 PLA TAX PLA CLC CLI RTS
Advance cur..". 20 E6 AS C5 DO C9 FO AD
B3 EB 03 D5 03 3F 4F 32 92 02
JSR INC LOA DIP BCS
SEBB3 S03 $1l5
S03 SE700 Of' 1S4F BEQ SE6F7 LOA S0292
91
E6C8 E6CA EbCO EbCF EbOl E603 E60b E608 E60A E60C E61lE E60F E6El
03 67 E9 06 19 07 EA E8 06 AD 06 lb 09 56 09 EB 8S D9
SEQ sEbCO JttP sE967
09 80
ORA . .80
FO 4C Ab EO 90 20 Cb
9S D9 EbES CA EbEb AS DS EbEB 18
EbE3
E6E9 b9 29
EbEB
as
E6ED;
OS
LOX SOb
CPX
BeC JSR DEC LDX ASL
1$19 SEbOA SEBEA sOb SD6 SD9,X
LSR SD9,X
INX LDA SD9,X
STA SD9,X
DEX LOA SOS CLC ADC ¥S2B STA SOS
Retreat cursor
as
09
30 CA DO 4C C6 20 A9 EbFE B5 E700' 60
03
LDA SD9,X Bill SEbF4 DEX
F9 FO E9
ONE SEOEO JI1P sE9FO
06
DEC S06
EbEn
EbEF EbFl EbF2 E6F4 EbF7 EbF9 EbFC
7C E8
JSR SEB7C
00
LOA UOO
D3
STA s03 RTS
E716 E717 E719 E71A E71B E7IC E71D E71F E721 E723 E72S E727 E72A E72C E72E E731 E733 E735
4B B5 07 BA 4B 98 48 A9 00 85 DO A4 D3 AS 07 10 03 4C 04 E7 C9 OD DO 03 4C 91 E8 C9 20 90 10 C9 60
E737 90 04
E739 29 OF E73B DO 02 E730 29 3F E73F 20 B4 E742 4C 93 E74S A6 DB E747 FO 03 E749 4C 97 E74C C9 14 E74E DO 2E E750 98 E7S1 DO 06 E7S3 20 01 E7Sb 4C 73
E6 Eb Eb
E7 E7
E7SC B8
E701 E703 E705 E707 E70B E709 E700 E70C E70E E711 E713 E71S E716;
92
AD Db DO 06 B6 03
LOX SOb BtE sE70B 5TX s03
68
PLA
b8 DO
PLA
9D
CA B6 06 20 6C E5 A4 05 84 D3 1.0
BNE DEX STX JSR LOY
SEbAe
S06 SE56C SOS STV S03 RTS
Output to scrlleO
E7S0 E7SF E762 E7b3 E765 E7bb E76B E769 E7bO E76C E70E E7bF E771
$07
tlsOO SOO $03 LOA s07 BPL $E72A
JI1P SE704 CI'P I$OD ONE SE731 JI'P SE891 Ct1P 1$20 BCC SE745 ClIP 1$60 BeC SE73D AND I$OF ONE SE73F AND tlS3F J5R SE6B4 JI'P $E693 LDX $08 BEQ SE74C JI'P SE697 Ct1P .S14 BNE SE77E TVA
E759 20 A1 EB
E701;Back into previous line
PHA STA TXA PHA TYA PHA LOA STA LOY
84 03 20 24 EA C8 01 01
sa
91 01
BNE JSR JI'P JSR DEY STY JSR INY
LOA (SDIl, Y
tNY
01 F3 B8 91 F3 CB C4 05
LDA
EnS 91 01 E7n AD B6 02 E77A 91 F3
SD3 sEA24
DEY STA (SOU, Y
C9
DO EF E773 A9 20
SE7S9 SE701 SE773 SE8Al
(SF3) ,
Y
DEY
STA (SF3),Y INY cpy S05 BNE SE762 LOA U20 STA (SOl),Y
LDA $0286 STA (SF3),Y
E77C E77E E7BO E7BZ E785 E7B7 E7B'1 E7Be E7BO E7BF E7'12 E794 E796 E7'17 E7'1A E7'1C E790 E7'IF E7AI E7A3 E7Ab E7AS E7M E7AO E7AF E7BI E7S2 E7B3 E765 E7B6 E7BB E7BA E7BC E7SE E7CO
10 Ab FO 4C C'I DO BS C9 00 20 C9 DO CB 20 B4 BB C4
B3 EB 03 OS
qo 0'1 C6 20 AO 84 4C C9 DO 18 '1B 6'1 AS E6 CS 90 FO C6 E9
E7C2 qo
E7C4 E7Cb E7CB E7CS E7CE E701 E704 E70b E708 E7DA E70C E70E E7EO E7E3 E7ES E7E7
4D 04 03 97 Eb 12 02 C7 13 03 bb ES 1D 17
8S DO 20 4C 20 4C 29
cq DO A'I C'I
Ob 7C E8 00 03 AS Eb 11 10
28 Db OS EC EA D6 28 04 03 FB 7C AS CB 44 7F 7F 02 5E 20
oce E8 E6 EB EC
qo 03 4C C'I DO 4C
BPL $E7CB LDX $04 BEt! $E7BS JI1P $Eb'l7 ClIP 11$12 BNE $E7BB STA $C7 Ct1P 11$13 BNE $E7'12 JSR $ESbb Cl1P 11$10 ONE SE7AO INV JSRSEBB3 STY S03 DEY CPY $05 OCC SE7M DEC$Db J5R $ES7C LOY 11$00 STY $03 JI1P SEbAB CI1P 1$11 BNE $E7CE CLC TYA ADC "28 TAY INC S06 CI1P $OS ecc SE7AS BEll $E7AB DEC $D6 sec 11$28
'II E6 00 03 'II E8
$E7C8
STA $03 BNE SE7CO J5R SE87C Jt1P $E6A8 J5R SEOC8 Jt1P $EC44 ANO"7F CIP U7F BNE SE70C LOA 11$& CHI'U2O ace $E7E3 JIP $E6'11 CHI'UOO ONE SE7EA JI1P $E891
E7EA E7EC E7EE E7FO E7F2
Ab DO C'I DO A4
04 3F 14 37 OS
E7F4 91 D1
E7Fb E7FB E7FA E7FC E7FE EBOO EB02 EB05 EB07 EBOA EBOB EBOO EBOE E810 E811 E813 EBI4 EBlb E817 E819 EBIS EBIO EBIF E822 E824 EB26 EB29 Ell2B E82D EB2F E832 E834 E836 E838
C'I DO C4 DO CO FO 20 A4 20 SS SI CB 91 BB 81 CB 'II BB C4 DO A'I 91 AD 'II E6 4C Ab FO
0'1 4C C'I DO
AI> FO
20 04 03 07 4F 24 6S E'I OS 24 EA 01 01 F3 F3 03 EF 20 01 B6 02 F3
De AS E6 DB OS 40 97 Eb 11 16 Db 37
EB3A Co 06
E83C E83E EB3F E841 E643 E845 EB47 E84A E84C E84E EBSO
AS 38 E9 90 85 10 20 DO cq DO A'I
03 28 04 03 2A bC ES 2S 12 04 00
LOX BNE CM!' BNE LOY LOA CM!' lINE CPY BNE CPY BE!;! J5R LOY JSR DEY LOA IHY STA DEY LOA INV STA DEY CPY BNE LOA STA LOA STA INC JIP LOX BEQ ORA Jt1P DIP BNE LOX BEll DEC LOA SEC sac ace STA BPL J5R BNE Ct1P BNE LOA
$04 SEB20 1$14 SEB29 $OS '$Ol.,Y 1$20 SE7FE $03 SEBDS H4F SEB26 SE'IbS sOS SEA24 (SOil, Y (SD11 ,V (SF3) ,Y ($F3)
,Y
$D3 sEBOA 1$20 ($OU, Y S028b ($1'"3) ,Y S])8
SE6A8 s08 SEB32 .$40 SEb97 "11 sE84C $06 SEB71 SD6 s03 .s28 $E847 s03 $E871 SESbC SE871 11$12 SE8S4 1$00
93
E852 E854 EBSb Esse E859
85 C9 00 98 FO E85B 20 E85E 88 E85F 84 EBbI 4C
C7 10 12
STA SC7
EBAA 69 2B
ACe
01P Ulo Bf£ SEBbA
ESAC CA EBAD 00 F6
DEX BNE $EBAS RTS
09 AI EB
TVA BEQ SEBb4
EBAF 60 E880 Cb 06
JSR SE8AI
E8B2 60
03 A8 E6 E8b4 20 01 E7
DEY STY $03 JHP $EbAS JSR $E701
EBb7 4C AS Eb
EBbA
C9 13
EBbC 00 Ob EabE 20 44 E5
EB71 EB74 E876 E879 EB7C; E87C EB7E E880 E881 E883 EB85
EB88
EBBA E88C
E88E
£8911
4C AS E6 09 eo 20 CB EB 4C 4F EC
Jr1P $EbAB
CHP UI3 BI£ SE874 JSR $E544 JI1P SEbAB ORA _ 0 JSR SEBCB JI"P SEC4F
60 to next lin. 46 C9 Ab Db
E8 EO 19 00 03 20 EA EB 85 D9 10 F4 Bb Db 4C be E5
LSR $C9 SOb INX CPX UI9 Bf£ SEB88 JSR SEBEA LDA S09,X BPL SEBBO STX SOb LOX
JHP SE5bC
P..-for_
EBBl; EBB3 E885 E8B7 EBB9 E8BB EBBC E8BE
DEC SOb RTS
Chack lin. increMent A2 02 A9 27 CS 03 FO 07 18
LOX
U02
LOA U27
CHP SD3 BEQ SE8C2 CLC
b9 28
ADC 11$28
CA
DEX BI£ SE887 RTS
EBBF DO Fb E8CI bO EBC2 Ab Db
LOX SOb
E8C4 EBCb E8C8 EBCA
CPX "19 BEQ SEBCA INC $D6 RTS
EO 19 FO 02 Eb Db bO
EBCB;
Set colour coda
EBCB A2 OF
LDX I.OF
EBCD 00 DA E8
ct'F' SEBDA,X
E8DO E8D2 EBD3 E8DS EBD6
BEQ SEBDb DEX BPL SEBCD RTS STX S0286 RTS
FO 04 CA
10 FB bO
BE Bb 02
EeD9 60
EB91 A2 00 EB93 Bb 08
U28
LOX . .00
EB97 8b 04
STX SD8 STX $C7 STX S04
EB99 Bb D3 EB9B 20 7C E8 E89E 4C AS Eb
STX S03
EBDA 90 OS
BCC $EBEI
JSR SE87C JHP SEbAS
EeOC IC
??? ??? ???
EB95 86 C7
ESAI A2 02 E8A3A900 EBAS C5 03 E8A7 FO 07 ESA9 18
94
U02 LOA UOO 01P $D3 BEQ SE8BO LOX
CLC
EBDAj
EBDD E8DE EBDF EBE2 EBE4 EBEb
Colour code tAble
9F 9C IE IF 9E BI 95 9b 97
98
ESE7 99 9A 98
E8EA;
ASL $9EIF,X STA (S95,X) STX S97,V TYA STA 5999A , V
Scroll screen
EBEA EBEC EBED EBEF EBFO EBF2 EBF3 EBFs ESFb ESFB EBFA ESFC EBFF E900 E903 E90s E907 E90A E9QC E90E E911
AS 4B AS 4B AS 4B AS 4S A2 Cb Cb
AD
LDA $AD PHA
E9s1 E9s2 E9s4 E9sb
AE
LDA SAE
E9SB 68
AC
LOA SAC PHA
PHA AF
FF Db C9 CE AS 02 EB 20 FO E9 EO IB BO OC BD FI EC SS AC B5 DA 20 CB E9 30 EC
LDA PHA LDX DEC DEC DEC INX JSR
$AF
I$FF $Db $C9 S02AS
STA $AC LDA SOA, X
JSR $£9CB BllI SEBFF 1$00 SD9,X U7F SDA,X SE922 USO SD9,X .SIS SE91B $Fl
ORA 1$80
STA LDA BPL INC INC LDA STA
$fl $D9 SEBFb $Db $02AS IS7F SDCOO
LOA SDCOI
CI1P I$FB
PHP
OB
E948 AD 00
E94D EA E94E CA E94F DO FC
STA SAD PLA STA :fAC
RTS
BC5 $E913
JSR SE9FF
7F 00 DC
STA $AE
PLA
LDA $ECF1,X
LDX LDA AND LDY BPL ORA STA INX CPX BNE LOA
IB EF FI SO FI D9 C3 Db AS 02 7F 00 DC 01 DC FB
$AF
PLA
SE9FO
E91b E91S E91A E91C E91E E920 E922 E924 E92s E927 E929 E92B E92D E92F E931 E933 E935 E938 E93A E93D E940 E942 E943 E94s E94B E949
00 09 7F OA 02 SO D9
E9s9 SS AF E95B 08 E95C Bs AE E95E bB E9sF B5 AD E9bl bB E9b2 B5 AC E9b4 1,0
$E94D SCb SOb
CPX 1:$18
E913 20 FF E9
A2 Bs 29 B4 10 09 95 EB EO DO AS 09 as AS 10 Eb EE A9 SD AD C9 08 A9 BD 2B DO
DEY BNE STY LOX PLA STA
BS DO F9 B4 Cb Ab Db
LDA I$7F STA SDCOO PLP BNE SE95b LOYesOO NOP OEX BNE $£94D
E9bS Ab Db E9b7 EB E908 Bs 09 E96A 10 FB
E9bC E9bF E971 E973 E975 E97B E97B E97C E97E
BE EO FO 90 20 AE CA Cb 4C
AS 02 lB OE OC EA EB AS 02 Db OA Eb
$Db SEbDA
LDA $AD PHA LDA $AE PHA LOA SAF
48
A5 AE AS 4B A2 CA 20 EC 90 FO BD B5 B5 20 30 20
$D9,x SE9b7 S02A5 U1S SE981 $£9S1 SEBEA $02AS
PHA
4B AS AD
E989 4B
E9BA E9ac E9BD E9BF E990 E993 E99b E998 E99A E99D E99F E9AI E9A4 E9Ab
$Db
LOA :SAC
E981 AS AC
E9B3 E984 E9BO E987
LOX INX LOA BPL STX CPX BEg BCC JSR LDX DEI DEC JI1P
AF
PHA
19 FO AS OE OC EF AC DB C8 E9 FF
E9 02 EC E9 E9
LDX DEX JSR CPX acc BEll LOA STA LDA JSR BMI JSR
1$19 $E9F0 S02As $E9Ab $E9Ab SECEF ,X SAC SDB,X $E9C8 $E98F SE9FF
E9A9 A2 17
LOX .$17
E9AB EC AS 02
CPX S02AS
95
E9AE E9SO E9B2 E'1B4 E9Bb E'1BS E9BA E'111C E9BO E9BF E9C2 E'1C5
'10 OF BS OA 2'1 7F B4 D'1 10 02 0'1 SO '15 DA CA DO EC AE AS 02 20 DA Eb 4C 5S E9
IICC LDA AND LOY BPL ORA STA DEl BNE LOX JSR Jt1P
$E9BF $OA,X U7F
$D9,X $E9BA *$SO $DA,l
$E9AB $02AS $EbOA $E9SS
E9FE bO
E'lFF AO 27 EAOI 20 FO E9 EA04 20 24 EA
RTS LOY 1$27 JSR $E9FO JSR $EA24
EA07 AI? 20
LDA •• 20
EAO'1 'II DI
STA ($Oll, Y JSR $E40A
EAOB 20 DA E4 EAOE EA EAOF BB EAIO 10 FS EAI2 bO EAI3 AS £A14 Aq 02
E9C8 2'1 03 E9CA 00 88 02
E9CD E9CF E9D2 E9D4 E9Db E9De E9DA E'1De E9DO E911F
as
20
AO 81
AD EO E9 27 AC DI AE
JSR :SE9EO
EA21 91 F3-
STA (.$F3),Y
LDY 1$27
EA23 EA24 EA2b EA28 EA2A
RTS LDA $01 STA $F3 LOA $02 AND *$03 ORA I$OS STA $F4 RTS JSR $FFEA LDA $CC SNE $EMI DEC $CO BNE SEAbl LOA 1$14 STA SCD LOY $03 LSR $CF LOX $02S7 LOA ($Oll, Y BCS $EASC
LDA (SAC)tY
91 BI 91 F3
STA
88 10 FS
DEY
EA2C
BPL $E9D4
bO
EA2E
RTS
EA30
STA ($DIl, Y LOA ($AEl, Y ($F3), V
Synchronize colour trAfl.fer
E'lEO 20 24 EA E9E3 AS AC E'1ES SS AE E9E7 AS AD E9E9 29 03 E'1EB 09 OS E'1E0
as
AF
E9EF bO EWO; E9F3
E'lFS
as as
01
09 29 03 E'lF9 00 88 02 E9FC BS 02
E9F7
96
JSR $EA24 LDA $AC STA $A[ LDA $AO AND *.03
ORA I$OS STA $AF RTS
Int. ...rupt. - clock etc.
E9FO BO FO EC
U02 $CO $EA24
ORA $02SS STA $AO
AND 1$03
EA31 E9EOI
$EA07
EAlb EAIS EAIB EAIC EAIE EA20
I1ove. scrlMtO 1 in.
E9C8;
LOA $ECFO,X STA $01 LOA $09,l AND 1$03 ORA $0288 STA $02
EA34 EA36
EA38 EA3A EA3C EA3E EA40
EA42 EA44 EM7
BS CD 20 24 EA
NOP
DEY BPL RTS TAY LDA STA JSR
98
TVA
A4 03 91 01
LOY $03 STA ($Oll ,Y TXA
SA
bO
AS 01 F3 AS 02 29 03 0'1 De as F4 60 20 EA FF AS CC 00 2'1 C6 CO DO 25 A9 14 BS CD A4 03 46 CF AE B7 02 BIOI SO 11 Eb CF
as
EAA9 EMB EAAO as EA4F 20 EAS2 BI EAS4 BO EAS7 AE
INC $CF
CE
STA SCE
24 EA
JSR $EA24
F3
LOA (SF3), V
B7 02 B6 02
STA LOX LDA EOR JSR LOA
ElISA AS CE EASe 49 BO EA5E 20 IC EA
EMI AS 01 EA63 2'1 10 EMS FO OA
$0287 $0286 $CE 1$80 SEAIC $01 AND 1$10 BEQ $EA71
10 S4 6B CB CO BO CA DO
02 CB
BPL SEACB STY SCB
LOY ISo.> STY SCO LOA SOl ORA .S2O BNE SEA79 LOA SCO BNE SEA7B LOA SOl AND *SIF STA SOl JSR SEAS7 LOA SDCOD
EAC7 EAe9 EACB EACC EACD EAeF EIIIDl EAID2 EA,D4 EI\DS EA,06
EAID7 aD 00 DC
STA $DCOO
EASt 68
PLA
EAB2 EAB3 EAB4 EABS
TAY PU\ TAX PLA
EADA EA,DC EA,DD EAiEO EAE2 EAIE4 EAES EAiE7 EAE'! EA£B EAEE EAIFO EAIF2
BNE PU\ JIIP LOY LOA TAX CPY
EA07 AO 00 EA69 B4 CO EAbB AS 01
EAOD EAbF EA71 EA73 EA7S EA77 EA79 EA7B EA7E
~A9b
09 20 00 OB AS CO 00 06 AS 01 29 IF B5 01 20 B7 EA AD 00 DC AB b8 AA b8 40
EAS7;
RTI Read keyboard
EAS7 A9 00 EAB9 BO BD EABC AO 40 EABE B4 CS EA90 BO 00 EA93 AE 01 EA9b EO FF EA9B FO 1.1 EA9A AB EA9B A9 BI EA9D as FS EA9F A9 EB EARl F6 EAA3 A'I FE EAAS BO 00 EAAB A2 OS EARA 4B EARS AD 01 EAAE CO 01 EABI DO FB EAB3 4A EAB4 JlO II. EAeb 4B EAS7 BI FS EAB9 C9 OS EABB BO OC EABD C9 03 EABF FO OB EReI 00 BD EAC4 SO SO
02
DC DC
as
DC DC DC
LOA Sl'A LOY STY STA LDX CPX BEtl TAY LOA Sl'A LOA 5TA LDA STA LOX PHA LOA CMP
.$00 $0280 t$40 $CB
SDCoo $DCOI ,SFF SEAFB tsBl SFS ISEB sF6 .SFE $OCoo tsOB
SDCOI sOCOI BNE SEARB LSR
BCS SEACC PHA LDA (SFS) , Y eMPUOS BCS sEAC9 eMP U03 SEtl SERC9 02 02
ORA $028D
STA $02BO
PLA 41 OB
INY CPY IIS41 BCS SEADC
DEX OF
38
BNE SEAB3 SEC
PLA
6B 2A
ROL
DO CC bB bC SF 02 A4 CB Bl FS
AA
SEAAS (S02BF) sCB (SFS),Y
C4 c:5 FO 07 AO 10 BC Be 02 DO 3b 2'1 7F 2C SA 02 EAIFS 30 16
LOY 11$10 STY S02BC BNE SEB26 AND 1I$7F BIT S02BA DIll SESOD
EIlF7 70 49
BVS $EB42
EAlf9 C9 EAA! FO EAIFD C9 EAIFF FO EEIOI C9 EEI03 FO EEIOS C9 EBI07 FO EEIO'l C9 EEIOB DO EBIOD At EEIIO FO EEI12 CE EE,IS DO
7F
CMF U7F
2'1
SEQ SEB2b
14 OC 20 OB ID 04 II 3S BC 02 OS BC 02 2B
CliP BEll ClIP BED
EEI17 CE 88 02
EEIIA EEIIC EE'IE EB121
Sc:5
BED SEAFO
DO 21. AO 04 BC BB 02 A4 C6
EEI23 88
EB124 10 IC EBI26 A4 CB
EBI2B B4 c:5 EEI2A AC BD 02 EEI2D BC BE 02
CP1P BEtl ClIP BNE LDY BEg DEC BNE DEC BNE LDY STY LDY DEY BPL LDY 5TY LDY STY
11$14 SEBOD 11$20 SEBOD .$10 SEBOD 11$11 SEB42 S02BC SEDI7 S02BC sEB42 S028B SEB42 U04 $02BB SCI. SEB42 SCB sCS S02BD S02BE
97
EB30 EB32 EB34 EB35 EB37 EB3A EB3C EB3F EB40
EO FO 8A A6 EC DO 90 fB B6
FF OE
C6 B9 02 06 77 02 C6
E942 A9 7F
EB44 EB47 EB4B EB4B EB4D EB4F EB52 EB54 EB57 EB59 EBSC EB5E EBbI EB64 EBbS EB67 EB69 EB6B EB6C EBbF EB71
BD 60 AD C9 00 CD FO AD 30 AD 49 BO 4C OA C9 90 A9
00 DC BD 03 15 BE EE 91 10 IB 02 IB 76
02
CPX BEQ TlA LOX CPX BCS
STA INX STX LOA STA RTS LOA CIP ~
EB74 85 Fb
Ct1P BEg LOA BIll LOA EOR STA Jt1P ASL CI1P BeC LDA TAX LDA STA LDA STA
EB76 4C EO EA
JI'tP
02 02 DO 00 EB
OS 02 06
All
BD 79 EB 85 F5 BD 7A EB
UFF SEB42 SCI. S0289 SEB42 S02 77,X
SCI. U7F SDCoo S02BD 1$03 SEB64 S02BE SEB42 S0291 SEB76 SOOIB 1$02 SOOIB SEB76 UOB SEB6B lIS06 SEB79,X SF5 SEB7A,X $F6 SEAEO
EB791 Keyboard sel ect. vect.ors
EB79 EB7B EB7C EB7D EB7E
Bl EB C2 EB 03 EC 7B EC
STA
6B9B EBBD EBSE EBBF EB91 EB93 EB94 EB96 EB9B EB99 EB9A EB9D EB9E EB9F EBAI EBA4 EBA6 EBA7 EBAB EBAB EBAE EBAF EBBO EBB3 EBB4 EBBS EBB7 EBBA EBBB
41 5A 53 45 35 44 36 46 58 37 59 42 4B 55 39 30 4B 4F 4E 4C 3A 40 2C 3B 13 01 5E SF 04
?7?
01 52
EOR SOl AND S52 ,X
???
43 54
ROL $43 ,X
LSR$54 CLI ???
47 3D
EOR S3D47,Y ???
56
49 4A 40
PHA EOR $56,X AND S4A49,Y Bill SEBF3 ???
???
2B 50 2D 2E
LSR S5028 JItP S2E2D ???
5C 2A
RTI BIT S2A5C ??? ? ??
3D 2F 3 1
ORA ($3D,X)
LSR S312F ,X ??? ???
EBOC 3 2
???
JSR S51 02 ? ?? ???
KRybo.rd 2 - shiftRd
EBC2;
CPX SEC7B
EBC2 EBC4 EBC7 EBCB EBC9 EBeB EBCC
94 9D BA BB 91 07 Cl
EBCE DA
EBBI EBS2 EBB5 EBB7 EBBB EBBA
EBCF EBDO EBD2 EBD4 EBD6 EBD7 EBD9
98
???
(SEB,X)
? ?? ??? ???
???
ORA SBBID STA SB6 ???
ORA (S33) ,Y ??7
EOR (S34. X)
EBBD 20 02 51 EBCO 03 ESCI FF
EBBl; Keyba.rd 1 - unshiftad 14 00 ID BB 85 B6 B7 11 33 57
34
D3 C5 2S C4 C3 C6 DB
BD Be
B9
STY $BD,X STA S898C , ~ TXA ???
23
STA ($23 ) ,Y ???
24
CIP ($24,X) ??? ???
01 D2 26
ClIP SOl AND SD2 CPY S26
04
DEC SD4 CLD
???
EBDA 27 EBDB D9 C7 2B EBDE C2
???
EBDF C8
I NV
EBEO OS Db
Ct1P SDO , X AND UC'1
EBE2 29 C9 EBE4 CA EBE5 30 CD ESE7 CB EBEB CF EBE9 CE DB EBEC CC DO EBEF :sa EBFO SA EBFI 3C EBF2 A9 CO EBF4 SO 93 EBF7 3D DE
CI1P S2BC7, Y ???
DE X BIll SEBB4 ???
??? 00
3E
DEC SOOOS CPY S3EDD ???
EC2F 3E EC32 3C EC33 AB EC34 OF EC3S 51> EC3B 3D EC3B BI EC30 0 4
01 3F
LDA UCO EOR SOI93,X AND flFOE,X AND ($5F,X) ??? ???
EBFD 22 AO 02 DI 8 3 EC02 FF
91 S3 BO AD 01 B2 AC BB
DE 3F SF
??? EOR $Ol93,X AND .s3FDE, X STA (.SF ,X) ???
STA SAO,X
02
???
AB
???
S3 FF
??7
LOY "02 CI'f' 1$83 ), Y
EC44;
? ??
EC44 EC4b EC4B EC4B EC4D
6r~phics/text
control
C9 OE DO 07 AD IB 00 09 02
ORA 1$02
00 09
BNE SECSB
CI1P UOE BNE SEC4F LOA SOOIB
???
EC4F;
ECOA ECOC ECOO ECOF ECI2 ECI4 ECIS ECIS ECI9 ECIA EelO ECIF EC20 EC22
93 0 1
TSX
EBFE ECoo
EC03 94 80 Be
TAY
EC3E 9S AO
EC40 EC41 EC42 EC43
ROL $A4SB,X ???
???
EBFA 21 SF EBFC 04
ECOS 9D ECOB SA EC09 BS
sa A4
STY SSD,X 69
ST A :$B'lBC, X
TXA ??? 91,
STA
($96), Y
???
97 AE BI 9B
BCS SEBAb LOA SBlAE ORA ($98 , X) ???
99 Be
LOY SBC99
A3
??? ???
BD 9A B7 AS 9B
LDA SB79A,X LDA S9B
SF
B4 BB BE 29 A2 EC2S B:s 30 EC27 A7 EC2BAI89 EC2A AA EC2B AI. AF EC2D Bb DC
Set graphic5/b.t .ad..
EC4F C9 BE ECSI 00 OB ECS3 AD IB 00 ECSb 29 FD EC:sa BO IS 00 ECSB 4C AB Eb ECSE C9 OS ECbO DO 07 ECb2 A9 SO ECb4 OD 91 0 2 30 09
ECb7 ECb9 ECbS ECbD ECbF ECn EC7S
C9 09 00 EE
A9 7F 2D 91 02 BD 91 02 4C AB Eb
CI1P USE
BNE SECSE LOA SOOIB
ANOUFD STA SOOIB JIIP SEbAB ClIP UOB BNE SECb9 LOA 1$80 ORA S0291
BtU SEC72 ClIP 1$09 BNE SECSB
LOA IS7F AND S0291 STA S0291 JP1P SE0A8
???
LOY SB8,X LDX SA229 , Y
EC7B;
Keybo;ord 4
LDA $3() ,X ???
LOA IS89, Xl TAX LOX SAF
LOX $DC,Y
EC78 FF EC79 FF
EC7A FF EC7B FF EC7C FF
??? ??? ??? ??? ???
99
EC70 EC7E EC7F EC80 EC81 EC82 EC84 ECBS EC86
Ecae EC89 ECBA EC8B EcaE
ECBF EC90
EC91 EC94 EC95 EC% EC9B EC99 EC9B EC9C EC9F ECA2 ECA3 ECA4 ECAS ECA6 ECA7 ECAB ECA9 ECAA ECAO ECAE ECBI ECB3 ECes ECB6
FF FF FF IC 17 01 IA 13 05 9C 12 04 IE 14 18 IF 19 02 08 15 12 u9 92 00 OE OC FF
??? ??? ???
??? ???
9F
ORA (S9F,X) ??? ???
FF
ORA SFF ??? ???
??? 03 06
ASL SOb03 , X ???
00 00
00
9B 37
???
Ecce 00
BRK
BRK BRK PHP BRK
???
00 OE 06 01 02 03 04 00 01 02
EC~2
03
???
ORA SOFOB ASL SIOFF ??? ???
?7?
IB
???
00
BRK
FF IC FF 10 IF IE 06 05 FF
??? ??? ??? ORA SFFFF,X ??? ASL S90FF ,X
ASL SFF ORA $FF
14 OF
?'??
???
00
00 00 00 00
ECE3 04
ECE4 05 06 ECE6 07 ECE7;
BRK BRK BRK BRK BRK BRK ASL SOI06 ???
??? ???
BRK ORA (S02,X) 7?? ??? ORA SOb ???
Shift/run equiv.lent
???
II FF
Ecae FF
???
Vi dec chip setup
ECB9 00 ECBA 00 ECBB 00 ECBC 00
ECBD 00 ECBE 00 ECBF 00
100
BRK BRK BRK BRK BRK
ECOI EC02 ECD3 EC04 ECOS ECD6 EC07 ECOB EC09 ECOC ECOO ECDE ECDF ECEO
FF
ECB9;
BRK
ECDO 00
OA
FF
00 00 00 00
???
??? ORA .sOA
FF 90 FF
00
???
16
FF FF
BRK DRK BRK BRK
ORA S9E07,Y
PHP ORA SI6,X
OB OP FF 10
00 00
ECCO 00 ECCE 00 ECCF OB
CLC 07 9E
ECCO ECCI ECC2 ECC3 ECC4 ECC5 ECC6 ECC7 ECCB ECC9 ECCA ECCD
BRK BRK BRK BRK
ECE7 4C EC'EA 44 ECEB 00 EC'EE 4E ECFI 2B ECF2 SO ECF4 AD ECF6 FO ECFB 40
4F 41 52 55 00 00
Jt1P S414F ??? ORA $5552
LSR $oooD PLP
7B CB IB
BVC SEObC LOY ISCB
BEll S£OIO RTl
BRK
BRK BRK
ECF9;
SCr.... i n
~ddretos
10M
ECF9 ECFA ECFC ECFE EDOO EDO! ED02 ED04 ED07
68
PLA
90 EO 30 BO AS DO 20 9B EDOS CO EDOA 40
BB OB 5B
FB 4B 70
09
ED40 ED41 ED44 ED47 ED49
JSR S704B CPY .$09
BIT $2009 JSR $F0A4
Send 'listan '
3B bb 20 46 46 bB
A3 40 ED 94 A3
95
78 20 C9 DO 20 AD
97 EE 3F 03 BS EE 00 DD
BD 7B 20 20 20
PHA BIT $94 BPI. SED20 SEC RORSA3 J5R $ED40 l5R $94 LSR $A3
PLA
as
ED31 0'9 08
ED4O;
BNE SECFC
RTI
ED14 1Q OA
ED33 ED3b ED37 ED3A ED3D
BtH SED5B
TVA
ED!! 4B ED!2 24 94 EDI6 EDI7 EDI9 EDIC EDIE ED20 ED21 ED23 ED24 ED27 ED29 ED2B ED2E
CPX tlSOB ??? TAY
EDOB 2C 09 20 EDOE 20 A4 FO
EDtt;
BCC SECB4
00 DD
STA 5EI JSR CHP BNE JSR LDA ORA STA
S9S SEE97 . . 3F SED2E $EEBS $DDOO •• OS SDDOO
SEI
BE EE 97 EE
B3 EE
JSR $EEBE J5R SEE'I7 JSR sEEB3
Sand to 5er""ial bus 78 20 97 EE 20 A9 EE BO 64 20 as EE
ED4C ED4E EDSO EDS3 E055 ED58 ED5A ED5D EDSF ED62 EDb4 EDbb EDb9 EDbC EDbE EDbF E071 E073 ED75 ED7B ED7A ED7D EOBO EDBI EOB2 EDB3 EDB4 EDB7 EDB9 EDBB EOBE E090 ED92 ED94 E097 ED99 E09C ED9F EOA2 EDA4
24 10 20 90 20 BO 20 90 20 A9
B5 AD CD DO
A3 OA A9 FB A9 FB A9 FB BE 08 A5 00 00 FB
EE EE
EE EE
AD
AD 29 DO EDA6 20 EDA9 eo
DD DD
3F 95 05 AO EE 03 97 EE BS EE
DCS JSR DCC J5R
SEDSS SEEA9 SEDSA SEEBE
STA LDA CI1P lINE ASl DCC ROR BeS JSR BNE JSR JSR
SA5
scnoo SDDOO SEDbb SEDBO $95 SED7A SEEAQ SED7D SEE97 SEEBS
NOP NOf'
NOP NOP 00 DO DF 10 00 DD AS D4 04 07 DC 19 OF DC 00 DC OD DC 02 OA A9 EE F4
EDAB sa EDAC 60 EDAD A9 80
EDAF
JSR sEEA9
LOA "00
OA 90 bb BO 20 DO 20 20 EA EA EA EA AD 29 09 8D C6 DO A9 BD A9 BO
BIT SA3 BPL SEDSA JSR SEEA9 BCC SEDSO
2C A9 03
L.DA SDOOO
AND ORA STA DEC BNE
lOA STA
lOA STA LDA LOA AND BI£ JSR BCS
UDF UIO SDDOO SAS SEDbb IS04 SDe07 1$19 SDCOF SDeOD SDCOD 1$02 SEDBO SEEA9 SED9F
CLI RTS LOA BIT S03A9
.seo
SEI JSR J5R DCS JSR
sEE97 SEEA9 $EDAD SEEB5
ED82;
s.riAl t.i-.out.
ED82 20 IC FE EDB5 sa
JSR .FEte Cli
101
EDB6 18 EDB7 90 4A EDB9;
CLC BCC SEE03
Send 1 isten SA
EDB9 BS 95 EDBB 20 31. ED EDBE; EDBE EDCl EDC3 EDCb
STA S95 JSR SED3b
1.0
EDC7;
Send
t~lk
EDC7 BS 95 20 3b ED
EDC9
EDCC;
W~it
SA
STA S95 JSR SED3b
for clock
EDCC 78 EDCD 20 AO EE EDDO 20 8E ED EDD3 20 B5 IT EDDb 20 A9 EE EDD9 30 FB EDDB 58 EDDC 1.0
SEI JSR SEEAO JSR SEDBE JSR SI':I':95
J5R SITA9 BI11 SEDDb CLl RTS
Send seriAl dM.,.red
EDDD; EDDD EDDF EDEI EDE2 EDE4 EDEb EDE7 EDEA EDEB EDED EDEE
LOA SDOOO AND UF7 STA SDDOO RTS
24 94 30 OS 38 1.1. 94 DO OS 48 20 40 ED
BIT S94 BI11 SEDEb SEC ROR S94 BIE SEDEB
PHA J5R $ED40
1.8
PLA
BS 95 18
5TA $95 CLC RT5
1.0
EE03 EEOb EE07 EE09 EEOA EEOC EEOD EEI0
20 8A A2 CA DO AA 20 4C
EE13j
102
Send 'unt.lk '
DO 3F ED
BE ED OA FD 85 EE 97 EE
SEI J5R LOA ORA STA LOA
SEEBE SDOOO 1$08 $0000 I$SF
BIT :S3FA9
J5R SEDII
JSR TXA LOX DEX BNE TAX JSR JI1P
SEDBE UOA SEE09 SEEBS SEE97
Receive fra- serial bus
EE13 78 EEI4 A9 00 EElb BS AS EE18 20 BS EEIB 20 A9 EEIE 10 FB EE20 A9 01 EE22 80 07 EE2S A9 19 EE27 80 OF EE2A 20 97 EE2D AD 00 EE30 AD 00 EE33 29 02 EE3S 00 07 EE37 20 A9 EE3A 30 F4 EE3C 10 18 EE3E AS AS EE40 FO OS EE42 A9 02 EE44 4C B2 EE47 20 AO EE4A 20 85 IT4D A9 40 EE4F 20
EDEF;
EE DO
Soond ·unlist .... .
EE03;
Clear ATN
AD 00 DO 29 F7 80 00 DO
EDEF 78 EDFO 20 BE EIJF3 AD 00 EDFb 09 08 EDFB 80 00 EDFB A9 SF EDFD 2C A9 EEOO 20 11
Ie
EE52 'Eb AS EE54 00 CA
EE EE DC DC EE DC DC EE
ED EE EE ~
SEI LOA STA JSR JSR BPL LOA 5TA LOA STA
ISOO SA5 SEEBS SEEA9 SITIB lISOI SDC07 "19 SDCOF
JSR $EE97
LOA LOA AND BNE J5R BI1I
SDCOD SDCOD 1$02 SEE3E SEEA9 SIT30
BPL
$E~
LDA BEQ LOA JI1P JSR J5R LDA
SAS $EE47 1$02 SEDB2 SEEAO SEEBS 1$40
JSR Sl'l':tC
INC $A5 BNE SEE20
EES6 A9 08 EE58 B5 AS EE5A AD 00 EESD CD 00 EEbO 00 FB EEb2 OA EEb310FS EEb5 bb A4 EEb7 AD 00 EEbA CO 00 EE/,D DO FB EEbF OA EE70 30 FS EEn CO AS EE74 00 E4 EE7b 20 AD EE79 24 90 EE7B 50 03 EE7D 20 Db EEBO AS A4 EEB2 SB EEB3 IS EEB4 bO
DD DO
DO DO
EE EE
LOA 1$08 STA SAS LOA SDOOO CI1P SOOOO BtE SEESA ASL BPL $EESA ROR SA4 LOA SOOOO ClIP SDooo BI£ SEEb7 ASL BI11 SEEb7 DEC SA5 BNE SEESA JSR SEEAO BIT S90 BVC SEEeO JSR SEEOb LOA SA4 CLl
CLC RTS
EEA3 09 20
EEAS so
LOA SOOOO AND ISEF
STA SOOOO RT5
s.ri",l clock off
EEBE AD 00 DO EE91 09 10 EE93 BD 00 DO EE9b bO
AD 00 DO CD 00 DO 00 FS OA
60
EEB3 BA EEB4 A2 BS EEBb CA EEB7 00 FD EEB9 AA EEBA bO
LOA SDDOO ClIP SODOO BNE SEEA9 ASL RTS
TXA LOX ISBB OEX BNE SEEBb TAX RTS
RS-232 send
LOA SDooo DRA IISIO STA sDooO
RT5
EEBB AS FO EEBF 30 EECI 4b EEC3 A2 EECS 90 EEC7 CA EECB SA EEC9 45
EEBD
EECD EECF EEOI EE02 EEOb EED7
EE97 AD 00 DO EE9A 29 OF EE9C SO 00 DO EE9F bO
AD 00
DO
B4 47 3F
B6 00
01 BD
EECB BS Bt)
EED4
EEAO
Get sari.1 in L clock
EEA9;
EEA9 EEAC EEAF EEBI EEB2
STA SDOOO RTS
Serial clock on
EEBS AD 00 00 EEBB 29 EF EEBA BO 00 DO EEBD bO EEBE;
ORA •• 20
DO
EEAB bO
EEBB;
EEB5;
00
LDA SDooo
EED9
AND ,SOF
EEOC EEOC
Cb B4 FO Ob BA 29 04 B5 B5 60 A9 20 2C 94 02 FO 14 30 IC 70 14 AS BO
5TA SOOOO RTS
EEEO
LOA SDDOO
EEE2 EEE4 DO 01 EEEb CA EEE7 Cb B4 EEE9 AD 93 02
LOA SB4 BEQ SEFOb 8111 SEFOO LSR sBb LOX "00 BCC SEECS OEX
TXA EOR STA DEC BEQ TXA
sBD SBt)
sB4 SEED7
#$04 STA S95 RTS LOA "20 BIT S0294 BEll SEEF2 8111 SEEFC BVS SEEFb LOA sBD ONE SEEEl DEX DEC SB4 LOA S0293 AND
103
EEEI: EEEE EEFO EEF2 EEF4
10 I:b DO Eb DO
E3 B4 OF
B4 FO
BPL DEC BNE INC BNE
sEED I sB4 sEEDI s84 sEEEb
EEFb AS DO
LOA SBD
EEFB EEFA EEFC EEFE EFOO EF02
BEQ
FO DO 70 SO Eb A2
ED EA E9 Eb B4
FF
EF04 DO CB
EFOb; EFOb EF09 EFOA EFOC
EF4A;
INC S04 LOX UFF
EF4A A2 09
LOX ••09
EF4C A9 20 EF4E 2C 93 02 EF51 FO 01 EF53 CA
LDA 1$20 BIT s0293 BED sEF54 DEX ave SEFSB OEX DEX RTS
BNE SEED!
LDA S0294 LSR
IT21 CC QI; 02
EF24 EF2b EF2B EF2A EF20
FO 01 BS EE
13 F9 Db 90 02
1.0
EF2E;
EF33;
sEF31 1$00
SOD s85 S029B STX sB4 LOY s0290
CPV t02QI; BEQ
sEF39
LDA tsF9} , Y
STA SOb INC s029D RTS
No - DSR errDr
EF2E A9 40 EF30 21: A9 10
1$40 OIT SlOA9
LOA
No - eTS error
EF33 00 97 02 EF3b BO 97 02
ORA $0297 STA S0297
EF39 A9 01
LOA 1$01
EF38;
Ca.put.. bit. count.
EF54 SO 02
EF56 CA EFS7 I:A EF58 60
BCC sEF13 OIT sODOI BVC LOA STA STA LOX
DO OS AE 9B 02 Bb B4 AC 90 02
BD 1.0
Dis.bl. ti..,-
EF59;
RS232 rec:.i v.
EF59 A6 A9 EFSB DO 33 EF5D C6 AD EF5F FO 3b EF61 30 00 EF63 AS A7 EF65 4S AS EF67 B5 AB EF69 46 A7 EF60 66 AA EF6D 60
LOX BNE DEC BEG!
EFbE Co AS
DEC sAS LOA sA7
EF70 EF72 EF74 EF77 EF7B EF7A EF7C EF7E;
EF7E EFBO EFB3 EFBb EFB9
A7 FO 67 AD 93 02 AS
OA
A9 01 65 AB DO EF
8111
LOA EOR STA LSR ROR
SA9 sEF90 sAD SEF97 sEF70 sA7 sAD SAB SA7 sAA
RTS BEQ
SEFDO
LOA S0293
ASL LOA UOI ADC sAB BNE $EFbO
Setup to receive A9 BO 00 BD OS
90 00 DO AI 02 AI 02 A9
EFBB A9 02
104
sODOO S02AI UBO s02AI sODOO
BVS SEEE7
BPL :t:EF2E
00
eo Al 02 00 DO
STA EOR ORA STA STA RTS
evc SEEEb
EFII EFI3 EFIS EFI7 EFI9 EFIC EFIE
IE
00 DO AI 02
sEEE7
EFOF 10 10
50 A9 OS BS
BO 40 09 BO
BNE sEEEb
Sand n .... RS-232 byte
AD 94 02 4A 90 07 2C 01 DO
EF3B EF3E EF41 EF43 EF4b EF49
LOA STA ORA STA
. .90 SOOOO S02AI s02AI
STA SA9
LOA U02
EF8D EF90 EF92 EF94 EF96 EF97 EF9A
4C 38 EF AS A7 00 EA 8S A9 60 AC 98 02
ce
EF98 CC 'Ie 02
EF9E EFAO EFA3 EFAA EFA6
FO 2A Be 98 02 88 AS AA AE 9B 02
JI1P SEF3B LOA sA7
STA sA9 RTS LOY S029B INY Cl'Y
S029C BEQ SEFCA STY S029B DEY LOA SAA LOX S029B CPX •• 09
EFAB EFAD EFAE EFAF EFBI
FO 04 4A E8 00 FB 'II F7 EFB3 A9 20 EFB5 2C 94 02
BEQ SEFBI LSR INX BNE SEFA9
EFBS FO 84
BEQ SEFbE
EFBA EFBC EFBE EFCO EFC2
Iml SEFoD LDA SA7 EOR SAB BEQ SEFC5 BVS SEFoD
30 BI
A7 AB 03 A9
STA ($F7),V
LOA 1S20 BIT $0294
EFEt;
Subai t to RS2J2
EFEI 8S 9A AO 94 02
STA S9A LIlA S0294
EFEb 4A
LSR
EFE3
EFE7 90 EFE9 A9 EFEB 2C EFEE 10 EFFO 00 EFF2 AD EFF5 29 EFF7 00 EFF9 2C EFFC 70 EFFE AO FOOl 09 Foo3 80 Foo6 2C FOO9 70
BIT SA650 LOA 11$01 BIT S04A9
FOOD FOOF FOl2 FOl3 FOl4
EFCF 2C A9 02 EFD2;
EFD2 EFDS EFOB EFDB
BIT SBOA9
BIT S02A9
Fruting ..... ror
00 BD 4C AS
97 02 97 02 7E EF AA
ORA STA JIIP LOA
S0297 S0297 SEF7E SAA
BeC LOA B[T BPL BNE LOA AND
BNE BIT
BVS LOA ORA
STA BIT
SFOl2 11$02 SDOOI SFooD SFOl2 S02A1 11$02 SEFF2 SOOOI SEFF9 SDool 1$02 SDOOI SDOOI
BVS SF012
BI1I SFOO6
No - D5R error A9 40 BD 97 02 18 60 20 2B FO
F017;
EFCC 2C A9 eo
29 02 01 DO 10 20 AI 02 02 F9 01 DO FB 0 I DO 02 01 DO 01 DO 07
FOOB 30 F9
FOOD;
EFC4 2C 50 A6 EFC7 A9 01 EFC9 2C A9 04
BNE SEFOO SEFCD
BEll
BNE SEF7E
EFA9 EO 09
A5 45 FO 70
EFDD 00 FI EFDF FO EC
LOA 1$40 STA S0297
CLC RTS JSR SF02B
Send to RS232 bU'ff.,..
FOl7 AC 'IE 02
LIlY S029E
F01A C9
tNY
FOl8 CC 90 02 FOIE FO F4 F020 BC 9E 02 F023 SS F024 AS 'IE F026 91 F9 F02S AD Al 02 F02B 4A F02C SO IE
CPY S029D BEll SFOl4 STY S029E LOA STA LOA LSR 8CS
F02E IV1
LOA •• 10
10
F030 SO OE DO F033 AD 99 02
DEY S9E (SF'll, Y S02AI SF04C
STA SDooE LOA S0299
105
F030 F039 F03C F03F F041 F044 F047 F049 F04C
80 AD 80 A9 20 20 A9 80
04 DO 9A 02 05 DO 81 3B EF Ob EF II OE DO
bO
STA LDA STA LDA JSR JSR LOA STA RTS
SD004 S029A SDooS 1$81 $EF3B SEFOb
F040 B5 99
STA $99
F04F FOS2 F053 FOSS FOS7 FOS9 FOSB FOSE FObQ FOb2 FObS FObb FObB FObB F060 F070 F073 F075 F077 F079 F07A
LOA S0294 LSR BCC SF07D AND .SOB BEll SF070 LOA *$02 BIT SDool BPL SFooO BEQ SF084 LOA S02AI LSR BCS sFOb2 LOA SODOI ANDUFD
AD 4A 90 29 FO A9 2C
10 FO AD 4A BO AD 29 80 AD 29 FO A9 lB 4C
94 02 28
08 24 02 01 DO AD 22 Al 02 FA 01 DO FD 01 DO 01 DO 04 F9 90
38 EF F07D AD Al 02
F082 FO F3 FOB4 18 FOSS bO F08O;
FOBb AD F089 AC F08C CC F08F FO F091 29 F093 80 F096 BI F098 EE
106
Get frca
97 9C 9B OB F7 97 F7 9C
STA $0001
LOA SDooI AND 1$04 BEQ SF070 LDA lIS90 CLC Jt1P $EF3B LDA $OZAl
AND .S12 BEll SF077 CLC RTS
F090 29 12
02 02 02 02 02
F09E 80 97 02 FOAl A9 00 FOA3 60 F0A4;
Check serial bus idle
F0A4 FOA5 FOAB FOAA FOAD FOAF F081 FOB3
48 AD FO AD 29 DO A9 80 FOB" A9 FOBS 80
Al 02 11
Al 02 03 F9 10 00 DO 00
Al 02
PLA
RTS
s02AI sFOBB S02AI 1$03 sFOAA ISIO SDooD ISOO $02AI
f1alisages
FOBD;
FOBO 00 49 2F FOCO 4F FOCI 20 45 52
ORA s2F49
??? JSR s5245
F0C4 S2
???
Foes FOCb FOC7 FOCA FOCi! FOCD FOCE
4F 52 20 A3 00
??? ???
53
???
45 41 52 43
EOR $41
JSR SOOA3 ??? ???
FOCF 48
PHA
FOOO 49 4E
EDR 1$4E
FOD2 47
???
FOD3 AO 4b
LOY 1S46
INC S029C
FOEB 50 52
$0297 S029C $029B sF09C lISF7 S02'<7
ONE
LOA STA LDA STA
FOBC bO
LOO (SF7) , Y
RS~2
PHA LOA BEll LOA AND
FOBS b8
FOOS 4F FOD6 52 FOD7 AO 00 FOD9 SO 52 FODB 45 53 FOOD 53 FODE 20 50 4C FOEI 41 59 FOE3 20 4F 4E F0E6 20 54 41 F0E9 50 CS
LOA LOY CPY BEll AND STA
RTS ORA 1$08 STA S0297 LOA lISOO RTS
1$11
SDOOE
Input fro. RS232
F04D;
FWB 60 F09C 09 08
??? ???
LOY lISOO
ave
SF12D
EOR $53
???
JSR s4C50 EOR (S59 1 X)
JSR JSR BVC BVC
S4E4F s4154 SFOBO SF1 3F
FOED FOEF FOFO FOF3 FOF4 FOFS
45 53 53 20 52 45 43 4F 52
FOF6 44
FOF7 FOFA FOFC FOFE FlOI FI04 FIOb Fl09 FIOB FIOD FlOE Fill FII3 FII6 FIl9
FilA FIIC FIIF Fl20 Fl23 FI25
20 50 41 20 20 50 00 41 49 C7 00 56 4E 00 52 49 59 C7 00 55 44
26 4C 59 4F 54 C5 4C 44 4E
JSR $4552 ???
??? ??? ???
4E 41
JSR BVC EOR JSR JSR
4F
ORA S4F4C
20
evc
S2026 SFI48
FI42 FI44 Fl46 Fl47 FI4A FI4C
A5 FO 78 4C C9 DO
Fl4E;
C6 OF 84 E5 02 18
SC6 SFl55 SE5B4 U02 SFI66
.. frc:. RS232
($'59 t X)
S4E4F $4154 $FOCB
EOR (S44 ,10 EOR 1$4E ORA LSR LSR ORA
$4153 $49,X $A047 $4556
???
46 49 4E
EOR 1$46 EOR S4E49,Y
46 4F 4E
ORA $4F46 EOR $4E,X
??1
Fl28 4F FI2'1 4B
???
LOY KOO ??? ???
Print. i f direct
FI2B 24 90 FI20 10 00 F12F B9 BO FO FI32 08 Fl33 2'1 7F FI35 20 02 FF FI38 C8 FI39 28 FI3A 10 F3 Fl3C 18 FI30 bO
FlSO FI53 Fl55 F156
84 97 20 Bb FO A4 97 18 60
Fl57;
Input
F14E
BIT S90 BPL SFI3C LOA $FOBD.V PHI' AND *S7F
JSR $FF02 lNY
PLP BPL SFI2F CLC RTS
FlS7 FI59 Fl5B FISO Fl5F Flbl FI63 Fl66 Flb8 FI6A FI6C FI6E Fl70 FI73 FI75
A5 DO A5 85 A5 85 4C C9 00 85 AS 85 4C BO C9
99 OB 03 CA 06 C9 32 E6 03 09 DO 05 C8 32 E6 38 02
STY
$~7
JSR SFOBb LOY $'/7 CLC RTS
G.t...
FI3E A5 99 F140 DO 08
LOA $99 BNE SF14A
LOA BIE LOA STA LOA STA JMP ClIP
BNE STA LOA STA JMP BCS CMP
$99 $Fl66 S03 SCA $06 SC9 $E632 1$03 $Fl73 SOD S05 SC8 $E632 SFIAD 1$02
f"177 FO :;SF
BEQ $I"IM
FI79 FI7B FI7E FI80 FI81 FI84 FlBb
97 99 FI 16
STX $97 JSR $F199
99 FI 00 05
JSR SF199
86 20 BO 48 20 BO DO
BCS SF19b
PHA
acs $F193 BNE SFI80
Flee A9 40
LOA U40
FI8A Fl80 FlSF FI91
JSR $FEIC DEC SAb LDX $97
20 IC FE Cb Ab Ab 97 68
Fl93 Fl94 Fl95 Fl96
PLA
AA
RTS TAX
b8
PLA
SA A6 97
TXA LOX S97
F192 60
FI3E;
LDA BED SEl JI1P ClIP BNE
???
53 41 49 47 AO 56 45
F12b AO 00
Fl2B;
EORS53 ???
107
FI9a bO
2D DO 20 BO A'I 85 FO 81 IB
00 FB 09 41 F8 11 00 A6 FO B2
FIAC 60
FlAO FIAF FlBI FIB3
AS 90 FO 04 A'I 00 IB
FIB4 bO
FIBS FI88 FID9 FlDO FIBF
FICI FIC4 FlC6 FICB FICA;
FICA FlCD FICO FICF FIOI Fl02 FlOS
13 EE 4E FI F7 00 F2 '17 02
4C 20 DO C'I DO AD 2'1 DO FO
bO
E'I EE
48 AS '1A C'I 03 DO 04 68 4C16F:7 90 04
FID8 4C DD ED FIDB 4A FIDC b8
FlDD FIDF FIEO FIEI
108
JSR 9NE JSR 9CS LOA STA BEg LOA CLC RTS LOA BEQ LDA CLC RTS Jt1P
$FIA9
FIFI
$F841 SFIB4 #$00 SAb SFI'I'I (SB2),Y
FIF3 FIF5 FIF6 FIFB FIFA FIFC FIFO FIFE FlFF F200 F2DI F203 F205 F207 F2DB F2DD
S'IO SFIBS 1$00 SEEl3
JSR SFl4E
DCS C/1P BNE LOA AND BNE BEQ
$FID4
PHA LOA C/1P BNE PLA JI1P BCC PLA JI1P L5R PLA
SFlD3 S02'17 !lSbO $FIBI SFlDB
S'lA U03 SFI05 SE716 SFlOB SEDDD
.. to t.p.
85 9E SA 4B 9B
4B 90 20 DO 20 90 A'I
PHA
23 00 FB OE b4 FB OE 02 AO 00 'II B2 CD B4 Ab AS 9E 'II 92 lB 6B AB bB AA A5 'IE '10 02 A'I 00 bO 20 17 FO 4C FC FI
F2DE;
PHA TYA
JSR SFBOO BNE $FIFB JSR $FBb4 acs SFIFO LOA IIS02 LOY .$00 5TA (S92) ,Y IHY STY SA6 LOA S9E 5TA ($92) ,V CLC PLA TAY PLA TAX LOA S'IE acc SF207 LOA 11$00 RTS JSR SFOl7 JI1P SFIFC
Set input device
F20E 2D OF F3 F211 FO 03 F213 4C 01 F7 F216 20 IF F3 F21'1 AS DA F21B FO II. F210 C9 03 F21F FO 12 F221 DO 14 F223 C9 02 F225 DO 03 F227 4C 40 FO F22A A6 09 F22C EO 60 F22E FO 03 F230 4C OA F7 F233 as 9'1 F235 IB F236 60
STA TXA
ace SF208
tlSoo
Output ••
FID7 bB
FIDD;
SFOOO
Swt •• tape/.-ri.l/RS232
Fl99;
FI9'1 FI'IC FI9E FIAI FIA3 FIAS FlA7 FIA'I FlAB
FlO FIE3 FIE5 FIEB FlEA FlED FIEF
RTS
$9E
F237 F238 F23B F230 F23F
AA 20 AS 10 20
09 ED 89 Ob
CC ED
JSR BEQ JHP JSR LOA BEQ
SF30F $F216 SF701 $F3IF SDA
SF233 ct1P 1$03
BEQ $F233 DCS SF237 Cl1P . .02 ONE SF22A JHP SF04D LDX S89 CPX ttSbO BEQ SF233 JI1P SF70A 5TA $'1'1 CLC RTS TAX JSR SEOO'! LOA $89 BPL SF24S JSR $EDCC
F242 F24S F24B F249 F24B F240
4C 4B F2 C7 ED SA 24 90 10 Eb 4C 07 F7
20
JI1P SF24B JSR $EOC7
TXA BIT $<10 BPL SF233
JI'IP SF707
F2'1F F2Al F2A3 F2A5 F2A7 F2A9 F2AB
FO C9 FO BO C9 DO 1.8
50 03 4C 47 02 lD
F2AC 20 F2 F2
Set output devi ce
F250;
F250 20 OF F3
F253 F2SS F2S8 F2SB F2S0 F2SF
F2b2 F2b4 F2bb F2bB F2bA F2bC F2bF F271 F273 F275 F277 F278 F279
FO 03 4C 01 F7 20 IF F3 AS BA DO 03 4C 00 F7 C9 03 FO OF BO 11 C9 02 DO 03 4C EI EF Ab B9 EO 1,0 FO EA as 9A IB 1.0 AA
F27A 20 OC ED
F27D F27F F281 F284 F2Bb
AS B9
10 20 DO 20 F2B9 SA F2SA 24 F2!lC 10 F28E 4C
05 BE ED 03 W ED 90 E7
07 F7
J5R BEll JI1P JSR LOA 8NE JI1f> CI1P BEQ BCS
SF30F SF2SB SF701 SF31F SBA SF262 SF70D 1$03 SF275 SF279
F2PF F2B2 F285 F2B7 F289 F2BA F2BC F28E F28F
BNE SF2bF
F2Cl F2C3 F2C5 F2C8 F2CA 29 OF
JI1P $EFEI
F2CC FO 23
CI1P *.02
LDX SB'1 CPX 1S6O BEQ SF2SF STA S9A CLC RTS TAX JSR SEDOC LOA SW BPL SF2Bb JSR SEDBE BNE SF289 JSR $EOW TXA BIT $90 BPL SF275 JI'IP SF707
20 DO F7 F2Dl A9 00 F203 3B F2D4 20 DD Fl "F207 20 64 FB F2DA 90 04 F2DC bB F2DD A9 00 F2DF 60 F2EO AS B9 F2E2 C9 1.2 F2CE
F2E4 DO OB
F2Eb F2E8 F2EB F2EE F2FI F2F2 F2F3
F291;
Cloae file
F291 20 14 F3 F294 FO 02
F29b 18 F297 1.0 F298 20 F29B 8A
IF F3
20 83 F4 20 27 FE A5 FB FO 01 CB A5 FA FO 01 CB A9 00 as FB 85 FA 4C 7D F4 A5 89
F2F5
JSR SF314 BEQ SF298 CLC RTS JSR SF31F TXA
FZ9C 4B
PHA
F290 AS SA
LOA SSA
F2F7 F2F9 F2FB F2FE F301 P..o4
A9 OS 20 bA F7 4C F1 F2 20 42 F6 68 AA Cb 98 E4 99 FO 14 A4 98 W 59 02 9D 59 02 89 1.3 02 901,3 02
BEQ CI1P BEQ BCS Ci'IP BNE PLA JSR JSR JSR LOA BEQ INY LOA
SF2Fl 1S03 SF2FI SF2EE lIS02 SF2CB SF2F2 SF4B3 SFE27 SFB SF2BA SFA
BEQ :$F2BF
INY LOA STA STA JI1P LOA
.$00 SFB SFA SF47D S89
AND .SOF
BEQ JSR LOA SEC J5R J5R
SF2Fl SF7DO lISOO
SF100 SFBb4 BCC SF2EO PLA LOA 1$00
RTS LDA CI1P BNE LOA
SB9 1$1.2 SF2Fl 1S05
JSR SF76A
JMP JSR PLA TAX DEC CPX BEQ LOY LOA STA LOA STA
SF2Fl SF642 S98 $98 SF300 S98 S025'1,V S02S9,X $02b3 ,V S0263 ,X
F3 07 89 60 0 2
LOA S026D,V
F30A 90 1,0 02 F30D 18
STA S02bO,X CLC
109
F30E 60
RTS
F34E 4C OA F7 F351 20 OF F3 F354 DO 03
F3OF;
Find file
F30F A9 00 F311 85 90 F313 BA
LDA UOO STA 590
F314 A6 98
F316 CA F317 30 15
LDX S98 DEX BMI SF32E
F319 DO 59 02
CHP :t0259,X
F31C DO FB F31E 60
BNE SF316 RTS
F31F;
TXA
Set file values
F31F BD 59 02 F322 85 BB F324 BO 63 02 F327 85 BA
LDA STA LDA STA
F329 BD 6D 02 F32C B5 B9 F32E 60
STA S89 RTS
F32F;
LDA S0260,X
Abort all files
F32F A9 00 F331 BS 9B F333;
$0259,X $B8 S0263,X SBA
LDA IISOO STA S9B
Restor .. dlthult 110
F333 A2 03
LDX *$03
F335 E4 9A F337 BO 03 F339 20 FE ED F33C E4 99 F33E BO 03 F340 20 EF ED F343 B6 9A F34S A9 00 F347 B5 99 F349 60
CPX BCS JSR CPX BCS JSR
F34A;
STX 59A
LDA tl$00 STA $99 RTS
Do open fila
F34A A6 BB F34C DO 03
110
$9A $F33C SEDFE S99 SF343 $EDEF
LDX SBB BNE $F351
F356 4C F359 Ab F35B EO F35D 90
FE Fb 9B OA 03
F3:5F 4C FB F6
F362 E6 98 F3b4 AS BB F3bb 9D 59 02 F3b9 AS 89
JI1P SF70A JSR SF30F 9NE SF3S9
JI1P SFbFE LOX 598
CPX 1t$0A BCC SF362 SFbFB INC $9B
J""
LOA $B8
STA S02S9,X LDA S89
F368 09 60
ORA UbO
F36D F36F F372 F374 F377 F379 F37B F37D F37F
STA sB9
B5 9D AS 9D FO C9 FO 90 20
B9 bD 02 BA 63 02
STA $026D,X
LDA SBA STA S02b3,X
SA
BEQ $F3D3
03 56 05 D5 F3
CI1P 1$03 8EQ SF3D3
acc SF384 J5R SF3DS
F382 90 4F
Bee $F303
F384 C9 F38b DO F38B 4C F3BB 20
CI1P
02 03 09 F4 DO F7
F38E BO 03
F390 F393 F39S F397
4C AS 29 DO
13 F7 B9
OF IF
F399 20 17 Fe
F39C eo 3b F39E 20 AF FS F3A1 AS B7 F3A3 FO OA F3AS 20 EA F7
F3AB 90 18
BNE JI1P J5R DCS JI1P LDA AND BNE JSR BCS JSR LDA
1$02 SF3BB $F409 $F7DO SF393 SF713 $89 j!SOF SF3BB SFBI7 $F3D4 SFSAF SB7
BEQ SF3AF
J5R SF7EA Bec SF3C2
F3AA FO 28
BEQ SF3D4
F3AC F3AF F3B2 F3B4
sF704 JSR SF72C BEQ SF3D4 BCC SF3C2
4C 20 FO 90
04 F7 2C F7 20 OC
JI1P
F3Bb 80 F4
BCS $F3AC
F3BB F3BB F3BD F3BF F3C2 F3C4 F3C6
JSR BCS LDA JSR LDA LDY CPY
20 BO A9 20 A9 A4 CO
3B FB 17 04 6A F7 BF B9 bO
$FB38 SF3D4 1$04 $F76A UBF sB9 UbO
F3C6 F3CA F3CC F3CE F300 F3nt F303 F3D4
FO 07 AO 00 A9 02 91 B2 98 as AO
IB 60
F3D5;
BEQ LOV LOA STA TYA STA CLC RTS
$f"301 1$00 1S02 (S82) , Y SAO
AS 30 A4 FO A9
B9 FA B7 Flo 00
F3Eb F3EB F3EA F3EO
AS B9 09 FO 20 B9 ED AS '10
as 90 AS SA F3E3 20 OC EO
F3EF 10 OS
F3F1 loB F3F3 4C F3Fb AS F3FB FO F3FA AO F3FC Bl F3FE 20 F401 CB
LOA $89 BI'II SF303 LOY SB7 BEll SF303 LOA 1$00 STA S90 LOA s8A JSR $EDOC LOA $B9 ORA ISFO JSR SEDB9 LDA S90 BPL SF3Fb PLA PLA
F3F2 b8
07 F7 B7 00
Jt1P SFl07 LDA $B7 BEQ $F40b LOY 1$00
BB
LOA
00 EO
JSR SEOOO
OC
AD 93 02 29 OF FO IC OA
AA AD Ab 02 00 09 ac CI FE BO CO FE
F437 4C 40 F4 F43A BC EB E4
s.nd SA
F3D5 F307 F309 F30B F3DD F30F F3EI
F423 F42b F42B F42A F42B F42C F42F F431 F434
($B8), Y
INY
F402 C4 97
cpy :$87
F404 00 Flo F40b 4C 54 Flo
BNE SF3FC JI1P SFbS4
F430 F440 F443 F44b F449 F44A F440
BO BC BO AD OA 20 AO
EA E4 'II. 02 'IS 02
95 02 2E FF 94 02
F4SO 4A
F4S1 90 O'l F453 AO 01 00 F4Sb OA F4S7 BO 03
F4S9 F4SC F4SF F4b2 F4b5 F4bB F4bB F4bO
20 AO BO AO BO 20 AS 00
00 9B 9C 9E 90 27 F8 OS
ASL
FO 02 02 02 02 FE
F4bF BB
F470 B4 FB F474 AS FA F47b 00 OS F478 88
84 FA
STX SF9
3B
SEC
A'I FO
LDA UFO
JSR SF483 STY S0297
F4BO 4C 2D FE
F40F C4 B7
cpy SB7
F411 F413 F41S F418 F41'1 HIB F410 F420
'l3 02
BEQ SF410 LOA (SBB),Y STA S0293,Y
F4as 80 00 DO F4BB A9 01.
04 F2 4A EF 98 02
CPY BNE JSR STX
OA BB
INY 1$04 $F40F $EF4A $0298
F4B3 A9 7F F4BA F4BO F490 F492 F495 F49B F49A
SF45C SFOOO s029B S029C S029£ S0290 SFE27 SFB SF474
8b F9
F40'l 20 B3 F4 F40C BC 97 02 FO BI '19 C8 CO 00 20 8E
BCS JSR LOA STA LOA STA JSR LOA lINE DEY STY STX LOA
sFB sFl $FA ONE $F470 DEY STY $FA
F472 8b F7
F479 F478 F470 F47E
LOA $0293 AND UOF BEQ $F446 ASL TAX LOA $02Ab 8NE SF43A LOY SFECI,X LDA SFECO,X Jt1P SF440 LOY $E4EII,X LOA SE4EA,X STY S029b STA s0295 LOA S0295 ASL JSR SFF2E LOA S0294 LSR acc SF4SC LDA SOOOI
BO BO A9 00 BO AO BC
03 01 04 00 00 00 AI
00 DO DO 00 02
JIIP LOA STA LOA STA STA LOA ORA STA LOY STY
SFE20 U7F
SOOOO 1S0b S0003 $0001 1$04 SOOOO SOOOO 11$00 S02Al
,,,
F49D bO F49E;
RTS La.d progr ••
F49E Bb C3 F4AO B4 C4 F4A2 bC 30 03 F4A5 85 93
F4A7 A9 00 F4A9 85 90
F4AB F4AD F4AF F4B2 F4B4 F4Bb F4BB F4BA F4BC F4BF F4CI F4C4 F4Cb
AS DO 4C C9 FO 90 A4
DO 4C Ab
20 A9
as
BA 03 13 F7 03 F9 7B B7 03 10 F7 99 AF FS bO
B9 F4CB 20 DS F3
F4CB AS SA
F4CD F4DO F4D2 F4DS F4DB F4DA F4DC F4DD F4DE F4EO F4E3 F4ES F4Eb F4EB F4EA F4EC F4EE F4FO F4F3
20 AS 20 20 BS AS 4A 4A BO
09 ED B9 C7 ED 13 EE AE 90
SO 13 EE 95 AF BA DO 09 AS C3 BS AE AS C4 as AF 20 D2 FS A'I FD
20
STX STV JI'IP STA LOA
SC3 SC4 (S0330) $93
IIS00
STA $90 LOA SBA
BNE SF4B2 JHP SF7I3 ClIP tlS03 BEU SF4AF BCC SFS33 LOV SB7 BNE SF4BF JI'tP SF7IO LDX SB9 JSR SFSAF LOA UbO STA SB9 J5R SF3DS LOA SBA J5R SED09 LDASB9 JSR SEDe7 JSR SEEI3 5TA SAE LDA S90 L5R L5R BCS $F530 J5R SEEI3 STA SAF TXA BNE SF4FO LDA $C3 STA SAE LDA SC4 STA SAF JSR SFSD2 LDA UFD
FSOS FS07 FSOB FS09 FSOB FSOC FSOE FSIO FSI2 FSI4 FSlb FSIB FSIB F51E FS20 FS22 FS24 FS2b F52B FS2B FS2E F530 FS33 FS34 F53b F539 FS3C F53E
F54\ FS44 F54b FS4'1 F54B FS4D FSSO F554
F55b
FSS'I FSSB FSSD FS5F FSbI FSb2 FSb4
AND $90
FSbb
F4F7 F4F9 F4FC F4FE FSOI FS04
STA J5R BNE JI1P JSR TAX
FSb8 FSbA FSbC
112
AA
90 EI FF 03 33 Fb 13 EE
$'/0 SFFEI SFSOI SFb33 SEEI3
90
LDA $90
LSR L5R 9CS SF4F3 TXA
EB 93 OC
LDY $93
BEQ SFSIC LOV 1$00
00
AE OB 10 IC FE 'II AE AE
02 AF '10 CB EF ED 42 Fb 79 04 F7
4A
eo 03 4C 20 BO 4C 20 BO 20 AS FO 20 90
13 DO 03 13 17 bB
FSbE FS70
FS72
BO 20 FO BO AS
F7 FB
AF FS B7 09 EA F7 OB
OA 2C F7
S3 D3 90 29 10 3B DO 4A EO 01 FO 11 EO 03 DO DO AO 01 BI B2 as C3 CB
CHP
BEQ LDA J5R BIT INC
BNE
INC BIT BVC JSR J5R BCC JI1P LSR
($AE) , V
SFSIE 11$10 $FEIC SAE'II SAE SFS24 SAF S90 SF4F3 SEDEF $Fb42 SFSA9 SF704
JI'tP JSR BCS JI1P JSR BeS J5R LOA BEQ JSR BeC
SF539 SF713 SF7DO SFS41 SF713 SFBI7 SFSAE SFSAF SB7 SFSSb SF7EA $FSSD
BEQ
$F~
BCS
F7 F7
F552 FO 5A
F4F5 25 90
95 20 DO 4C 20
AS 4A 4A BO 9A A4 FO AO DI FO A'I 20 2C Eb DO Eb 24 SO 20 20 90 4C
.BC5 JSR BEQ 9CS LDA
SFS30 SF72C SFSAE SFS30 S90 AND UIO SEC BNE SFSAE CPX .0$01 BEQ SFS79 CPX . .03 BNE SFS49 LDY .SOI LOA (S82). Y STA $C3
INY
FS73 FS7S FS77 FS79 FS7B FS70 F57F F5BI FSB3 F5B5
81 85 80 AS DO AO 81 AO FI
B2 C4 04 B9 EF 03 B2 01 B2
M
F586 AO 04 F588 01 B2
F58A FS8C FSBE F58F FS90 FS91
AO FI AB IB BA bS F:593 85 F59S 9B FS96 65 F598 8S FS9A AS F59C 85 F59E AS F5A0
as
02 02
C3 AE C4 AF
C3 CI C4 C2 02 FS 4A FB IB AE
FSA2 20 F5AS 20 FSA8 24 F5AA AI> FSAC A4 AF FSAE bO F5AF;
FSAF FSBI F5B3 FS85 FSB8 FSBA FSOC F5BE F5Cl;
FSCI F5C3 FSCS FSC7
($'8 2), V
LOA
STA BCS LOA BNE
sC4 sF57D $B9 $FSbC
90 IE OC 2F FI B7 IS 17 2F FI
LOY 1$01 SBC
TAX LOY 1$04 LOA (SB2),Y LOY ltS02 SOC ($82), V
TAY CLC TXA ADC SC3 STA SAE TYA AOC SC4 STA SAF LOA SC3 STA SCI LOA SC4 STA $C2
J5R sF502 JSR SFB4A BIT SIB LOX $AE LOY sAF RTS
LOA s90 BPL SF501 LOY *SOC JSR SFl2F
LOA BEg LOY JSR
07 OC 00 00
'Jaodino/vorifvino'
.502,
($82), V
S07 sFSOI 41$17 SFI2F
Print fil.n ...
A4 FO AO 01
JSR sFF02 INY CPY $97 BNE $FSC7 RTS
LDY •• 03 LOA ($82) I Y
' . .,arching '
AS 10 AO 20 AS FO AO 20
F5C9 20 02 FF FSCC CB FSCO C4 B7 FSCF DO Fb F501 bO
LOV $87
BEg SFSOI LOYlSoo LOA (SOO),Y
F502 F504 F50b FSDB F50A
AO AS FO AO 4C
49 93 02 S9 29 FI
FSOO B6 AE FSDF 84 AF FSEI AA F5E2 OS 00 F5E4 85 CI FSEb B5 01 F5E8 BS C2 FSEA 6C 32 FSED AS SA F5EF DO 03 FSFI 4C 13 FSF4 C9 03 FSF6 FO F9 FSF8 90 SF FSFA A9 61 FSFC BS B9 FSFE A4 B7 FbOO 00 03 Fb02 4C 10 FbOS 20 05 F60B 20 BF 20 AS 20 AD 20 AS 20 AS 20 20 00 BI
OC 89 89 00 BE AC DO AD DO 01 16 AC
1$49 S93 SF50A U59 SFI2B
STX SAE STY SAF
03
F7
TAX LOA 5TA LOA 5TA JIP LOA ONE JI1P
SOO,X SCI SOI,X sC2 (S0332) SBA SF5F4 SF713
CI1P 1$03
BEll BCC LOA STA LOY ONE
F7 F3 F6
FbOB AS SA
FbOO FblO Fbl2 F61S Fbl7 F61A F61C FblF F621 F624 Fb27 F629
LOY LOA BEll LOY JI1P
Jt1P JSR JSR
SFSF1 SFb59 IS61 S89 SB7 $F60S SF710 $F305 sF6BF
LDA SSA
EO EO FB EO ED FC
JSR LOA JSR LOY JSR LOA JSR LOA JSR JSR BCS LOA
sEDOC SB9 SED89 1$00 SFB8E SAC SEOOO SAD SEOOO SFCOI SF63F (SAC),Y
113
F62B 20 DD ED F62E 20 EI FF Fb31 DO 07
F633 20 A9 F63B 3B Fb39 bO F63A 20 Fb3D DO Fb3F 20 Fb42 24 Fb44 30 Fb4b A5 Fb4B 20 Fb4B A5 F64D 29 Fb4F 09 FbSI 20 Fb54 20 Fb57 IB Fb3b
42 F6 00
DB FC E5 FE ED B9 II
BA OC ED
B9 EF EO B9 ED FE ED
Fb5B bO
F659 4A
Fb5A eo 03 FbSC 4C 13 FbSF 20 DO Fbb2 90 BD Fbb4 20 3B Fbb7 BO 25 Fbb9 20 BF FMC A2 03 FbbE AS B9 Fb70 29 01 Fb72 DO 02 Fb74 A2 01
F7 F7
FB Fb
F67b SA
Fb77 Fb7A Fb7C Fb7F FbBl F6B3 FbB5 FbB7 FbB9
20 bA F7 BO 12 20 b7 FB BO OD AS B9 29 02 FO Ob A9 05 20 bA F7
JSR SEDDD JSR SFFEI BNE SFb3A JSR SF642 LDA "00 SEC RTS JSR SFCDB BNE SF624 JSR SEDFE
BIT S89 8111 SF657
LDA SBA JSR $EDOC LDA SB9 AND lSEF ORA *SEO JSR $EDB9 JSR $EDFE CLC RTS LSR BCS $FbSF JHP $F71 3 SF5FI $FB3B $F6BE SFbBF 1$03 $B9 tl$01 BI£ SFb76 LDX ISOI TXA JSR $F76A Bes SF6BE JSR SFB67 Bes $FbBE
F69B A2 00 F69D E6 A2 F69F DO Ob FOAl E6 AI FbA3 DO 02 F6A5 E6 AO FbA7 3B F6A8 A5 A2 FOAA E9 01 F6AC AS AI FbAE E9 IA F6BO AS AO FbB2 E9 4F F6B4 90 06 F6B6 B6 AO F6BB B6 AI F6BA B6 A2
LDX .SOO
INC SA2 SFbA7 INC SAl BNE SFbA7 INC SAO SEC LDA SA2 SBC 1$01 LDA SAl SBC tl$IA LDA SAO SBC 1$4F Bee SF6BC STX SAO BNE
STX SAl
STX SA2
F6BCI
Log PIA key reading
AND 11$02 SEQ SFbBD
F6DA 85 91
STA $91
F6DC 60
RTS
LDA $89
LDA 11$05 JSR SF76A BIT SiB
RTS
114
Bu"", clock
FbBC FbBF FbC2 FbC4 F6C5 FbC7 FbC9 FbCC F6CF F6D2 F6D4 F6D7 F6D8
FbBE 60
Print 'saving '
FbBF AS 9D F691 10 FB
F69BI
JSR SF700
BCC JSR BCS JSR LDX LOA AND
FbBC 24 18
Fb8F;
LOY 1$51 JSR SFI2F JHP SFSCI
Fb93 AO 51 Fb9S 20 2F F1 F69B 4C CI F5
LDA S9D
BPL SF6BE
F6DD;
AD 01 DC CD 01 DC DO F8 AA
30 13 A2 BD 8E 00 DC PE. 01 DC EC 01 DC DO F8 BD 00 DC E8 DO 02
LDA SDCOI CHP SOCOI BNE SF6BC TAX BMI SF6DA LOX ISBD STX sDCOO LDX SDCOI CPX SDCOI BNESF6CC STA SDCoo INX BNE SF6DC
Bet ti ....
F6DD 7B F60E AS A2 FbEO A6 AI F6E2 A4 AO
SEI LOA SA2 LOX SAl LDY SAO
Set ti_
F6E4; F6E4 F6E5 F6E7 F6E9 F6EB FbEC
78 85 A2 86 Al 84 AO 58 60
Check atop key
FbED; F6EO F6EF F6FI F6F3 F6F4 F6F7 F6F9 F6FA
AS C9 DO 08 20 85 28 60
91 7F 07 CC FF C6
A9 2C 2C 2C 2C 2C 2C 2C 2C 48 20 AO 24 50 20
01 A9 A9 A9 A9 A9 A9 A9 A9
02 03 04 05 06 07 08 09
CC FF 00 90 OA 2F FI
F722 68
F723 F724 F726 F729 F72A F72B
LOA CMP ONE PHP JSR STA PLP RTS
Output ..... ror
F6FB; F6FB F6FO F700 F703 F706 F709 F70C F70F F712 F715 F716 F719 F71B F71D F71F
SEI STA $A2 SIX SAl STY SAO CLl RTS
48 09 30 20 02 FF 68 38 60
F72C1
$91 U7F SF6FA SFFCC $C6
lMtS~ge.
LOA BIT BIT BIT BIT BIT BIT 8IT BIT PHA JSR LOY BIT BVC JSR PLA PHA ORA JSR PLA SEC RTS
.SOl
S02A9 S03A9 S04A9 S05A9 S06A9 S07A9 S08A9 S09A9 SFFCC lISOO $90 SF729 SFI2F U30 SFFD2
Find .ny tape head.r
F72C F72E F72F F732 F733 F735 F737 F739 F73B F730 F73F F741 F743 F745 F747 F749 F74B F74C F74E F750 F752 F755 F757 F759 F75C F75D F75F F761 F763 F70b F767 F768 F769
AS 48 20 b8 85 SO AO Bl C9 FO C9 FO C9 FO C9 00 AA 24 10 AO 20 AO BI 20 C8 CO DO AS 20 EA 18 88 60
93 41 F8 93 32 00 B2 OS 2A 01 08 03 04 04 El 90 17 63 2F FI OS B2 02 FF IS F6 Al EO E4
LOO CI1P BEll CI1P BEll C/1P BEll CI1P BNE TAX BIT BPL LOY JSR LDY
(S82) ,V 1$05
SF769 UOI $F74B 1$03 $F74B U04 $F72C S90 SF767 1$63 SFI2F ISOS
LDA ($82), V
JSR INY CPY BNE LOA JSR NOP CLC DEY RTS
SFFll2 1$15 SF757 SAl SE4EO
Writ. tap. h ••d.,-
F76A;
F76A B5 9E F7bC 20 DO F7 F7bF 90 5E
F77\ F773 F774 F776 F777 F779 F77A F77C F770 F77F F78\ F783
LOA $93 PHA JSR SF841 PLA STA S93 BCS SF769 LDYUOO
AS 48 AS 48 AS 48 AS 48 AD A9 9\ 88
C2 CI AF AC BF 20 B2
STA JSR BCC LDA PHA LOA PHA LOA PHA LOA PHA LOY LDA STA DEY
S9E SF7DO SF7CF
SC2 sCI sAF SAC UBF IS20 ($82) 1 V
115
F7B4 DO FB F7Bb AS 9E F7889182 F7BA CB F7BB AS CI F7BO 91 B2 F7BF CB F790 AS C2 F792 91 82 F794 CB F795 AS PE F797 91 B2 F799 CB F79A AS AF F79C 91 B2 F79E CB F79F B4 9F F7Al AO 00 F7A3 B4 9E F7AS A4 9E F7A7 C4 B7 F7A9 FO OC F7AB BI BB F7AO A4 9F
BNE SF7Bl LOA S9E STA (S82I,V INY LDA SCI STA (S82),Y
F7AF 91 82
STA ($B2)l Y
F7Bl F7B3 F7BS F7B7 F7BA F7BC F7BE F7Cl F7C2 F7C3 F7C5 F7Cb F7C8 F7C9 F7CB F7CC F7CE F7CF
INC INC BNE JSR LOA STA JSR TAY PLA STA PLA STA PLA STA PLA STA TYA RTS
E6 9E Eb 9F DO EE
20 07 F7 A9 1.9 B5 AB 20 loB FB AD bB 85 PE bB 85 AF bB 85 CI bB 85 C2 9B 1.0
F7DO;
INY
LOA STA INY LOA STA
$C2
(S821, Y SAE (SB21,Y
INY
LOA STA INY STY LOY STY LOY Cl'Y
F702 A4 8 3
F7D4 CO 02 F70b 60
5I!t buff..- st.-t/end pointers
F707 20 DO F7 F7DA aA
F708 as F700 IB F7DE 69 F7E0 B5 F7E2 9B F7E3 B5
Cl CO PE
C2
$AF
F7E5 1.9 00
(SB21,Y
F7E7 B5 AF F7E9 1.0
5TA CLC AOC STA TVA STA AOC STA RTS
SCI *$CO $AE SC2 lISOO $AF
noo
S9E
F7EA;
Find sp.cific he..:t . .
$9E
SB7 SF7B7 (SBBI, Y LOY S9F
BEg LDA
$9E
S9F, SF7AS SF707 lIS69 SAB SF8bB SPE SAF
F7EA 20 2C F7 F7ED 80 10
F7EF AO OS F7FI B4 9F
AO F7F5 a4 F7F7 C4 F7F9 FO F7FB 81 F7FO M F7FF 01 FOOl DO FB03 E6 FBOS Eb FB07 A4 F809 00 F808 18 F80C bO F7F3
00
9E 87 10 B8 9F 82 E7 9E
9F 9E EC
JSR SF72C BCS SF80C LDY 41$05 STY S9F LOY IISOO STY S9E CPY SB7 BEg SFaOB LOA (SBB)
LOY CliP BNE INC INC LOY BNE CLC RTS
SC2
LOX $B2 LOY SB3 CPY 1$02 RTS
eu.p tape po int . .
FBOD; FBOO FBIO F812 F814 FBlb FBl7;
20 Eb A4 CO
DO F7 Ab AI. CO
1.0
I
V
S9F ($82), Y $F7EA S9E S9F S9£ SF7F7
SCI
JSR .F700 INC SAb LOY tAb CPY nco RTS
· pr . .s plilY '
F817 20 2E F8
116
JSR SF700
TXA
S9F
Set buffer addre5.
F700 AI. B2
F707;
JSR SF82E
FBIA FBIC FBIE FB21 FB24 FB27 FB29 FB2B
FO IA AO IB 20 2F FI 2Q 00 FB 20 2E FB 00 FB AO bA 4C 2F FI
FB2E;
Cleek
F82E A9 10
FB30 24 01 F832 DO 02 FB34 24 01 F836 18 F837 60
BEQ LOY JSR JSR JSR BNE LOY JMP t~e
SF836 HIB SFI2F SFBOO SFB2E $FB21 HbA
FB38 FB3B FB3D FB3f
20 FO AO 00
FB41 FB43 FB45 FB47 FB4A FB4D FB4F FBSO FB52 FB54 FBS6 FB58 FBSA FBSC FBSE F960
A9 B5 B5 20
2E FB F9 2E 00
00 90 93 07 F7 2Q 17 FB BO IF 7B A9 00 B5 AA BS B4 as BO B5 9E B5 9F B5 9C A9 90 A2 OE
A9 14 8'5 AB 20 38 FB eo bC 7B A9 B2 A2 08
FB75 FB77 FB7A FB7D FB80 FBB2 FBB5 FBB7 FBBA FBBD FB90 FB92 FB95 FB9B FB9B FB9E FOAl FBA4 FBA6 FBAB FBAB FBAO FBAF FBSI FBB3 FBBS FBB7 FBBB FBBA FBBB FBBO FBBE FBCI FBe4 FBCS FBC7 FBCA FBCD
AO 7F Be 00 DC BO 00 DC AD OE DC 09 19 BD OF DC 29 91 BD A2 02 20 A4 FO AO II 00 29 EF BD 11 00 AD 14 03 BO 9F 02 AD 15 03 BO AO 02 20 BD FC A9 02 B5 BE 20 97 FB AS 01 29 IF BS 01 B5 CO A2 FF AO FF
status
LOA 1$10 BIT SOl ONE SFB36 BIT $01 CLC
RTS
JSR BEQ LOY BNE
SFB2E $F836 1$2E $FBIE
LDA 1$00 STA $90
STA JSR JSR BCS SEI LOA
LOA STA JSR BeS
1$14 SAB SF838 SFBDC
SEI
LOA _ 2 LOX 1$08
SFI2F
pr.ss record'
F83B;
FB67 FBb9 F96B FB6E FB70 FB71 FB73
S93 SF7D7 SFB17 SFB6E .$00
STA SAA
F862 DO 11
STA STA STA STA STA LOA LOX SNE
$84 SBO S9E S9F S9C *S90 I$OE SFB7S
FB64 20 07 F7
JSR SF7D7
FBOO;
sa
00 CA 00 58 AD CO IB FO 20 20 4C
FO FB
LOY STY STA LDA
1$7F SDCOD SDCOD SDCOE ORA 1$19 STA SDCOF AND IS91 STA $02A2 JSR SFOA4 LOA SOO11 AND .SEF
STA LOA STA LOA STA JSR LOA STA JSR LOA ANO SlA
SOO11 S0314 S029F S0315 S02AO SFl:BO "02 SBE SFB97 SOl "IF SOl
STA
seQ
LOX LOY OEY BNE OEX BNE
I$FF "FF SFBB7 SFB8'5
CLI AO 02 IS 03 IS 00 FB BC Fb BE FB
LOA CMP CLC BEQ JSR JSR JI1P
S02AO S031S SFBOC $FBDO SF6BC SFBBE
Ch.ck tape stop
117
FBOO FB03 FB04 FBOI> FB09 FBOA FB08 FBOC FBOE FBEI
20 18 DO 20 3B 6B 6B A9 80 60
EI FF 09 93 FC
JSR $FFEI CLC BNE SFBEI JSR SFC93 SEC PLA PLA
00 AO 02
LOA 1$00 STA $02AO RTS
F92B bO
F93A
Set read ti.ing
FBE2;
FBE2 F8E4 F8E6 FBE7 FBEB FBE9 FBEB FBEC FBEE F8FO F8F2
F8F4 FBF6 F8F7 FBF9 FBFA FBFC FBFo FBFE F901 F903 F905 F907
B6 81 A5BO OA OA IB 65 BO 18 65 BI B5 81 A9 00 24 80 30 01 2A 06 BI 2A 06 81 2A AA AD 06 DC C9 16 90 F9 65 Bl BO 04 DC
F"90A SA
F90B F90E F911 F914 F917 F91A
60 BD AD Bo BO AD
07 05 A2 OE A4 00
OC DC 02 DC 02 OC
F91D 29 10
F91F F921 F923 F924 F926 F927 F92A 11B
FO A'I 4B A9 48 4C 5B
09 F'I 2A 43 FF
STX LOA ASL ASL CLC ADC CLC AOC STA LOA
S81 $90
F93C F930 F940 F943 F945
SBO $oBI $81 1$00
BIT
sao
8MI ROL ASL ROL ASL ROL TAX LOA CMP BCC AOC STA TXA AOC STA LDA STA STA LDA AND BEll LOA PHA LOA PHA JMP CLl
SF8F7
F948 F94B F94E F94F F951 F953 F954 F956 F957 F959
SBI $81 $DC06 *$16 SFBFE SBI SOC04 SDC07 SoCOS S02A2 SDCOE S02A4 SDCOO
"'0
$F92A
UF9 U2A $FF43
Reild tape bits
F92C; F92C F92F F931 F932 F935 F938
F958 F95C F95E F960 F962 F964 F9bb
F969 F91>B F960 F96F F971 F973 F975 F977 F97B F97A F97C F97E F9BO F982 F984 F9B6 F9BB F9BB
RTS
AE AO 9B ED EC DO
07 DC FF
06 OC 07 OC F2 Sb 81 AA BC 06 DC BC 07 DC A9 19 80 OF OC AD 00 OC 60 A3 02 98 £S BI B6 BI 4A 6b 81 4A 66 Bl A5 80 18 69 3C CS BI BO 4A A6 9C FO 03 4C 60 FA A6 A3 30 IB AZ 00 69 30 1,5 BO CS BI BO IC E8 69 26 6S BO CS BI BO 17 69 2C 65 80 CS BI 90 03 4C 10 FA AS B4
LOX LOY TYA S8C CPX BNE STX TAX STY STY LOA STA LOA STA TVA SBC STX LSR ROR LSR ROR LOA CLC AoC CMP BCS LOX BEt! JMP LOX BMl LOX AoC AOC CMP BCS INX ADe AOC CMP BCS AOC AOC CMP Bce JMP LOA
$OC07 UFF $OC06 SOC07 $F92C $81 SOC06 SOC07 1IS19 SOCOF SOCOO $02A3 0$81 $oBI S81 SBI 0$80 U3C SBI $F9AC $9C SF9b9 SFAI>O SA3 $F988 *$00 *s30 S80 SBI SF993 1$26 $BO SBI $F997 *SZC S80 SBI SF9BB $FAIO SB4
F980 FO 10 as AS F991 DO 19 F993 Eb A9 F99S BO 02 F997 Cb. A9 F999 38 F99A E9 13 F99C ES BI F99E loS 92 F9AO BS 92 F9A2 AS A4 F9A4 49 01 F9Ab as A4 F9AB FO 2B F9AA Bb 07 F9AC AS B4 F9AE FO 22 F9BO AD A3 02 F9B3 29 01 F9BS DO 05 F9B7 AD A4 02 F9BA DO 110 F9BC A9 00 F9BE BS A4 F9CO BO A4 02 F9C3 AS A3 F9CS 10 30 F9C7 30 SF F9C9 A2 Ab F9CB 20 E2 FB F98F
F'1CE AS 98
F9DO F902 F90S F907 F909 F90B PlOD F9EO F9E2 F9E4 F9Eb F9EB F9E9 F9EB F9EO F9EF F9Fl F9F3 F9FS F9F7
DO 4C AS FO 30 Cb 2C A9 BS E4 DO 8A DO AS 30 C9 90 BS BO 8A
B9 BC FE 92 07 03 BO Eb DO 00 92 07 OF AO A9 BO 10 B9 96 BS
BEQ SF9AC STA SAS
BNE $F9AC INC SA9 BCS SF999 DEC SA9 SEC SBC 1S13 SBC SBI AOC S92 STA $92 LOA SA4 EOR ISOI STA SA4 BEQ SF90S STX S07 LOA SB4 BEQ $F902 LOA S02A3 AND *sOl BNE $F9BC LOA S02A4 BNE SF902 LOA ISOO STA SA4 STA S02A4 LOA SA3 BPL $F9F7 8111 SF9B8 LOX *SAb JSR SFBE2 LOA S9B BNE $F9BB JI1P SFEBC LOA S'/2 BEQ SF9EO 8111 SF9DE DEC SBO BIT SBOEb LOA ISOO STA s92 CPX S07 BNE SF9F7 TXA BNE SF9BB LDA SA9 Bt1I SF9AC Ct1P Ul0 BCC SF9AC STA S9b BCS SF9AC TXA
F9F8 F9FA F9FC F9FE FAOO FA02 FA04 FAOb FAOB FAOA FAOO FAIO FAI2 FAl4
45 85 AS FO Cb 30 410 bb
9B 9B B4 02 A3 CS 07 SF OA E2 FB BC FE
A2 20 4C AS 910 FO 04 AS B4 FAtb FO 07 FA1B AS A3 FA1A 30 03 FA1C 4C 97 F9 FAIF 410 Bl FA21 A9 93 FA23 3B FA24 ES Bl FA2b loS BO FA2B OA FA29 AA FA2A 20 E2 FB FA20 Eb 9C FA2F AS B4 FA31 DO 11 FA33 AS 910 FA3S FO 210 FA37 as AB FA39 A9 00 FA3B BS 910 FA30 A9 81 FA3F BO 00 DC FA42 85 B4 FA« AS 910 FA46 as BS FA4B FO 09 FA4A A9 00 FA4C as B4 FA4E A9 01 FASO 80 OD DC FAS3 AS BF FAS:; BS BO FAS7 AS AB FA~9 05 A9 FASB 85 Sb FASO 4C 8C FE
EOR STA LDA BEQ DEC BllI LSR ROR
S9B $9B SB4 SF902 SA3 SF9C9 S07 SBF
LOX .SOA
JSR JMP LOA BEQ
SFBE2 SFEBC S9b
$FAIB
LDA S84
BEQ SFAIF LOA $A3 8111 $FA1F Jt1P SF997 LSR sBI lOA 1S93 SEC SBC SBI ADC SBO ASL TAX JSR SFBE2 INC S9C LOA SB4 BNE SFA44 LOA $910 BEQ SFASD STA SAS LOA noo STA S9b LOA U81 STA SDCOO STA SB4 LOA S9b STA SBS BEQ SFA53 LOA UOO STA SB4 LOA nOI STA sneOD LOA SBF STA sBO LOA sAS ORA SA9 STA SBb Jt1P SFEBC
119
FAbO;
S~or.
FAilO 20 97 FB
FAI>3 FAI>S FA07 FAOA FAI>C FACE FA70 FA72
FA74 FA71> FA78 FA7A FA7C FA70 FA7F FABI FAB4 FA81> FAB8 FA8A FA80 FABF FA91 FA93 FA9S FA97 FA99
BS A2 20 AS FO 85 A9 24 10 AS DO AI> CA DO A9 20 DO A9 8S 4C 70 DO AS 00 A5 DO AS
9C OA E2 F8 BE 02 A7 OF AA 17 B5 DC
BE OB 08 IC FE 04 00 AA BC FE 31 18 BS FS BI> Fl A7
FA9B 4A
FA9C FA9E FAAO FAA2 FAA3 FAAS FAA7 FAA9 FAAB FAAD FAAF FABI FAB4 FABI>
AS 30 90 18 BO 29 85 CI> DO A9 85 20 A9 85 FABB , FO FABA A9 FABC 85 FABE 00 FACO AS 120
BO 03 IB 15 OF AA AA 00 40 AA 8E FB 00 AB 00 80 AA CA BS
tap.
ch.rs~
JSR STA LOX JSR LOA BEQ STA LOA BIT BPL LDA BNE LOX OEX BNE LOA JSR BNE LOA STA JMP BVS BNE LOA BNE LDA BNE LOA LSR LOA OMI BCC CLC BCS AND STA DEC BNE LOA STA JSR LOA STA BEQ LOA STA BNE LDA
SFS97
S9C UDA SF8E2 sBE SFA70 SA7 UOF SAA sFA80 sBS sFA81> sBE
FAC2 FAC4 FACI> FAC9 FACB FACE FAOI FA03 FAOI> FA08 FA09 FAOB
FO A9 20 A9 4C 20 90 4C AO CA FO AS
OA 04 IC 00 4A 01 03 48 A7
BEQ SFACE LOA 1$04 FE FB FC FB
AO AS 01 FO
20 93 00 BO AC 04
FAE7 A9 01
SFABA 1$08 SFEIC $FA8A #$00 SAA SFEBC sFACO SFAA9 S8S sFA8A SBb sFA8A SA7
FAE9 FAEB FAED FAEF FAFI FAF3 FAF5 FAF7 FAF9 FAFC FAFE FBOI FB02 FB03
BS AS FO A2 E4 90 AI> AS 90 AS 90 E8 E8
86 Bb 4B 30 9E 3E
9E AO 01 01 AC 00 01
81. 9E
FBOS 4C 3A
sBD $FAA3
sFABA $FABA *sOF SAA SAA $FA8A 1$40 sAA $F88E lI$OO SAB $FABA U80 $AA $FABA sBS
FBOB FBOA FBOC FBOE FB10
FBl3 FBIS FBI7 FBIA FBIC FBIE FB20 FB22 FB24 FB21> FB28 FB2A FB2C FB20
AI> E4 FO AS DO 00 AS 00 00 EI> EI> AS FO AS AD 01 FO C8 84
1$00 SFB4A SFCOI SFAOI> SFB48
SA7
DE<
FADD FO OC
FAOF FAEI FAE3 FAES
J5R 'SFE1C
LOA JMP JSR BCC JMP LOX
FB
9F 9E 3S AC 00 01 2E AD 01 01 27 9F 9F 93 OB BO 00 AC 17 BI>
BEQ LDA BEQ LOY LOA CMP BEQ LDA STA LOA BEQ LOX CPX BCC LOX LOA STA LOA STA INX INX STX JMP LOX CPX BEQ LDA
SFB08 S93 SFAEB UOO SBO ($AC),Y SFAEB .SOI sBb sBI> $FB3A #S30 S9E sFB33 $9E sAO SOIOI,X SAC SOIOO,X S9E $FB3A s9F S9E SFB43 SAC
CHP SOlOO,X
BNE SFB43 LOA SAD CMP SOIOI,X BNE SFB43
INC S9F INC .$9F
LOA $93
BEQ LOA LOY CMP BEQ INY STY
$F82F SBO IISOO (SAC), Y
$FB43 586
FB2F FB31 FB33 FB35 FB38 FB3A FB3C FB3E FB3F FB41 FB43 FB4b FB48 FB4A FB4C F04D FB4F FB52 FBS5 FB57 F058 FB5A FB5C FB5E FDbO FBb2 FBb4
FBbb F8b8
FBbB FBbE
FB10 FB72 FB74 FBlb FB18 FB7B FB7E FOOO FB82 FB84 F08b
AS FO A'I 20 DO AS DO AD AS 'II 20
lib
07 10 IC FE 0'1
'13 05
BD AC DB FC DO 43 A'I 80 B5 AA 78 A2 01 8E 00 DC AE 00 DC Ab BE CA 30 02 8b BE Cb A7 FO 08 AS 'IE DO 21 85 OE FO 23 20 '13 FC 20 BE FB AO 00 84 AB Bl AC 45 AB 85 AB 20 DB FC 20 Dl FC '10 F2 AS AB 45 BD FO 05 A'I 20
FBBS 20 Ie FE
F08B 4C BC FE
LDASDb BEG SFB3A LOA HI0 JSR SFEIC ONE SF043 LDA S93 BNE SF843 TAY LDA SBD 5TA (SAC), Y J5R SFCDB ONE SFBSB LOA lISBO STA SAA SEl LDX 1$01 5TX SDCOD LOX SDCOO LDX SBE DE> BI11 SFBSC STX SBE OEC sA7 BEG SFBb8 LDA S9E ONE SF08B 5TA SBE BEg $F08B JSR $FC'I3 JSR $FBBE
LOY ISoo STY SAD LDA (SAC), Y
EOR $AB STA SAO J5R SFCDB JSR SFCDI OCC sFB72 LDA SAB EOR SOD BEQ sFOOB LDAI$20 J5R SFEIC JI1P SFEBC
RT5
FB'lb bO FB97;
....... cha.....cter . .tup
FB'I7 A'I 08
LOA
FB'I'I 85 A3
5TA LOA 5TA 5TA 5TA 5TA RT5
F8'1B
FB9D FB9F FBAI FBA3 FBA5
A9 85 85 85 B5 bO
00 A4 AD 9B A9
FOAl. AS 00 FBAB 4A
FBA'I A'I bO FBAB 90 02 FBAD A9 BO FOAF A2 00 FBBI 80 Ob DC FBB4 BE 07 DC
FBB7 AD OD DC FBBA A'I 1'1
FBOC 80
OF
DC
FOBF AS 01
FOCI FBC3 FBC5 FOC7
4'1 08 85 01 29 08 bO
FBC8 38 Db F8CB 30 3C
FBC'I bb
FBCD;
R....t point .....
FBCD AS A8 12 FBOI A9 10
FBD3 A2 01
FBBE AS C2 FB90 85 AD F8'12 AS Cl FB94 B5 AC
LDA$C2 5TA $AD LOA SCI 5TA SAC
FBDS FBD8 FBOA FBOC
$A3
1$00 SA4 $AS
S9B SA'I
LOA sBO L5R LOA UbO OCC SFOAF LOA UBO LDX ISOO 5TA SOCOb 5TX SDC07 LDA SDCOD LDA Ul'l 5TA SOCOF LOA Sal EOR 1$08 5TA sOL AND *$08
RT5
SEC ROO SBb 8111 SFCO'l
IRQ entry point
FBCF DO
FBBE;
IS08
20 91 FO DO 2F
Eb A8 AS Db
LDASAD BNE SFBE3 LDA .S10
LDX J5R ONE INC LOA
1$01 SFBBI SFC09 SAB SOb
121
FBDE 10 '29 FBEO 4C 57 FC
BPL SFC09 JMP SFC57
FBE3 A5 A9
LDA SA9
FBE5 FBE7 FBEA FBEC FBEE FBFO FBF3 FBF5 FBF7 FBF9 FBFB FBFD FBFF FCOI FC03 FC05 FC07 FC09 FCOC FCOE FCI0 FC12 FC14 FClb FC19 FCIA FCIC FCIE FC20
BNE JSR BNE INC BNE JSR
00 09
20 DO Eb DO 20 00
AS 49 B5 FO AS 49 85 29 45 85 4C 4b
Cb AS FO 10 20 58 AS FO A2 Bb
AD FB 10 A9 19 Ab FB 14 A4 01 A4 OF BD 01 BD 01 9B 9B Be FE BO A3 A3 3A
F3 97 FB
A6 EO DO 09 B5
FC2E 00
FC30 FC33 FC35 FC37 FC39
20
90 DO Eb AS
LOA EOR STA BEQ LOA EOR STA AND EOR STA J'IP LSR DEC
LOA $A3
BEQ SFC4E SFC09 JSR SFB97
BPL
CLI
A5 12
LDA SAS BEQ SFC30
00
LOX 1$00
D7
STX
FC22 Cb AS
FC24 FC2b FC2B FC2A FC2C
BNE
SFBFO SFBAD SFC09 SA9 SFC09 SFBAb SFe09 SA4 HOI SA4 SFCOC SBD HOI SBO UOI S9B S9B SFEBC SBO SA3
BE 02 02 80 BD 09 Dl FC OA 91 AD 07
S07 DEC SA5 LOX SBE CPX 1$02 BNE SFC2C ORAUBO STA SBO BNE fFC09 JSR SFCOI BeC SFC3F BNE SFBC8 INC SAD LOA SD7
FC3B B5 DD
STA SBD
FC30 BO FC3F AO FC41 Bl FC43 B5 FC45 45 FC47 85 FC49 20
BCS SFC09 LOY 1$00 LOA (SAC), Y STA SBO EOR S07 STA $07 JSR SFCOB
122
CA 00 AC BO 07 07 DB FC
FC4C FC4E FCSO FC52 FC54
DO A5 49 85 4C
BB 9B 01 BO BC FE
FCS? Cb BE FC59 DO 03 FCSB 20 CA Fe
FC5E FC60 FC62 FC64 FCbS FCbB FCbA FCbC FCbF FC71 FC73 FC75 FC78 FC7A
A9 50 85 A7 A2 OB 78 20 BO FC DO EA A9 7B 20 AF FB DO E3 C6 A7 DO OF 20 97 FB C6 A8 10 08
FC7C A2 OA
FC7E FCBI FC82 FCB4 FC8b FCBB
FCB8 FCBO FC8F FC91
20 58 E6 A5 FO 20 A2 86 B6 DO
FC93;
FC93 FC94 FC9S FC98 FC9A FC9D FCAO
08 7B AD 09 BO 20 A9 FCA2 80 FCAS 20
BO FC
BNE LDA EOR STA J'IP
SFC09 S9B .SOI SBO SFEBC
DEC 8NE JSR LOA STA LDX SEI JSR BNE
SBE SFCSE SFeCA #$SO SA7 #$08
LOA
JSR BNE DEC BNE JSR DEC BPL LOX JSR
SFe80 SFC54 . .78 SFBAF SFC54 SA7 SFC54 SF897 SAB SFC54 . .OA SFCBO
eLi
AB BE 30 BE FB 09 A5 B6
83
INC LDA BEQ JSR
SAB SBE SFCBB SFBBE
LOX ••09 STX SA5 STX $B6 BNE SFC16
RestQr""e narul IRQ
PHP SEI
11 00 10 11 00 CA FC 7F 00 DC DO FD
FCAB AD AO 02
FCAB FO 09
LOA S0011
ORA STA JSR LOA STA JSR LOA BED
#S10 $0011 SFCCA . .7F SOCOO SFOOO S02AO SFCB6
FCAO FCBO FCB3 FCBb FCB7
80 IS 03 AD 9F 02 BD 14 03 28 60
20 FO BO BO BO BD 60
93 97 93 14 94 IS
FC
JSR SFC93
FD 03 FD 03
BEg LOA STA LOA STA RTS
SFCS4 SF093,X S0314 SF094, X
$0315
Kill tape ..,tor
FCCA; FCCA FCCC FCCE FCDO
A5 01
LOA SOl ORA *$20 STA $01 RTS
09 20
85 01 60
Dl."k r l . point..,.
FCDI; FCDI FCD2 FCD4 FCD6 Feos FCDA
PLP
RTS
Set IRQ vector
FCB8; FCBB FCBB FCBD FCCO FCC3 FCC6 FCC9
STA S031S LOA $029F STA S0314
SEC LOA SBC LOA SBC RTS
38
A5 AC E5 AE A5 AD ES AF 60
SAC SAE SAD SAF
FCEC FCEF FCF2 FCF5 FCFB FCFB FCFE FCFF
6C 00 16 20 A3 20 50 20 15 20 5B BE
9u...,
rIM point.,-
FCOB E6 AC FCDD DO 02 FCOF E6 AD FCEI bO
FCE21
FCE2 FCE4 FCE5 FCE6 FCE7 FCEA
INC SAC BNE SFCEI INC SAD RTS
Po..r reset .nt,.y
A2 FF 7B 9A DB 20 02 FD DO 03
LOX UFF SEI TXS CLO JSR SFD02 SHE SFCEF
JttP
58
00 AO
be
FD02;
FD02 FD04 FD07 FDOA FOOC FDOD FDOF
(S8000)
STX JSR JSR JSR JSR CLI
SDOI6 SF0A3 SF050 SFOI5 SFFSB
JI1P
(SAOOO)
OlK:k 8-ra.
A2 BD DO DO CA DO 60
FOIO;
05
LOX IISOS LOA SFOOF,X
OF FD
03 BO 03
CMP SB003,X
BNE $FDOF OEX BNE SFD04 RTS
F5
9-rOlO
_uk
FOIO C3 FOil C2 FDI2 CD 38 30 FD15;
??? ???
CMP S3038
k .... n .. l rnet
FDlS A2 30 FDI7 AO FO FD19 IB FDtA;
FeDal
BO DO FD FD FD FF
FOIA FDIC FDIE FD20 FD23 F025 F027 F029 F02C
Kernal
LOX lIS30 LOY IISFD CLC
..,v.
B6 C3
B4 C4 AO IF B9 14 03 DO 02 BI C3 91 C3 99 14 03 DB
STX STY LOY LOA BCS LOA
$C3
SC4 *SlF S0314,Y SFD27 (SC3),Y
STA ($£:.3), Y
STA S0314,Y
FD2D 10 Fl
DEY BPL $FD20
F02F bO
RTS
FD30;
V.ctcrs
123
FD30 F032 F034 FD35 FD38 FD3A F03D FD3E FD3F FD40 FD41 FD43 FD45
31 EA 66 FE 47 FE 4A F3 91 F2 OE F2 50 F2 33 F3
57 FI CA FI ED Flo 3E
AND (SEAl, Y ROR $FE ???
INC SF34A,X STA (SF2) , Y ASL SSOF2 ???
??? ??? ???
SOC ($CA) ,Y SBC ($ED) ,Y INC S3E,X
F047 Fl 2F
SBC
FD49 FD4A FD4C FD4E
F3
?7?
6b FE
ROR $FE
AS F4 ED FS A9
LDA SF4 SOC SA9FS
FD5O;Initi~liz.
(S2F) , Y
A9 00
AB 99 99 99 C8 DO A2 AO
02 00 00 02 00 03 F4 3C
03
FDb3 8b B2
F06S FDb7 FD6B FDbA FDbC FObE FD70 FD71 F073 FD7S FOn FD79 FD7A FD7C FD7E FDBO FD81 FDB3 FD84 FD8b
B4 AB A9 BS Eb BI
B3 03 C2 C2 CI
AA A9 91 01 DO 2A 91 DI DO 8A 91 C8 DO FO
124
55
CI CI OF CI CI 08 CI E8 E4
FD9B;
FD9B F09C F090 FDAO FDAI
TVA TAX LOY SC2 CLC
JSR SFE20 LOA IIS0B STA S02B2 LOA .$04
STA $0288 RTS
IRQ vectors bA
RDR
FC CD FB 31 EA 2C F9 A9
???
Ct1P $3IFB
NOP BIT SA9F9
syst. .
consts. FI)50 FD52 FD53 FD56 FOS9 FDSC FI)5D FOSF FDbl
FDBB 9B FD89 AA FOBA A4 C2 FDBC 18 FD8D 20 20 FE FD90 A9 08 FD92 BD 82 02 FD9S A9 04 FD97 80 68 02 FD9A bO
FDAJ; LOA .soo lAY STA $OOO2,Y
STA S0200,Y STA S0300,Y INY BNE SFD53 LOX lI$3C LOY .S03 STX $B2 STY SB3 TAY LOA U03 STA $C2 INC SC2 LOA (:SCU, Y
TAX LDA ttSS5 STA ($CIl, Y CMP (SCIl, V BNE SFDBB ROL STA (SC1),Y eMP
(sct) , Y
BNE $FD68 TXA STA (SCIl, V INY BNE $FDbE BEQ SFDbC
initialize I/O
A9 FDA5 8D FDA8 BO FllAB 8D FDAE A9 FDBO 80 FOB3 BD FllA3
7F 00 DC OD DD 00 DC 08
OE OC OE DO
LDA H7F
SIA STA STA LOA STA 5TA
SOCOO SOOOO $DCOO .$08 SOCOE $DOOE
FD'Bb 80 OF DC
STA SDCOF
FOB9 FDBC FDBE FOCI FDC4 FOC7
5TA LOX STX STX 5TX DEX
FOC8
FOCB FOCO FDDO FD02 FOOS
8D A2 BE BE 8E CA BE A9 BD A9 80 A9
OF 00 03 03 IB
OD DC OD 04
02 DC
07 00 DO
3F 02 DO E7
FOD7 85 01
F 1109 p.q 2F FDOB 85 00
FOOD;
5TX
LOA STA LOA STA LOA 5TA LDA 5TA
$OOOF lI$oo
SOC03 S0003 $041B $DC02 11$07 SOOOO lI$3F
$0002 UE7 SOl tlS2F $00
En;oble ti....,..
FDDD AD Ab 02 FDEO FO OA
LOA S02A6 BEQ SFDEC
FOE2 F0E4 F0E7 F0E9 FOEC FOEE FOFI FOF3 FOFb
A9 80 A9 4C A'I 80 A9 BO 4C
FOF9 FOFB FOFO FOFF
fil." . . .
B5 B7 B6 BB B4 BC bO
s._
FEOO;
FEOO FE02 FE04 FEOb
'15
04 DC 42 05 DC bE FF
s.v.
FDF9;
LDA STA LOA JIIP LOA STA LOA STA JHP
2S
04 DC 40 F3 FO
U25 $DC04 U40 $FOF3 U9S $OC04 U42 SOCOS $FFbE
FE21 80 85 02 FE24 bO
FE2S; R....II . .t top of ....... y FE2S 90 06
8CC $FE2D
FE27 AE 83 02 FE2A AC 84 02
LOX $02B3 LOY $02B4
ii 1. det.ils
STA $88 STX $SA STY $B9 RTS
Set top of ....... y
FE2D,
FE20 BE 83 02 FE30 Be 84 02 FE33 60
FE07 FE09 FEOB FEOO FEIO FEll FEI3
$SA 1$02 BNE $FElA LOA $02'17
LOA CI1P
C'I 02 DO 00 AD 97 02 48 A'I 00 BO '17 02
PHA LOA *$00 STA $02'17
FE16 68
PLA
FEI7 bO
RTS
FEIB 85 90 FEIA A5 '10
FEte;
~y
Get status AS BA
5TA $90 LOA $90
Set status
FEIC OS '10 FEIE 85 '10 FE20 60
ORA $'10
STA $'10 RT5
5TX $0283 STY $0284 RT5
ReAd/ •• t botta. of
FE34;
FE07;
STA $0285 RTS
d~t.
STA SB7 STX SBB STY $Be RTS
85 88 B6 BA 84 B'I bO
Set ti.eout
FE21;
FE34 '10 Ob FE36 AE. 8 I FE39 AC B2 FE3C 8E 81 FE3F Be 82
02 02 02 02
FE42 60
FE43;
FE43 FE44 FE47 FE48 FE49 FHA FE4B FE4C FE4E FESI FE54 FE56 FE59
ace
$FE3C
LOX LOY STX STY RTS
$0281 $0282 $0281 $0282
N1I Mltry
78
SEl
be 18 03
JI1P
48 8A 4B 98 48 A9 7F 80 00 DO AC 00 DO 30 IC 20 02 FO DO 03
PHA
($0318)
TXA PHA
TVA PHA
LOA STA LOY Bl1l
U7F SDOOO $0000 $FEn
J5R SFD02
BNE SFE5E
125
FESB be 02 80 FESE 20 Be F6 FEl.l 20 El FF
JI1P (SB002) JSR SF6BC JSR SFFEI
FEb4 DO OC
ONE $FE72
FEM;
FEl.l. FE69 FE6C FEbF FE72 FE73 FE7b FE77 FE79 FE7B FE7E FE80 FE82 FE8S FEBB FEBB FEBC FEBE FE90 FE92 FE94 FE97 FE9A FE90 FEAO FEA3 FEAA
PLA TAY PLA TAX
FEBC 1.8 FEBo AB FEBE 1.8 FEBF AA FEeO 1.8 FECI 40
PLA RTl
WM"III stArt
20 15 FD 20 A3 FD 20 18 ES bC 02 AO
JSR JSR JSR JMP
SFolS $FllA3 $ESI8 ($A002)
98
TVA
20 Al 02
AND $02AI TAX AND HOI BEQ SFEA3 LDA SOOOO AND UFS ORA S85
AA 29 FO AD 29
01
Bo AD 80 BA 29 FO 29 FO
00 DO Al 02 00 DO
20
FE FE FF EE FE
28
00 DO
FB OS 85
4C 20 20 4C B6 BA 29 02
FEAB 20 06 FE FEA8 4C B6 FE FEAE BA FEAF 29 10 FEB! FO 03
FEB3 20 07 FF FEB6;
LDA S02Al
STA SDoOo AND 1$12
FEAb FO 06
BEQ AND BEQ JSR JMP JSR JSR Jt1P
SFE9D 1$02 SFE9A SFED6 SFE90 SFF07 SEESS SFEB6
TXA AND H02 BEQ SFEAE JSR SFE06 Jt1P SFEBb TXA AND HI0 BEQ SFEBb JSR SFF07
Reset IRQ " exit
FEB6 AD Al 02
LOA :S02Al
FEB9 Bo 00 DO
STA SoDOD
FEBC;
126
FEC2 FEC4 FEe7 FEC9 FECC FECE FEDO
FE02 FED3 FED4
RS-232 tiaing t.able
Cl 27 3E lA CS 11 74 OE ED OC 4506 FO 02 41. 01 BB 00 71 00
CHP ROL ORA ASL EOR BEQ LSR CLV BRK
($27,X) SC51A,X (S74) , Y SOCED SOl. SFE02 $01
ADe
($00), Y
STA SDDCO
TXA 12 00 02 06 Db 90 07 BB
FEC2;
Interrupt .xit.
FED6; FEDb FED9 FEDD FEDD FEEO FEE2 FEES FEE8
FEEB FEEE FEFI FEF3 FEF6 FEF9 FEFC
FEFE FFOI
NI'II RS-232 in
AD 01 DO 29 01 BS A7 AD 01. DO E9 lC 1.0 99 02 Bo 06 DO AD 07 DO 1.0 9A 02 Bo 07 DO A9 II 80 OF DO AD Al 02 80 00 DO A9 FF 80 06 DO 80 07 DO
FF04 4C S9 EF
FF07;
LOA AND 5TA LOA SBC AOC STA LDA ADC STA LOA STA
SDoOI 1$01 SA7 S0006 UIC $0299 $0006 S0007 S029A SD007 ISI1
SOOOF
LOA s02Al
STA LOA 5TA STA
SOooD UFF SDD06 S0007
Jt1P SEFS9
NIH RS-232 aut.
96 02 07 DO
LDA S0295 5TA SDDOb LDA S029b STA SD007
FF13 A9 11 FF15 BD OF DO
5TA SDDOF
FF07 FFOA FFOD FFIO
AD 80 AD BD
95 02 01. DO
LOA *$11
FFlB FFIA FFID FF20 FF22 FF25 FF2B FF2B FF2D FF2E FF2F FF32 FF33 FF34 FF3S
1'19 40 80 1'19 8D BD AE B6 60 AA AD 2A AS BA 69
12 Al AI FF 06 07
02 02
00 DO 9B 02 AS 96 02
FF43;
FF43 FF44 FF45 FF47 FF48;
FF48 FF49 FF4A FF4B FF4C FF40 FF4E FF51 FF53 FF5S FFSB FF5B FFSE FF61 FF63 FF66 FF68 FF6B
STA SDD07
LOX S0298 SH SAB
RTS TAX LOA s0296 ROL TAV
HA AOC
C8
FF37 80 99 02 FF3A 9B
FF3B FF30 FF40 FF41 FF42
LOA 1$12 EOR S02AI STA S02AI LOA UFF STA SD006
69 00 BD 9A 02 60 EA EA
1$C8
5TA S02QQ
TVA AOC 1$00 STA S029A RTS NOP NOP
Fake IRQ
PHP
08 68 29 EF 48
PLA AND UEF PHA
IRQ entry
48 BA 48 98 48 SA BD 04 29 10 FO 03 6C 16 6C . 14 20 IB AD 12 00 FB AD 19 29 01 80 A6 4C 00
PHA TXA PHA TVA PHA TSX 01
LOA :S0104,X
AND 1$10 BEQ SFF58
03 03 E5 00 00 02 FD
JI1P (S0316) JMP
JSR LOA BNE LOA AND STA JMP
(.$0314.1
SE51B S0012 $FF5E SOOl9 1$01 S02A6 SFDDD
FF6E FF70 FF73 FF76 FF7B FF7A FF7D FFBO FF81;
FFBI FF84 FF87 FFBA FFBO
A9 BD AD 29 09 BO 4C 00
BI 00 OE BO II OE BE
DC DC DC EE
LOA STA LOA AND ORA STA JI1P BRK
ISB1 SDCOD sDCOE I$BO 1$11
SOCOE SEEBE
Ju.bo ju.p table
4C 4C 4C 4C 4C
5B A3 50 IS IA
FF FD FO FD FD
JrlP JMP JrlP JI1P JrlP
sFF5B SF0A3 sFDSO SFDIS SFDIA
FF90 4C 18 FE
JI'1P "FE1e
FF93 FF96 FF'19 FF9C FF9F FFA2 FFA5 FFAB FFAB FFAE FFBI FFB4 FFB7 FFBA
JI1P JI1P JI1P JI1P Jt1P JMP JrlP JI1P JMP JI1P JI1P JI1P JI1P JI1P
4C 4C 4C 4C 4C 4C 4C 4C 4C 4C 4C 4C 4C 4C
aq ED
C7 Z5 34 B7 21 13 OD EF FE DC 09 07 00
ED FE FE EA FE EE EO ED ED EO ED FE FE
SEOB9 SEOC7 SFE25 SFE34 SEAB7 SFEZI SEEI3 SEDDO sEDEF SEDFE SEDOC SEOO9 $FE07 sFEoo
FFBD 4C F9 FD
JMP sFDF9
FFCO FFC3 FFC6 FFC9 FFCC FFCF FF02 FF05 FFDB FFDB FFDE FFEI FFE4 FFE7 FFEA FFED FFFO FFF3
JI1P JI1P Jt1P JI1P
6C IA 03 6C IC 03 6C IE 03 be 20 03 6C 22 03 6C 24 03 be 26 03 4C 9E F4 4C DO FS 4C E4 F6 4C DO Flo 6C 2B 03 be 2A 03 6C 2C 03 4C 9B Flo 4C OS ES 4C OA E5 4C 00 ES
(S03IA) (S03IC) (S03IE) (S0320)
Jt1P (.$0322)
JI1P J/1P JrlP JMP JI1P JI'tP JMP J/1P JI'IP
(S0324' ($0326) $F49E SFSDO sF0E4 SF6DD (S032B) (S032Al (S032C)
JMP SF698
JI'tP SE505 JrlP sESOA JMP sESOO
127
FFFb;
HardWAr. vectors
FFFb 52 FFF7 52 FFFB 42 FFF9 59 43 FE FFFC E2 FFFD FC FFFE 49 FFFF FF
128
??? ???
???
EOR ??? ?7?
PHA ???
$FE43,Y
M/C instruction set
The foll owing notation applies to th is summary : A
Acc umulator
X. y
Index regi,ters Memory
\
Processor status register
S j
Stack Pointer Change
+
Add Logical
10
/\
change Al
Subtrat.'t
V ... ,..... ¥ PC
Logical Exciusive·oR Transfer to Lot;;icaJ ( inclusive) OR Program counter
PCH PCL #;dd aa aaaa
Program counter high Program counter low 8-bit immediate data value (2 hexadecimal digits) 8-bit zero page address (2 hexadecimal digits) 16-bit absolute address ( 4 bexadecimal digits ) Transfer from stack ( Pull) Transfer onto stack (Push)
t j
129
ADC Add to Accumulat01' with Carry Operation : A + M
+ C -+ A.
C
NZCIDV /// -- j
Assembly b"g~Vf_
Addrenin9 Mode
ADC ADC ADe ADe ADe ADe ADe ADC
Immediate Ze ro Page
Zero Page. X AbwlUle Ab' olute, X
Ab,olu'e , Y (IndireCt, X )
(Indirect),
Add I
If
~
page bound.ry
II
.
#dd
Ia,X lU ll
1Ii1,n, X
O.
No.
No.
CODE
Iyt..
Cycles
6. 65 75 60 70
2 2 2 3 3 3 2 2
2 3
aaal,Y
]q
(u , X)
61
{u),Y
71
4 4 4'
.'
6 5'
Cl'oued.
AND AND Memory with Accumulat01' Logical Al'\"D to the accumulator Operation: A A M -+ A
NZCIDV ././-- - Acidr.ui". Mod. Immediate Zero Page
Zero Page, X Absolute Ab,oIvte, X Absolute, Y (Indire-ct, Xl (Indirect), Y
, Add
130
1 ,f
p,~ bound.ry
Assembly ""IU••• f ...~
AND AND AND AND AND AND AND AND II croued .
..
#dd
IIII,X 0111
aa •• ,X .,all,Y (ae,X) (aa),Y
O. CODE
2. 25 35 20 30 3. 21
31
.,," No.
2 2 2 3 3 3 2 2
No.
[yeln
2 3
, •
.'" 6
5'
ASL Accumulator Shift Left Opeml;on , C
-171615 14131211 101-0
Addr.ui"" Mod. Accumvliuor Zero Page
Zero Page, X Ab,otule Absolute, X
Au.mbly Languag. Form ASl ASl ASl AS[ ASl
..
A
:\ZCIDV /,//-- O.
N• .
CODE
By'.'
OA 06
!Ia, X
aaaa ""aa,X
I.
0'
"
N• . Cydel
I
2
2 2 3 3
5
•,•
Bee Branch on Carry Clear Operation : Branch on C
=0 :\ZC IDV
Addressing Mod. Relative
Auembly un9""9_ form
Bee
..
0.
N• .
N• .
CODE
BytH
Cyc~
90
2
"
· Add I If branch occur, 10 Ui,me pbge . Add 2 if branch occur. to diffe re nt p aQe . NO' a , AIM 6S will Iccapl an . biolul!! IIdd.eu as the operand li r\lU UCf' on forma' con",., 1 it 10 a •• Ia.ive "ddren .
sec .... l,
.,.,d
Bes Bran ch on Carry Set
Operation : Branch on C
Add,"sillg Mod.
Rel.'ive
=1
NZCIDV
Anembly hn9uas. Fo,m
BeS
.
O.
N• .
CODE
Byt.,
N• . Cycl.,
BO
2
2'
Add I .f br.nch occurs 10 wme page. Add 2 if branch occur, 10 ne,,' pa9' Note, AIM 6S will accep' "" .blolute ilIddren u the ~,.nd (inlfruClion form" BCS .... ), ,nd con .... r. if to , r, I,'iv, addreu .
131
BEQ
Branch on Result Equal to Zero
=1
Operation: Branch on Z
NZCIDV
Addr.ssing
Anembly Lnlua.e
Mod.
For",
.
Itelatjve
OeQ
..
H• .
CODE
."te.
H• . Cycle.
f()
2
2'
OP
Add I If br.nc:h QUurs to I,me p.g• . Add 2 if blench OCCU/S to next page. No te: AIM 6S ..... iII accept .n ilbsolule add,en n 'he operand (inSIrIXI;On format BEQ
OSliN ).
and
conve rt II 10 ., lelalive ,dd ren.
BIT Test Bits in Memory with Accumulator Operation: A M, M7 -+ N, Ma -+ V Bit 6 and 7 are transferred to the Status Register. If the result of A M is zero then Z 1, otherwise Z ::::: 0
=
NZCIDV M, / -
I
.
Addr.ssing
Assembly hnlll~l.
OP
M ....
Form
CODE
Zero P.ge
81T
Absolute
OIT
......
2C
...... N• . 2
3
- - M, N• .
Cycl .. 3
•
BMI Branch on Result Minus =1
Operation: Branch on N
NZCIDV
.
Addr.ssing
A".mbty bnguage
OP
M....
f~m
CODE
H• . Iyte.
Cyd"
30
2
2'
Rel.tive
OMI
..
H •.
Add 1 ,f b"men occurs to U1me p.g •. Add 2 if branch occun to differ.nl ~~. Not. , AIM 6S .....iII Keep' In absolute , dd'.11 .. the operand (im"uctlon format 8M1 iIIIU), afld convert it to II r.l.tive IIddreu.
132
BNE Branch on Result Not Equal to Zero Operation ; Branch on Z
Ad dressin9 M ....
Relative
=0
NZCIDV
Assembly l li ntlulige Fo,m
..
BNE
0'
No .
No.
CODE
Byt.,
C.,clft
00
,
"
'Add I If brl"e" occur, 10 'lime pligli. Add :2 if brene" OCCVf$ to different P'Qe. Nole : AIM 65 w ill IIC(lIpl .n .,b50Jule a ddress .n Ihe Operand ('"uruction form.! 8NE . . .. ), and CO" .... " it to I re llli ... e address.
BPL
Operation : Branch on N
Branch on Result Plus =0 NZCIDV
Addressing Mod.
Relative
Assembly Langullge Form BPl
Add 1 ,f btlnch occur. to •• me p.ge. Add :2 if brlnen «(Uft 10 different ~ge.
..
or
No.
No.
CODE
8yt..
Cycln
10
2
2'
Not.: .AIM 65 will HUP! II" ,b,olule address at the operllnd (inltfVC:lion fo r ~ 1 6Pl Jail), and converl il 10 II r.I"''''1I . ddleu.
BRK Force Break Operation : Forced Interrupt PC
+2t
pt
BNZCIDV 1---1-~ddf"s inSl
Anembly Le"9u'ge
0'
Ho.
No .
M ....
Form
CODE
8,...
eye,"
Implied
BRK
00
1
7
133
BVC Branch on Overflow Clear Operation: Branch on V
=
0
IiZCIDV Assembly
Addt.uing Mode
b"IU.~
form
SVC
Relative
..
-Add 1 If brlneh occur, to same P'Q4!. Add 2 if brlnch occurs to differenl p.g.e. NO le: AIM 65 wiU IICeepl an .b$olut• •ddteu
convert
to
il
I
II
0.
No .
CODE
No. Byt.s
Cycle.
50
2
2'
Ih" operand (inllrvclion form., BVe .... ). lIna
re l"ive .ddreu .
BVS Branch on Overflow Set Operation: Branch on V
=1
IiZCIDV
Ass.mbly L.ng".... fo,m
Addr.uing
Mod.
..
svS
Relil;ve
, Ad d
OP
No.
CODE
No. BY'H
Cycles
70
2
2'
1 If branch occuu 10 SIImll plge. Add 2 if br.rn:h OCCUr$ 10 diR •• e,,! p,Qe. Nol.: AIM 6 5 w ill KClp l a" .bIOl uI• •ddteu II the opct.nd (i'UlrVClion form.' BVS ....). end conli.,' it 10 /II ,.I.,ivI .dd.eu.
CLC Clear Carry Flag Operation: 0
~
C
N Z CIDV --0- -Addt.sslng
134
A.Hmbly l.IngulSI form
OP
No
Mod.
CODE
Iyl"
Implied
ClC
IS
1
No. (,dflo 2
ClD Clear Decinwl Mode Operation : 0 ..... D
"ZCIDV ---- 0 "dd,-.sin, Mod.
A".".b', UnIW." ,.~
Implied
ClD
0'
N• •
N• .
cao.
Iyte,
Cyc",
08
I
2
CLI Clear Interrupt Disable Bit Operation: 0 -+ I r\ZCIDV Add'fl,inl M .... Implied
..
Auemil., u"lva._ ~
ClI
---0-0.
N• .
CODE
Iyt.,
N• . eyelet
58
I
2
ClV Clear Overflow Flag Operation : 0 -+ V
NZCIDV -----0 Addr.uiwI
Aue",bty urtSva ••
or
N• .
N• .
M ....
For",
COO,
I,...
e.,d.,
Implied
CLV
88
I
2
135
CMP Compar e Memory and Accumu[lIlo,' Operation: A -
\1
\ZCIDV
///-- Add res.s ing
Asse mbly h"9",ag e
0.
No .
No .
Mode
Form
CODE
By tes
, ,
C ycl es
CMP CMP CMP CMP CMP CMP CMP CMP
Immedi Otle
Zero Page
Zero Page, X Absotu le AbsoluTe , X AbsolUTe , Y
(Ind ire ct, Xl (Indirect),
Y
..
# dd
aa , X
"ada aaila,X ililaa,Y (ail,X)
(aa ), Y
CO
C5 D5 CD DD D. Cl Dl
2
3 3 3 2
,
Add I ,f p"ge boundary., croued .
, 3
•
•
." ." 6
"
CPX Compw'e Memory and Index X Opt-'ration :
X -
~1
:\ZClUV ///-- Addressing Mod e Immed i
Zero Page
Absolute
Assemb ly Lll n9"'. 9 1t Form
CPX C.X CPX
#dd
"
,JOtail
0. COOt
No. Bytes
,. '0
,
EC
3
2
No, Cycle,
, 3
•
Cpy Compare Memory and Index Y Opt>ralion:
Y- M
NZClUV ///-- Addreuin, Mod. Immediate
Zero Page Ab solute
136
Aue mbly Lan8"'.9.
0.
Form
CODE
Cpy C.y CPY
..
#dd
aililil
CO C4 CC
No. 8 yt.,
No,
,,
Cyc:N.S
3
4
2
3
DEC Decrement Memory by One OperatIOn:
~1
-
1-+ :M
:,\Z C IDV Addreuinl
.. .
Auembly hng .... '.
Mod.
~
DEC DEC DEC DEC
Zero Page Zero Page, X Absolute
Ab\olule. X
aa,X
ilIitaa
aaaa,X
j/-- -0.
N• .
N• .
CODE
Byte,
CyelK
C6 06 CE DE
,, 3 3
S
6 6 7
DEX Decrement Index X by One Operation: X -
1-+ X
..
Addr.lSi", Mod.
Anembly"'nglol"9·
Implied
DEX
~
NZCIDV //---0.
N• .
N• .
COO,
Byt.,
eyde.
CA
1
,
DEY Decrement Index Y by One Operation: Y - 1 ..... Y
NZCIDV //---Add,euine Mod.
ASHmbly lang ....g.
".m
Coo,
ayt.,
Implied
DEY
88
1
0.>
N• .
N• . Cy""
,
137
EOR Exclusive-OR Merrwry with Accumulat01' Operation: A V M ~ A ~ZCJDV
//---Addr... in8
Assembly ungua,.
Mod.
Form
EOR EOR EOR EOR EOR EOR EOR EOR
Immediate
Zero Page Zero Page, X
Absolute Ab$olute, X ~Mo!\,I1e, Y
.
(Indirect, X) (Indirect), Y
.
#dd
.I,X Illaa
O.
No.
N •.
CODE
'yt ••
Cycle.
2 2 2
2 3
4'
'5 55
a•••. X
'0 50
........y
5•
(u,X) {u),Y
A1 51
3 3 3 2 2
• • ,."
•5'
Add I If P'94! boundery " crossed.
INC InCl'ement Memory by One Operation; M
+ 1-+
M
NZCIDV //----
Addressing
Anembly Lan,uage
OP
Mod.
fo~
CODE
INC INC INC INC
Zero Page
Zero PIge, X Absolute Absolute, X
..
aa ,X .aaa
.aaa.X
E• F6
EE FE
No. I",H
2 2 3 3
ND.
C.,d••
5
•• 7
INX Increment Index X by One Operation : X
+ 1~
X
NZCIDV //- ---
138
Addressin, Mod.
Asumbly bnIU."
OP
fo~
COOO
I,.,..
C1 c1ft
Implied
INX
E8
1
2
No.
No.
INY Increment Index Y by One Operation : Y
+
1-+ Y
i\ZCIDV jj-- -Addr... i"l M ....
Assembly Lanlu•••
0'
No.
No.
Form
C....
Iylu
Cycl.,
Implied
INY
CB
1
2
JMP Jump Ope,.tio", (PC
+ 1) ~
(PC+2)~
PCL PCH
NZCIDV Add ...uin,
Assembly urtguaS-
OP
Mod.
fo~
COO.
Absolute
JMP JMP
Indirect
",alia
(aau)
.".. No.
3 3
No.
Cy(ift
3 5
J5R
Jump to Subroutine Ope,ation, PC
+ 2l, (PC + 1) .... PCL (PC
+ 2) ....
PCH
NZCIDV Addrusi....
A."..,.bly ungue,_
cw
Mod.
f_
CODE
Absolute
JS.
ou.
20
.,.... No.
3
No.
Cycle •
6
139
LDA
Load Accumulator with Memory Operation : M -+ A
:-;ZCIDV jj - - -Add,"si"1
Assembly bn8".....
oP
N• .
Mode
Fo~
CODE
Iyt.,
A. A5 B5
2 2 2
AD
3
BO B9 A1 B1
3
ImmediaTe Zero Page Zero Page,
X
Absolute Absolule , X Absolute, Y (Indirect, Xl (Indirect). Y
, Add I ,f
~ge
.
lOA lOA lOA lOA lOA lOA lOA lOA
#dd
'.,X
llIaa aaaa,X aaaa,V (aa,X) (aa),Y
3
2 2
No. Cydes
2
,, "" 3
6 5'
bound.r., II trOlled.
LDX
Load Index X with Memory Operation: M -+ X
NZCIDV jj---Add,",;",
"nImbly Ufttl" ...
oP
Mod.
fo~
COO<
lOX
Immediate Zero Page Zero Page:, Y Absolute Absolute, Y
'00
140
wnen
P'ge DQUl'lo.ry
lPX
lOX
lOX lOX II
aOll.-o.
.
#dd
A2
aa,Y
A6 B6
aaaa Na.,Y
AE BE
No. Iyt..
2 2 2 3 3
No. Cyd.s
2
,3 4
"
LDY
Load Index Y with Memory Operation; M -+ Y
NZCIDV J/ - - - "ddr.nine
Auembly u"gu ••• For",
M.... Immediate
.
Zero Page Zero Pa~, X Absolute Absolute, X
..
No. lyle,
AD A•
2 2
#dd
LOY lOY LOY LOY LOY
O.
<00.
aea,X
B4
2
OJlla
AC
u ",X
BC
3 3
N• .
eyd., 2
, ,.• 3
Add 1 when p'ge bound.rv " ("roued .
LSR Local Shift Right
Operation, O __
!i!6!5!4!3!2!I!ol __ c
Addr.uing Mod.
Accumulator Zero Page Zero PIge, X Absolute Absolute, X
NZC I DV a ll - - -
ASI.mbly Langue."
or
Form
<00'
..
N •. By'es
ISO IS.
A
'A
1
IS. IS.
u, X
a • ••
4• 5. 4.
2 2 3
LS.
aaaa,X
Sf
3
N• .
Cycl., 2 5
•• ,
NOP No Operation Operation ! No Operation (2 cycles )
NZCIDV Addr.Sling M ....
A_ltly l.ng" •••
or
Form
COO.
N• . Byte,
Cyd.,
Implied
NOP
EA
1
2
N• .
141
ORA OR Memory with Accumulator Operation: A V M ... A
NZCIDV jj - -- Addressinv
Assembly Lang".g.
0'
Mod.
form
CODE
..
ORA ORA ORA ORA ORA ORA ORA ORA
Immedia1e
Zero Page Zero Page, X Absolute Absolute, X Absolute, Y (Indirect, Xl (Indirect), Y
#dd
aa,X alaa aalll,X lala,V (a... X)
(aa),Y
O. 05 15 00 10
" 01 II
N •. Iytes
,,, 3 3 3
, 2
N•. Cycle.
2 3
••
."."
6 5"
Add I on plge cronlng.
PHA Push Accumulator on Stack Operation: A .1.
N ZCIDV Addressinil M ....
Auembly una"e.,. '«m
OP
N •.
COO.
ay...
N• . Cycle.
Implied
PHA
'8
I
3
PHP Push Processor Status on Stack Operation: P.!.
NZCIDV Addressing Mod. Implied
142
une"II,.
OP
H• .
,.~
CODE
Irt..
N •. [yeN'
PHP
08
I
3
Assembly
PLA
Pull Accumulator from Stack O peration : At
NZ C IDV /./ - - - Addr.ning Mod.
Anembly bn9vage
O.
'Mm
CODE
I mp lied
PL A
.,
No. Iyt.s 1
No.
cycl.,
,
PLP
Pull Processor Status from Stack Operation: P t
N Z C IDV From Stack Ass.ft'lbly unluge Fo,m
01' COO.
No.
No.
Mode
Iy'.'
Cycle,
Impl ied
PLP
2'
1
•
A..wreui,..,
ROL
Rotate Left Ope ration:
NZCIDV Addressi"g Mod. Accumulator Zero Page Zero Page, X
Absolute Absolute, X
A ... mbty un8u••• Form
ROl ROl ROl ROL ROL
..
A
• • ,X
"a•• •••••X
01' COO. 2A 26 36 2E 3'
.,...
./ ././---
N• .
N• . Cyel..
1 2 2 3 3
2 5
• 6 7
143
ROR
Rotate Right Operation :
NZCIDV ,/j,/ - - AddluJing
A.Mmbl)' un8""9.
Ot'
No.
Mod.
'o~
COO.
'ytu
Accumuli1tDf Zero Page Zero Page. X
Absolute Absolute, X
ROR ROR ROR ROR ROR
.. A
aa,X laal
IIlaa,X
6A
1
66
2 2 3 3
76 6E 7f
No. Cyd•• 2 5
• 6 7
RTI
Return from Interrupt Operation; Pf PC;
NZCIDV From Stack Addressing M .....
Ass.mbly hintu....
Ot'
'o~
CODE
No. ayiu
No. Cyc",
Implied
RTI
'0
1
•
RTS
Return from Subroutine Operation : pet. PC
+ 1 -+ PC NZCIDV
i".
Acldr... M....
Implied
144
A...mbl,. lang ......
00'
'MM
COOl
.,....
Cyd"
RT.
6()
1
6
No.
No.
SBC Subtract from Accumulator with Carry Operation: A - M Note: ~ = Borrow
C-+ A NZCIDV ///--/
Adcf,."inll
"nimbly Lolingul,1
0'
Mod.
for'"
COO,
N• . 8yt ••
N• . Cycl ••
E. E5 FS
2 2 2
3
ED
Zero P,Jge
Zero P.ge. X AbsoluT.
Absolute , X Absolute. Y (I ndirect, X) (Indlr.-ct), Y
" Add I when
.
SBC SBC SBC SBC SBC SBC SBC SBC
Immedi.te
p,~ boundery "
#dd
aa ,X aaaa
oJaaa.Y
FD F.
3 3 3
(aa,X) (aa),Y
EI FI
2 2
uaa ,X
2
,,
,"
," 6 5"
Cfoned.
SEC Set Carry Flag Operation : 1-+ C
NZCIDV
-- 1--Add,e.I"',
• n.mbly L.... gu.lll.
OP
Mod.
Form
Implied
SEC
COOE
N• . lytH
eyde,
N• .
3B
1
2
SED Set Deciinal Mode Operation : 1 -+ 0
NZC I D V AdeI,.., .... M ....
ImpUed
".s-b~ ....
n."".
0'
Form
CODE
SED
FB
..
----1-
N• •
,..
N• . Cyc ....
1
2
145
SEI Set Interrupt Disable Status Operation: 1 -+ I
NZCIDV ---1--
Add,.ssin,
Asslmilly h"IU.,.
10....
F.~
OF COOE
N• . lyles
N•. eye,"
Implied
SEI
78
I
2
STA Store Accumulator in Memory Operation: A -+ M
NZCIDV
,.....
Add,.ni".
ung"...
..
F.~
Zero Page
Zero Page, X Absolute Absolute, Absolute. (Indirect, (Indirect).
AIMI'IIbl)'
X Y Xl Y
STA STA STA STA STA STA STA
•• ,X .na.
.... ,X .un'iI,Y (al,X) (ul,Y
01' CODE
85 95 80
.. 9D
81 91
..... No. 2 2 3 3 3 2 2
N• •
eyde. 3
• 4
5 5 6 6
STX Store Index X in Memory Operation: X -to M
NZCIDV Add,..., .
As_blyun•••••
A.
10....
F....
COOE
Zero Page Zero P.ge, Y Absolute
146
ST. ST' ST.
••••,Y ••••
86 96 8E
N •. Iyl ...
2 2
3
N •. eyc,"
3
• 4
STY
Store Index Y ill Memory Operation; Y -+ M ~zc:
Addressing Mod.
A ssembly hn9u .. g e
0.
N• .
Form
COO.
8.,,1.10
Cycln
"ae
2 2 3
3
..
SlY Sl Y SlY
Zero Page Zero Page, X
Absolute
1)\1
a.,X
a•• a
94
N• .
4 4
TAX
Transfer Accumulator to Index X Ope ration: A -+ X
N Z CIDV ./J---Addressing Mod.
Assembly l.Jngv-se
0'
N• .
N• •
,.~
CODE
Byt.,
(yel .. ,
Implied
TA X
AA
1
2
TAY
Transfer Accumulator to Index Y Operation: A
-to
Y
N Z C ID V J./---Addressing
Assembly ~ngu.9.
0.
M.de
Form
CODe
By,.,
Cydu
Implied
lAY
Aa
1
2
N• .
N• .
147
TSX Transfer Stack Pointer to Index X Operation : S -+ X
NZCIDV // -- - Addr.,s;ntil
A... mhly hn9IMge
Modo
Fo~
Impti~d
TSX
0'
No.
N•.
CODE
Byt••
eyelet
BA
1
2
TXA Transfer Index X to Accumulator Operation: X -+ A
NZCIDV // --- Addr.ning Mod.
A,sembly lang" •••
01'
No.
Fo,m
CODE
Byte,
No. eyelet.
Implied
TXA
SA
1
2
TXS Transfer Index X to Stack Pointer Operation; X -+ S
NZCIDY Addr.nina Modo
Assemb!y ungues_
O.
N• .
Fo~
COO.
a,...
No. Cycle.
Implied
TXS
9A
1
2
TVA Transfer Index Y to Accumulator Operation: Y -+ A
NZCIDV // - - --
148
Addressing Mode
A...mbly ung...-e-
01'
Form
COO,
.,....
Implied
TVA
9S
1
N ••
No.
C.,.,Ie• .
2
Extramon: A Machine Code Assembler 100 110 120 130 140 150 160 170 IBO 190 200 210 220 230 240 250 260 270
PRINT"TINY PEEKER/POKER" X$="*":INPUTX$:IFX$="."THENEND GOSUB500 IF E GOT02BO A=V IFJ >LEN(X$)GOT0300 FORI=OT07 P=J : GOSUB550 C(I)=V IF E GOTO 280 NEXT! T=O FORI=OT07 POKE A+I ,C ( I ) T=T+C(I) NEXT I PRINT"CHECKSUl'lz",T GOTOlIO
290 PR INTMIO$ (X$, 1 ,J) ; "??": GOTO 110
300 310 320 330 3 40 350 360 370 380
T=O FORI=OT07 V=PEEK (A+ I ) T=T+V V=V/16 PRINT" u; FORJ= IT02 V"I.=V V= (V-V"I.,..16
3 90 IFV% ) 9THENVX =V%+7 400 PRINTCHR$(V%+48); 4tO NEXT J
420 430 440 500 51 0 520
NEXT I PRINT "/".T GOTOIIO P=I L=4 GOT0600
550 P = J
560 600 610 620
L=2 E=O
v=o FORJ-P TO LEN(X$)
630 X=ASC(MID$(X$,J})
640 IFX =32 THEN NEXT J 650 IFJ } LEN(X$)THEN7 9 0 660 P=J 670 FORJ=PTOLEN(X$) 680 X=ASC(MIO$(X$,J»
149
690 700 710 720 730 740 750
IF X(>32 THEN NEXT J IF J - P<>L THEN 790 FORK=PTOJ-I X=ASCCMID$CX$.K» IF X<5B THENX= X-4B IF X>64 THEN X=X-55 IF X15 THEN790
760 V=V*lb+)(
770 7BO 790 BOO
NEXT K RETURN E=- I RETURN
· ,0& .. , 00 1<' "Ii ... uo .... "7 Jot ue 0.[ 00 .... ~~ _,0112" II :;OO:>oJ, N:x. 2(l 2v ~O .'0II~8 ;><, 2":'0 ...... ZV 2('~:O 2<' • ,(}lI lov ,.~ 4S uII 111 v() '''' 22 II
· ,0.3820 7E ~ ~ .... 0'" 4D · ,0"4" S!. :S4 :;. 4 :1 !.:! ' " • d)84 e or: •• 00 U. 01.1 8 2 ~ t2 ~8 14 }S"" "~ ,~ ~ At C2 ~fi 14 · , O Il~O AI< 31 n ~1 Z'I O!J _'06b8 ..... AA AA AA "'" AA
.",1r.Ko
"" • ., W AA 34
. .. 0 :0; 9E
J2
:;,ooi ,,,,, ,.,.,
AA AA
· .,.,81v AA AA AA AA .... AI> AA Ai> _,<)!Inl;vl AA AA AA Ai> AA M AA
•• QAOo).:t220 411 Fa I>
.,,-,,,,111 fa .....-.:;:>I) • ,0A20 2 ..... " F i< • .QA":'iI ";Xt 1 9 fA "OA.;>' I II 00 A.. ..(,An u Fl' 1'0 • ,,>1\4') '15 Cl C!i _,<)A08 "0
F O EQ
•• o>o:Io!." fll 00 .1'_:';:0 B7 • ,01'17" rA (10) • ,QIl111 7U J£
~.
Ir-i 2 .. AS?;! GO (.2
n
C/o
_II · ,""'110 48 · , OABB :!.£
C/o
'n "'
22 18 ~
,U0B8 24 AA ,,:; ~ .. I>:'> 2:1 Oil 005 _,I}9I:" l 7 [)O.. ,,::; C<> ~ Co. H . . _.0B!;8 ". }7 Qj>, 48 ,,5 3 ~ DO ,,::
• "oeD<> Colo
~ C. 37
,,(J8D8
iI~
'>'
1>8 37 Do , £D A5 • ,OlE" 115 ".' ~ I II 115 JO .. .: • , 0000tI , ... , U .oF of of' Ae Elo 'f(.
c...r
18 ,.
~
.,OJAe,u 2Q 4,
. ,0><0II
.. ..... 11» 00 • :0Ae9 fF .II)AI/O 01 • ..:,...8 8 0
_,ODIN
.~ , .,~
•
AE
flj C'9 20 ra 3F AO lID 0:;:>
" FA 00 '90 00 ~O "" I'll 00 ~. ~8 20 <;to ~" 01 H ~ .... 2 10 110 Cl A!i Co E~ "-<.):loA 2() C2 f8 I'll 00 20 BII 1'8 ' C co rA 00 'F) "10 O:!. 20 80 1'8 Fa 00 00 07 20 "10 Ell A'" De 8!i "II DO 2(, <11 Fa
,. \C 40 .:0 ..
£,
~" ~7
20 ~1 ~ .. C l £110 ZIIo 00 F '
ro
r ..
~'" , 0.)
0... U6
8£ , . Il;'> 42 Il"l 1>"1 ~2 1)0 E.. C.2 DO CF FF C" AY 9(l 2\., 10 2 .. ~ HI 00 A'"
0i00 :.'0 1108 /011 _.C .. !.< , .. , fF ........... -N •• O'l"':Oe (,Q A"I 2 £ Z() ~1 • ">'If». -:'0 112", ~" ~ FII , )0,
. ,o,.a
"":1
c..
f" ,-, , .'9 7(0 r c) F!io •• u"n" ...: 'A: DO (1 1 IF w DO oc · ,, "' 7 " 6A to .. AA &11 L 7 rF o.J _a
• cQ'l'..e
~."
. ,(;>
e_
114 'ffl <>Y ...:;> 1I!i
~
M
0"
toe
~'1.1
U- H
• .Gf\['} :;>oj .,0000a~:;:o
,XI 20 t f " C .. X 00 DC 2<1 QJF I'll E" II~ l'A ~ O CF bC }O u~ bC
~
U . 'Ie
t"'O 00 20 118
co; 03 Ff C",
,H ()3 '" UO DO 04 A .. YI.' ., 'IB3\.' :'0 D2 FF II .. ~oQ 20 Ef •• 01.'38 1' .. OCt A~ '9(1 ;!'II IV 00 C. .,OSO" o.c.7 FII 00 N .... 1"<;' 00 • .OBOO C'I 2C 00 IIA 2() 1"1 'A {)(j .,u~l
co
:;.», .... FA coO 20 CF
•• ~ lC 00 AD 7'(t •• 0 8110 C ' ~ Ill: "'5
.,0808 69 FA 0(> 20
l~
C~
C" FA 00 A5 86 4r 7!V
Cf"
,0,-
C, OCI
•• 0 11 ''> 110 "R ,,<;' % 10 D2 .. r 21:' ., " El 76 r:;:o F .... 00 OC n 1"8 (to ot6
.a 'a va
· .') 1190 C2 ~"
OA." _A ~A:ro hi') I'll · ,O,qo _ ~8 ;:'i' 20 60 FA •• 0 Wli Oil 9A 2 Ff ..a ~ •• OIlAO 1'1' So) C"I 3A 'fO oJ2 • , O&p,(! 0 10 r.t C.... 11
• , " " " " FF· A:;: (oQ .><" 80 Ell • <1,,",,, " 2 ... Ff C8 EO ,/,
I" r:1 !l0 <>2 :.Q IX,:O ~ II .... .0 00 9u Oil 1: 1 F O l ! F8 8S CI /0\) '>0 1l1";:'f: 20 0 .. FF , .., DO 1'5
· ,0:-11 ",,-, lli' Z'O C7 I'a
Atl
<0, ,q
(kJ
'F)
• . ""'1>8 .00 ~'O '3 F8 VO Clo ., .",".. fl I>tl ~ .. eo FA,)Q
·.0)'9.
A~
.,~O
,.}
.• 0'91:8 · .",,0<> . ,(>'91l8 · ,(>'E O
.. '" 48 _C
'.0
III 1: 1 n 4C ED <"II "II 20 Ca 10 1>0 A"I }& 0:1 ~ C2 11"1 (10 Z<J 51 FD 00..e ~1 FA O<.i II." '9<) ,0(.0 ( )()
rr.
150
0(,
n
Be" Co;'
SII (q C9 :;:0:;:0 "I, till
• ' ['''Iii<) 11[0 C .. 'I' , .• ) 4f; bU C II
4C (0 F A 01)
01;1
• .QACO AE Y II. BA 84 &"1 88 11< 8 '
.,OA!!<)
.• 0""00 H
., " .. ~, : .. 0;.' AS C2 110 • • ,,"11,... toe II!> 10 AO ,,<)'lAo:< ~ ' 0 00 PI C I
00 7 .. ID
O'
· ")IIOf' £II rll · . "eo,.; , .. Ib · . ' >1110 fA 00 .,OBI8 F" E!i .,'111:'0 lID 60 •• 1)1\1"9 20' ~ ..
1)2..a V'Z: .. a 118 W 'l9 C"I
1"'1
'17 _II AD 3. Q~ 0J7 t>F. lO O~ lie A.. "10 20 Ho;tA bC t.>2 At:! Ill)
_1,.", ... , _ ,("1(,9 • ,ofilU .. <.>9 111
to"
00 .."I '" 3& 14 00 00
41: • ., FII 00 2(1 t:f Oil FO OC C"I 10 Q()
FO ""1 C" "0 FO 00 10 2V CT FF • ,\l-AF" " (' 1\' co, 00 ,,, ~ .,~1t E b 1>1 1:11 CO 11.. f)(,
00 oo..a Oil l€. l O 'n aD J C :'11 OJ;: <>II AA..e .n 80 :.;. 02 00 110 ~"1 02 8A
n
7'1 FA •.to "" 0 3 20 00 ",.. y(.o :;:0..' 02 H 02 "A 111 I'D J' 02
11 H _, • •,) (~, 1111 I .. I)~ AD ~1 FF 1)0 _ ,~II 1m 10' (.:-. ".. ~ to>....,;) FF
00 90 90 M _ ,u9'2\) 00 _ ,0'9211 ,,:0 _: 0;.9J<) ~A _ ,0;.9.;8 ::;4 · "l."4,, " Z "p
en
20 WI FII CJO) F O ~ 2 0 3E
•• v\IIioJ,o,:; ~D ~ ::~ ~ -:£ 1J!:,:on • .(0888 1'15 J.7 85 2 ' .05 ~II ~ ~ · ,011'0 Ao) 00 A5 12 00 02 C.. 21 •• 0698 C6 :!~. ~J J2 0 0 'lC 45 'n • .'.>111>0' [)" (>7 .:.t. 23 C40 27 . , n
_,oe.c.e, ...
3 11
• ,0A08 2<.' 4a FA 00 20 1<1 "II 00 •• '-""1 "
_,"e68
~ (;1
c.r
0)'
· .010<> C2 'I' ~ co .. oNG f3 "" ~O . ,"ICO Ir.I C:;:O 20 · ,or;ce Ir.I CI 1>0 .,01100 Z\l J I< FlI . ,01>08 20 lE 1'1 ., OBEO 18 "0 2(1
· ,(I(£a
108 .., eo,.A lIB,.a A'I 00 ..,.-~ co; t.tO C" I>F fA
C2 00 00 00 21)
_e Col. <)0>
01 10"
16 CA DO '1'0 07 'i'(I
oY.!
B) 21> D:I ;)'I DO OC ........ OA "'" Z(>
011 011 e~ ~A ]" !;f "
()v
.,0Bf'O:ro AI' FA 00 IJ'!i 21l 38 .....
.,QRF"a
C <;':]A"O 0;> 10"1 (J8:2'1 "'"
1>:;:0 "'" j~, B4 C~ 00 v~ 1:110 1: 1 ".:t ;>0;; !I: FO " ..., ... ( . , " I ..... CC FA "" :;o,'1C · "oe}oJ FI> 00 .... 0)"1 60 ;'\l !.£ ,., .,(II:~ ;oO ..... I. rA <00 B" Of.: /l.E · , .>C 4 " !#" _.<1'1 'IV 10 D2 1'<" • ,Qt: 411 A<;, ~ ,. 20 D~ 1'<' ~C 47 I'll
.,·..cu0 bU Cl .I ' oC l oJ 2 " •• OC I O '-11 . ")(;~,, , .., .,<)[";211 FA
· .ucoe
A2 u 2 ~ D•• ,:.011 B4 D~ C~ D6 (," CY ~ (t 00) eo Q(I 'H';O-O fl F
.n
.".IC~ {oO ~O ~ 4 FO 00 CA 00 rA •• OC:;e " " lib C S 0\. "l (I. C4 6(> • ,,)C...:> "'~ ("02 ~ t(' 'III ~5 21 ~
· ."C68 Co 68 <;'5 11 C/O
_, '.tC.,,,
Q(> ~;;
:.e , ..
100
,,5 (3 AO C ~ 0;> eo _, '.I(la DE B8 'I{> ( ·13 '15 :;oiI.
· ,01:8u 4C :3 I' ll ,;;(. ~ C:lo /.. t • . ,,!COB 38 ~ C I ~ IE "8 £:i C2 _:uC .. " A8 ~ IE 1>o) '~ 0 O' Q(.t
f"
• ,OC<>tl 1 1' b"'l f A OJ 20 E'S fA 00
• , OC"'") 70
.~
1""1
0') ~O
1i 5 H. Ool
• ,f 0;A8 ;>' ; :'F rIB 00 :;:0<, "Y Fa ()o)
• , ' lO..91) "U l!i Il% U. 110 .. 4 .,;) 28 JO ~ " Sf' AI C I 91 C3
•• ....e llll fEi 2{)
. ,'>CC'
· ,01:1:8 • ,' oCO<.I · ,,,C~:i • "oCtO · .OC( 8
F ...... 2 ')
S~
(8 7V 111 I'll ,, ~ el 85 U e. ~ OC FII Ov ~ D AI CI III ,., 00 eo :!.4 :.'(I
(l~
00 .,. 00 C: l
t)u
IE tI5
FI':>o
10 to!> .... 20 I!II " II
A!i C' ~6
211 00
• ,,)CI"O 20 1111 FA 011 .C 10 F"B QO _,OCl'S 2'.Il)4 H, '''' 2'.1 .... FA (1)
., '''''~) ~() E:' FA .... OW ;><', :s.E I'll . . . 'Il lt} <;'n I. !J'J .. (.Dla 2" :;:oF t l . ,O D2<..o 8 1 C , 2u .'(JDZfI OC £0 fCl .,oJOloJ:;'\o 04 fA _,00.'.8 20 E5 HI · • " DO" 7<J , E FII • ,00 .11 ~ Fe 00 .,uo~" !I: f"8 ')0) · ;OO!>8 Cf" rF Co;t . "' D~ I"I DO • ,,,o .. a ~o • ,,'[<7" ~.~ ., ..'0'11 .....
00 ::.>0' 6" fA 00 r., ::0 811 HI 00 10 .... 1 110 00 11 ''<> "'IQ UC A5 ID 3l HI t;I() OV EE ..-.." ~ I'll 0..() UQ ,., ,,<;' FA 00
.7
00 A1 rtO ()oj C.. 27 OV 14 <;'0
lu .,2 EI
:zv :x> :zv
00 1"0 22 £0 W 1'1 Fy 1£ 11£ <JI) ()o) 0 1
et' FA 01_ 'l'O Cb "10 10 £11 2V CF FF C"I 'm 1'0 :ro . . fI .. 00 "10 9 ", EO
. , ,,1>0":;,\, OJ<; " C
I C ....
"'):;00
• ,U088 D~ rF :::0 ~ 7 I'D .,.., •• " 0 <;',, (OJ 110 ')0).>0 II C I N> oc ell [II 1£4 ~ ... .. FIl 00 20
a;: 00
· .00"11 ,,~ • • 'XI"'" F ~ 00 · ,0011" 00
· .',no>oe
e~
::.>0 '
3~
;>0
~
F8
· ,"0118 4 ' FII 00
7<J
: "nco ~...
I'll
AS C2 ., 0 0C8 116 ZfI A"I
II~
,onOo,
00.)
:l"()
'!'~
It:' fl F
.,0IKlll;oO 6A >C 1.00 • .ODE" II!:' CI ,_ /;2
• , ODEa A9 ">1 ~ o 02 · ,~ DF" ....... IlV lC 2Q •• (:tOFU!I' fD 00 :!'CO
OCI H I lC DO
54 I'D "0 PI> 2b DO oYI r,(I DO _C O. fA OQ ~ 21 0>:.' ,,... Q(I 70 0 2 FF Il_ A'!' 160 85 10 ~O GIl I'C OQ CI> 10 00 F;! <"F ,fC 47 fll CZ FII 00 20 4 1 ,A 00:10
• ,{A. .....
· ,,"\AI
:>4 '11 Vo' A2 .,..
oc.
II I CI
7\' O. Fe 00 . 8 2'1 IF "0 · ' ..... 1·1 (OoJ .... !ol n ro '"" a l 00 • 1\ot:U, hI III 011 Il ... I ' fll (II( • "Jf.:;o.~~""I..["1 CLIO Ie • .1.4.:-' :l\I e::: re (0) ... DO 1::0 .... ."oC],o.:::A 'to 01. ... lA "" 0...;!OJ • .01.- ~ "0 00.' lu ,,~ oX> 1' 0 .Iu€4o) til 7U a!>'0 Il1O ClIo 1M) CI5 . ..;0I:48.e> 2U co IfC • .., .... E. 00 • IOI;~" I O' ... ~C::fC.OO . . IOIE~ ... It: :1(, . . . r. 00 """ IC • .v€....... ..0 A~ " w ... C7. .... II) · I ...... 01 _ .~ C I ... 0 1 C. _
.0
11 ::. ("
.• orca ::-.
10 11'1 FE ..... 10 ..,... &A • • 011-'1 •••• 4.::.uFlIO..,..." •
_. {JI[ote ""
I~ ... .1o;5!:0" ,. _ DO n 'C 00 to2 C. " C8 {>. '90 ,., OU . , ~ . 2" •• 00 :::. 211 ::: • 20 O~ F'
.• \11(..:.::.
.o()(,.. '0
• .. elO :<J
· .ur ..
.0
· , Uilc.) V I
· .CoEC. 'to r I .2 Ol CO .I'~OoJ MI,.. . . • ,1IIl1II •• n " •• 0)1[11:000 A(I..., • ,<01:(1 " 0... ' I . "41"0 CA 00 [C .1011:11 oIoC o:::,r
· " .,.",) •• , ..... .I~OI •• 00;' • • L' I,) . . ~ l'U . " ' 11 00 XI ,~ .1 ..... :::" 1)0 r.. CI
r.
. ,()Oo~1
fo)
n zo
. • "lO . C ,1
r.
.• OFJ.I'" 01.3 • ".,...:. 2V . 1 • ...... 80 Cl • • OFSU n ; .to . • 01'51"'" • • tA' .... 'AVO
15 F' lI:!i 0
· .or .. tt
00 1 -31
r.
• .Of1') 1,)] . . •• ""'. . . . I'
11 If' (o,) r.I
0. 2't
r..
.11'.00.0.) .,,_ •• 10 h l • ,10 1. .,102\1 •• 10::&
10 ,,,
,. 0.
' 0
AZ oc. 00 ~ . . 'C 00 .. K l1 ", 00 2\l . . 'IE _ ( 0 Ol DO IS IllS ~ :'-1 ~ • " CI n . 00 DO _ ~ ~ ~ 7~
l.
Ie,.
c.r
,,2 2>. C. :::u '0 10 ,.,. 20 . . c:! lIS ~Z ( . f t .. 3 A2 .,. Ii. :t. If> 10 A5 """ 2 10 . . 00 10 11 ..... DO ' l I ..... U ' MI .,.,. 00 00 tt C1 _ DO Ie .30 "
,.
., 11101 , . ," ". 2 . ' 7 1 : : . til . • 11" C ' CA 7. 6 • •• • • IU CI
AS 2. 0 ,0 'II 00 .... . , C'f IJO 00 JA
.. I I " 5 4 • • • • U 50 X ' 1 4Z " 11#100" 00]5 II. 00 CC"I 00 •• 1 1... ,,"100540'.00 . . ,... ,, "10 ItO ,.. r. 00 OO:U .,11 11 11.00 ' 7 ' 1 UO CO ... 00 ... ICO 3B'C 00 51'0 00 111,1;1 ..,ICI 00 AC 11'0 00 • • •• 1100 f7 00 II) F1 00 00 20 10) .• 1101 2(1 50 ' :! 20 2O~:S 52 2'0 _ .11l0 . . 4] 70) SI "" 2'0 " . 307 .• lil£l 20 30] 50 SIlO 01 U 20
00 'to OA • • DO
"""':l'OD2r'ao.,
"l
1M. :::0 ,,::: 00 00;. . . 211 a::: "" 2<> 51 ~I;I " C 00 :l() CA rc • • C::: :to IE' Ff 71"100.0 , . 00 20 ... , . 00 lO :xL:It:~ . 00 00:. I1Il ... ~ :::0 ". 85 C2 4C ' • 211' 00] 20 01 f . 00 :2\"1 •• 11,.,2.2 \).3 10 , . 011 00 ~ .2 •• SF _ 05 •• ., 100::0 . . 00
•• 1 0)10) 00 AS
."oea
=.
..1_
-=
DO
-=
4.
. C ....
DC'" '.00"
"O
FE 00 DO.,
'1'8'0011: 8. IC .• 1~ '0 02 Q8 [ 8 " .1 10.' :ooa 600 C. 10 '1'0 ., 10100 oo;a 000) eo III 01 .0 ..... 3C> 2Z . , l oeG oe 000 0 . .0 0)2 .' I~ t.- . 0 0'9 -.0 02 .I 'OCO oe.o ..... 00 00 .• Ioao 00 U 0000
· ,'000) ].]
.. 11" '"
., 11'90 .3II l . 57 40 . ' SIII . C 5.3
., 10lI08 :zo C;! 1"8 00 :zo !>
£~ If A
IIC!I.'
""::ZO.c..,
1)0 , . . 2() . .
."0'.'" " PO 0 ] " C2 00 00 .,'050 . , CI 88 DO F8 .5 ~ • • , ., I~ CI 20 CA 'C (1(.0 8~ CI . ,
. "~C?
•• I IOCI!o" 00 00 ".::01 ::: . 00 QO •• 1101 I C " IC ::0,. !toO _ 1• • , •• 111 1) -a .. lD::Ol -a _ 10 III •• 1"'00002" ' • • •' . 1 • • • 11 :10 2l~ ' SJ I t 7l::l . 53 •• • • 1121 " 100 00 ''':11 H , "I1O~':. Ill! AI ... VO . " ' l I 00 1C DO 00 15 "lit •• 11 ' 0 "5 •• 7't~ ... 1]].111 ,' I I •• lI:!i.·7]1I01II.2~"" •• 1 150 ::I• •: . . . . :14 . , tit " • • • 11:11 . . U , . , . 00 00 . . 01 . • 1160 ... u .. 2'1 M: I I , .. cc 7;!'::: A. . . 00 VO ...... .11 1701C'1l2' 1 U U 12 ... . . " ",,, U : " n 00 1<0 22 00 00
uu 2 O " ' l DO 01 FO 011
.,IOM "" AS IE 10 '""" . C Ell FA .,10)40 00 C8 DO'. ~ l IE 10 ' .
l'O '" _
v:::
fI'
00 .0:>11" OCI DU 15 CA :n:. .. n 00 F[ 00 DO . . DO All N •• FO N ~ ~
.,10),) 2'0
•• y: ... N 2'!: .., 1)0 7'0 O. r. 00 20 ;:;)
au . . ".
•• ..,CO 2.
.• oc.,} ....
•• ...".., lJU
..orDO " • . OJIII IU • ,""[ 0 '0 .'01"[ ' fioO ...... , .. N · .OI"F. IE.
... tID """
· .\11("', . . . . .,,,
I.A 0... [0.:'C" ""0 HI I ( 20 00) ' [ IJO QU . . CI ",If .lQ.-o.o 0 ;0 lEI 00 01
.,or",'o
_.o.ot:J .. ,.. """ 'to 0. 4_ 110 n COt
_.(11(" : : : ,..
., . " ... , . • .QfI!8 " .• ",,'PO' 5 .,...,. . . 'Ie ....... 100 CI · .DI"' ~ ' 0
..
• . 1 _ :n 00 01 000 ..... ., 1011:0 J.] 00 .... 000 O't ." ot: • .., 0000 2 1 II .• 101"000 00 ~ . o. ,
""" 10110 10 Ao IC Qo.] C'f U ' 5 (0] DO . ~ ]3 DO ,~ l3 DO . 5 .3 00 12 U I I II 22 , • 10 "Xl U '0 -::2 , • Il 11 12;)0 00 410
.2
on ..
,.IOI" '~'POX2't X7l2'l::O .
_--_._..._--__'''-''..__' it......___....._.._.._------_
In. t .. ..ctl .... . .,. _ ..
In.
!k.o _
b4
_
...
_.--------------
'nt._II'O ti'.......... _
' ' ' I . _ ..... ttl • • t .... , and.,,,,. .... .. _ to ',n.. ,...10..-,,..,......
. . _t _
t. ....
p .. ...,... _
1\1"'"
.n .
of
.... ,
• •• ic
'n
10
And ... _ _ t .... _ . , _
con t _, • • • • , ..... I .. _ a' t."I • ..-tl on .
I .... 20 blOCk.
b ... _ , ....... Uwt _
.. . oId .. . . . .
..,__... . .
a. • • o:
•,ruo: ... out.
n_ ...... II I
,,, __ ,
....
_
I~ .
t .. " .
...
to t _ _ toon .. _ . and _ ..
of
d . t • •,
_..
t".
J ... '
n_ _ 0:"_,... ... .t. I_'.t.
b.elo to
_ _. 1 •
I t, ...... . , '
'n
.
... .... c .... I_" . t
-..-.. ...... toy .... " • n.~
, , - , . .I
Sup _ _
••• • n . ¥ou e _ .... . c SAIIf. •
" ........ 1
to
10
u..t t_
,,,_
' a l l _ I ... I.... I ....... II _ to u . . . . ... e aIIOr e v ' AU",_ • • '1 • • .., . ..... PflI"". " V"ft _ f , .... "I[~.
__ .....
to f i t It . , 1
,,,I.
151
"'-, r "OIU_OlOI 8. FQRI_Z04B. 12B.N10204 7 .120.,., A-A . f'£EIC;I [) .NE111Pf\'INTl'iJ'~IN "N'1 '"_"'I'~.TJ
n, • • wrould d •• 100:>1, 13076,
'.Wolf.
.,t."
the ferller .. ,,, ... m ...... _ . IOQ.tt>_ ",t.h th. "Iere" nu ........ ,
,""..-_n ,
IlB 4L, ':1720, 1'467,
147"'2, I:I~S::;;, )4to41, 1471 •• 141B9, t~ltl:> . I &;'5Q , 963:>, 11'241
y"",~
<>I'
It.Oql,
1'77 1, ISO:>I ,
14~4::S ,
.Itl'><><,.... h th.y · II ... In colu ..... lor .. n" t .... ,"" .. - " . 0.... t.o t.n. "'..... ..- ••• 0' II. ... " U •• h .. . t "wr.!> .... "'Qht di'f..- It Qot 1:!2v5 00<::.'1. bwl • ..., .. ,nQ the chltC"k "<;1 .. 1 n .hCluJ d .0..-1 It cuI. If _ . 01 YOU" ......,.,... di ............... ' I 1 ... _ to 90 b.c~ ta the b.""""'nQ .. ith Tin .. P •• lc.,.. " ... &'n . Sa, ... t__ th. f .... t ... t. 01 f'OI(!: • • ISup __ .. "", ... 11 .. t i l l b .. th ..... l • ...,t ... or ... - I.,.d I, .. " ~.k"", ."d ch.ck •• ch InCDf'"..-""t biD<'k. n •• I •• t. blerelc "'II n.",", to b. ch.c._ by h.nd.
".in
Wtr .... " .... . ". den .. tn.t., ... t...- POKE .4,oe,CLR .. <;I ....... r..-sr.VE Sul'............nII ,."" th .. Ch.ck,nQ ""-09" •• ' Wtr_ ",,,,, · b. IIn.lI .. Qot.I .. ;",hl, th.64 •• y ....... fDf'" t ... 0 ••••• -.1,"", '
Th . . ... 11 " ..... " ... In th. by tn • • vnt.~.
C ~O,
1Df'""
'011_
I) S."",I. I\e ....... ter .A ;:>000 1..01'1.1 ;••• _ 1", . t ~ h.K.
-
.. I • • '
..
2)
D ••••• _bl ...
h.K tr"'" 2000 ..........-11'5.
01 ....... .,1 .
3J P"lnt.nll D•••• _I.....P 2000.2o.l0 .n\lao;!" .,...-Int .... b ..i ......".nll ... tl> 4)
OPEH~."C"'O~.
1'111 ......,...y
.F 100(1 1) 00 r F 1 ,1\ _..."." 1.-.- 1000.<1 11W
".
h. ~
... H,
tn.
b~l.
5) Go run .6 1000
QO to h.> .. I Hunt • H CQr.lO I ODk
... _
IOVO .nll .K.CU•• prDQ"U, Ih .....
-""""V' MAO [}()O()
CUQrJ
to
1)0(001 I","
9' ......... ~ III . .. I . v . " 0 9':10 00';/0 1I ... ol .v _ ...... " 1 .. _
., III
h.~
tn. I\SCII .. t.- ... " Rl;o:uJ .
0000 to 082".
ROOQ • • t ... OI"",I... V
10) S ......
. S "OIF'U_O",OO.0800 . 00:z
.r
t.~ .. t.
"t "••
12'
1I.. ~ic.
OQ
1'1'«0.
T.- ..... I..- ......"." 1000 1100:5()()()
tnon .. ' .......... Df'"" .n th. . I ...-t . t ....... V . \
.,
"",10
Oo..-tl"'" 0'
E~ . ~
152
to
a. .. c
".nq_
n •• IQr)o) '000 .......... 11 ...
f _o
Ilfl(l
....
Index
ABS command. 76 Addition. 70-1 Alphabetic check. 59 AND command. 57 Array pointer subroutine. 60 Array setup. 60-1 Array size computation. 62 ASC command. 69 ASCII work. 78-80 A TN command. 86 BASIC initialisation. 87-8 Break entry. 41 Check memory space. 41 CHR$ command. 68 CLOSE command. 84. 85 Closing files. 109 ClR command. 44 CMD command. 50 Comparison. 57-8 CO NT command. 47 Control vectors. 35 COS command. 85 Cursor home. 89 Cursor advance. 91 Cursor retreat. 92 DATA command. 48 DEF command. 63 DIM statement. 58 Division. 74-5 END command. 47 Error messages. 37-9 Error message vectors. 39 Error routines. 41 EXP command. 82 Exponentiation. 81 Expression evaluation., 54-5 Extramon listing and inst,. 149-52 Fixed point number. 48-9 153
FN reference setup, 57 FN syntax checking, 63 FN command, 63-4 FOR command, 45-6 Format character printing, 51 FRE command, 62-3 Function vectors, 35 Garbage coliection, 65-6 GET command, 51 GOSUB command, 47 GOTO command, 47 Graphics/text control, 99 I/O work, 89, 90 I/O initialise, 124 IF command, 48 INPUT command, 52 INPUT /I command, 51 -2 Input - bad input routine, 51 Input - prompting, 52 Input error messages, 53 INT command, 77 Interrupt work, 96-7 IRO entry point, 121-2 IRO restore, 122-3 IRO vectors, 124 Jump table, 127 Kernal- moving it, 123 Kernal- re-setting it, 123 Keyboard checking, 90 Keyboard reading, 97-8 Keyword action vectors, 35 Keywords, 36-7 LEFT$command,68 LEN command, 69 LET command, 49-50 Line handling, 41 -2 Line re-chaining, 42-3 Line - receive input, 43 Line - finding BASIC line, 43-4 Line number printing, 78 Line increment/decrement, 94 LIST command, 44-5 LOAD command, 84 Loading programs, 112-13 LOG command, 72-3 154
Machine Code instruction set, 129-48 Memory, top and bottom, 125 MID$ command, 68 Miscellaneous messages, 39 Move memory, 40 Multiplication, 73 Negation, 81 NEW command, 44 NEXT command, 53-4 NMI entry, 125-6 NMI RS-232 in, 126 NMI RS-232 out. 126-7 ON command, 48 OPEN command, 84, 85 Opening files, 110 Operator vectors, 35 OR command, 57 PEEK command, 70 Perform 'Ready', 41 PI constant, 55-6 POKE command, 70 POKEIWAIT parameters, 69-70 POS command, 63 Power-up work, 88 PRINT command, 50-1 PRINT# command,50 Quotes test, 91 Range checking, 56 READ command, 52-3 Ready for BASIC, 41 REM command, 48 Restart-warm, 86-7 RESTORE command, 46 RETURN command, 48 Return key handling, 94 RIGHT$ command, 68 RND command, 82-3 ROM Disassembly, 7-14 ROM Memory map, 15-31 ROM Architecture, 32-4 RS-232 sending, 103-4 RS-232 receiving, 104 RS-232 work, 105, 106, 107, 108, 111 RS-232 timing table, 126 RUN command, 47 155
SAVE command. 83-4 Saving programs. 113-14 Screen clearing. 89 Screen printing. 91 Screen output. 92-4 Screen work. general. 95 Serial bus work. 100. 101. 102, 103 SGN command. 76 Shift/ run equivalent. 100 SIN command. 85 SQR command. 81 Stack - scanning for FOR/ GOSUB, 40 Stack - checking depth, 40 Stack - clean descriptor. 68 Statement execute, 46 Statement - scan for next. 48 STOP command. 46-7 Stop key checking, 115 STR$ command, 64 String printing. 51 String vector calculation. 64 String setup. 64-5 String collection, 66-7 String concatenation. 67 String discarding, 67-8 Subtraction, 70 Syntax error, 56 SYS command. 83 TAN command, 85 Tape header writer, 115-16 Tape messages. 116. 117 Tape work. general, 117.118.119.121 Tape character storage. 120-1 Tape motor. 123 Text pointer backup. 44 Token crunching, 43 Type match check, 54 VAL command. 69 Variable search. 56-7 Variable location. 58-9 Variable creation. 59-60 Vectors, 123-4 WAIT command, 70 Warm start, 126 156
DUCKWORTH BOMECOMPUTING a new series All boolcs written by Peter Gemud, former editor of Commodore Computing International, aUlhor of two top-sellinq adventure games for the Commodore 64, or by Kevin Bergin. Both are reqular contributors to Personal Computer News. Which Micro? and SoftwfUe Review.
USING THE COMMODORE 64 Peter Gerrard A complete look at the latest home computer [rom Commodore Business machines. Staningwith a refresher course in Basic Proqramming, it moves on through machine code, before considering in great detail sprites, graphics and soWld.. A section on peripherals, and then the heart of the book: an in-depth look at the chips that make it work, i.r\c1udino the 6581 Sound Interface Device and the 6566 Video Controller Chip, as well as the heart of
the computer, the 6510. The comprehensive appendices cover the full Basic and. Machine Code Instruction sets, as well as seven.] useful reference tables, and a complete machine code assembler/disassembler listlno. Pel'lOlLal Computer News Aid: "In this case, we are~ with a gem of a book. It deserves a place on the bookshelves of every 64 user whether beginner or upen," AvaiJabJenow £9.95
THE BEGINNER'S GUIDE TO COMPUTERS AND COMPUTING Peter Gerrard Written for the person who knows absohIlety nothing about compul:ers, this book introduces you gently to this exc:irinq and fasHnOvlnq world. It quide5
you through the history of computen; into the 1980s and introduces you 10 many of the personaliJies ....ho dictate how computers will develop in the future . It comes complete with a qlossary of computlnq terms, includ.inq all the often used buzz words', and even an 'ahemative' computer glossary. AvaDable now £6.95 Olhertitles in the series irlc1udeSprites &- Sound on the 64, 12 Simple Electronic Projects lor the VIC, Will You StilJ Love Me When I 'm 64, Advanced Basic &- Machine Code Programming on the VIC, Advanced Basic &- Machine Code Programming on the 64. as well as Pocket Handboolts for the VIC, 64, Dragon, Spectrum and BBC Model B. Write in for a descriptive leaflet (with details 01 cassettes).
DUCKWORTH The Old Piano Factory. 43 Gloucester Crescent. London NWI1DY Tela 1-485 3484
TAKE THE HARD WORK OUT OF COMPUTER GRAPHICS USE A
VIX~L
VAl) PUTS YOU IN
THE PICTURE
EACH PAD CONTAINS : 2 3
A COMPLETE SUMMARY OF GRAPHICS INSTRUCTIONS EVERY PRINT & PLOT LOCATION ON ALL PAGES NUMEROUS 8 .8 USER DEFINED GRAPHICS GRIDS PLUS ON THE COMMODORE 64 SPRITE GRIDS ON EVERY PAGE
4
50 SHEETS OF HIGH QUALITY PAPER
AS RECOMMENDED BY PETER GERRARD
Available by Mail Order at £4.95 + £1 .00 p&p Duckworth, The Old Piano Factory, 43 Gloucester Cresent, London N.W.l .
Available (orc The BBC MICRO (incorperatlng The ACORN ELECTRON), TheZ X SPECTRUM & THE COMMODRE 64.