_  __   _  _         _ _     _      _           _           
  __| |/ /_ | || |     __| (_)___| | __ (_)_ __   __| | _____  __
 / _` | '_ \| || |_   / _` | / __| |/ / | | '_ \ / _` |/ _ \ \/ /
| (_| | (_) |__   _| | (_| | \__ \   <  | | | | | (_| |  __/>  < 
 \__,_|\___/   |_|    \__,_|_|___/_|\_\ |_|_| |_|\__,_|\___/_/\_\
                                                                 
            

MAC.TUTOR 3

FILE INFORMATION

FILENAME(S): MAC.TUTOR 3

FILE TYPE(S): PRG

FILE SIZE: 27.8K

FIRST SEEN: 2025-11-30 15:51:26

APPEARS ON: 1 disk(s)

FILE HASH

2af5b48683a1b0bcc4ac7a24e5226660a8679439ffb2f7094140bee76b9b2ca0

FOUND ON DISKS (1 DISKS)

DISK TITLE FILENAME FILE TYPE COLLECTION TRACK SECTOR ACTIONS
LO MAC.TUTOR 3 PRG Belgium 24 7 DOWNLOAD FILE

FILE CONTENT & ANALYSIS

> DETECTED: COMMODORE BASIC PROGRAM (LOAD ADDRESS $0801)

00000000: 01 08 22 08 13 18 9E 20  33 30 37 32 3A 20 41 4E  |..".... 3072: AN|
00000010: 59 91 45 20 44 49 44 20  49 54 20 41 47 41 49 4E  |Y.E DID IT AGAIN|
00000020: 20 21 00 00 00 20 20 20  20 20 20 20 20 20 20 20  | !...           |
00000030: 20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00000040: 20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00000050: 20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00000060: 20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00000070: 20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00000080: 20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00000090: 20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
000000A0: 20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
000000B0: 20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
000000C0: 20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
000000D0: 20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
000000E0: 20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
000000F0: 20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00000100: 20 FB A4 B7 F0 0B 88 B1  BB D9 41 03 D0 CE 98 D0  | .........A.....|
00000110: F5 84 90 20 D2 F5 AD 3E  03 38 ED 3C 03 08 18 65  |... ...>.8.<...e|
00000120: C3 85 AE AD 3F 03 65 C4  28 ED 3D 03 85 AF 20 6C  |....?.e.(.=... l|
00000130: CF A5 BD 45 D7 05 90 F0  04 A9 FF 85 90 4C A9 F5  |...E.........L..|
00000140: 20 2C A8 A0 00 84 C0 AD  11 D0 29 EF 8D 11 D0 CA  | ,........).....|
00000150: D0 FD 88 D0 FA 78 60 A0  00 A9 02 20 29 CF A2 07  |.....x`.... )...|
00000160: 88 C0 09 D0 F4 A2 05 C6  AB D0 EE 98 20 29 CF A2  |............ )..|
00000170: 07 88 D0 F7 CA CA 60 85  BD 45 D7 85 D7 A9 08 85  |......`..E......|
00000180: A3 06 BD A5 01 29 F7 20  4A CF A2 11 09 08 20 4A  |.....). J..... J|
00000190: CF A2 0E C6 A3 D0 EA 60  CA D0 FD 90 05 A2 0B CA  |.......`........|
000001A0: D0 FD 85 01 60 20 9B CF  C9 00 F0 F9 85 AB 20 C9  |....` ........ .|
000001B0: CF 91 B2 C8 C0 C0 D0 F6  F0 23 20 9B CF 20 C9 CF  |.........# .. ..|
000001C0: 91 C3 45 D7 85 D7 E6 C3  D0 02 E6 C4 A5 C3 C5 AE  |..E.............|
000001D0: A5 C4 E5 AF 90 E7 20 C9  CF 20 F5 CE C8 84 C0 58  |...... .. .....X|
000001E0: 18 A9 00 8D A0 02 4C 93  FC 20 17 F8 20 F2 CE 84  |......L.. .. ...|
000001F0: D7 A9 00 8D 06 DD A2 01  20 D9 CF 26 BD A5 BD C9  |........ ..&....|
00000200: 02 D0 F5 A0 09 20 C9 CF  C9 02 F0 F9 C4 BD D0 E8  |..... ..........|
00000210: 20 C9 CF 88 D0 F6 60 A9  08 85 A3 20 D9 CF 26 BD  | .....`.... ..&.|
00000220: C6 A3 D0 F7 A5 BD 60 A9  10 2C 0D DC F0 FB AD 0D  |......`..,......|
00000230: DD 8E 07 DD 48 A9 19 8D  0F DD 68 4A 4A 60 0D DC  |....H.....hJJ`..|
00000240: F0 FB AD 0D DD 8E 07 DD  48 A9 19 8D 0F DD 68 4A  |........H.....hJ|
00000250: 4A 60 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |J`..............|
00000260: 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000270: 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000280: 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000290: 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000002A0: 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000002B0: 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000002C0: 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000002D0: 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000002E0: 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000002F0: 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000300: 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000310: 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000320: 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000330: 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000340: 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000350: 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000360: 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000370: 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000380: 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000390: 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000003A0: 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000003B0: 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000003C0: 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000003D0: 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000003E0: 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000003F0: 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000400: 00 D8 78 A2 FF 9A A5 00  29 FE 85 00 AD 02 DD 09  |..x.....).......|
00000410: 03 8D 02 DD AD 00 DD 29  FC 09 01 8D 00 DD AD 11  |.......)........|
00000420: D0 09 20 8D 11 D0 A9 00  8D 20 D0 AD 18 D0 29 F0  |.. ...... ....).|
00000430: 09 0C 29 0F 09 30 8D 18  D0 20 66 0C A9 00 8D 65  |..)..0... f....e|
00000440: C0 8D 64 C0 A9 0C 20 A6  31 20 7A 0E 4C 1B 10 A9  |..d... .1 z.L...|
00000450: 14 8D 01 C0 A9 01 8D 00  C0 A9 40 8D 0E D4 20 06  |..........@... .|
00000460: 35 20 66 0C 4C 87 0C A2  14 A9 14 9D 34 C0 BD 80  |5 f.L.......4...|
00000470: 0E 9D 00 80 CA 10 F2 A9  EC 85 16 A9 1C 85 17 A9  |................|
00000480: 02 8D 0A C0 8D 12 C0 60  A9 1F 20 A6 31 A9 00 20  |.......`.. .1.. |
00000490: A6 31 20 A6 31 4C 9D 0C  A9 00 8D F0 02 60 A9 1F  |.1 .1L.......`..|
000004A0: 85 1A A9 1E 85 1B A0 00  B1 1A C9 FF F0 0A 20 A6  |.............. .|
000004B0: 31 C8 D0 F4 E6 1B D0 F0  A9 01 8D 03 C0 20 97 0C  |1............ ..|
000004C0: A9 1F 20 A6 31 AD 01 C0  20 A6 31 AD 00 C0 20 A6  |.. .1... .1... .|
000004D0: 31 20 25 34 8D 02 C0 AD  69 C0 F0 03 4C 28 12 AD  |1 %4....i...L(..|
000004E0: 03 C0 F0 24 AD 02 C0 C9  20 D0 27 A9 1F 20 A6 31  |...$.... .'.. .1|
000004F0: A9 1A 20 A6 31 AD 00 C0  20 A6 31 A9 1B 8D 01 C0  |.. .1... .1.....|
00000500: A9 00 8D 03 C0 4C BF 0C  AD 02 C0 C9 20 D0 03 4C  |.....L...... ..L|
00000510: 31 0D AD 01 C0 C9 1A B0  05 A9 01 8D 03 C0 AD 02  |1...............|
00000520: C0 C9 41 B0 03 4C 44 0D  C9 5B 90 03 4C 44 0D 4C  |..A..LD..[..LD.L|
00000530: 31 0D AD 01 C0 C9 27 F0  09 AD 02 C0 20 10 34 EE  |1.....'..... .4.|
00000540: 01 C0 4C BF 0C AD 02 C0  C9 30 B0 03 4C 55 0D C9  |..L......0..LU..|
00000550: 3A B0 03 4C 31 0D AD 02  C0 C9 14 D0 12 AD 01 C0  |:..L1...........|
00000560: C9 14 F0 0B CE 01 C0 A9  14 20 A6 31 4C BF 0C AD  |......... .1L...|
00000570: 02 C0 C9 0D D0 14 AD 00  C0 C9 10 F0 0D A9 01 8D  |................|
00000580: 03 C0 A9 14 8D 01 C0 EE  00 C0 A2 04 BD E7 1C CD  |................|
00000590: 02 C0 F0 06 CA 10 F5 4C  9C 0D 4C 31 0D AD 02 C0  |.......L..L1....|
000005A0: C9 9D D0 10 AD 01 C0 C9  14 D0 03 4C BF 0C CE 01  |...........L....|
000005B0: C0 4C BF 0C C9 1D D0 15  AD 01 C0 C9 27 D0 03 4C  |.L..........'..L|
000005C0: BF 0C EE 01 C0 A9 00 8D  03 C0 4C BF 0C C9 91 D0  |..........L.....|
000005D0: 10 AD 00 C0 C9 01 D0 03  4C BF 0C CE 00 C0 4C BF  |........L.....L.|
000005E0: 0C C9 11 D0 10 AD 00 C0  C9 10 D0 03 4C BF 0C EE  |............L...|
000005F0: 00 C0 4C BF 0C AD 67 C0  F0 15 20 7A 0E A9 0C 20  |..L...g... z... |
00000600: 10 34 A9 01 8D 00 C0 A9  14 8D 01 C0 4C 4E 0C AD  |.4..........LN..|
00000610: 68 C0 F0 03 4C 19 0E 4C  BF 0C A9 00 AA 9D 00 7B  |h...L..L.......{|
00000620: 9D 00 09 9D 00 0A 9D 00  0B 9D 00 08 9D 00 C1 E8  |................|
00000630: F0 04 10 E9 D0 EA A9 01  8D 09 C0 A9 00 8D 04 C0  |................|
00000640: 8D 05 C0 8D 07 C0 A9 02  8D 06 C0 A9 FF 8D 0F C0  |................|
00000650: 20 7A 0E 20 06 35 4C D2  13 A5 17 8D 02 C0 A0 00  | z. .5L.........|
00000660: B1 16 C9 FF F0 0A 20 A6  31 C8 D0 F4 E6 17 D0 F0  |...... .1.......|
00000670: AD 02 C0 85 17 20 A7 18  4C 89 0E A9 01 8D F0 02  |..... ..L.......|
00000680: 60 00 0C 00 0C C3 C2 CD  38 30 20 47 1A D8 20 E2  |`.......80 G.. .|
00000690: 22 D8 78 20 25 34 8D 02  C0 C9 5F D0 03 4C 4E 0C  |".x %4...._..LN.|
000006A0: AD 69 C0 D0 28 AD 02 C0  C9 88 F0 18 C9 0D D0 E1  |.i..(...........|
000006B0: 20 7A 23 D8 20 A7 18 EE  09 C0 AD 09 C0 C9 11 D0  | z#. ...........|
000006C0: C9 4C 63 35 20 BD 17 20  A7 18 4C 90 0E AD 0A C0  |.Lc5 .. ..L.....|
000006D0: C9 01 D0 0E A9 02 8D 0A  C0 20 2D 1A 20 47 1A 4C  |......... -. G.L|
000006E0: 58 0E A2 00 A9 1F 20 A6  31 A9 00 20 A6 31 20 A6  |X..... .1.. .1 .|
000006F0: 31 A0 11 A9 20 20 A6 31  88 D0 F8 A9 0D 20 10 34  |1...  .1..... .4|
00000700: E8 E0 14 D0 EC A9 1C 85  70 A9 1F 85 71 A9 1F 20  |........p...q.. |
00000710: A6 31 A9 00 20 A6 31 A9  15 20 A6 31 A0 00 B1 70  |.1.. .1.. .1...p|
00000720: C9 FF F0 0A 20 A6 31 C8  D0 F4 E6 71 D0 F0 A9 01  |.... .1....q....|
00000730: 8D 0A C0 20 A7 18 20 26  13 20 47 1A 4C 8C 0E A9  |... .. &. G.L...|
00000740: 00 8D 2A C0 8D 32 C0 A2  03 20 4E 0F 4C 7A 0F AD  |..*..2... N.Lz..|
00000750: 2E C0 C9 30 90 0D C9 47  B0 09 C9 3A 90 04 C9 41  |...0...G...:...A|
00000760: 90 01 60 A0 02 B9 2B C0  C8 99 2B C0 88 88 C0 FF  |..`...+...+.....|
00000770: D0 F3 A9 30 8D 2B C0 CA  D0 D5 60 A9 3A CD 2E C0  |...0.+....`.:...|
00000780: 90 10 AD 2E C0 38 E9 30  18 6D 2A C0 8D 2A C0 4C  |.....8.0.m*..*.L|
00000790: 9E 0F AD 2E C0 38 E9 37  18 6D 2A C0 8D 2A C0 A9  |.....8.7.m*..*..|
000007A0: 3A CD 2D C0 90 14 AD 2D  C0 38 E9 30 0A 0A 0A 0A  |:.-....-.8.0....|
000007B0: 18 6D 2A C0 8D 2A C0 4C  CA 0F AD 2D C0 38 E9 37  |.m*..*.L...-.8.7|
000007C0: 0A 0A 0A 0A 18 6D 2A C0  8D 2A C0 A9 3A CD 2C C0  |.....m*..*..:.,.|
000007D0: 90 10 AD 2C C0 38 E9 30  18 6D 32 C0 8D 32 C0 4C  |...,.8.0.m2..2.L|
000007E0: EE 0F AD 2C C0 38 E9 37  18 6D 32 C0 8D 32 C0 A9  |...,.8.7.m2..2..|
000007F0: 3A CD 2B C0 90 14 AD 2B  C0 38 E9 30 0A 0A 0A 0A  |:.+....+.8.0....|
00000800: 18 6D 32 C0 8D 32 C0 4C  1A 10 AD 2B C0 38 E9 37  |.m2..2.L...+.8.7|
00000810: 0A 0A 0A 0A 18 6D 32 C0  8D 32 C0 60 A9 07 8D 62  |.....m2..2.`...b|
00000820: C0 20 7A 0E A9 77 85 1C  A9 3C 85 1D A9 74 85 12  |. z..w...<...t..|
00000830: A9 10 85 13 20 57 10 A0  00 B1 1C 8D 60 C0 C8 B1  |.... W......`...|
00000840: 1C 18 69 01 85 12 C8 B1  1C 69 00 85 13 20 57 10  |..i......i... W.|
00000850: CE 60 C0 D0 E9 4C 5F 11  8C 02 C0 A0 00 B1 12 C9  |.`...L_.........|
00000860: FF F0 0E C9 FE F0 0D 20  A6 31 C8 D0 F0 E6 13 D0  |....... .1......|
00000870: EC AC 02 C0 60 0C 1F 01  01 8D 84 9D 87 54 48 45  |....`........THE|
00000880: 20 43 4F 4D 50 4C 45 54  45 20 4D 41 43 48 49 4E  | COMPLETE MACHIN|
00000890: 45 20 43 4F 44 45 20 54  55 54 4F 52 20 20 9C 1F  |E CODE TUTOR  ..|
000008A0: 01 02 8D 84 9D 87 2A 2A  2A 2A 2A 2A 2A 2A 2A 2A  |......**********|
000008B0: 2A 2A 2A 2A 2A 2A 2A 2A  2A 2A 2A 2A 2A 2A 2A 2A  |****************|
000008C0: 2A 2A 2A 2A 2A 20 20 9C  1F 00 16 81 9D 87 20 20  |*****  .......  |
000008D0: 20 20 20 20 20 20 20 20  20 20 42 59 20 50 41 55  |          BY PAU|
000008E0: 4C 20 42 55 4E 4E 0D 0A  81 9D 87 20 20 28 43 29  |L BUNN.....  (C)|
000008F0: 20 31 39 38 34 20 4E 45  57 20 47 45 4E 45 52 41  | 1984 NEW GENERA|
00000900: 54 49 4F 4E 20 53 4F 46  54 57 41 52 45 1F 00 04  |TION SOFTWARE...|
00000910: 43 68 6F 6F 73 65 20 73  65 6C 65 63 74 69 6F 6E  |Choose selection|
00000920: 20 62 79 20 70 72 65 73  73 69 6E 67 20 52 45 54  | by pressing RET|
00000930: 55 52 4E 2E 0D 0A 57 68  65 6E 20 63 68 6F 69 63  |URN...When choic|
00000940: 65 20 69 73 20 6D 61 64  65 20 70 72 65 73 73 20  |e is made press |
00000950: 74 68 65 20 53 50 41 43  45 20 42 41 52 2E 0A FF  |the SPACE BAR...|
00000960: A0 00 B1 1C 8D 60 C0 A9  07 8D 02 C0 A9 1F 20 A6  |.....`........ .|
00000970: 31 A9 00 20 A6 31 AD 02  C0 20 A6 31 A9 9C 20 A6  |1.. .1... .1.. .|
00000980: 31 EE 02 C0 AD 02 C0 C9  16 D0 E1 A9 1F 20 A6 31  |1............ .1|
00000990: A9 00 20 A6 31 AD 62 C0  20 A6 31 A9 82 20 A6 31  |.. .1.b. .1.. .1|
000009A0: A9 9D 20 A6 31 A9 87 20  A6 31 20 25 34 C9 0D D0  |.. .1.. .1 %4...|
000009B0: 16 EE 62 C0 18 AD 60 C0  69 07 CD 62 C0 D0 A8 A9  |..b...`.i..b....|
000009C0: 07 8D 62 C0 4C 66 11 C9  20 F0 03 4C A9 11 AD 62  |..b.Lf.. ..L...b|
000009D0: C0 38 E9 07 0A 18 69 01  A8 B1 1C 85 1A C8 B1 1C  |.8....i.........|
000009E0: 85 1B A0 00 B1 1A 8D 61  C0 B1 1A C9 FF F0 03 C8  |.......a........|
000009F0: D0 F7 C8 B1 1A 85 12 C8  B1 1A 85 13 A9 0C 20 A6  |.............. .|
00000A00: 31 AD 61 C0 C9 02 F0 37  20 57 10 8D 14 C0 8C 0B  |1.a....7 W......|
00000A10: C0 20 73 12 AD 14 C0 C9  FF F0 0E A9 0C 20 A6 31  |. s.......... .1|
00000A20: AC 0B C0 20 69 10 4C 0A  12 EE 62 C0 AD 60 C0 18  |... i.L...b..`..|
00000A30: 69 07 CD 62 C0 D0 05 A9  07 8D 62 C0 4C 20 10 A9  |i..b......b.L ..|
00000A40: 01 8D 02 C0 A0 00 A9 1F  20 A6 31 A9 14 20 A6 31  |........ .1.. .1|
00000A50: AD 02 C0 20 A6 31 B1 12  C9 0D F0 0E C9 FF F0 11  |... .1..........|
00000A60: 20 A6 31 C8 D0 F0 E6 13  D0 EC EE 02 C0 C8 4C 45  | .1...........LE|
00000A70: 12 4C 19 0E A5 12 85 1A  A5 13 85 1B A9 96 85 12  |.L..............|
00000A80: A9 12 85 13 20 57 10 20  25 34 C9 20 D0 F9 A5 1A  |.... W. %4. ....|
00000A90: 85 12 A5 1B 85 13 60 1F  05 17 83 50 52 45 53 53  |......`....PRESS|
00000AA0: 20 53 50 41 43 45 20 42  41 52 20 54 4F 20 43 4F  | SPACE BAR TO CO|
00000AB0: 4E 54 49 4E 55 45 FF A9  00 8D 2A C0 8D 32 C0 20  |NTINUE....*..2. |
00000AC0: 4E 0F AD 2B C0 C9 30 F0  17 18 A9 E8 6D 2A C0 8D  |N..+..0.....m*..|
00000AD0: 2A C0 AD 32 C0 69 03 8D  32 C0 CE 2B C0 4C C1 12  |*..2.i..2..+.L..|
00000AE0: AD 2C C0 C9 30 F0 0B A9  64 20 16 13 CE 2C C0 4C  |.,..0...d ...,.L|
00000AF0: DF 12 AD 2D C0 C9 30 F0  0B A9 0A 20 16 13 CE 2D  |...-..0.... ...-|
00000B00: C0 4C F1 12 AD 2E C0 C9  30 F0 0B A9 01 20 16 13  |.L......0.... ..|
00000B10: CE 2E C0 4C 03 13 60 18  6D 2A C0 8D 2A C0 AD 32  |...L..`.m*..*..2|
00000B20: C0 69 00 8D 32 C0 60 A9  00 85 76 A9 7B 85 77 A2  |.i..2.`...v.{.w.|
00000B30: 01 A9 00 85 78 A4 78 B9  00 C1 D0 09 C8 B9 00 C1  |....x.x.........|
00000B40: C9 FF F0 01 60 A9 1F 20  A6 31 A9 05 20 A6 31 8A  |....`.. .1.. .1.|
00000B50: 20 A6 31 A5 77 20 BB 19  AD 10 C0 20 A6 31 AD 11  | .1.w ..... .1..|
00000B60: C0 20 A6 31 A5 76 20 BB  19 AD 10 C0 20 A6 31 AD  |. .1.v ..... .1.|
00000B70: 11 C0 20 A6 31 A9 20 20  A6 31 20 A6 31 A9 00 85  |.. .1.  .1 .1...|
00000B80: 79 A4 78 B9 00 C1 C9 FF  F0 1A 4C 8D 13 0D 20 BB  |y.x.......L... .|
00000B90: 19 AD 10 C0 20 A6 31 AD  11 C0 20 A6 31 E6 78 E6  |.... .1... .1.x.|
00000BA0: 79 4C 80 13 C8 B9 00 C1  C9 FF F0 08 A4 78 B9 00  |yL...........x..|
00000BB0: C1 4C 8D 13 C8 B9 00 C1  C9 FF D0 08 A4 78 B9 00  |.L...........x..|
00000BC0: C1 4C 8D 13 18 A5 76 65  79 85 76 E8 E6 78 E6 78  |.L....vey.v..x.x|
00000BD0: 4C 34 13 A9 01 8D 50 C0  A9 00 8D 13 C0 8D 33 C0  |L4....P.......3.|
00000BE0: A9 34 85 0E A9 C0 85 0F  A9 01 8D 28 C0 8D 5A C0  |.4.........(..Z.|
00000BF0: 20 FA 34 A9 5F 85 76 A9  20 85 77 A9 0C 8D 02 C0  | .4._.v. .w.....|
00000C00: A9 1F 20 A6 31 AD 02 C0  18 69 1B 20 A6 31 AD 28  |.. .1....i. .1.(|
00000C10: C0 20 A6 31 A9 87 20 9E  34 8A AE 02 C0 9D 15 C0  |. .1.. .4.......|
00000C20: CE 02 C0 E0 00 D0 D9 BD  15 C0 C9 20 D0 18 E8 E0  |........... ....|
00000C30: 0C D0 F4 EE 50 C0 AD 50  C0 C9 03 F0 03 4C D7 13  |....P..P.....L..|
00000C40: 20 24 39 4C 58 0E 20 18  3A A2 04 BD 15 C0 C9 20  | $9LX. .:...... |
00000C50: F0 03 4C CE 14 E8 E0 0C  D0 F1 A0 00 B1 76 C9 FF  |..L..........v..|
00000C60: F0 3C D9 15 C0 D0 23 C8  C0 03 D0 F0 B1 76 AE 13  |.<....#......v..|
00000C70: C0 9D 00 7B AE 33 C0 9D  00 C1 A9 FF 9D 01 C1 9D  |...{.3..........|
00000C80: 02 C1 A9 01 8D 29 C0 4C  80 17 20 8F 14 4C 59 14  |.....).L.. ..LY.|
00000C90: A5 76 18 69 04 85 76 A5  77 69 00 85 77 60 A9 1F  |.v.i..v.wi..w`..|
00000CA0: 20 A6 31 A9 00 20 A6 31  A9 12 20 A6 31 A2 00 BD  | .1.. .1.. .1...|
00000CB0: BA 1F 20 10 34 C9 0D F0  03 E8 D0 F3 A2 00 BD 15  |.. .4...........|
00000CC0: C0 20 A6 31 E8 E0 0C D0  F5 20 25 34 4C 4E 0C A9  |. .1..... %4LN..|
00000CD0: C0 85 76 A9 20 85 77 A2  04 BD 15 C0 C9 41 F0 03  |..v. .w......A..|
00000CE0: 4C 24 15 E8 BD 15 C0 C9  20 D0 F5 E0 0C D0 F4 A0  |L$...... .......|
00000CF0: 00 B1 76 C9 FF F0 E9 D9  15 C0 D0 23 C8 C0 03 D0  |..v........#....|
00000D00: F0 B1 76 AE 13 C0 9D 00  7B AE 33 C0 9D 00 C1 A9  |..v.....{.3.....|
00000D10: FF 9D 01 C1 9D 02 C1 A9  01 8D 29 C0 4C 80 17 20  |..........).L.. |
00000D20: 8F 14 4C EE 14 A9 D1 85  76 A9 20 85 77 A2 04 BD  |..L.....v. .w...|
00000D30: 15 C0 C9 23 F0 06 4C C2  15 4C 9D 14 A0 00 B1 76  |...#..L..L.....v|
00000D40: C9 FF F0 F5 D9 15 C0 D0  3F C8 C0 03 D0 F0 B1 76  |........?......v|
00000D50: AE 13 C0 9D 00 7B AE 33  C0 9D 00 C1 A9 02 8D 29  |.....{.3.......)|
00000D60: C0 A2 05 BD 15 C0 C9 24  F0 24 A0 05 A2 00 B9 15  |.......$.$......|
00000D70: C0 9D 2B C0 E8 C8 C0 09  D0 F4 20 B6 12 AD 32 C0  |..+....... ...2.|
00000D80: F0 03 4C 9C 17 4C A8 15  20 8F 14 4C 3B 15 A0 06  |..L..L.. ..L;...|
00000D90: A2 00 B9 15 C0 9D 2B C0  E8 C8 E0 04 D0 F4 20 3E  |......+....... >|
00000DA0: 0F AD 32 C0 F0 03 4C 9C  17 AD 2A C0 AE 13 C0 9D  |..2...L...*.....|
00000DB0: 01 7B AE 33 C0 9D 01 C1  A9 FF 9D 02 C1 9D 03 C1  |.{.3............|
00000DC0: 4C 80 17 A2 03 A9 20 9D  2B C0 CA D0 FA A0 04 B9  |L..... .+.......|
00000DD0: 15 C0 C9 2C F0 13 C9 47  B0 09 C9 28 F0 08 C8 C0  |...,...G...(....|
00000DE0: 0C D0 EC 4C AC 16 4C D0  1A C8 B9 15 C0 C9 58 F0  |...L..L.......X.|
00000DF0: 50 C9 59 F0 03 4C 9D 14  A0 04 B9 15 C0 C9 24 D0  |P.Y..L........$.|
00000E00: 2C A2 00 C8 B9 15 C0 9D  2B C0 E8 C0 07 D0 F4 20  |,.......+...... |
00000E10: 3E 0F AD 32 C0 D0 03 4C  86 16 A9 E5 85 76 A9 21  |>..2...L.....v.!|
00000E20: 85 77 A9 03 8D 29 C0 20  08 17 4C 7D 17 A2 00 B9  |.w...). ..L}....|
00000E30: 15 C0 9D 2B C0 C8 E8 C0  08 D0 F4 20 B6 12 4C 11  |...+....... ..L.|
00000E40: 16 A0 04 B9 15 C0 C9 24  D0 29 A2 00 C8 B9 15 C0  |.......$.)......|
00000E50: 9D 2B C0 E8 C0 07 D0 F4  20 3E 0F AD 32 C0 F0 3A  |.+...... >..2..:|
00000E60: A9 A8 85 76 A9 21 85 77  A9 03 8D 29 C0 20 08 17  |...v.!.w...). ..|
00000E70: 4C 7D 17 A2 00 B9 15 C0  9D 2B C0 E8 C8 C0 08 D0  |L}.......+......|
00000E80: F4 20 B6 12 4C 5A 16 A9  4B 85 76 A9 22 85 77 A9  |. ..LZ..K.v.".w.|
00000E90: 02 8D 29 C0 20 08 17 4C  19 16 A9 0A 85 76 A9 22  |..). ..L.....v."|
00000EA0: 85 77 A9 02 8D 29 C0 20  08 17 4C 5F 16 A0 04 B9  |.w...). ..L_....|
00000EB0: 15 C0 A2 00 C9 24 F0 27  B9 15 C0 9D 2B C0 E8 C8  |.....$.'....+...|
00000EC0: C0 08 D0 F4 20 B6 12 AD  32 C0 F0 2A A9 53 85 76  |.... ...2..*.S.v|
00000ED0: A9 21 85 77 A9 03 8D 29  C0 20 08 17 4C 7D 17 C8  |.!.w...). ..L}..|
00000EE0: B9 15 C0 9D 2B C0 E8 C0  07 D0 F4 20 3E 0F AD 32  |....+...... >..2|
00000EF0: C0 F0 03 4C CB 16 A9 FE  85 76 A9 20 85 77 A9 02  |...L.....v. .w..|
00000F00: 8D 29 C0 20 08 17 4C CB  16 A0 00 B1 76 C9 FF F0  |.). ..L.....v...|
00000F10: 50 D9 15 C0 D0 45 C8 C0  03 D0 F0 B1 76 AE 13 C0  |P....E......v...|
00000F20: 9D 00 7B AE 33 C0 9D 00  C1 AD 29 C0 C9 02 F0 32  |..{.3.....)....2|
00000F30: AE 13 C0 AD 2A C0 9D 01  7B AE 33 C0 9D 01 C1 AE  |....*...{.3.....|
00000F40: 13 C0 AD 32 C0 9D 02 7B  AE 33 C0 9D 02 C1 A9 FF  |...2...{.3......|
00000F50: 9D 03 C1 9D 04 C1 68 68  4C 80 17 20 8F 14 4C 08  |......hhL.. ..L.|
00000F60: 17 60 AE 13 C0 AD 2A C0  9D 01 7B AE 33 C0 9D 01  |.`....*...{.3...|
00000F70: C1 A9 FF 9D 02 C1 9D 03  C1 68 68 4C 80 17 4C 73  |.........hhL..Ls|
00000F80: 1B AD 13 C0 18 6D 29 C0  8D 13 C0 EE 28 C0 18 AD  |.....m).....(...|
00000F90: 33 C0 6D 29 C0 69 02 8D  33 C0 4C EF 13 A9 1F 20  |3.m).i..3.L.... |
00000FA0: A6 31 A9 00 20 A6 31 A9  12 20 A6 31 A2 00 BD DF  |.1.. .1.. .1....|
00000FB0: 1F 20 10 34 C9 0D F0 03  E8 D0 F3 4C BB 14 AD 12  |. .4.......L....|
00000FC0: C0 C9 01 F0 06 A9 01 8D  12 C0 60 A9 02 8D 12 C0  |..........`.....|
00000FD0: 60 A9 20 20 A6 31 CA D0  FA 60 A9 1F 20 A6 31 A9  |`.  .1...`.. .1.|
00000FE0: 04 20 A6 31 A9 16 20 A6  31 AD 07 C0 20 EA 19 A9  |. .1.. .1... ...|
00000FF0: 02 8D 6B C0 20 BE 1A A9  1F 20 A6 31 A9 13 20 A6  |..k. .... .1.. .|
00001000: 31 A9 16 20 A6 31 AD 04  C0 20 EA 19 A9 06 8D 6B  |1.. .1... .....k|
00001010: C0 20 BE 1A A9 1F 20 A6  31 A9 21 20 A6 31 A9 16  |. .... .1.! .1..|
00001020: 20 A6 31 AD 05 C0 20 EA  19 A9 05 8D 6B C0 20 BE  | .1... .....k. .|
00001030: 1A A9 1F 20 A6 31 A9 09  20 A6 31 A9 18 20 A6 31  |... .1.. .1.. .1|
00001040: A9 04 8D 6B C0 AD 06 C0  2A A9 00 69 30 20 A6 31  |...k....*..i0 .1|
00001050: A2 03 20 D0 17 AD 06 C0  6A 6A A9 00 69 30 20 A6  |.. .....jj..i0 .|
00001060: 31 A2 04 20 D0 17 AD 06  C0 6A 6A 6A 6A A9 30 69  |1.. .....jjjj.0i|
00001070: 00 20 A6 31 A2 03 20 D0  17 AD 06 C0 2A 2A A9 00  |. .1.. .....**..|
00001080: 69 30 20 A6 31 A2 04 20  D0 17 AD 06 C0 6A A9 00  |i0 .1.. .....j..|
00001090: 69 30 20 A6 31 A2 08 20  D0 17 AD 06 C0 6A 6A 6A  |i0 .1.. .....jjj|
000010A0: A9 00 69 30 20 A6 31 60  AD 0A C0 C9 02 F0 03 4C  |..i0 .1`.......L|
000010B0: D9 17 A9 1F 20 A6 31 A9  0E 20 A6 31 A9 01 20 A6  |.... .1.. .1.. .|
000010C0: 31 AD 07 C0 20 EA 19 20  BE 1A A9 1F 20 A6 31 A9  |1... .. .... .1.|
000010D0: 0E 20 A6 31 A9 03 20 A6  31 AD 04 C0 20 EA 19 20  |. .1.. .1... .. |
000010E0: BE 1A A9 1F 20 A6 31 A9  0E 20 A6 31 A9 05 20 A6  |.... .1.. .1.. .|
000010F0: 31 AD 05 C0 20 EA 19 20  BE 1A A9 1F 20 A6 31 A9  |1... .. .... .1.|
00001100: 0E 20 A6 31 A9 07 20 A6  31 AD 06 C0 29 01 18 69  |. .1.. .1...)..i|
00001110: 30 20 A6 31 A9 1F 20 A6  31 A9 0E 20 A6 31 A9 08  |0 .1.. .1.. .1..|
00001120: 20 A6 31 A9 08 2C 06 C0  F0 08 A9 31 20 A6 31 4C  | .1..,.....1 .1L|
00001130: 36 19 A9 30 20 A6 31 A9  1F 20 A6 31 A9 0E 20 A6  |6..0 .1.. .1.. .|
00001140: 31 A9 09 20 A6 31 AD 06  C0 6A 6A 6A A9 00 69 30  |1.. .1...jjj..i0|
00001150: 20 A6 31 A9 1F 20 A6 31  A9 0E 20 A6 31 A9 0A 20  | .1.. .1.. .1.. |
00001160: A6 31 AD 06 C0 6A 6A A9  00 69 30 20 A6 31 A9 1F  |.1...jj..i0 .1..|
00001170: 20 A6 31 A9 0E 20 A6 31  A9 0B 20 A6 31 AD 06 C0  | .1.. .1.. .1...|
00001180: 2A A9 00 69 30 20 A6 31  A9 1F 20 A6 31 A9 0E 20  |*..i0 .1.. .1.. |
00001190: A6 31 A9 0C 20 A6 31 AD  06 C0 2A 2A A9 00 69 30  |.1.. .1...**..i0|
000011A0: 20 A6 31 60 AD 0B C0 20  BB 19 A9 24 8D 0C C0 AD  | .1`... ...$....|
000011B0: 10 C0 8D 0D C0 AD 11 C0  8D 0E C0 60 8D 0B C0 4A  |...........`...J|
000011C0: 4A 4A 4A C9 0A 90 09 18  69 37 8D 10 C0 4C D4 19  |JJJ.....i7...L..|
000011D0: 69 30 8D 10 C0 AD 0B C0  29 0F C9 0A 90 07 18 69  |i0......)......i|
000011E0: 37 8D 11 C0 60 69 30 8D  11 C0 60 8D 0B C0 AD 12  |7...`i0...`.....|
000011F0: C0 C9 02 F0 03 4C A3 19  A9 30 8D 0C C0 8D 0D C0  |.....L...0......|
00001200: 8D 0E C0 AD 0B C0 38 E9  64 EE 0C C0 B0 F8 CE 0C  |......8.d.......|
00001210: C0 18 69 64 38 E9 0A EE  0D C0 B0 F8 CE 0D C0 18  |..id8...........|
00001220: 69 0A 38 E9 01 EE 0E C0  B0 F8 CE 0E C0 60 A9 1F  |i.8..........`..|
00001230: 20 A6 31 A9 00 20 A6 31  A9 15 20 A6 31 A2 A0 A9  | .1.. .1.. .1...|
00001240: 20 20 A6 31 CA D0 FA 60  AD 0A C0 C9 01 F0 1D A2  |  .1...`........|
00001250: 01 A9 1F 20 A6 31 A9 11  20 A6 31 8A 20 A6 31 A9  |... .1.. .1. .1.|
00001260: 9C 20 A6 31 E8 E0 12 D0  E8 4C 88 1A A2 01 A9 1F  |. .1.....L......|
00001270: 20 A6 31 A9 00 20 A6 31  8A 20 A6 31 A9 9C 20 A6  | .1.. .1. .1.. .|
00001280: 31 E8 E0 12 D0 E8 4C A3  1A A9 1F 20 A6 31 A9 11  |1.....L.... .1..|
00001290: 20 A6 31 AD 09 C0 20 A6  31 A9 89 20 A6 31 A9 9D  | .1... .1.. .1..|
000012A0: 20 A6 31 60 A9 1F 20 A6  31 A9 00 20 A6 31 AD 09  | .1`.. .1.. .1..|
000012B0: C0 20 A6 31 A9 89 20 A6  31 A9 9D 20 A6 31 60 AD  |. .1.. .1.. .1`.|
000012C0: 0C C0 20 A6 31 AD 0D C0  20 A6 31 AD 0E C0 4C A6  |.. .1... .1...L.|
000012D0: 31 A2 04 BD 15 C0 C9 28  F0 03 4C 9D 14 E8 BD 15  |1......(..L.....|
000012E0: C0 C9 24 F0 03 4C FB 1A  A0 00 E8 BD 15 C0 99 2B  |..$..L.........+|
000012F0: C0 C8 C0 04 D0 F4 20 3E  0F 4C 0C 1B A0 00 BD 15  |...... >.L......|
00001300: C0 99 2B C0 C8 E8 C0 04  D0 F4 20 B6 12 A2 06 BD  |..+....... .....|
00001310: 15 C0 C9 20 F0 0D C9 29  F0 3B C9 2C F0 08 E8 E0  |... ...).;.,....|
00001320: 09 D0 EC 4C 9D 14 BD 16  C0 C9 58 F0 03 4C 9D 14  |...L......X..L..|
00001330: BD 17 C0 C9 29 F0 03 4C  9D 14 A9 54 85 76 A9 22  |....)..L...T.v."|
00001340: 85 77 A9 02 8D 29 C0 AD  32 C0 D0 06 20 08 17 4C  |.w...)..2... ..L|
00001350: 9D 14 4C 9C 17 BD 16 C0  C9 2C F0 03 4C 9D 14 BD  |..L......,..L...|
00001360: 17 C0 C9 59 F0 03 4C 9D  14 A9 75 85 76 A9 22 85  |...Y..L...u.v.".|
00001370: 77 4C 41 1B A9 9F 85 76  A9 22 85 77 A0 00 B1 76  |wLA....v.".w...v|
00001380: C9 FF F0 30 D9 15 C0 D0  25 C8 C0 03 D0 F0 AE 13  |...0....%.......|
00001390: C0 B1 76 9D 00 7B AE 33  C0 9D 00 C1 A9 02 8D 29  |..v..{.3.......)|
000013A0: C0 AD 50 C0 C9 02 D0 0F  20 0F 1C 4C 80 17 20 8F  |..P..... ..L.. .|
000013B0: 14 4C 7B 1B 4C C1 1B A9  FF 9D 02 C1 9D 03 C1 4C  |.L{.L..........L|
000013C0: 80 17 A9 96 85 76 A9 22  85 77 A0 00 B1 76 C9 FF  |.....v.".w...v..|
000013D0: F0 0D D9 15 C0 D0 0B C8  C0 03 D0 F0 4C E7 1B 4C  |............L..L|
000013E0: 9D 14 20 8F 14 4C C9 1B  B1 76 AE 13 C0 9D 00 7B  |.. ..L...v.....{|
000013F0: AE 33 C0 9D 00 C1 A9 FF  9D 03 C1 9D 04 C1 A9 03  |.3..............|
00001400: 8D 29 C0 AD 50 C0 C9 02  D0 03 20 0F 1C 4C 80 17  |.)..P..... ..L..|
00001410: AD 29 C0 C9 02 F0 1E AE  13 C0 A9 7B 9D 02 7B AE  |.).........{..{.|
00001420: 33 C0 9D 02 C1 20 4B 1C  AE 33 C0 9D 01 C1 AE 13  |3.... K..3......|
00001430: C0 9D 01 7B 60 20 4B 1C  38 E9 02 38 ED 13 C0 AE  |...{` K.8..8....|
00001440: 13 C0 9D 01 7B AE 33 C0  9D 01 C1 60 A9 01 8D 02  |....{.3....`....|
00001450: C0 A2 14 A9 1F 20 A6 31  8A 20 A6 31 AD 02 C0 20  |..... .1. .1... |
00001460: A6 31 A9 87 8E 0B C0 20  9E 34 8E 14 C0 AD 0B C0  |.1..... .4......|
00001470: 38 E9 14 AA AD 14 C0 9D  51 C0 AE 0B C0 EE 0B C0  |8.......Q.......|
00001480: E8 E0 1A D0 CE A9 1F 20  A6 31 A9 1B 20 A6 31 AD  |....... .1.. .1.|
00001490: 02 C0 20 A6 31 A9 87 20  9E 34 E0 20 F0 25 A2 00  |.. .1.. .4. .%..|
000014A0: A0 04 BD 51 C0 D9 15 C0  D0 0C E8 C8 E0 06 D0 F2  |...Q............|
000014B0: AC 02 C0 B1 0E 60 AD 02  C0 C9 10 F0 06 EE 02 C0  |.....`..........|
000014C0: 4C 50 1C A2 00 A9 1F 20  A6 31 A9 00 20 A6 31 A9  |LP..... .1.. .1.|
000014D0: 12 20 A6 31 BD FF 1F C9  0D F0 0A 20 10 34 E8 D0  |. .1....... .4..|
000014E0: F3 68 68 68 68 4C BB 14  23 24 2C 28 29 1F 00 01  |.hhhhL..#$,()...|
000014F0: 41 43 43 55 4D 55 4C 41  54 4F 52 20 20 3A 30 30  |ACCUMULATOR  :00|
00001500: 30 0D 0A 20 20 20 20 20  20 20 20 20 20 20 20 20  |0..             |
00001510: 20 20 20 20 0D 0A 58 20  2D 20 52 45 47 49 53 54  |    ..X - REGIST|
00001520: 45 52 20 3A 30 30 30 0D  0A 20 20 20 20 20 20 20  |ER :000..       |
00001530: 20 20 20 20 20 20 20 20  20 20 0D 0A 59 20 2D 20  |          ..Y - |
00001540: 52 45 47 49 53 54 45 52  20 3A 30 30 30 0D 0A 20  |REGISTER :000.. |
00001550: 20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00001560: 0D 0A 43 41 52 52 59 20  46 4C 41 47 20 20 20 3A  |..CARRY FLAG   :|
00001570: 30 20 20 0D 0A 44 45 43  49 4D 41 4C 20 4D 4F 44  |0  ..DECIMAL MOD|
00001580: 45 20 3A 30 20 20 0D 0A  49 4E 54 45 52 52 55 50  |E :0  ..INTERRUP|
00001590: 54 53 20 20 20 3A 30 20  20 0D 0A 5A 45 52 4F 20  |TS   :0  ..ZERO |
000015A0: 46 4C 41 47 20 20 20 20  3A 30 20 20 0D 0A 4E 45  |FLAG    :0  ..NE|
000015B0: 47 41 54 49 56 45 20 46  4C 41 47 3A 30 20 20 0D  |GATIVE FLAG:0  .|
000015C0: 0A 4F 56 45 52 46 4C 4F  57 20 46 4C 41 47 3A 30  |.OVERFLOW FLAG:0|
000015D0: 20 20 0D 0A 20 20 20 20  20 20 20 20 20 20 20 20  |  ..            |
000015E0: 20 20 20 20 20 0D 0A 81  66 33 2F 66 37 20 46 4F  |     ...f3/f7 FO|
000015F0: 52 20 4D 4F 44 45 53 0D  0A 84 27 52 45 54 55 52  |R MODES...'RETUR|
00001600: 4E 27 20 54 4F 20 52 55  4E 20 20 0D 0A 82 27 5F  |N' TO RUN  ...'_|
00001610: 27 20 54 4F 20 45 44 49  54 20 20 20 20 0D 0A FF  |' TO EDIT    ...|
00001620: 1F 11 00 82 9D 87 4C 41  42 45 4C 53 20 49 4E 53  |......LABELS INS|
00001630: 54 52 55 43 54 49 4F 4E  53 0D 0A 9C 0D 0A 50 52  |TRUCTIONS.....PR|
00001640: 45 53 53 20 4B 45 59 53  3A 9C 0D 0A 9C 0A 81 9D  |ESS KEYS:.......|
00001650: 87 20 66 31 20 20 20 9C  0D 0A 61 73 73 65 6D 62  |. f1   ...assemb|
00001660: 6C 65 73 20 70 72 6F 67  72 61 6D 9C 0D 0A 9C 0A  |les program.....|
00001670: 81 9D 87 20 66 33 20 20  20 9C 0D 0A 66 6F 72 20  |... f3   ...for |
00001680: 6D 61 69 6E 20 6D 65 6E  75 9C 0D 0A 9C 0A 81 9D  |main menu.......|
00001690: 87 20 66 35 20 20 20 9C  0D 0A 74 6F 20 65 72 61  |. f5   ...to era|
000016A0: 73 65 20 70 72 6F 67 72  61 6D 9C 0D 0A 9C 0A 9C  |se program......|
000016B0: 0A 9C 0A 9C 0A 9C 1F 00  12 20 84 9D 87 45 44 49  |......... ...EDI|
000016C0: 54 20 4D 4F 44 45 20 20  9C 8C 0D 0A 20 84 9D 87  |T MODE  .... ...|
000016D0: 2A 2A 2A 2A 2A 2A 2A 2A  2A 20 20 9C 8C 0D 0A 0A  |*********  .....|
000016E0: 54 79 70 65 20 69 6E 20  70 72 6F 67 72 61 6D 2C  |Type in program,|
000016F0: 20 75 73 69 6E 67 20 74  68 65 20 63 75 72 73 6F  | using the curso|
00001700: 72 20 6B 65 79 73 0D 0A  74 6F 20 65 64 69 74 20  |r keys..to edit |
00001710: 70 72 6F 67 72 61 6D 2E  9C 0D 0A 9C FF 41 43 43  |program......ACC|
00001720: 55 4D 55 4C 41 54 4F 52  20 20 20 20 58 2D 52 45  |UMULATOR    X-RE|
00001730: 47 49 53 54 45 52 20 20  20 20 59 2D 52 45 47 49  |GISTER    Y-REGI|
00001740: 53 54 45 52 20 20 81 9D  87 30 30 30 20 20 87 9C  |STER  ...000  ..|
00001750: 20 20 20 20 20 84 9D 87  30 30 30 20 20 87 9C 20  |     ...000  .. |
00001760: 20 20 20 82 9D 87 30 30  30 20 20 87 9C 20 20 20  |   ...000  ..   |
00001770: 20 20 20 20 20 4E 45 47  20 5A 45 52 4F 20 44 45  |     NEG ZERO DE|
00001780: 43 20 4F 2F 46 20 43 41  52 52 59 20 49 2F 44 49  |C O/F CARRY I/DI|
00001790: 53 41 42 4C 45 46 4C 41  47 53 3A 85 9D 87 30 20  |SABLEFLAGS:...0 |
000017A0: 20 20 30 20 20 20 20 30  20 20 20 30 20 20 20 20  |  0    0   0    |
000017B0: 30 20 20 20 20 20 20 20  20 30 FF 45 52 52 4F 52  |0        0.ERROR|
000017C0: 20 2D 20 49 4E 53 54 52  55 43 54 49 4F 4E 20 4E  | - INSTRUCTION N|
000017D0: 4F 54 20 52 45 43 4F 47  4E 49 53 45 44 20 3A 0D  |OT RECOGNISED :.|
000017E0: 45 52 52 4F 52 20 2D 20  4E 55 4D 42 45 52 20 42  |ERROR - NUMBER B|
000017F0: 49 47 47 45 52 20 54 48  41 4E 20 32 35 35 3A 0D  |IGGER THAN 255:.|
00001800: 45 52 52 4F 52 20 2D 20  4C 41 42 45 4C 20 4E 4F  |ERROR - LABEL NO|
00001810: 54 20 46 4F 55 4E 44 20  3A 20 0D 45 52 52 4F 52  |T FOUND : .ERROR|
00001820: 20 2D 20 52 45 53 55 4C  54 49 4E 47 20 41 44 44  | - RESULTING ADD|
00001830: 52 45 53 53 20 47 52 45  41 54 45 52 20 54 48 41  |RESS GREATER THA|
00001840: 4E 0D 0A 31 30 32 34 20  28 44 45 43 49 4D 41 4C  |N..1024 (DECIMAL|
00001850: 29 20 4F 52 20 24 34 30  30 20 28 48 45 58 29 FF  |) OR $400 (HEX).|
00001860: 42 52 4B 00 43 4C 43 18  43 4C 44 D8 43 4C 49 58  |BRK.CLC.CLD.CLIX|
00001870: 43 4C 56 B8 44 45 58 CA  44 45 59 88 49 4E 58 E8  |CLV.DEX.DEY.INX.|
00001880: 49 4E 59 C8 4E 4F 50 EA  50 48 41 48 50 48 50 08  |INY.NOP.PHAHPHP.|
00001890: 50 4C 41 68 50 4C 50 28  52 54 53 60 53 45 43 38  |PLAhPLP(RTS`SEC8|
000018A0: 53 45 44 F8 53 45 49 78  54 41 58 AA 54 41 59 A8  |SED.SEIxTAX.TAY.|
000018B0: 54 53 58 BA 54 58 41 8A  54 58 53 9A 54 59 41 98  |TSX.TXA.TXS.TYA.|
000018C0: FF 41 53 4C 0A 4C 53 52  4A 52 4F 4C 2A 52 4F 52  |.ASL.LSRJROL*ROR|
000018D0: 6A FF 41 44 43 69 41 4E  44 29 43 4D 50 C9 43 50  |j.ADCiAND)CMP.CP|
000018E0: 58 E0 43 50 59 C0 45 4F  52 49 4C 44 41 A9 4C 44  |X.CPY.EORILDA.LD|
000018F0: 58 A2 4C 44 59 A0 4F 52  41 09 53 42 43 E9 FF 41  |X.LDY.ORA.SBC..A|
00001900: 44 43 65 41 4E 44 25 41  53 4C 06 42 49 54 24 43  |DCeAND%ASL.BIT$C|
00001910: 4D 50 C5 43 50 58 E4 43  50 59 C4 44 45 43 C6 45  |MP.CPX.CPY.DEC.E|
00001920: 4F 52 45 49 4E 43 E6 4C  44 41 A5 4C 44 58 A6 4C  |OREINC.LDA.LDX.L|
00001930: 44 59 A4 4C 53 52 46 4F  52 41 05 52 4F 4C 26 52  |DY.LSRFORA.ROL&R|
00001940: 4F 52 66 53 42 43 E5 53  54 41 85 53 54 58 86 53  |ORfSBC.STA.STX.S|
00001950: 54 59 84 FF 41 44 43 6D  41 4E 44 2D 41 53 4C 0E  |TY..ADCmAND-ASL.|
00001960: 42 49 54 2C 43 4D 50 CD  43 50 58 EC 43 50 59 CC  |BIT,CMP.CPX.CPY.|
00001970: 45 4F 52 4D 49 4E 43 EE  4C 44 41 AD 4C 44 58 AE  |EORMINC.LDA.LDX.|
00001980: 4C 44 59 AC 4C 53 52 4E  4F 52 41 0D 52 4F 4C 2E  |LDY.LSRNORA.ROL.|
00001990: 52 4F 52 6E 53 42 43 ED  53 54 41 8D 53 54 58 8E  |RORnSBC.STA.STX.|
000019A0: 53 54 59 8C 44 45 43 CE  FF 41 44 43 7D 41 4E 44  |STY.DEC..ADC}AND|
000019B0: 3D 41 53 4C 1E 43 4D 50  DD 44 45 43 DE 45 4F 52  |=ASL.CMP.DEC.EOR|
000019C0: 5D 49 4E 43 FE 4C 44 41  BD 4C 44 59 BC 4C 53 52  |]INC.LDA.LDY.LSR|
000019D0: 5E 4F 52 41 1D 52 4F 4C  3E 52 4F 52 7E 53 42 43  |^ORA.ROL>ROR~SBC|
000019E0: FD 53 54 41 9D FF 41 44  43 79 41 4E 44 39 43 4D  |.STA..ADCyAND9CM|
000019F0: 50 D9 45 4F 52 59 4C 44  41 B9 4C 44 58 BE 4F 52  |P.EORYLDA.LDX.OR|
00001A00: 41 19 53 42 43 F9 53 54  41 99 FF 41 44 43 75 41  |A.SBC.STA..ADCuA|
00001A10: 4E 44 35 41 53 4C 16 43  4D 50 D5 44 45 43 D6 45  |ND5ASL.CMP.DEC.E|
00001A20: 4F 52 55 49 4E 43 F6 4C  44 41 B5 4C 44 59 B4 4C  |ORUINC.LDA.LDY.L|
00001A30: 53 52 56 4F 52 41 15 52  4F 4C 36 52 4F 52 76 53  |SRVORA.ROL6RORvS|
00001A40: 42 43 F5 53 54 41 95 53  54 59 94 FF 4C 44 58 B6  |BC.STA.STY..LDX.|
00001A50: 53 54 58 96 FF 41 44 43  61 41 4E 44 21 43 4D 50  |STX..ADCaAND!CMP|
00001A60: C1 45 4F 52 41 4C 44 41  A1 4F 52 41 01 53 42 43  |.EORALDA.ORA.SBC|
00001A70: E1 53 54 41 81 FF 41 44  43 71 41 4E 44 31 43 4D  |.STA..ADCqAND1CM|
00001A80: 50 D1 45 4F 52 51 4C 44  41 B1 4F 52 41 11 53 42  |P.EORQLDA.ORA.SB|
00001A90: 43 F1 53 54 41 91 FF 4A  4D 50 4C 4A 53 52 20 FF  |C.STA..JMPLJSR .|
00001AA0: 42 43 43 90 42 43 53 B0  42 45 51 F0 42 4D 49 30  |BCC.BCS.BEQ.BMI0|
00001AB0: 42 4E 45 D0 42 50 4C 10  42 56 43 50 42 56 53 70  |BNE.BPL.BVCPBVSp|
00001AC0: FF A9 1F 20 A6 31 A9 00  20 A6 31 A9 12 20 A6 31  |... .1.. .1.. .1|
00001AD0: A9 50 8D 02 C0 A9 20 20  A6 31 CE 02 C0 AD 02 C0  |.P....  .1......|
00001AE0: D0 F3 60 A9 A6 85 14 A9  28 85 15 20 C0 22 A9 1F  |..`.....(.. ."..|
00001AF0: 20 A6 31 A9 00 20 A6 31  A9 12 20 A6 31 AC 09 C0  | .1.. .1.. .1...|
00001B00: B1 0E AA 8D 5D C0 BD 00  7B 8D 5C C0 AA E0 00 F0  |....]...{.\.....|
00001B10: 11 18 A5 14 69 09 85 14  A5 15 69 00 85 15 CA 4C  |....i.....i....L|
00001B20: 0C 23 A0 00 B1 14 85 10  C8 B1 14 85 11 C8 B1 14  |.#..............|
00001B30: 85 12 C8 B1 14 85 13 20  7D 23 C8 B1 14 85 12 C8  |....... }#......|
00001B40: B1 14 85 13 20 7D 23 C8  B1 14 85 12 C8 B1 14 85  |.... }#.........|
00001B50: 13 20 7D 23 C8 B1 14 8D  5B C0 20 A7 23 A2 00 BD  |. }#....[. .#...|
00001B60: 07 27 C9 FF F0 08 CD 5B  C0 F0 0F E8 D0 F1 A5 19  |.'.....[........|
00001B70: C9 0C 90 03 4C E1 26 20  57 28 60 6C 10 00 8C 02  |....L.& W(`l....|
00001B80: C0 A0 00 B1 12 C9 FF F0  06 20 10 34 C8 D0 F4 AC  |......... .4....|
00001B90: 02 C0 60 20 C0 22 68 68  4C 4E 0C A0 00 AD 07 C0  |..` ."hhLN......|
00001BA0: 11 18 8D 07 C0 4C B5 26  C9 01 D0 01 60 C9 02 D0  |.....L.&....`...|
00001BB0: 09 A9 07 85 18 A9 C0 85  19 60 C9 03 D0 11 AE 5D  |.........`.....]|
00001BC0: C0 BD 01 7B 85 18 BD 02  7B 18 69 08 85 19 60 C9  |...{....{.i...`.|
00001BD0: 04 D0 0D AE 5D C0 A9 08  85 19 BD 01 7B 85 18 60  |....].......{..`|
00001BE0: C9 05 D0 12 A9 5E 85 18  A9 C0 85 19 AE 5D C0 BD  |.....^.......]..|
00001BF0: 01 7B 8D 5E C0 60 C9 06  D0 12 20 BD 23 18 A5 18  |.{.^.`.... .#...|
00001C00: 6D 04 C0 85 18 A5 19 69  00 85 19 60 C9 07 D0 0E  |m......i...`....|
00001C10: 20 BD 23 18 A5 18 6D 05  C0 85 18 4C 04 24 C9 08  | .#...m....L.$..|
00001C20: D0 2B A9 08 85 19 AE 5D  C0 BD 01 7B 85 18 A0 00  |.+.....]...{....|
00001C30: B1 18 8D 0B C0 C8 B1 18  18 69 08 85 19 AD 0B C0  |.........i......|
00001C40: 18 6D 05 C0 85 18 A5 19  69 00 85 19 60 C9 09 D0  |.m......i...`...|
00001C50: 25 A9 08 85 19 AE 5D C0  BD 01 7B 18 6D 04 C0 85  |%.....]...{.m...|
00001C60: 18 A0 00 B1 18 8D 0B C0  C8 B1 18 18 69 08 85 19  |............i...|
00001C70: AD 0B C0 85 18 60 C9 0A  D0 13 AE 5D C0 BD 01 7B  |.....`.....]...{|
00001C80: 18 6D 04 C0 85 18 A9 08  69 00 85 19 60 C9 0B D0  |.m......i...`...|
00001C90: 0D AE 5D C0 BD 01 7B 18  6D 05 C0 4C 83 24 C9 0C  |..]...{.m..L.$..|
00001CA0: D0 1D AE 5D C0 BD 01 7B  8D 02 C0 A0 01 B1 0E CD  |...]...{........|
00001CB0: 02 C0 F0 08 C8 C0 11 D0  F4 4C 20 28 84 18 60 C9  |.........L (..`.|
00001CC0: 0D D0 1D AE 5D C0 BD 01  7B 8D 02 C0 18 69 02 8D  |....]...{....i..|
00001CD0: 02 C0 18 AC 09 C0 71 0E  8D 02 C0 A0 01 4C AC 24  |......q......L.$|
00001CE0: 60 A0 00 AD 06 C0 29 6C  8D 06 C0 A0 00 B1 18 8D  |`.....)l........|
00001CF0: 5E C0 0E 5E C0 08 AD 5E  C0 91 18 68 29 83 0D 06  |^..^...^...h)...|
00001D00: C0 8D 06 C0 60 AD 06 C0  AE 0F C0 9D 00 09 CE 0F  |....`...........|
00001D10: C0 60 EE 0F C0 AE 0F C0  BD 00 09 8D 06 C0 60 AD  |.`............`.|
00001D20: 07 C0 AE 0F C0 9D 00 09  CE 0F C0 60 EE 0F C0 AE  |...........`....|
00001D30: 0F C0 BD 00 09 8D 07 C0  4C B5 26 20 25 34 68 68  |........L.& %4hh|
00001D40: 4C 4E 0C A0 00 B1 18 8D  07 C0 4C B5 26 AD 07 C0  |LN........L.&...|
00001D50: A0 00 91 18 60 A0 00 B1  18 8D 04 C0 4C B5 26 A0  |....`.......L.&.|
00001D60: 00 AD 04 C0 91 18 60 A0  00 B1 18 8D 05 C0 4C B5  |......`.......L.|
00001D70: 26 A0 00 AD 05 C0 91 18  60 AE 5D C0 A0 00 B1 18  |&.......`.].....|
00001D80: 2D 07 C0 8D 07 C0 4C B5  26 AD 06 C0 29 FE 8D 06  |-.....L.&...)...|
00001D90: C0 60 AD 06 C0 09 01 8D  06 C0 60 A0 00 B1 18 4A  |.`........`....J|
00001DA0: 91 18 08 AD 06 C0 29 4C  8D 06 C0 68 29 03 0D 06  |......)L...h)...|
00001DB0: C0 8D 06 C0 60 A0 00 B1  18 4D 07 C0 8D 07 C0 4C  |....`....M.....L|
00001DC0: B5 26 A0 00 AD 06 C0 29  01 48 28 B1 18 2A 91 18  |.&.....).H(..*..|
00001DD0: 08 AD 06 C0 29 4C 8D 06  C0 68 29 83 0D 06 C0 8D  |....)L...h).....|
00001DE0: 06 C0 60 A0 00 B1 18 8D  5E C0 AD 07 C0 2C 5E C0  |..`.....^....,^.|
00001DF0: 08 AD 06 C0 29 0D 8D 06  C0 68 29 C2 0D 06 C0 8D  |....)....h).....|
00001E00: 06 C0 60 A5 18 38 E9 01  8D 09 C0 60 EE 0F C0 AE  |..`..8.....`....|
00001E10: 0F C0 BD 00 09 18 69 01  8D 02 C0 EE 0F C0 E8 BD  |......i.........|
00001E20: 00 09 C9 7B F0 03 4C 20  28 A0 01 B1 0E CD 02 C0  |...{..L (.......|
00001E30: F0 08 C8 C0 11 D0 F4 4C  20 28 84 18 4C 02 26 A9  |.......L (..L.&.|
00001E40: 7B AE 0F C0 9D 00 09 CE  0F C0 AD 5D C0 18 69 02  |{..........]..i.|
00001E50: AE 0F C0 9D 00 09 CE 0F  C0 4C 02 26 AD 06 C0 29  |.........L.&...)|
00001E60: FB 8D 06 C0 60 AD 06 C0  29 09 48 28 A0 00 AD 06  |....`...).H(....|
00001E70: C0 29 0C 8D 06 C0 AD 07  C0 71 18 8D 07 C0 08 68  |.).......q.....h|
00001E80: 29 C3 0D 06 C0 8D 06 C0  60 AD 06 C0 29 01 48 28  |).......`...).H(|
00001E90: A0 00 AD 06 C0 29 0C 8D  06 C0 B1 18 6A 91 18 08  |.....)......j...|
00001EA0: 68 29 C3 0D 06 C0 8D 06  C0 60 CE 05 C0 4C B5 26  |h).......`...L.&|
00001EB0: AD 04 C0 8D 07 C0 08 AD  06 C0 29 4D 8D 06 C0 68  |..........)M...h|
00001EC0: 29 82 0D 06 C0 8D 06 C0  60 AD 05 C0 8D 07 C0 4C  |).......`......L|
00001ED0: B5 26 AD 04 C0 8D 0F C0  60 AD 06 C0 09 04 8D 06  |.&......`.......|
00001EE0: C0 60 A2 00 A9 1F 20 A6  31 A9 00 20 A6 31 A9 12  |.`.... .1.. .1..|
00001EF0: 20 A6 31 BD 1A 20 C9 FF  F0 06 20 A6 31 E8 D0 F3  | .1.. .... .1...|
00001F00: 20 25 34 68 68 4C 4E 0C  01 02 05 0C 0D FF 60 AD  | %4hhLN.......`.|
00001F10: 06 C0 09 08 8D 06 C0 60  EE 05 C0 4C B5 26 CE 04  |.......`...L.&..|
00001F20: C0 4C B5 26 A0 00 B1 18  8D 5E C0 CE 5E C0 AD 5E  |.L.&.....^..^..^|
00001F30: C0 91 18 4C B5 26 EE 04  C0 4C B5 26 AD 06 C0 29  |...L.&...L.&...)|
00001F40: 09 48 28 AD 06 C0 29 0C  8D 06 C0 AD 07 C0 A0 00  |.H(...).........|
00001F50: F1 18 8D 07 C0 08 68 29  C3 0D 06 C0 8D 06 C0 60  |......h).......`|
00001F60: AD 06 C0 29 0C 8D 06 C0  AD 04 C0 A0 00 38 F1 18  |...).........8..|
00001F70: 08 68 29 C3 0D 06 C0 8D  06 C0 60 AD 06 C0 29 0C  |.h).......`...).|
00001F80: 8D 06 C0 AD 05 C0 4C 6A  27 AD 06 C0 29 0C 8D 06  |......Lj'...)...|
00001F90: C0 AD 07 C0 4C 6A 27 AD  07 C0 8D 05 C0 4C B5 26  |....Lj'......L.&|
00001FA0: AD 07 C0 8D 04 C0 4C B5  26 AD 0F C0 8D 04 C0 4C  |......L.&......L|
00001FB0: B5 26 AD 06 C0 29 F7 8D  06 C0 60 A0 00 B1 18 8D  |.&...)....`.....|
00001FC0: 5E C0 EE 5E C0 AD 5E C0  91 18 4C B5 26 AD 06 C0  |^..^..^...L.&...|
00001FD0: 29 BF 8D 06 C0 60 AD 06  C0 29 02 F0 03 4C E7 27  |)....`...)...L.'|
00001FE0: 60 AD 06 C0 29 02 D0 F8  A5 18 8D 09 C0 CE 09 C0  |`...)...........|
00001FF0: 60 AD 06 C0 29 40 F0 F0  60 AD 06 C0 29 01 D0 E8  |`...)@..`...)...|
00002000: 60 AD 06 C0 29 80 D0 E0  60 AD 06 C0 29 80 F0 D8  |`...)...`...)...|
00002010: 60 AD 06 C0 29 01 F0 D0  60 AD 06 C0 29 40 D0 C8  |`...)...`...)@..|
00002020: 60 A2 00 BD 38 28 C9 FF  F0 07 20 A6 31 E8 4C 22  |`...8(.... .1.L"|
00002030: 28 20 25 34 68 68 4C 4E  0C 1F 00 12 45 52 52 4F  |( %4hhLN....ERRO|
00002040: 52 20 2D 20 41 44 44 52  45 53 53 20 4E 4F 54 20  |R - ADDRESS NOT |
00002050: 46 4F 55 4E 44 0D 0A FF  A2 00 AD 12 C0 C9 01 F0  |FOUND...........|
00002060: 01 60 BD 8E 28 C9 FF F0  06 20 A6 31 E8 D0 F3 38  |.`..(.... .1...8|
00002070: A5 19 E9 08 20 BB 19 AD  11 C0 20 A6 31 A5 18 20  |.... ..... .1.. |
00002080: BB 19 AD 10 C0 20 A6 31  AD 11 C0 20 A6 31 60 1F  |..... .1... .1`.|
00002090: 0F 13 52 45 53 55 4C 54  49 4E 47 20 41 44 44 52  |..RESULTING ADDR|
000020A0: 45 53 53 20 24 FF FF 92  23 3F 36 7B 36 A5 28 01  |ESS $...#?6{6.(.|
000020B0: 9A 23 BC 35 97 35 30 37  09 3A 25 5B 36 7B 36 A5  |.#.5.507.:%[6{6.|
000020C0: 28 00 3A 25 5B 36 7B 36  A5 28 00 3A 25 5B 36 7B  |(.:%[6{6.(.:%[6{|
000020D0: 36 A5 28 00 9A 23 BC 35  97 35 30 37 04 E0 24 EA  |6.(..#.5.507..$.|
000020E0: 35 2E 36 A5 28 04 3A 25  5B 36 7B 36 A5 28 00 04  |5.6.(.:%[6{6.(..|
000020F0: 25 01 36 07 36 22 36 01  9A 23 BC 35 97 35 C8 35  |%.6.6"6..#.5.5.5|
00002100: 05 E0 24 EA 35 97 35 A5  28 02 3A 25 5B 36 7B 36  |..$.5.5.(.:%[6{6|
00002110: A5 28 00 3A 25 5B 36 7B  36 A5 28 00 9A 23 BC 35  |.(.:%[6{6.(..#.5|
00002120: 97 35 30 37 03 E0 24 EA  35 2E 36 A5 28 03 3A 25  |.507..$.5.6.(.:%|
00002130: 5B 36 7B 36 A5 28 00 08  28 90 38 9B 38 A5 28 0D  |[6{6.(..(.8.8.(.|
00002140: 9A 23 BC 35 97 35 30 37  08 3A 25 5B 36 7B 36 A5  |.#.5.507.:%[6{6.|
00002150: 28 00 3A 25 5B 36 7B 36  A5 28 00 3A 25 5B 36 7B  |(.:%[6{6.(.:%[6{|
00002160: 36 A5 28 00 9A 23 BC 35  97 35 30 37 0A E0 24 EA  |6.(..#.5.507..$.|
00002170: 35 2E 36 A5 28 0A 3A 25  5B 36 7B 36 A5 28 00 88  |5.6.(.:%[6{6.(..|
00002180: 25 99 36 A0 36 A7 36 01  9A 23 BC 35 97 35 30 37  |%.6.6.6..#.5.507|
00002190: 07 3A 25 5B 36 7B 36 A5  28 00 3A 25 5B 36 7B 36  |.:%[6{6.(.:%[6{6|
000021A0: A5 28 00 3A 25 5B 36 7B  36 A5 28 00 9A 23 BC 35  |.(.:%[6{6.(..#.5|
000021B0: 97 35 30 37 06 E0 24 EA  35 2E 36 A5 28 06 3A 25  |.507..$.5.6.(.:%|
000021C0: 5B 36 7B 36 A5 28 00 3E  26 A6 37 A5 28 A5 28 0C  |[6{6.(.>&.7.(.(.|
000021D0: 78 25 C2 36 30 37 A5 28  09 3A 25 5B 36 7B 36 A5  |x%.607.(.:%[6{6.|
000021E0: 28 00 3A 25 5B 36 7B 36  A5 28 01 E2 25 DB 36 2E  |(.:%[6{6.(..%.6.|
000021F0: 36 A5 28 04 78 25 C2 36  30 37 A5 28 04 C1 25 BA  |6.(.x%.607.(..%.|
00002200: 36 B4 36 2E 36 04 3A 25  5B 36 7B 36 A5 28 01 11  |6.6.6.:%[6{6.(..|
00002210: 25 08 37 07 36 FD 36 01  78 25 C2 36 C8 35 A5 28  |%.7.6.6.x%.6.5.(|
00002220: 05 C1 25 BA 36 B4 36 97  35 02 3A 25 5B 36 7B 36  |..%.6.6.5.:%[6{6|
00002230: A5 28 01 E2 25 DB 36 2E  36 A5 28 03 78 25 C2 36  |.(..%.6.6.(.x%.6|
00002240: 30 37 A5 28 03 C1 25 BA  36 B4 36 2E 36 03 3A 25  |07.(..%.6.6.6.:%|
00002250: 5B 36 7B 36 A5 28 01 00  28 90 38 AA 38 A5 28 0D  |[6{6.(..(.8.8.(.|
00002260: 78 25 C2 36 30 37 A5 28  08 3A 25 5B 36 7B 36 A5  |x%.607.(.:%[6{6.|
00002270: 28 01 3A 25 5B 36 7B 36  A5 28 01 3A 25 5B 36 7B  |(.:%[6{6.(.:%[6{|
00002280: 36 A5 28 01 78 25 C2 36  30 37 A5 28 0A C1 25 BA  |6.(.x%.607.(..%.|
00002290: 36 B4 36 2E 36 0A 3A 25  5B 36 7B 36 A5 28 01 91  |6.6.6.:%[6{6.(..|
000022A0: 25 2B 37 A0 36 A7 36 01  78 25 C2 36 30 37 A5 28  |%+7.6.6.x%.607.(|
000022B0: 07 3A 25 5B 36 7B 36 A5  28 01 3A 25 5B 36 7B 36  |.:%[6{6.(.:%[6{6|
000022C0: A5 28 01 3A 25 5B 36 7B  36 A5 28 01 78 25 C2 36  |.(.:%[6{6.(.x%.6|
000022D0: 30 37 A5 28 06 C1 25 BA  36 B4 36 2E 36 06 3A 25  |07.(..%.6.6.6.:%|
000022E0: 5B 36 7B 36 A5 28 01 3A  25 5B 36 7B 36 A5 28 01  |[6{6.(.:%[6{6.(.|
000022F0: B4 25 1D 37 97 35 30 37  09 3A 25 5B 36 7B 36 A5  |.%.7.507.:%[6{6.|
00002300: 28 01 3A 25 5B 36 7B 36  A5 28 01 3A 25 5B 36 7B  |(.:%[6{6.(.:%[6{|
00002310: 36 A5 28 01 B4 25 1D 37  97 35 30 37 04 9A 25 0E  |6.(..%.7.507..%.|
00002320: 37 AD 36 2E 36 04 3A 25  5B 36 7B 36 A5 28 01 1E  |7.6.6.:%[6{6.(..|
00002330: 25 01 36 97 35 22 36 01  B4 25 1D 37 97 35 C8 35  |%.6.5"6..%.7.5.5|
00002340: 05 9A 25 0E 37 AD 36 97  35 02 3A 25 5B 36 7B 36  |..%.7.6.5.:%[6{6|
00002350: A5 28 01 02 26 B9 37 A5  28 A5 28 0C B4 25 1D 37  |.(..&.7.(.(..%.7|
00002360: 97 35 30 37 03 9A 25 0E  37 AD 36 2E 36 03 3A 25  |.507..%.7.6.6.:%|
00002370: 5B 36 7B 36 A5 28 01 F0  27 90 38 F1 38 A5 28 0D  |[6{6.(..'.8.8.(.|
00002380: B4 25 1D 37 97 35 30 37  08 3A 25 5B 36 7B 36 A5  |.%.7.507.:%[6{6.|
00002390: 28 01 3A 25 5B 36 7B 36  A5 28 01 3A 25 5B 36 7B  |(.:%[6{6.(.:%[6{|
000023A0: 36 A5 28 01 B4 25 1D 37  97 35 30 37 0A 9A 25 0E  |6.(..%.7.507..%.|
000023B0: 37 AD 36 2E 36 0A 3A 25  5B 36 7B 36 A5 28 01 5B  |7.6.6.:%[6{6.(.[|
000023C0: 26 99 36 4F 37 A7 36 01  B4 25 1D 37 97 35 30 37  |&.6O7.6..%.7.507|
000023D0: 07 3A 25 5B 36 7B 36 A5  28 01 3A 25 5B 36 7B 36  |.:%[6{6.(.:%[6{6|
000023E0: A5 28 01 3A 25 5B 36 7B  36 A5 28 01 B4 25 1D 37  |.(.:%[6{6.(..%.7|
000023F0: 97 35 30 37 06 9A 25 0E  37 AD 36 2E 36 06 3A 25  |.507..%.7.6.6.:%|
00002400: 5B 36 7B 36 A5 28 01 0B  26 B6 38 A5 28 A5 28 01  |[6{6.(..&.8.(.(.|
00002410: 64 26 45 37 A0 36 2E 36  09 3A 25 5B 36 7B 36 A5  |d&E7.6.6.:%[6{6.|
00002420: 28 01 3A 25 5B 36 7B 36  A5 28 01 3A 25 5B 36 7B  |(.:%[6{6.(.:%[6{|
00002430: 36 A5 28 01 64 26 45 37  A0 36 2E 36 04 88 26 BA  |6.(.d&E7.6.6..&.|
00002440: 36 AD 36 2E 36 04 3A 25  5B 36 7B 36 A5 28 01 2B  |6.6.6.:%[6{6.(.+|
00002450: 25 08 37 97 35 FD 36 01  64 26 45 37 A0 36 44 38  |%.7.5.6.d&E7.6D8|
00002460: 05 88 26 BA 36 AD 36 97  35 02 3A 25 5B 36 7B 36  |..&.6.6.5.:%[6{6|
00002470: A5 28 01 3A 25 5B 36 7B  36 A5 28 01 64 26 45 37  |.(.:%[6{6.(.d&E7|
00002480: A0 36 2E 36 03 88 26 BA  36 AD 36 2E 36 03 3A 25  |.6.6..&.6.6.6.:%|
00002490: 5B 36 7B 36 A5 28 01 18  28 90 38 0B 39 A5 28 0D  |[6{6.(..(.8.9.(.|
000024A0: 64 26 45 37 A0 36 2E 36  08 3A 25 5B 36 7B 36 A5  |d&E7.6.6.:%[6{6.|
000024B0: 28 01 3A 25 5B 36 7B 36  A5 28 01 3A 25 5B 36 7B  |(.:%[6{6.(.:%[6{|
000024C0: 36 A5 28 01 64 26 45 37  A0 36 2E 36 0A 88 26 BA  |6.(.d&E7.6.6..&.|
000024D0: 36 AD 36 2E 36 0A 3A 25  5B 36 7B 36 A5 28 01 D8  |6.6.6.:%[6{6.(..|
000024E0: 26 2B 37 4F 37 A7 36 01  64 26 45 37 A0 36 2E 36  |&+7O7.6.d&E7.6.6|
000024F0: 07 3A 25 5B 36 7B 36 A5  28 01 3A 25 5B 36 7B 36  |.:%[6{6.(.:%[6{6|
00002500: A5 28 01 3A 25 5B 36 7B  36 A5 28 01 64 26 45 37  |.(.:%[6{6.(.d&E7|
00002510: A0 36 2E 36 06 88 26 BA  36 AD 36 2E 36 06 3A 25  |.6.6..&.6.6.6.:%|
00002520: 5B 36 7B 36 A5 28 01 3A  25 5B 36 7B 36 A5 28 01  |[6{6.(.:%[6{6.(.|
00002530: 4C 25 6C 37 97 35 73 37  09 3A 25 5B 36 7B 36 A5  |L%l7.5s7.:%[6{6.|
00002540: 28 01 3A 25 5B 36 7B 36  A5 28 01 70 25 6C 37 B0  |(.:%[6{6.(.p%l7.|
00002550: 35 73 37 04 4C 25 6C 37  97 35 73 37 04 5E 25 6C  |5s7.L%l7.5s7.^%l|
00002560: 37 A4 35 73 37 04 3A 25  5B 36 7B 36 A5 28 01 A9  |7.5s7.:%[6{6.(..|
00002570: 26 E6 37 B0 35 A5 28 01  3A 25 5B 36 7B 36 A5 28  |&.7.5.(.:%[6{6.(|
00002580: 01 AF 26 62 37 A4 35 97  37 01 3A 25 5B 36 7B 36  |..&b7.5.7.:%[6{6|
00002590: A5 28 01 70 25 6C 37 B0  35 73 37 03 4C 25 6C 37  |.(.p%l7.5s7.L%l7|
000025A0: 97 35 73 37 03 5E 25 6C  37 A4 35 73 37 03 3A 25  |.5s7.^%l7.5s7.:%|
000025B0: 5B 36 7B 36 A5 28 01 10  28 90 38 A0 36 E5 38 0D  |[6{6.(..(.8.6.8.|
000025C0: 4C 25 6C 37 97 35 73 37  08 3A 25 5B 36 7B 36 A5  |L%l7.5s7.:%[6{6.|
000025D0: 28 01 3A 25 5B 36 7B 36  A5 28 01 70 25 6C 37 B0  |(.:%[6{6.(.p%l7.|
000025E0: 35 73 37 0A 4C 25 6C 37  97 35 73 37 0A 5E 25 6C  |5s7.L%l7.5s7.^%l|
000025F0: 37 A4 35 73 37 0B 3A 25  5B 36 7B 36 A5 28 01 C8  |7.5s7.:%[6{6.(..|
00002600: 26 62 37 B0 35 97 37 01  4C 25 6C 37 97 35 73 37  |&b7.5.7.L%l7.5s7|
00002610: 07 D1 26 62 37 A4 35 86  37 01 3A 25 5B 36 7B 36  |..&b7.5.7.:%[6{6|
00002620: A5 28 01 3A 25 5B 36 7B  36 A5 28 01 4C 25 6C 37  |.(.:%[6{6.(.L%l7|
00002630: 97 35 73 37 06 3A 25 5B  36 7B 36 A5 28 01 3A 25  |.5s7.:%[6{6.(.:%|
00002640: 5B 36 7B 36 A5 28 01 66  25 F1 37 B0 35 C8 35 05  |[6{6.(.f%.7.5.5.|
00002650: 42 25 F1 37 97 35 D5 35  09 54 25 F1 37 A4 35 C8  |B%.7.5.5.T%.7.5.|
00002660: 35 05 3A 25 5B 36 7B 36  A5 28 01 66 25 F1 37 B0  |5.:%[6{6.(.f%.7.|
00002670: 35 D5 35 04 42 25 F1 37  97 35 D5 35 04 54 25 F1  |5.5.B%.7.5.5.T%.|
00002680: 37 A4 35 D5 35 04 3A 25  5B 36 7B 36 A5 28 01 96  |7.5.5.:%[6{6.(..|
00002690: 27 62 37 97 35 CD 38 01  42 25 F1 37 97 35 C8 35  |'b7.5.8.B%.7.5.5|
000026A0: 05 9F 27 62 37 97 35 06  38 01 3A 25 5B 36 7B 36  |..'b7.5.8.:%[6{6|
000026B0: A5 28 01 66 25 F1 37 B0  35 D5 35 03 42 25 F1 37  |.(.f%.7.5.5.B%.7|
000026C0: 97 35 D5 35 03 54 25 F1  37 A4 35 D5 35 03 3A 25  |.5.5.T%.7.5.5.:%|
000026D0: 5B 36 7B 36 A5 28 01 F8  27 90 38 A0 36 DB 38 0D  |[6{6.(..'.8.6.8.|
000026E0: 42 25 F1 37 97 35 D5 35  08 3A 25 5B 36 7B 36 A5  |B%.7.5.5.:%[6{6.|
000026F0: 28 01 3A 25 5B 36 7B 36  A5 28 01 66 25 F1 37 B0  |(.:%[6{6.(.f%.7.|
00002700: 35 D5 35 0A 42 25 F1 37  97 35 D5 35 0A 54 25 F1  |5.5.B%.7.5.5.T%.|
00002710: 37 A4 35 D5 35 0B 3A 25  5B 36 7B 36 A5 28 01 CC  |7.5.5.:%[6{6.(..|
00002720: 27 99 36 14 38 A7 36 01  42 25 F1 37 97 35 D5 35  |'.6.8.6.B%.7.5.5|
00002730: 07 A8 27 62 37 F7 37 06  38 01 3A 25 5B 36 7B 36  |..'b7.7.8.:%[6{6|
00002740: A5 28 01 66 25 F1 37 B0  35 D5 35 06 42 25 F1 37  |.(.f%.7.5.5.B%.7|
00002750: 97 35 D5 35 06 54 25 F1  37 A4 35 D5 35 07 3A 25  |.5.5.T%.7.5.5.:%|
00002760: 5B 36 7B 36 A5 28 01 7A  27 5B 38 B0 35 C8 35 05  |[6{6.(.z'[8.5.5.|
00002770: 88 27 5B 38 97 35 D5 35  09 3A 25 5B 36 7B 36 A5  |.'[8.5.5.:%[6{6.|
00002780: 28 01 3A 25 5B 36 7B 36  A5 28 01 7A 27 5B 38 B0  |(.:%[6{6.(.z'[8.|
00002790: 35 D5 35 04 88 27 5B 38  97 35 D5 35 04 23 27 E6  |5.5..'[8.5.5.#'.|
000027A0: 37 2E 36 A5 28 04 3A 25  5B 36 7B 36 A5 28 01 17  |7.6.(.:%[6{6.(..|
000027B0: 27 2B 38 B0 35 A5 28 01  88 27 5B 38 97 35 C8 35  |'+8.5.(..'[8.5.5|
000027C0: 05 1D 27 E6 37 A4 35 A5  28 01 3A 25 5B 36 7B 36  |..'.7.5.(.:%[6{6|
000027D0: A5 28 01 7A 27 5B 38 B0  35 D5 35 03 88 27 5B 38  |.(.z'[8.5.5..'[8|
000027E0: 97 35 D5 35 03 23 27 E6  37 2E 36 A5 28 03 3A 25  |.5.5.#'.7.6.(.:%|
000027F0: 5B 36 7B 36 A5 28 01 E0  27 90 38 64 38 A5 28 0D  |[6{6.(..'.8d8.(.|
00002800: 88 27 5B 38 97 35 D5 35  08 3A 25 5B 36 7B 36 A5  |.'[8.5.5.:%[6{6.|
00002810: 28 01 3A 25 5B 36 7B 36  A5 28 01 3A 25 5B 36 7B  |(.:%[6{6.(.:%[6{|
00002820: 36 A5 28 01 88 27 5B 38  97 35 D5 35 0A 23 27 E6  |6.(..'[8.5.5.#'.|
00002830: 37 2E 36 A5 28 0A 3A 25  5B 36 7B 36 A5 28 01 B1  |7.6.(.:%[6{6.(..|
00002840: 27 99 36 36 38 A7 36 01  88 27 5B 38 97 35 D5 35  |'.668.6..'[8.5.5|
00002850: 07 3A 25 5B 36 7B 36 A5  28 01 3A 25 5B 36 7B 36  |.:%[6{6.(.:%[6{6|
00002860: A5 28 01 3A 25 5B 36 7B  36 A5 28 01 88 27 5B 38  |.(.:%[6{6.(..'[8|
00002870: 97 35 D5 35 06 23 27 E6  37 2E 36 A5 28 06 3A 25  |.5.5.#'.7.6.(.:%|
00002880: 5B 36 7B 36 A5 28 01 5F  27 5B 38 A4 35 C8 35 05  |[6{6.(._'[8.5.5.|
00002890: 3B 27 4C 38 A0 36 2E 36  09 3A 25 5B 36 7B 36 A5  |;'L8.6.6.:%[6{6.|
000028A0: 28 01 3A 25 5B 36 7B 36  A5 28 01 5F 27 5B 38 A4  |(.:%[6{6.(._'[8.|
000028B0: 35 D5 35 04 3B 27 4C 38  A0 36 2E 36 04 BA 27 2B  |5.5.;'L8.6.6..'+|
000028C0: 38 2E 36 A5 28 04 3A 25  5B 36 7B 36 A5 28 01 35  |8.6.(.:%[6{6.(.5|
000028D0: 27 2B 38 A4 35 A5 28 01  3B 27 4C 38 A0 36 44 38  |'+8.5.(.;'L8.6D8|
000028E0: 05 0D 27 1E 38 A5 28 A5  28 01 3A 25 5B 36 7B 36  |..'.8.(.(.:%[6{6|
000028F0: A5 28 01 5F 27 5B 38 A4  35 D5 35 03 3B 27 4C 38  |.(._'[8.5.5.;'L8|
00002900: A0 36 2E 36 03 BA 27 2B  38 2E 36 A5 28 03 3A 25  |.6.6..'+8.6.(.:%|
00002910: 5B 36 7B 36 A5 28 01 D5  27 90 38 7C 38 A5 28 0D  |[6{6.(..'.8|8.(.|
00002920: 3B 27 4C 38 A0 36 2E 36  08 3A 25 5B 36 7B 36 A5  |;'L8.6.6.:%[6{6.|
00002930: 28 01 3A 25 5B 36 7B 36  A5 28 01 3A 25 5B 36 7B  |(.:%[6{6.(.:%[6{|
00002940: 36 A5 28 01 3B 27 4C 38  A0 36 2E 36 0A BA 27 2B  |6.(.;'L8.6.6..'+|
00002950: 38 2E 36 A5 28 0A 3A 25  5B 36 7B 36 A5 28 01 0E  |8.6.(.:%[6{6.(..|
00002960: 27 2B 37 36 38 A7 36 01  3B 27 4C 38 A0 36 2E 36  |'+768.6.;'L8.6.6|
00002970: 07 3A 25 5B 36 7B 36 A5  28 01 3A 25 5B 36 7B 36  |.:%[6{6.(.:%[6{6|
00002980: A5 28 01 3A 25 5B 36 7B  36 A5 28 01 3B 27 4C 38  |.(.:%[6{6.(.;'L8|
00002990: A0 36 2E 36 06 BA 27 2B  38 2E 36 A5 28 06 3A 25  |.6.6..'+8.6.(.:%|
000029A0: 5B 36 7B 36 A5 28 01 8D  66 C0 48 8A 48 98 48 A5  |[6{6.(..f.H.H.H.|
000029B0: 01 29 FB 85 01 78 AD 64  C0 F0 03 4C 77 33 AD 66  |.)...x.d...Lw3.f|
000029C0: C0 C9 9C D0 0D A9 00 8D  6B C0 A9 01 8D 6A C0 4C  |........k....j.L|
000029D0: 88 34 C9 9D D0 09 AD 6A  C0 8D 6B C0 4C 88 34 C9  |.4.....j..k.L.4.|
000029E0: 0C D0 03 4C 0F 33 C9 1F  D0 08 A9 02 8D 64 C0 4C  |...L.3.......d.L|
000029F0: 03 33 C9 0D D0 18 A9 00  8D 65 C0 8D 6B C0 A9 01  |.3.......e..k...|
00002A00: 8D 6A C0 A5 24 85 29 A5  25 85 2A 4C 03 33 C9 0A  |.j..$.).%.*L.3..|
00002A10: D0 03 4C AE 32 C9 14 D0  27 38 CE 65 C0 A5 29 E9  |..L.2...'8.e..).|
00002A20: 08 85 29 A5 2A E9 00 85  2A A0 07 A9 00 91 29 88  |..).*...*.....).|
00002A30: 10 FB A9 20 AC 65 C0 91  22 A9 10 91 20 4C 03 33  |... .e.."... L.3|
00002A40: C9 7B 90 0F 38 E9 81 AA  BD AC 34 8D 6A C0 A9 20  |.{..8.....4.j.. |
00002A50: 4C 61 32 C9 5F D0 05 A9  1F 4C 61 32 C9 61 90 02  |La2._....La2.a..|
00002A60: E9 60 8D 63 C0 AD 66 C0  AC 65 C0 91 22 A9 00 85  |.`.c..f..e.."...|
00002A70: 26 85 27 AE 63 C0 E0 00  F0 11 18 A5 26 69 08 85  |&.'.c.......&i..|
00002A80: 26 A5 27 69 00 85 27 CA  4C 75 32 A0 00 18 A5 27  |&.'i..'.Lu2....'|
00002A90: 69 D8 85 27 B1 26 91 29  C8 C0 08 D0 F7 AD 6A C0  |i..'.&.)......j.|
00002AA0: 0A 0A 0A 0A 0D 6B C0 AC  65 C0 91 20 4C E9 32 18  |.....k..e.. L.2.|
00002AB0: A5 24 69 40 85 29 85 24  A5 25 69 01 85 2A 85 25  |.$i@.).$.%i..*.%|
00002AC0: A9 00 8D 6B C0 8D 65 C0  A9 01 8D 6A C0 18 A5 20  |...k..e....j... |
00002AD0: 69 28 85 20 A5 21 69 00  85 21 18 A5 22 69 28 85  |i(. .!i..!.."i(.|
00002AE0: 22 A5 23 69 00 85 23 4C  03 33 EE 65 C0 18 A5 29  |".#i..#L.3.e...)|
00002AF0: 69 08 85 29 A5 2A 69 00  85 2A AD 65 C0 C9 28 D0  |i..).*i..*.e..(.|
00002B00: 03 4C AE 32 A5 01 09 04  85 01 68 A8 68 AA 68 60  |.L.2......h.h.h`|
00002B10: A0 00 A9 00 85 29 A9 A0  85 2A A9 00 91 29 C8 D0  |.....)...*...)..|
00002B20: F9 E6 2A A5 2A C9 C0 D0  F1 A9 00 85 20 A9 8C 85  |..*.*....... ...|
00002B30: 21 A9 04 85 23 A0 00 84  22 A9 10 91 20 A9 20 91  |!...#..."... . .|
00002B40: 22 C8 D0 F5 E6 21 E6 23  A5 21 C9 91 D0 EB A9 01  |"....!.#.!......|
00002B50: 8D 6A C0 A9 00 8D 6B C0  A9 8C 85 21 A9 00 8D 65  |.j....k....!...e|
00002B60: C0 A9 A0 85 2A A9 00 85  24 A9 A0 85 25 A9 00 85  |....*...$...%...|
00002B70: 22 A9 04 85 23 4C 03 33  C9 01 F0 40 AE 66 C0 A0  |"...#L.3...@.f..|
00002B80: 00 A9 00 85 29 85 24 A9  A0 85 2A 85 25 A9 00 85  |....).$...*.%...|
00002B90: 22 A9 04 85 23 A9 00 85  20 A9 8C 85 21 E0 00 F0  |"...#... ...!...|
00002BA0: 12 18 A5 29 69 08 85 29  A5 2A 69 00 85 2A C8 CA  |...)i..).*i..*..|
00002BB0: 4C 9C 33 8C 65 C0 CE 64  C0 4C 03 33 AD 66 C0 F0  |L.3.e..d.L.3.f..|
00002BC0: 38 CE 66 C0 18 A5 29 69  40 85 29 A5 2A 69 01 85  |8.f...)i@.).*i..|
00002BD0: 2A A5 20 69 28 85 20 A5  21 69 00 85 21 18 A5 22  |*. i(. .!i..!.."|
00002BE0: 69 28 85 22 A5 23 69 00  85 23 A5 24 69 40 85 24  |i(.".#i..#.$i@.$|
00002BF0: A5 25 69 01 85 25 4C BB  33 CE 64 C0 A9 00 8D 6B  |.%i..%L.3.d....k|
00002C00: C0 A9 01 8D 6A C0 AD F0  02 D0 03 20 BB 34 4C 03  |....j...... .4L.|
00002C10: 33 8D 66 C0 48 8A 48 98  48 AD 66 C0 C9 0D F0 03  |3.f.H.H.H.f.....|
00002C20: 4C AE 31 4C AE 32 8A 48  98 48 20 9F FF 20 E4 FF  |L.1L.2.H.H .. ..|
00002C30: 78 F0 F7 20 5D 34 8D 66  C0 AD 68 C0 0D 67 C0 0D  |x.. ]4.f..h..g..|
00002C40: 69 C0 F0 05 A9 00 8D 66  C0 A0 3C 88 F0 08 A2 FF  |i......f..<.....|
00002C50: CA D0 FD 4C 4A 34 68 A8  68 AA AD 66 C0 60 48 A9  |...LJ4h.h..f.`H.|
00002C60: 00 8D 68 C0 8D 67 C0 8D  69 C0 68 C9 85 D0 06 A9  |..h..g..i.h.....|
00002C70: 01 8D 68 C0 60 C9 86 D0  06 A9 01 8D 69 C0 60 C9  |..h.`.......i.`.|
00002C80: 87 D0 05 A9 01 8D 67 C0  60 AC 65 C0 B1 20 29 F0  |......g.`.e.. ).|
00002C90: 0D 6B C0 91 20 C8 C0 28  D0 F2 A9 20 4C 61 32 C9  |.k.. ..(... La2.|
00002CA0: 87 F0 01 60 AC 65 C0 B1  22 AA A9 87 60 02 05 07  |...`.e.."...`...|
00002CB0: 06 04 03 01 08 09 0A 0B  0C 0D 0E 0F A9 00 85 76  |...............v|
00002CC0: A9 8C 85 77 A2 12 A0 14  B1 76 29 0F C9 04 F0 18  |...w.....v).....|
00002CD0: C8 C0 28 D0 F3 18 A5 76  69 28 85 76 A5 77 69 00  |..(....vi(.v.wi.|
00002CE0: 85 77 CA D0 E3 4C EE 34  A9 10 91 76 4C CF 34 AC  |.w...L.4...vL.4.|
00002CF0: 65 C0 B1 20 29 F0 09 04  91 20 60 AC 5A C0 AD 13  |e.. ).... `.Z...|
00002D00: C0 91 0E EE 5A C0 60 A9  1F 20 A6 31 A9 00 20 A6  |....Z.`.. .1.. .|
00002D10: 31 20 A6 31 A2 28 A9 20  20 A6 31 CA 10 F8 A9 01  |1 .1.(.  .1.....|
00002D20: 8D 02 C0 A9 1F 20 A6 31  A9 00 20 A6 31 AD 02 C0  |..... .1.. .1...|
00002D30: 20 A6 31 A2 13 A9 20 20  A6 31 CA 10 F8 EE 02 C0  | .1...  .1......|
00002D40: AD 02 C0 C9 12 D0 DC A9  1F 20 A6 31 A9 00 20 A6  |......... .1.. .|
00002D50: 31 A9 11 20 A6 31 A2 C8  A9 20 20 A6 31 CA D0 F8  |1.. .1...  .1...|
00002D60: 20 2D 1A 60 A9 77 85 12  A9 35 85 13 20 C0 22 20  | -.`.w...5.. ." |
00002D70: 57 10 20 25 34 4C 4E 0C  1F 00 12 45 4E 44 20 4F  |W. %4LN....END O|
00002D80: 46 20 50 52 4F 47 52 41  4D 20 2D 20 50 52 45 53  |F PROGRAM - PRES|
00002D90: 53 20 41 20 4B 45 59 FF  61 63 63 75 6D 75 6C 61  |S A KEY.accumula|
00002DA0: 74 6F 72 20 FF 58 20 72  65 67 69 73 74 65 72 20  |tor .X register |
00002DB0: FF 59 20 72 65 67 69 73  74 65 72 20 FF 4C 6F 67  |.Y register .Log|
00002DC0: 69 63 61 6C 20 4F 52 20  FF 77 69 74 68 20 6E 75  |ical OR .with nu|
00002DD0: 6D 62 65 72 20 FF 77 69  74 68 20 6D 65 6D 6F 72  |mber .with memor|
00002DE0: 79 20 6C 6F 63 61 74 69  6F 6E FF 41 72 69 74 68  |y location.Arith|
00002DF0: 6D 65 74 69 63 20 73 68  69 66 74 20 6C 65 66 74  |metic shift left|
00002E00: 20 FF 50 75 73 68 20 FF  70 72 6F 63 65 73 73 6F  | .Push .processo|
00002E10: 72 20 73 74 61 74 75 73  20 72 65 67 69 73 74 65  |r status registe|
00002E20: 72 0D FF 6F 6E 74 6F 20  73 74 61 63 6B 20 FF 6D  |r..onto stack .m|
00002E30: 65 6D 6F 72 79 20 6C 6F  63 61 74 69 6F 6E 20 FF  |emory location .|
00002E40: 42 72 65 61 6B 20 2D 20  77 69 6C 6C 20 73 74 6F  |Break - will sto|
00002E50: 70 20 65 78 65 63 75 74  69 6F 6E FF 4E 6F 74 20  |p execution.Not |
00002E60: 61 20 76 61 6C 69 64 20  69 6E 73 74 72 75 63 74  |a valid instruct|
00002E70: 69 6F 6E 20 6F 70 2D 63  6F 64 65 FF 0D 50 52 45  |ion op-code..PRE|
00002E80: 53 53 20 52 45 54 55 52  4E 20 4B 45 59 20 54 4F  |SS RETURN KEY TO|
00002E90: 20 43 4F 4E 54 49 4E 55  45 FF 63 6C 65 61 72 20  | CONTINUE.clear |
00002EA0: FF 63 61 72 72 79 20 FF  66 6C 61 67 20 FF 72 69  |.carry .flag .ri|
00002EB0: 67 68 74 20 FF 6C 65 66  74 20 FF 52 6F 74 61 74  |ght .left .Rotat|
00002EC0: 65 20 FF 4C 6F 67 69 63  61 6C 20 41 4E 44 20 61  |e .Logical AND a|
00002ED0: 63 63 75 6D 75 6C 61 74  6F 72 20 FF 54 65 73 74  |ccumulator .Test|
00002EE0: 20 42 49 54 73 20 6F 66  20 61 63 63 75 6D 75 6C  | BITs of accumul|
00002EF0: 61 74 6F 72 20 61 67 61  69 6E 73 74 20 FF 66 72  |ator against .fr|
00002F00: 6F 6D 20 73 74 61 63 6B  FF 50 75 6C 6C 20 FF 4C  |om stack.Pull .L|
00002F10: 6F 67 69 63 61 6C 20 73  68 69 66 74 20 FF 45 78  |ogical shift .Ex|
00002F20: 63 6C 75 73 69 76 65 20  4F 52 20 FF 73 65 74 20  |clusive OR .set |
00002F30: FF 77 69 74 68 20 6D 65  6D 6F 72 79 0D 6C 6F 63  |.with memory.loc|
00002F40: 61 74 69 6F 6E FF 41 64  64 20 77 69 74 68 20 FF  |ation.Add with .|
00002F50: 69 6E 74 65 72 72 75 70  74 20 64 69 73 61 62 6C  |interrupt disabl|
00002F60: 65 20 FF 54 72 61 6E 73  66 65 72 20 FF 53 74 6F  |e .Transfer .Sto|
00002F70: 72 65 20 FF 61 74 20 6D  65 6D 6F 72 79 20 6C 6F  |re .at memory lo|
00002F80: 63 61 74 69 6F 6E FF 74  6F 20 73 74 61 63 6B 20  |cation.to stack |
00002F90: 70 6F 69 6E 74 65 72 FF  74 6F 20 61 63 63 75 6D  |pointer.to accum|
00002FA0: 75 6C 61 74 6F 72 FF 4A  75 6D 70 20 74 6F 20 73  |ulator.Jump to s|
00002FB0: 75 62 72 6F 75 74 69 6E  65 FF 4A 75 6D 70 20 2D  |ubroutine.Jump -|
00002FC0: 20 4C 6F 61 64 20 70 72  6F 67 72 61 6D 20 63 6F  | Load program co|
00002FD0: 75 6E 74 65 72 20 77 69  74 68 20 6E 65 77 0D 61  |unter with new.a|
00002FE0: 64 64 72 65 73 73 FF 44  65 63 72 65 6D 65 6E 74  |ddress.Decrement|
00002FF0: 20 FF 4C 6F 61 64 20 FF  73 74 61 63 6B 20 70 6F  | .Load .stack po|
00003000: 69 6E 74 65 72 20 FF 74  6F 20 58 20 72 65 67 69  |inter .to X regi|
00003010: 73 74 65 72 FF 6F 76 65  72 66 6C 6F 77 20 FF 4E  |ster.overflow .N|
00003020: 6F 20 6F 70 65 72 61 74  69 6F 6E FF 49 6E 63 72  |o operation.Incr|
00003030: 65 6D 65 6E 74 20 FF 64  65 63 69 6D 61 6C 20 6D  |ement .decimal m|
00003040: 6F 64 65 20 FF 6E 75 6D  62 65 72 20 FF 53 75 62  |ode .number .Sub|
00003050: 74 72 61 63 74 20 77 69  74 68 20 FF 43 6F 6D 70  |tract with .Comp|
00003060: 61 72 65 20 FF 6E 6F 74  20 65 71 75 61 6C 20 74  |are .not equal t|
00003070: 6F 20 7A 65 72 6F 20 28  5A 3D 30 29 FF 65 71 75  |o zero (Z=0).equ|
00003080: 61 6C 20 74 6F 20 7A 65  72 6F 20 28 5A 3D 31 29  |al to zero (Z=1)|
00003090: FF 42 72 61 6E 63 68 20  69 66 20 FF 70 6F 73 69  |.Branch if .posi|
000030A0: 74 69 76 65 20 28 4E 3D  30 29 FF 6D 69 6E 75 73  |tive (N=0).minus|
000030B0: 20 28 4E 3D 31 29 FF 52  65 74 75 72 6E 20 66 72  | (N=1).Return fr|
000030C0: 6F 6D 20 73 75 62 72 6F  75 74 69 6E 65 FF 74 6F  |om subroutine.to|
000030D0: 20 59 20 72 65 67 69 73  74 65 72 FF 73 65 74 20  | Y register.set |
000030E0: 28 43 3D 31 29 FF 63 6C  65 61 72 20 28 43 3D 30  |(C=1).clear (C=0|
000030F0: 29 FF 6F 76 65 72 66 6C  6F 77 20 66 6C 61 67 20  |).overflow flag |
00003100: 63 6C 65 61 72 20 28 56  3D 30 29 FF 6F 76 65 72  |clear (V=0).over|
00003110: 66 6C 6F 77 20 66 6C 61  67 20 73 65 74 20 28 56  |flow flag set (V|
00003120: 3D 31 29 FF 00 A9 01 8D  02 C0 A9 14 8D 0B C0 A9  |=1).............|
00003130: 00 8D 14 C0 4C 4E 39 A9  1F 20 A6 31 AD 0B C0 20  |....LN9.. .1... |
00003140: A6 31 AD 02 C0 20 A6 31  A9 87 20 9E 34 8A 60 20  |.1... .1.. .4.` |
00003150: 36 39 AE 14 C0 9D 51 C0  EE 14 C0 EE 0B C0 AD 14  |69....Q.........|
00003160: C0 C9 06 D0 EA AD 51 C0  C9 20 D0 03 4C AA 39 A9  |......Q.. ..L.9.|
00003170: 01 8D 63 C0 A9 14 8D 0B  C0 A9 00 8D 14 C0 AD 63  |..c............c|
00003180: C0 CD 02 C0 F0 1B 20 00  3A AE 14 C0 DD 51 C0 D0  |...... .:....Q..|
00003190: 10 EE 14 C0 EE 0B C0 AD  14 C0 C9 06 D0 E8 4C B8  |..............L.|
000031A0: 39 EE 63 C0 AD 63 C0 C9  11 D0 C9 EE 02 C0 AD 02  |9.c..c..........|
000031B0: C0 C9 11 F0 03 4C 29 39  60 A9 DD 85 12 A9 39 85  |.....L)9`.....9.|
000031C0: 13 20 57 10 A2 00 BD 51  C0 20 A6 31 E8 E0 06 D0  |. W....Q. .1....|
000031D0: F5 A9 22 20 A6 31 20 25  34 68 68 4C 4E 0C 1F 00  |.." .1 %4hhLN...|
000031E0: 12 45 52 52 4F 52 20 2D  20 44 55 50 4C 49 43 41  |.ERROR - DUPLICA|
000031F0: 54 45 20 4C 41 42 45 4C  20 46 4F 55 4E 44 20 22  |TE LABEL FOUND "|
00003200: FF A9 1F 20 A6 31 AD 0B  C0 20 A6 31 AD 63 C0 20  |... .1... .1.c. |
00003210: A6 31 A9 87 20 9E 34 8A  60 A9 1F 20 A6 31 A9 1A  |.1.. .4.`.. .1..|
00003220: 20 A6 31 AD 28 C0 20 A6  31 A9 87 20 9E 34 E0 20  | .1.(. .1.. .4. |
00003230: F0 03 4C CC 3B A2 03 BD  15 C0 C9 20 F0 1B 4C 47  |..L.;...... ..LG|
00003240: 3B AD 15 C0 C9 42 F0 07  C9 4A F0 03 4C A6 3A E8  |;....B...J..L.:.|
00003250: BD 15 C0 C9 20 D0 F8 F0  4E E8 BD 15 C0 E0 05 F0  |.... ...N.......|
00003260: 08 C9 20 F0 42 C9 41 B0  D8 C9 24 F0 13 E0 05 F0  |.. .B.A...$.....|
00003270: 08 C9 28 F0 41 C9 23 F0  E0 C9 30 B0 06 4C 1D 3B  |..(.A.#...0..L.;|
00003280: 4C 22 3B C9 3A B0 F6 E8  E0 0D F0 F1 BD 15 C0 C9  |L";.:...........|
00003290: 20 F0 14 C9 2C F0 0F C9  30 B0 03 4C 1D 3B C9 3A  | ...,...0..L.;.:|
000032A0: B0 DB 4C 86 3A 60 E8 E8  E0 0D F0 F9 BD 15 C0 C9  |..L.:`..........|
000032B0: 20 F0 F4 4C 1D 3B E8 BD  15 C0 C9 29 F0 0B C9 28  | ..L.;.....)...(|
000032C0: F0 BB E0 0C D0 F0 4C 1D  3B E8 BD 15 C0 C9 29 F0  |......L.;.....).|
000032D0: AC C9 28 F0 A8 E0 0C D0  F0 A2 05 BD 15 C0 C9 24  |..(............$|
000032E0: F0 1D BD 15 C0 C9 29 F0  0F C9 2C F0 0B C9 30 90  |......)...,...0.|
000032F0: 0B C9 3A B0 07 E8 D0 EA  E8 4C A5 3A 4C 1D 3B E8  |..:......L.:L.;.|
00003300: BD 15 C0 C9 29 F0 F1 C9  2C F0 ED C9 30 90 ED C9  |....)...,...0...|
00003310: 47 B0 E9 C9 41 B0 E8 C9  3A B0 E1 4C FE 3A 68 68  |G...A...:..L.:hh|
00003320: 4C 9D 14 E8 BD 15 C0 C9  20 F0 17 C9 2C F0 16 C9  |L....... ...,...|
00003330: 30 90 C9 C9 3A 90 EC C9  41 90 C1 C9 47 B0 BD 4C  |0...:...A...G..L|
00003340: 22 3B 4C A6 3A 4C A5 3A  A9 55 85 12 A9 3B 85 13  |";L.:L.:.U...;..|
00003350: 20 57 10 4C D7 3B 1F 00  12 54 48 45 52 45 20 53  | W.L.;...THERE S|
00003360: 48 4F 55 4C 44 20 42 45  20 41 20 53 50 41 43 45  |HOULD BE A SPACE|
00003370: 20 42 45 54 57 45 45 4E  20 54 48 45 0D 0A 4D 4E  | BETWEEN THE..MN|
00003380: 45 4D 4F 4E 49 43 20 41  4E 44 20 4F 50 45 52 41  |EMONIC AND OPERA|
00003390: 4E 44 2E 20 54 48 45 20  48 49 47 48 4C 49 47 48  |ND. THE HIGHLIGH|
000033A0: 54 45 44 0D 0A 4C 49 4E  45 20 49 4E 44 49 43 41  |TED..LINE INDICA|
000033B0: 54 45 53 20 57 48 49 43  48 20 4C 49 4E 45 20 48  |TES WHICH LINE H|
000033C0: 41 53 20 41 4E 20 45 52  52 4F 52 2E FF A9 03 85  |AS AN ERROR.....|
000033D0: 12 A9 3C 85 13 20 57 10  A9 1F 20 A6 31 A9 10 20  |..<.. W... .1.. |
000033E0: A6 31 AD 28 C0 20 A6 31  A9 88 20 A6 31 A9 81 20  |.1.(. .1.. .1.. |
000033F0: A6 31 A9 9D 20 A6 31 A9  87 20 A6 31 20 25 34 68  |.1.. .1.. .1 %4h|
00003400: 68 4C 4E 0C 1F 00 12 41  20 4C 41 42 45 4C 20 53  |hLN....A LABEL S|
00003410: 48 4F 55 4C 44 20 4F 4E  4C 59 20 42 45 20 55 50  |HOULD ONLY BE UP|
00003420: 54 4F 20 53 49 58 20 4C  45 54 54 45 52 53 20 4C  |TO SIX LETTERS L|
00003430: 4F 4E 47 2E 20 54 48 45  20 48 49 47 48 4C 49 47  |ONG. THE HIGHLIG|
00003440: 48 54 45 44 20 4C 49 4E  45 20 49 4E 44 49 43 41  |HTED LINE INDICA|
00003450: 54 45 53 20 54 48 45 4C  49 4E 45 20 57 48 49 43  |TES THELINE WHIC|
00003460: 48 20 48 41 53 20 41 20  4C 41 42 45 4C 20 54 4F  |H HAS A LABEL TO|
00003470: 4F 20 4C 4F 4E 47 2E FF  0E 94 3C BB 3C DE 3C 01  |O LONG....<.<.<.|
00003480: 3D 24 3D 41 3D 64 3D 87  3D A7 3D CA 3D F3 3D 16  |=$=A=d=.=.=.=.=.|
00003490: 3E 39 3E 62 3E 01 20 20  20 4C 65 73 73 6F 6E 20  |>9>b>.   Lesson |
000034A0: 31 34 20 2D 20 42 72 61  6E 63 68 65 73 20 61 6E  |14 - Branches an|
000034B0: 64 20 6A 75 6D 70 73 0D  0A FF 85 3E 02 20 20 20  |d jumps....>.   |
000034C0: 20 20 45 78 65 72 63 69  73 65 20 31 20 66 6F 72  |  Exercise 1 for|
000034D0: 20 6C 65 73 73 6F 6E 20  31 34 0D 0A FF A9 44 02  | lesson 14....D.|
000034E0: 20 20 20 20 20 45 78 65  72 63 69 73 65 20 32 20  |     Exercise 2 |
000034F0: 66 6F 72 20 6C 65 73 73  6F 6E 20 31 34 0D 0A FF  |for lesson 14...|
00003500: ED 44 02 20 20 20 20 20  45 78 65 72 63 69 73 65  |.D.     Exercise|
00003510: 20 33 20 66 6F 72 20 6C  65 73 73 6F 6E 20 31 34  | 3 for lesson 14|
00003520: 0D 0A FF 67 45 01 20 20  20 4C 65 73 73 6F 6E 20  |...gE.   Lesson |
00003530: 31 35 20 2D 20 43 6F 6D  70 61 72 65 73 0D 0A FF  |15 - Compares...|
00003540: 2A 46 02 20 20 20 20 20  45 78 65 72 63 69 73 65  |*F.     Exercise|
00003550: 20 31 20 66 6F 72 20 6C  65 73 73 6F 6E 20 31 35  | 1 for lesson 15|
00003560: 0D 0A FF EF 4D 02 20 20  20 20 20 45 78 65 72 63  |....M.     Exerc|
00003570: 69 73 65 20 32 20 66 6F  72 20 6C 65 73 73 6F 6E  |ise 2 for lesson|
00003580: 20 31 35 0D 0A FF D7 4E  01 20 20 20 4C 65 73 73  | 15....N.   Less|
00003590: 6F 6E 20 31 36 20 2D 20  53 75 62 72 6F 75 74 69  |on 16 - Subrouti|
000035A0: 6E 65 73 0D 0A FF AE 4F  02 20 20 20 20 20 45 78  |nes....O.     Ex|
000035B0: 65 72 63 69 73 65 20 31  20 66 6F 72 20 6C 65 73  |ercise 1 for les|
000035C0: 73 6F 6E 20 31 36 0D 0A  FF 7C 51 01 20 20 20 4C  |son 16...|Q.   L|
000035D0: 65 73 73 6F 6E 20 31 37  20 2D 20 48 65 78 61 64  |esson 17 - Hexad|
000035E0: 65 63 69 6D 61 6C 20 6E  6F 74 61 74 69 6F 6E 0D  |ecimal notation.|
000035F0: 0A FF 1E 52 02 20 20 20  20 20 45 78 65 72 63 69  |...R.     Exerci|
00003600: 73 65 20 31 20 66 6F 72  20 6C 65 73 73 6F 6E 20  |se 1 for lesson |
00003610: 31 37 0D 0A FF 4A 63 02  20 20 20 20 20 45 78 65  |17...Jc.     Exe|
00003620: 72 63 69 73 65 20 32 20  66 6F 72 20 6C 65 73 73  |rcise 2 for less|
00003630: 6F 6E 20 31 37 0D 0A FF  26 64 01 20 20 20 4C 65  |on 17...&d.   Le|
00003640: 73 73 6F 6E 20 31 38 20  2D 20 42 69 6E 61 72 79  |sson 18 - Binary|
00003650: 20 43 6F 64 65 64 20 44  65 63 69 6D 61 6C 0D 0A  | Coded Decimal..|
00003660: FF B8 64 02 20 20 20 20  20 45 78 65 72 63 69 73  |..d.     Exercis|
00003670: 65 20 31 20 66 6F 72 20  6C 65 73 73 6F 6E 20 31  |e 1 for lesson 1|
00003680: 38 0D 0A FF E1 68 1F 0A  02 42 52 41 4E 43 48 45  |8....h...BRANCHE|
00003690: 53 20 41 4E 44 20 4A 55  4D 50 53 0D 0A 0A 20 4A  |S AND JUMPS... J|
000036A0: 75 6D 70 20 69 6E 73 74  72 75 63 74 69 6F 6E 73  |ump instructions|
000036B0: 20 61 72 65 20 6C 69 6B  65 20 74 68 65 20 47 4F  | are like the GO|
000036C0: 54 4F 0D 0A 73 74 61 74  65 6D 65 6E 74 20 69 6E  |TO..statement in|
000036D0: 20 42 41 53 49 43 2C 20  61 6E 64 20 74 68 65 20  | BASIC, and the |
000036E0: 62 72 61 6E 63 68 0D 0A  69 6E 73 74 72 75 63 74  |branch..instruct|
000036F0: 69 6F 6E 73 20 61 72 65  20 6C 69 6B 65 20 49 46  |ions are like IF|
00003700: 2E 2E 54 48 45 4E 2E 2E  47 4F 54 4F 0D 0A 73 74  |..THEN..GOTO..st|
00003710: 61 74 65 6D 65 6E 74 73  20 69 6E 20 42 41 53 49  |atements in BASI|
00003720: 43 2E 0D 0A 20 50 72 65  76 69 6F 75 73 6C 79 20  |C... Previously |
00003730: 79 6F 75 20 68 61 76 65  20 62 65 65 6E 20 70 72  |you have been pr|
00003740: 65 73 73 69 6E 67 20 74  68 65 0D 0A 73 70 61 63  |essing the..spac|
00003750: 65 20 62 61 72 20 62 65  66 6F 72 65 20 74 79 70  |e bar before typ|
00003760: 69 6E 67 20 69 6E 20 61  20 70 72 6F 67 72 61 6D  |ing in a program|
00003770: 0D 0A 6C 69 6E 65 2E 20  59 6F 75 20 68 61 76 65  |..line. You have|
00003780: 20 62 65 65 6E 20 73 6B  69 70 70 69 6E 67 20 74  | been skipping t|
00003790: 68 65 20 4C 41 42 45 4C  0D 0A 46 49 45 4C 44 20  |he LABEL..FIELD |
000037A0: 65 61 63 68 20 74 69 6D  65 20 79 6F 75 20 68 61  |each time you ha|
000037B0: 76 65 20 64 6F 6E 65 20  73 6F 2E 20 49 66 20 79  |ve done so. If y|
000037C0: 6F 75 77 61 6E 74 20 74  6F 20 75 73 65 20 61 20  |ouwant to use a |
000037D0: 6A 75 6D 70 20 6F 72 20  61 20 62 72 61 6E 63 68  |jump or a branch|
000037E0: 20 74 6F 20 61 20 6C 69  6E 65 64 6F 20 4E 4F 54  | to a linedo NOT|
000037F0: 20 70 72 65 73 73 20 74  68 65 20 73 70 61 63 65  | press the space|
00003800: 20 62 61 72 20 61 74 20  74 68 65 20 73 74 61 72  | bar at the star|
00003810: 74 20 6F 66 20 74 68 65  20 6C 69 6E 65 2C 20 62  |t of the line, b|
00003820: 75 74 20 74 79 70 65 20  69 6E 20 61 20 6C 61 62  |ut type in a lab|
00003830: 65 6C 20 6F 66 20 75 70  0D 0A 74 6F 20 36 20 63  |el of up..to 6 c|
00003840: 68 61 72 61 63 74 65 72  73 20 6C 6F 6E 67 20 61  |haracters long a|
00003850: 6E 64 20 74 68 65 6E 20  70 72 65 73 73 20 74 68  |nd then press th|
00003860: 65 20 73 70 61 63 65 20  62 61 72 2E 20 41 20 6C  |e space bar. A l|
00003870: 61 62 65 6C 20 63 61 6E  20 74 68 65 6E 20 62 65  |abel can then be|
00003880: 20 75 73 65 64 20 62 79  0D 0A 61 20 70 72 6F 67  | used by..a prog|
00003890: 72 61 6D 20 66 6F 72 20  6A 75 6D 70 73 20 61 6E  |ram for jumps an|
000038A0: 64 20 62 72 61 6E 63 68  65 73 2E 20 45 61 63 68  |d branches. Each|
000038B0: 0D 0A 6A 75 6D 70 20 61  6E 64 20 62 72 61 6E 63  |..jump and branc|
000038C0: 68 20 77 69 6C 6C 20 6E  6F 77 20 62 65 20 64 65  |h will now be de|
000038D0: 73 63 72 69 62 65 64 2E  FE 1F 0A 02 42 52 41 4E  |scribed.....BRAN|
000038E0: 43 48 45 53 20 41 4E 44  20 4A 55 4D 50 53 0D 0A  |CHES AND JUMPS..|
000038F0: 0A 82 4A 4D 50 87 2D 20  4A 55 4D 50 20 28 55 4E  |..JMP.- JUMP (UN|
00003900: 43 4F 4E 44 49 54 49 4F  4E 41 4C 29 0D 0A 0A 83  |CONDITIONAL)....|
00003910: 42 45 51 87 2D 20 42 52  41 4E 43 48 20 49 46 20  |BEQ.- BRANCH IF |
00003920: 5A 45 52 4F 20 46 4C 41  47 20 53 45 54 0D 0A 0A  |ZERO FLAG SET...|
00003930: 81 42 4E 45 87 2D 20 42  52 41 4E 43 48 20 49 46  |.BNE.- BRANCH IF|
00003940: 20 5A 45 52 4F 20 46 4C  41 47 20 43 4C 45 41 52  | ZERO FLAG CLEAR|
00003950: 0D 0A 0A 86 42 43 53 87  2D 20 42 52 41 4E 43 48  |....BCS.- BRANCH|
00003960: 20 49 46 20 43 41 52 52  59 20 46 4C 41 47 20 53  | IF CARRY FLAG S|
00003970: 45 54 0D 0A 0A 85 42 43  43 87 2D 20 42 52 41 4E  |ET....BCC.- BRAN|
00003980: 43 48 20 49 46 20 43 41  52 52 59 20 46 4C 41 47  |CH IF CARRY FLAG|
00003990: 20 43 4C 45 41 52 0D 0A  0A 84 42 56 53 87 2D 20  | CLEAR....BVS.- |
000039A0: 42 52 41 4E 43 48 20 49  46 20 4F 56 45 52 46 4C  |BRANCH IF OVERFL|
000039B0: 4F 57 20 46 4C 41 47 20  53 45 54 0D 0A 0A 82 42  |OW FLAG SET....B|
000039C0: 56 43 87 2D 20 42 52 41  4E 43 48 20 49 46 20 4F  |VC.- BRANCH IF O|
000039D0: 56 45 52 46 4C 4F 57 20  46 4C 41 47 20 43 4C 45  |VERFLOW FLAG CLE|
000039E0: 41 52 0D 0A 0A 83 42 4D  49 87 2D 20 42 52 41 4E  |AR....BMI.- BRAN|
000039F0: 43 48 20 49 46 20 4E 45  47 41 54 49 56 45 20 46  |CH IF NEGATIVE F|
00003A00: 4C 41 47 20 53 45 54 0D  0A 0A 81 42 50 4C 87 2D  |LAG SET....BPL.-|
00003A10: 20 42 52 41 4E 43 48 20  49 46 20 4E 45 47 41 54  | BRANCH IF NEGAT|
00003A20: 49 56 45 20 46 4C 41 47  20 43 4C 45 41 52 FE 1F  |IVE FLAG CLEAR..|
00003A30: 08 02 54 48 45 20 44 45  4D 4F 4E 53 54 52 41 54  |..THE DEMONSTRAT|
00003A40: 49 4F 4E 20 50 52 4F 47  52 41 4D 53 0D 0A 0A 81  |ION PROGRAMS....|
00003A50: 45 58 45 52 43 49 53 45  20 31 0D 0A 20 54 68 69  |EXERCISE 1.. Thi|
00003A60: 73 20 69 73 20 61 20 73  69 6D 70 6C 65 20 70 72  |s is a simple pr|
00003A70: 6F 67 72 61 6D 20 74 6F  20 75 73 65 20 74 68 65  |ogram to use the|
00003A80: 0D 0A 58 20 72 65 67 69  73 74 65 72 20 74 6F 20  |..X register to |
00003A90: 63 6F 75 6E 74 20 64 6F  77 6E 20 66 72 6F 6D 20  |count down from |
00003AA0: 31 30 20 74 6F 20 30 2E  0D 0A 42 45 51 20 69 73  |10 to 0...BEQ is|
00003AB0: 20 75 73 65 64 20 74 6F  20 64 65 74 65 63 74 20  | used to detect |
00003AC0: 77 68 65 6E 20 58 20 72  65 61 63 68 65 73 0D 0A  |when X reaches..|
00003AD0: 30 2C 20 61 6E 64 20 4A  4D 50 20 69 73 20 75 73  |0, and JMP is us|
00003AE0: 65 64 20 74 6F 20 6A 75  6D 70 20 72 6F 75 6E 64  |ed to jump round|
00003AF0: 20 61 20 6C 6F 6F 70 20  75 6E 74 69 6C 20 58 20  | a loop until X |
00003B00: 65 71 75 61 6C 73 20 30  2E 0D 0A 86 45 58 45 52  |equals 0....EXER|
00003B10: 43 49 53 45 20 32 0D 0A  20 54 68 69 73 20 70 72  |CISE 2.. This pr|
00003B20: 6F 67 72 61 6D 20 77 69  6C 6C 20 64 69 76 69 64  |ogram will divid|
00003B30: 65 20 35 38 20 62 79 20  35 2E 20 54 68 65 0D 0A  |e 58 by 5. The..|
00003B40: 58 20 72 65 67 69 73 74  65 72 20 68 6F 6C 64 73  |X register holds|
00003B50: 20 74 68 65 20 61 6E 73  77 65 72 2C 20 61 6E 64  | the answer, and|
00003B60: 20 61 74 20 74 68 65 20  65 6E 64 20 74 68 65 20  | at the end the |
00003B70: 59 20 72 65 67 69 73 74  65 72 20 68 6F 6C 64 73  |Y register holds|
00003B80: 20 74 68 65 20 72 65 6D  61 69 6E 64 65 72 2E 20  | the remainder. |
00003B90: 82 45 58 45 52 43 49 53  45 20 33 0D 0A 20 54 68  |.EXERCISE 3.. Th|
00003BA0: 69 73 20 70 72 6F 67 72  61 6D 20 77 69 6C 6C 20  |is program will |
00003BB0: 6D 75 6C 74 69 70 6C 79  20 74 68 65 20 6E 75 6D  |multiply the num|
00003BC0: 62 65 72 20 20 63 6F 6E  74 61 69 6E 65 64 20 69  |ber  contained i|
00003BD0: 6E 20 74 68 65 20 58 20  72 65 67 69 73 74 65 72  |n the X register|
00003BE0: 20 61 74 20 74 68 65 20  73 74 61 72 74 28 69 6E  | at the start(in|
00003BF0: 20 74 68 69 73 20 63 61  73 65 20 35 29 20 62 79  | this case 5) by|
00003C00: 20 74 68 65 20 6E 75 6D  62 65 72 20 69 6E 20 74  | the number in t|
00003C10: 68 65 20 59 0D 0A 72 65  67 69 73 74 65 72 20 61  |he Y..register a|
00003C20: 74 20 74 68 65 20 73 74  61 72 74 20 28 69 6E 20  |t the start (in |
00003C30: 74 68 69 73 20 63 61 73  65 20 36 29 0D 0A 20 59  |this case 6).. Y|
00003C40: 6F 75 20 63 61 6E 20 65  61 73 69 6C 79 20 63 68  |ou can easily ch|
00003C50: 61 6E 67 65 20 74 68 65  20 70 72 6F 67 72 61 6D  |ange the program|
00003C60: 20 74 6F 0D 0A 6D 75 6C  74 69 70 6C 79 20 61 6E  | to..multiply an|
00003C70: 79 20 74 77 6F 20 6E 75  6D 62 65 72 73 20 28 61  |y two numbers (a|
00003C80: 73 20 6C 6F 6E 67 20 61  73 20 74 68 65 61 6E 73  |s long as theans|
00003C90: 77 65 72 20 64 6F 65 73  20 6E 6F 74 20 65 78 63  |wer does not exc|
00003CA0: 65 65 64 20 32 35 35 29  2E FF 20 20 20 20 20 20  |eed 255)..      |
00003CB0: 20 4C 44 58 20 23 31 30  0D 4C 4F 4F 50 20 20 20  | LDX #10.LOOP   |
00003CC0: 44 45 58 0D 20 20 20 20  20 20 20 42 45 51 20 45  |DEX.       BEQ E|
00003CD0: 4E 44 0D 20 20 20 20 20  20 20 4A 4D 50 20 4C 4F  |ND.       JMP LO|
00003CE0: 4F 50 0D 45 4E 44 20 20  20 20 42 52 4B FF 20 20  |OP.END    BRK.  |
00003CF0: 20 20 20 20 20 4C 44 41  20 23 35 38 0D 20 20 20  |     LDA #58.   |
00003D00: 20 20 20 20 53 45 43 0D  41 47 41 49 4E 20 20 53  |    SEC.AGAIN  S|
00003D10: 42 43 20 23 35 0D 20 20  20 20 20 20 20 42 4D 49  |BC #5.       BMI|
00003D20: 20 46 49 4E 49 53 48 0D  20 20 20 20 20 20 20 49  | FINISH.       I|
00003D30: 4E 58 0D 20 20 20 20 20  20 20 4A 4D 50 20 41 47  |NX.       JMP AG|
00003D40: 41 49 4E 0D 46 49 4E 49  53 48 20 41 44 43 20 23  |AIN.FINISH ADC #|
00003D50: 35 0D 20 20 20 20 20 20  20 54 41 59 0D 20 20 20  |5.       TAY.   |
00003D60: 20 20 20 20 42 52 4B FF  20 20 20 20 20 20 20 4C  |    BRK.       L|
00003D70: 44 58 20 23 35 0D 20 20  20 20 20 20 20 4C 44 59  |DX #5.       LDY|
00003D80: 20 23 36 0D 20 20 20 20  20 20 20 4C 44 41 20 23  | #6.       LDA #|
00003D90: 30 0D 20 20 20 20 20 20  20 53 54 41 20 32 30 0D  |0.       STA 20.|
00003DA0: 4C 49 4E 45 31 20 20 54  59 41 0D 20 20 20 20 20  |LINE1  TYA.     |
00003DB0: 20 20 43 4C 43 0D 20 20  20 20 20 20 20 41 44 43  |  CLC.       ADC|
00003DC0: 20 32 30 0D 20 20 20 20  20 20 20 53 54 41 20 32  | 20.       STA 2|
00003DD0: 30 0D 20 20 20 20 20 20  20 44 45 58 0D 20 20 20  |0.       DEX.   |
00003DE0: 20 20 20 20 42 4E 45 20  4C 49 4E 45 31 0D 20 20  |    BNE LINE1.  |
00003DF0: 20 20 20 20 20 4A 4D 50  20 44 55 4D 4D 59 0D 44  |     JMP DUMMY.D|
00003E00: 55 4D 4D 59 32 20 4A 4D  50 20 45 4E 44 0D 44 55  |UMMY2 JMP END.DU|
00003E10: 4D 4D 59 20 20 4A 4D 50  20 44 55 4D 4D 59 32 0D  |MMY  JMP DUMMY2.|
00003E20: 45 4E 44 20 20 20 20 42  52 4B FF 1F 0F 02 43 4F  |END    BRK....CO|
00003E30: 4D 50 41 52 45 53 0D 0A  0A 20 53 6F 20 66 61 72  |MPARES... So far|
00003E40: 20 62 72 61 6E 63 68 65  73 20 68 61 76 65 20 6F  | branches have o|
00003E50: 6E 6C 79 20 62 65 65 6E  20 75 73 65 64 0D 0A 66  |nly been used..f|
00003E60: 6F 72 20 64 65 74 65 63  74 69 6E 67 20 77 68 65  |or detecting whe|
00003E70: 74 68 65 72 20 66 6C 61  67 73 20 61 72 65 20 73  |ther flags are s|
00003E80: 65 74 20 6F 72 0D 0A 63  6C 65 61 72 2E 20 54 68  |et or..clear. Th|
00003E90: 69 73 20 69 73 2C 20 69  6E 20 65 73 73 65 6E 63  |is is, in essenc|
00003EA0: 65 2C 20 61 6C 6C 20 74  68 61 74 0D 0A 62 72 61  |e, all that..bra|
00003EB0: 6E 63 68 65 73 20 63 61  6E 20 64 6F 2C 20 62 75  |nches can do, bu|
00003EC0: 74 20 77 69 74 68 20 63  6F 6D 70 61 72 65 73 2C  |t with compares,|
00003ED0: 20 74 68 65 79 63 61 6E  20 64 6F 20 61 20 6C 6F  | theycan do a lo|
00003EE0: 74 20 6D 6F 72 65 2E 20  41 20 63 6F 6D 70 61 72  |t more. A compar|
00003EF0: 65 20 69 73 20 72 65 61  6C 6C 79 0D 0A 61 20 73  |e is really..a s|
00003F00: 75 62 74 72 61 63 74 69  6F 6E 20 74 68 61 74 20  |ubtraction that |
00003F10: 61 66 66 65 63 74 73 20  74 68 65 20 66 6C 61 67  |affects the flag|
00003F20: 73 20 61 6E 64 6C 65 61  76 65 73 20 74 68 65 20  |s andleaves the |
00003F30: 61 63 63 75 6D 75 6C 61  74 6F 72 20 69 6E 20 69  |accumulator in i|
00003F40: 74 73 20 6F 72 69 67 69  6E 61 6C 0D 0A 63 6F 6E  |ts original..con|
00003F50: 64 69 74 69 6F 6E 2E 20  54 68 65 20 6E 65 67 61  |dition. The nega|
00003F60: 74 69 76 65 2C 20 6F 76  65 72 66 6C 6F 77 2C 20  |tive, overflow, |
00003F70: 7A 65 72 6F 20 61 6E 64  20 63 61 72 72 79 20 66  |zero and carry f|
00003F80: 6C 61 67 73 20 61 72 65  20 61 6C 6C 20 61 66 66  |lags are all aff|
00003F90: 65 63 74 65 64 20 61 66  74 65 72 0D 0A 61 20 63  |ected after..a c|
00003FA0: 6F 6D 70 61 72 65 2C 20  68 6F 77 20 74 68 65 79  |ompare, how they|
00003FB0: 20 61 72 65 20 61 66 66  65 63 74 65 64 20 77 69  | are affected wi|
00003FC0: 6C 6C 20 62 65 64 69 73  63 75 73 73 65 64 20 73  |ll bediscussed s|
00003FD0: 68 6F 72 74 6C 79 2E FE  1F 0F 02 43 4F 4D 50 41  |hortly.....COMPA|
00003FE0: 52 45 53 0D 0A 0A 20 41  73 20 70 72 65 76 69 6F  |RES... As previo|
00003FF0: 75 73 6C 79 20 6D 65 6E  74 69 6F 6E 65 64 2C 20  |usly mentioned, |
00004000: 61 20 63 6F 6D 70 61 72  65 0D 0A 69 73 20 72 65  |a compare..is re|
00004010: 61 6C 6C 79 20 61 20 73  75 62 74 72 61 63 74 69  |ally a subtracti|
00004020: 6F 6E 2C 20 6C 65 61 76  69 6E 67 20 74 68 65 0D  |on, leaving the.|
00004030: 0A 61 63 63 75 6D 75 6C  61 74 6F 72 20 69 6E 74  |.accumulator int|
00004040: 61 63 74 2E 20 54 68 65  72 65 66 6F 72 65 2C 20  |act. Therefore, |
00004050: 61 20 63 6F 6D 70 61 72  65 77 69 6C 6C 20 61 66  |a comparewill af|
00004060: 66 65 63 74 20 74 68 65  20 66 6C 61 67 73 20 69  |fect the flags i|
00004070: 6E 20 65 78 61 63 74 6C  79 20 74 68 65 0D 0A 73  |n exactly the..s|
00004080: 61 6D 65 20 77 61 79 2E  20 57 69 74 68 20 61 20  |ame way. With a |
00004090: 63 6F 6D 70 61 72 65 20  68 6F 77 65 76 65 72 2C  |compare however,|
000040A0: 20 69 74 0D 0A 69 73 20  6E 6F 74 20 6E 65 63 65  | it..is not nece|
000040B0: 73 73 61 72 79 20 74 6F  20 73 65 74 20 74 68 65  |ssary to set the|
000040C0: 20 63 61 72 72 79 20 66  6C 61 67 0D 0A 62 65 66  | carry flag..bef|
000040D0: 6F 72 65 68 61 6E 64 2C  20 61 73 20 69 74 20 69  |orehand, as it i|
000040E0: 73 20 77 69 74 68 20 61  20 73 75 62 74 72 61 63  |s with a subtrac|
000040F0: 74 69 6F 6E 2E 0A 20 59  6F 75 20 6D 61 79 20 70  |tion.. You may p|
00004100: 65 72 66 6F 72 6D 20 61  20 63 6F 6D 70 61 72 65  |erform a compare|
00004110: 20 62 65 74 77 65 65 6E  20 61 6E 79 0D 0A 6F 66  | between any..of|
00004120: 20 74 68 65 20 74 68 72  65 65 20 72 65 67 69 73  | the three regis|
00004130: 74 65 72 73 20 61 6E 64  20 61 20 6D 65 6D 6F 72  |ters and a memor|
00004140: 79 0D 0A 6C 6F 63 61 74  69 6F 6E 20 6F 72 20 61  |y..location or a|
00004150: 6E 20 69 6D 6D 65 64 69  61 74 65 20 6E 75 6D 62  |n immediate numb|
00004160: 65 72 2E 20 54 68 65 0D  0A 69 6E 73 74 72 75 63  |er. The..instruc|
00004170: 74 69 6F 6E 20 43 4D 50  20 69 73 20 75 73 65 64  |tion CMP is used|
00004180: 20 74 6F 20 63 6F 6D 70  61 72 65 20 74 68 65 0D  | to compare the.|
00004190: 0A 61 63 63 75 6D 75 6C  61 74 6F 72 2C 20 61 6E  |.accumulator, an|
000041A0: 64 20 74 68 65 20 69 6E  73 74 72 75 63 74 69 6F  |d the instructio|
000041B0: 6E 73 20 43 50 58 0D 0A  61 6E 64 20 43 50 59 20  |ns CPX..and CPY |
000041C0: 61 72 65 20 75 73 65 64  20 74 6F 20 63 6F 6D 70  |are used to comp|
000041D0: 61 72 65 20 74 68 65 20  58 20 61 6E 64 20 59 20  |are the X and Y |
000041E0: 72 65 67 69 73 74 65 72  73 20 72 65 73 70 65 63  |registers respec|
000041F0: 74 69 76 65 6C 79 2E FE  1F 0F 02 43 4F 4D 50 41  |tively.....COMPA|
00004200: 52 45 53 0D 0A 0A 20 54  68 65 20 7A 65 72 6F 20  |RES... The zero |
00004210: 66 6C 61 67 20 77 69 6C  6C 20 62 65 63 6F 6D 65  |flag will become|
00004220: 20 73 65 74 20 69 66 20  74 68 65 0D 0A 63 6F 6D  | set if the..com|
00004230: 70 61 72 65 20 73 68 6F  75 6C 64 20 70 72 6F 76  |pare should prov|
00004240: 65 20 62 6F 74 68 20 6E  75 6D 62 65 72 73 20 65  |e both numbers e|
00004250: 71 75 61 6C 2C 6F 74 68  65 72 77 69 73 65 20 69  |qual,otherwise i|
00004260: 74 20 77 69 6C 6C 20 62  65 20 63 6C 65 61 72 65  |t will be cleare|
00004270: 64 2E 0D 0A 0A 20 54 68  65 20 63 61 72 72 79 20  |d.... The carry |
00004280: 66 6C 61 67 20 77 69 6C  6C 20 62 65 20 73 65 74  |flag will be set|
00004290: 20 69 66 20 74 68 65 0D  0A 6E 75 6D 62 65 72 20  | if the..number |
000042A0: 73 70 65 63 69 66 69 65  64 20 77 69 74 68 20 74  |specified with t|
000042B0: 68 65 20 63 6F 6D 70 61  72 65 0D 0A 69 73 20 6C  |he compare..is l|
000042C0: 65 73 73 20 74 68 61 6E  20 6F 72 20 65 71 75 61  |ess than or equa|
000042D0: 6C 20 74 6F 20 74 68 65  20 72 65 67 69 73 74 65  |l to the registe|
000042E0: 72 0D 0A 75 73 65 64 20  62 79 20 74 68 65 20 63  |r..used by the c|
000042F0: 6F 6D 70 61 72 65 2E 20  54 68 65 20 63 61 72 72  |ompare. The carr|
00004300: 79 20 66 6C 61 67 20 77  69 6C 6C 62 65 20 63 6C  |y flag willbe cl|
00004310: 65 61 72 65 64 20 6F 74  68 65 72 77 69 73 65 2E  |eared otherwise.|
00004320: 0D 0A 0A 20 54 68 65 20  6E 65 67 61 74 69 76 65  |... The negative|
00004330: 20 66 6C 61 67 20 77 69  6C 6C 20 62 65 20 73 65  | flag will be se|
00004340: 74 20 69 66 20 74 68 65  0D 0A 73 75 62 74 72 61  |t if the..subtra|
00004350: 63 74 69 6F 6E 20 28 63  6F 6D 70 61 72 65 29 20  |ction (compare) |
00004360: 70 72 6F 64 75 63 65 73  20 61 0D 0A 6E 65 67 61  |produces a..nega|
00004370: 74 69 76 65 20 72 65 73  75 6C 74 2C 20 6F 74 68  |tive result, oth|
00004380: 65 72 77 69 73 65 20 69  74 20 77 69 6C 6C 20 62  |erwise it will b|
00004390: 65 0D 0A 63 6C 65 61 72  65 64 2E 0D 0A 0A 20 54  |e..cleared.... T|
000043A0: 68 65 20 6F 76 65 72 66  6C 6F 77 20 66 6C 61 67  |he overflow flag|
000043B0: 20 77 69 6C 6C 20 62 65  20 73 65 74 20 6F 72 0D  | will be set or.|
000043C0: 0A 63 6C 65 61 72 65 64  20 64 65 70 65 6E 64 69  |.cleared dependi|
000043D0: 6E 67 20 6F 6E 20 74 68  65 20 73 75 62 74 72 61  |ng on the subtra|
000043E0: 63 74 69 6F 6E 0D 0A 75  73 69 6E 67 20 74 68 65  |ction..using the|
000043F0: 20 72 75 6C 65 73 20 66  6F 72 20 74 77 6F 27 73  | rules for two's|
00004400: 20 63 6F 6D 70 6C 65 6D  65 6E 74 0D 0A 61 73 20  | complement..as |
00004410: 70 72 65 76 69 6F 75 73  6C 79 20 64 69 73 63 75  |previously discu|
00004420: 73 73 65 64 2E 0D FE 1F  0F 02 43 4F 4D 50 41 52  |ssed......COMPAR|
00004430: 45 53 0D 0A 0A 20 54 68  65 72 65 20 61 72 65 20  |ES... There are |
00004440: 74 77 6F 20 65 78 61 6D  70 6C 65 20 70 72 6F 67  |two example prog|
00004450: 72 61 6D 73 0D 0A 73 68  6F 77 69 6E 67 20 74 68  |rams..showing th|
00004460: 65 20 63 6F 6D 70 61 72  65 20 69 6E 73 74 72 75  |e compare instru|
00004470: 63 74 69 6F 6E 73 20 77  68 65 6E 0D 0A 77 6F 72  |ctions when..wor|
00004480: 6B 69 6E 67 2E 20 4C 6F  6F 6B 20 70 61 72 74 69  |king. Look parti|
00004490: 63 75 6C 61 72 6C 79 20  61 74 20 74 68 65 20 66  |cularly at the f|
000044A0: 6C 61 67 73 2C 61 6E 64  20 68 6F 77 20 74 68 65  |lags,and how the|
000044B0: 79 20 61 72 65 20 61 66  66 65 63 74 65 64 20 62  |y are affected b|
000044C0: 79 20 74 68 65 20 63 6F  6D 70 61 72 65 69 6E 73  |y the compareins|
000044D0: 74 72 75 63 74 69 6F 6E  73 2E 20 54 72 79 20 63  |tructions. Try c|
000044E0: 68 61 6E 67 69 6E 67 20  74 68 65 20 70 72 6F 67  |hanging the prog|
000044F0: 72 61 6D 73 0D 0A 79 6F  75 72 73 65 6C 66 2C 20  |rams..yourself, |
00004500: 74 6F 20 73 65 65 20 77  68 61 74 20 68 61 70 70  |to see what happ|
00004510: 65 6E 73 2E 0D 0A 0A 41  20 53 55 4D 4D 41 52 59  |ens....A SUMMARY|
00004520: 20 4F 46 20 49 4E 53 54  52 55 43 54 49 4F 4E 53  | OF INSTRUCTIONS|
00004530: 3A 0D 0A 0A 83 43 4D 50  87 43 4F 4D 50 41 52 45  |:....CMP.COMPARE|
00004540: 20 41 43 43 55 4D 55 4C  41 54 4F 52 20 57 49 54  | ACCUMULATOR WIT|
00004550: 48 20 4E 55 4D 42 45 52  0D 0A 20 20 20 20 20 4F  |H NUMBER..     O|
00004560: 52 20 4D 45 4D 4F 52 59  20 4C 4F 43 41 54 49 4F  |R MEMORY LOCATIO|
00004570: 4E 0D 0A 0A 81 43 50 58  87 43 4F 4D 50 41 52 45  |N....CPX.COMPARE|
00004580: 20 58 2D 52 45 47 49 53  54 45 52 20 57 49 54 48  | X-REGISTER WITH|
00004590: 20 4E 55 4D 42 45 52 0D  0A 20 20 20 20 20 4F 52  | NUMBER..     OR|
000045A0: 20 4D 45 4D 4F 52 59 20  4C 4F 43 41 54 49 4F 4E  | MEMORY LOCATION|
000045B0: 0D 0A 0A 82 43 50 59 87  43 4F 4D 50 41 52 45 20  |....CPY.COMPARE |
000045C0: 59 2D 52 45 47 49 53 54  45 52 20 57 49 54 48 20  |Y-REGISTER WITH |
000045D0: 4E 55 4D 42 45 52 0D 0A  20 20 20 20 20 4F 52 20  |NUMBER..     OR |
000045E0: 4D 45 4D 4F 52 59 20 4C  4F 43 41 54 49 4F 4E FF  |MEMORY LOCATION.|
000045F0: 53 54 41 52 54 20 20 4C  44 58 20 23 35 30 0D 4C  |START  LDX #50.L|
00004600: 4F 4F 50 31 20 20 44 45  58 0D 20 20 20 20 20 20  |OOP1  DEX.      |
00004610: 20 43 50 58 20 23 34 30  0D 20 20 20 20 20 20 20  | CPX #40.       |
00004620: 42 45 51 20 45 4E 44 31  0D 20 20 20 20 20 20 20  |BEQ END1.       |
00004630: 4A 4D 50 20 4C 4F 4F 50  31 0D 45 4E 44 31 20 20  |JMP LOOP1.END1  |
00004640: 20 44 45 59 0D 20 20 20  20 20 20 20 43 50 59 20  | DEY.       CPY |
00004650: 23 32 35 34 0D 20 20 20  20 20 20 20 42 4E 45 20  |#254.       BNE |
00004660: 53 54 41 52 54 0D 20 20  20 20 20 20 20 43 4C 56  |START.       CLV|
00004670: 0D 20 20 20 20 20 20 20  43 4C 43 0D 20 20 20 20  |.       CLC.    |
00004680: 20 20 20 4C 44 41 20 23  31 35 36 0D 20 20 20 20  |   LDA #156.    |
00004690: 20 20 20 43 4D 50 20 23  31 30 30 0D 20 20 20 20  |   CMP #100.    |
000046A0: 20 20 20 42 56 53 20 41  4C 57 41 59 53 0D 4E 45  |   BVS ALWAYS.NE|
000046B0: 56 45 52 20 20 42 52 4B  0D 41 4C 57 41 59 53 20  |VER  BRK.ALWAYS |
000046C0: 43 4D 50 20 23 31 0D 20  20 20 20 20 20 20 42 56  |CMP #1.       BV|
000046D0: 43 20 4E 45 56 45 52 FF  50 52 4F 47 32 20 20 4C  |C NEVER.PROG2  L|
000046E0: 44 58 20 23 32 33 30 0D  20 20 20 20 20 20 20 53  |DX #230.       S|
000046F0: 54 58 20 33 30 30 0D 20  20 20 20 20 20 20 4C 44  |TX 300.       LD|
00004700: 59 20 23 30 0D 4C 41 42  31 20 20 20 4C 44 41 20  |Y #0.LAB1   LDA |
00004710: 23 32 33 30 0D 20 20 20  20 20 20 20 43 4D 50 20  |#230.       CMP |
00004720: 32 39 30 2C 59 0D 20 20  20 20 20 20 20 42 45 51  |290,Y.       BEQ|
00004730: 20 46 4F 55 4E 44 0D 20  20 20 20 20 20 20 49 4E  | FOUND.       IN|
00004740: 59 0D 20 20 20 20 20 20  20 4A 4D 50 20 4C 41 42  |Y.       JMP LAB|
00004750: 31 0D 46 4F 55 4E 44 20  20 43 4C 43 0D 20 20 20  |1.FOUND  CLC.   |
00004760: 20 20 20 20 4C 44 58 20  23 34 0D 4C 41 42 32 20  |    LDX #4.LAB2 |
00004770: 20 20 43 50 58 20 23 32  0D 20 20 20 20 20 20 20  |  CPX #2.       |
00004780: 42 43 43 20 45 4E 44 31  0D 20 20 20 20 20 20 20  |BCC END1.       |
00004790: 44 45 58 0D 20 20 20 20  20 20 20 4A 4D 50 20 4C  |DEX.       JMP L|
000047A0: 41 42 32 0D 45 4E 44 31  20 20 20 42 52 4B FF 1F  |AB2.END1   BRK..|
000047B0: 0F 02 53 55 42 52 4F 55  54 49 4E 45 53 0D 0A 0A  |..SUBROUTINES...|
000047C0: 20 54 68 65 20 69 6E 73  74 72 75 63 74 69 6F 6E  | The instruction|
000047D0: 20 4A 53 52 20 28 66 6F  6C 6C 6F 77 65 64 20 62  | JSR (followed b|
000047E0: 79 20 61 0D 0A 6C 61 62  65 6C 20 6E 61 6D 65 29  |y a..label name)|
000047F0: 20 69 73 20 65 66 66 65  63 74 69 76 65 6C 79 20  | is effectively |
00004800: 74 68 65 20 73 61 6D 65  0D 0A 61 73 20 74 68 65  |the same..as the|
00004810: 20 47 4F 53 55 42 20 63  6F 6D 6D 61 6E 64 20 66  | GOSUB command f|
00004820: 72 6F 6D 20 42 41 53 49  43 2E 20 57 68 65 6E 0D  |rom BASIC. When.|
00004830: 0A 74 68 65 83 4A 53 52  87 69 6E 73 74 72 75 63  |.the.JSR.instruc|
00004840: 74 69 6F 6E 20 69 73 20  65 78 65 63 75 74 65 64  |tion is executed|
00004850: 2C 20 63 6F 6E 74 72 6F  6C 69 73 20 70 61 73 73  |, controlis pass|
00004860: 65 64 20 74 6F 20 74 68  65 20 6C 69 6E 65 20 77  |ed to the line w|
00004870: 69 74 68 20 74 68 61 74  20 6C 61 62 65 6C 0D 0A  |ith that label..|
00004880: 6F 6E 20 69 74 2E 20 57  68 65 6E 20 74 68 65 20  |on it. When the |
00004890: 73 75 62 72 6F 75 74 69  6E 65 20 68 61 73 20 66  |subroutine has f|
000048A0: 69 6E 69 73 68 65 64 2C  74 68 65 20 69 6E 73 74  |inished,the inst|
000048B0: 72 75 63 74 69 6F 6E 84  52 54 53 87 28 52 65 54  |ruction.RTS.(ReT|
000048C0: 75 72 6E 20 66 72 6F 6D  0D 0A 53 75 62 72 6F 75  |urn from..Subrou|
000048D0: 74 69 6E 65 29 20 73 68  6F 75 6C 64 20 62 65 20  |tine) should be |
000048E0: 65 78 65 63 75 74 65 64  2E 20 54 68 69 73 0D 0A  |executed. This..|
000048F0: 69 6E 73 74 72 75 63 74  69 6F 6E 20 77 69 6C 6C  |instruction will|
00004900: 20 72 65 74 75 72 6E 20  74 6F 20 74 68 65 20 6C  | return to the l|
00004910: 69 6E 65 0D 0A 61 66 74  65 72 20 74 68 65 20 4A  |ine..after the J|
00004920: 53 52 20 69 6E 73 74 72  75 63 74 69 6F 6E 2E 0D  |SR instruction..|
00004930: 0A 0A 20 54 68 65 72 65  20 69 73 20 61 6E 20 65  |.. There is an e|
00004940: 78 61 6D 70 6C 65 20 70  72 6F 67 72 61 6D 20 73  |xample program s|
00004950: 68 6F 77 69 6E 67 0D 0A  74 68 65 20 69 6E 73 74  |howing..the inst|
00004960: 72 75 63 74 69 6F 6E 73  20 4A 53 52 20 61 6E 64  |ructions JSR and|
00004970: 20 52 54 53 20 69 6E 20  75 73 65 2E FF 20 20 20  | RTS in use..   |
00004980: 20 20 20 20 4C 44 41 20  23 30 0D 20 20 20 20 20  |    LDA #0.     |
00004990: 20 20 4C 44 58 20 23 35  0D 4C 4F 4F 50 20 20 20  |  LDX #5.LOOP   |
000049A0: 4A 53 52 20 41 44 44 38  0D 20 20 20 20 20 20 20  |JSR ADD8.       |
000049B0: 44 45 58 0D 20 20 20 20  20 20 20 42 4E 45 20 4C  |DEX.       BNE L|
000049C0: 4F 4F 50 0D 20 20 20 20  20 20 20 42 52 4B 0D 41  |OOP.       BRK.A|
000049D0: 44 44 38 20 20 20 43 4C  43 0D 20 20 20 20 20 20  |DD8   CLC.      |
000049E0: 20 41 44 43 20 23 38 0D  20 20 20 20 20 20 20 52  | ADC #8.       R|
000049F0: 54 53 0D 0D 0D 54 48 49  53 20 50 52 4F 47 52 41  |TS...THIS PROGRA|
00004A00: 4D 20 57 49 4C 4C 0D 4D  55 4C 54 49 50 4C 59 20  |M WILL.MULTIPLY |
00004A10: 46 49 56 45 20 42 59 0D  45 49 47 48 54 2E FF 1F  |FIVE BY.EIGHT...|
00004A20: 0F 02 48 45 58 41 44 45  43 49 4D 41 4C 0D 0A 0A  |..HEXADECIMAL...|
00004A30: 20 4C 69 6B 65 20 62 69  6E 61 72 79 20 61 6E 64  | Like binary and|
00004A40: 20 64 65 63 69 6D 61 6C  2C 20 68 65 78 61 64 65  | decimal, hexade|
00004A50: 63 69 6D 61 6C 0D 0A 69  73 20 61 20 6E 75 6D 62  |cimal..is a numb|
00004A60: 65 72 20 62 61 73 65 2E  20 57 68 65 72 65 20 62  |er base. Where b|
00004A70: 69 6E 61 72 79 20 69 73  20 62 61 73 65 20 32 61  |inary is base 2a|
00004A80: 6E 64 20 64 65 63 69 6D  61 6C 20 69 73 20 62 61  |nd decimal is ba|
00004A90: 73 65 20 31 30 2C 20 68  65 78 61 64 65 63 69 6D  |se 10, hexadecim|
00004AA0: 61 6C 20 69 73 0D 0A 62  61 73 65 20 31 36 2E 20  |al is..base 16. |
00004AB0: 41 20 6E 75 6D 62 65 72  20 62 61 73 65 20 72 65  |A number base re|
00004AC0: 6C 61 74 65 73 20 74 6F  20 74 68 65 0D 0A 6E 75  |lates to the..nu|
00004AD0: 6D 62 65 72 20 6F 66 20  64 69 66 66 65 72 65 6E  |mber of differen|
00004AE0: 74 20 64 69 67 69 74 73  20 75 73 65 64 20 69 6E  |t digits used in|
00004AF0: 20 65 61 63 68 0D 0A 6F  66 20 74 68 65 20 63 6F  | each..of the co|
00004B00: 6C 75 6D 6E 20 68 65 61  64 69 6E 67 73 2E 20 57  |lumn headings. W|
00004B10: 69 74 68 20 64 65 63 69  6D 61 6C 0D 0A 74 68 69  |ith decimal..thi|
00004B20: 73 20 69 73 20 74 65 6E  20 64 69 67 69 74 73 2C  |s is ten digits,|
00004B30: 20 74 68 65 20 6E 75 6D  62 65 72 73 20 30 20 74  | the numbers 0 t|
00004B40: 6F 20 39 2E 0D 0A 48 65  78 61 64 65 63 69 6D 61  |o 9...Hexadecima|
00004B50: 6C 20 61 6C 73 6F 20 75  73 65 73 20 74 68 65 73  |l also uses thes|
00004B60: 65 20 64 69 67 69 74 73  2C 20 62 75 74 0D 0A 62  |e digits, but..b|
00004B70: 65 63 61 75 73 65 20 69  74 20 75 73 65 73 20 73  |ecause it uses s|
00004B80: 69 78 74 65 65 6E 20 64  69 66 66 65 72 65 6E 74  |ixteen different|
00004B90: 20 64 69 67 69 74 73 66  6F 72 20 65 61 63 68 20  | digitsfor each |
00004BA0: 63 6F 6C 75 6D 6E 20 68  65 61 64 69 6E 67 2C 20  |column heading, |
00004BB0: 73 69 78 20 6D 6F 72 65  0D 0A 63 68 61 72 61 63  |six more..charac|
00004BC0: 74 65 72 73 20 61 72 65  20 75 73 65 64 20 74 6F  |ters are used to|
00004BD0: 20 72 65 70 72 65 73 65  6E 74 20 74 68 65 0D 0A  | represent the..|
00004BE0: 6E 75 6D 62 65 72 20 64  69 67 69 74 73 20 31 30  |number digits 10|
00004BF0: 2C 31 31 2C 31 32 2C 31  33 2C 31 34 20 61 6E 64  |,11,12,13,14 and|
00004C00: 20 31 35 2E 0D 0A 54 68  65 20 73 74 61 6E 64 61  | 15...The standa|
00004C10: 72 64 20 77 61 79 20 74  6F 20 72 65 70 72 65 73  |rd way to repres|
00004C20: 65 6E 74 20 74 68 65 73  65 20 69 73 0D 0A 74 6F  |ent these is..to|
00004C30: 20 75 73 65 20 41 2C 42  2C 43 2C 44 2C 45 20 61  | use A,B,C,D,E a|
00004C40: 6E 64 20 46 20 72 65 73  70 65 63 74 69 76 65 6C  |nd F respectivel|
00004C50: 79 2E FE 1F 0F 02 48 45  58 41 44 45 43 49 4D 41  |y.....HEXADECIMA|
00004C60: 4C 0D 0A 0A 20 53 6F 20  69 6E 20 61 63 74 75 61  |L... So in actua|
00004C70: 6C 20 66 61 63 74 2C 20  74 68 65 20 68 65 78 61  |l fact, the hexa|
00004C80: 64 65 63 69 6D 61 6C 0D  0A 6E 75 6D 62 65 72 20  |decimal..number |
00004C90: 20 31 32 20 20 20 31 35  20 20 20 31 31 20 20 20  | 12   15   11   |
00004CA0: 34 20 20 63 6F 75 6C 64  20 65 61 73 69 6C 79 0D  |4  could easily.|
00004CB0: 0A 62 65 20 6D 69 73 75  6E 64 65 72 73 74 6F 6F  |.be misunderstoo|
00004CC0: 64 20 61 73 20 31 32 20  20 20 31 35 20 20 20 31  |d as 12   15   1|
00004CD0: 20 20 20 31 34 0D 0A 66  6F 72 20 65 78 61 6D 70  |   14..for examp|
00004CE0: 6C 65 2E 20 54 68 69 73  20 69 73 20 77 68 79 20  |le. This is why |
00004CF0: 74 68 65 20 6C 65 74 74  65 72 73 0D 0A 41 20 74  |the letters..A t|
00004D00: 6F 20 46 20 61 72 65 20  75 73 65 64 20 74 6F 20  |o F are used to |
00004D10: 72 65 70 72 65 73 65 6E  74 20 74 68 65 0D 0A 6E  |represent the..n|
00004D20: 75 6D 62 65 72 73 20 31  30 20 74 6F 20 31 35 2E  |umbers 10 to 15.|
00004D30: 20 55 73 69 6E 67 20 6C  65 74 74 65 72 73 20 74  | Using letters t|
00004D40: 68 65 0D 0A 61 62 6F 76  65 20 6E 75 6D 62 65 72  |he..above number|
00004D50: 20 77 6F 75 6C 64 20 62  65 20 43 46 42 34 2E 20  | would be CFB4. |
00004D60: 54 68 65 20 63 6F 6C 75  6D 6E 0D 0A 68 65 61 64  |The column..head|
00004D70: 69 6E 67 73 20 66 6F 72  20 68 65 78 61 64 65 63  |ings for hexadec|
00004D80: 69 6D 61 6C 20 61 72 65  3A 0D 0A 0A 34 30 39 36  |imal are:...4096|
00004D90: 20 20 20 32 35 36 20 20  20 20 31 36 20 20 20 20  |   256    16    |
00004DA0: 20 31 FE 1F 0F 02 48 45  58 41 44 45 43 49 4D 41  | 1....HEXADECIMA|
00004DB0: 4C 0D 0A 0A 20 54 68 69  73 20 6D 65 61 6E 73 20  |L... This means |
00004DC0: 74 68 61 74 20 43 46 42  34 20 69 6E 20 64 65 63  |that CFB4 in dec|
00004DD0: 69 6D 61 6C 20 69 73 0D  0A 63 61 6C 63 75 6C 61  |imal is..calcula|
00004DE0: 74 65 64 20 74 68 75 73  3A 0D 0A 0A 43 20 20 20  |ted thus:...C   |
00004DF0: 20 20 20 3D 20 31 32 20  2A 20 34 30 39 36 20 3D  |   = 12 * 4096 =|
00004E00: 20 34 39 31 35 32 0D 0A  46 20 20 20 20 20 20 3D  | 49152..F      =|
00004E10: 20 31 35 20 2A 20 32 35  36 20 20 3D 20 20 33 38  | 15 * 256  =  38|
00004E20: 34 30 0D 0A 42 20 20 20  20 20 20 3D 20 31 31 20  |40..B      = 11 |
00004E30: 2A 20 31 36 20 20 20 3D  20 20 20 31 37 36 0D 0A  |* 16   =   176..|
00004E40: 34 20 20 20 20 20 20 3D  20 34 20 20 2A 20 31 20  |4      = 4  * 1 |
00004E50: 20 20 20 3D 20 2B 20 20  20 34 0D 0A 20 20 20 20  |   = +   4..    |
00004E60: 20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00004E70: 20 2D 2D 2D 2D 2D 0D 0A  43 46 42 34 20 69 73 20  | -----..CFB4 is |
00004E80: 74 68 65 72 65 66 6F 72  65 20 20 20 20 35 33 31  |therefore    531|
00004E90: 37 32 20 69 6E 20 64 65  63 69 6D 61 6C 2E FE 1F  |72 in decimal...|
00004EA0: 0F 02 48 45 58 41 44 45  43 49 4D 41 4C 0D 0A 0A  |..HEXADECIMAL...|
00004EB0: 20 41 73 20 79 6F 75 20  68 61 76 65 20 73 65 65  | As you have see|
00004EC0: 6E 2C 20 61 20 68 65 78  61 64 65 63 69 6D 61 6C  |n, a hexadecimal|
00004ED0: 20 6E 75 6D 62 65 72 0D  0A 62 65 61 72 73 20 68  | number..bears h|
00004EE0: 61 72 64 6C 79 20 61 6E  79 20 72 65 73 65 6D 62  |ardly any resemb|
00004EF0: 6C 61 6E 63 65 20 74 6F  20 61 0D 0A 64 65 63 69  |lance to a..deci|
00004F00: 6D 61 6C 20 6E 75 6D 62  65 72 2E 20 48 6F 77 65  |mal number. Howe|
00004F10: 76 65 72 2C 20 61 20 62  69 6E 61 72 79 20 6E 75  |ver, a binary nu|
00004F20: 6D 62 65 72 62 65 61 72  73 20 61 20 64 69 72 65  |mberbears a dire|
00004F30: 63 74 20 72 65 73 65 6D  62 6C 61 6E 63 65 2E 20  |ct resemblance. |
00004F40: 45 61 63 68 20 67 72 6F  75 70 0D 0A 6F 66 20 66  |Each group..of f|
00004F50: 6F 75 72 20 62 69 74 73  20 6F 66 20 61 20 62 69  |our bits of a bi|
00004F60: 6E 61 72 79 20 6E 75 6D  62 65 72 20 28 63 61 6C  |nary number (cal|
00004F70: 6C 65 64 0D 0A 61 20 6E  79 62 62 6C 65 29 20 72  |led..a nybble) r|
00004F80: 65 70 72 65 73 65 6E 74  73 20 6F 6E 65 20 68 65  |epresents one he|
00004F90: 78 61 64 65 63 69 6D 61  6C 0D 0A 64 69 67 69 74  |xadecimal..digit|
00004FA0: 2E 20 48 65 72 65 20 69  73 20 74 68 65 20 74 61  |. Here is the ta|
00004FB0: 62 6C 65 20 66 6F 72 20  63 6F 6E 76 65 72 73 69  |ble for conversi|
00004FC0: 6F 6E 3A 0A 44 45 43 49  4D 41 4C 20 42 49 4E 41  |on:.DECIMAL BINA|
00004FD0: 52 59 20 48 45 58 20 20  20 20 44 45 43 49 4D 41  |RY HEX    DECIMA|
00004FE0: 4C 20 42 49 4E 41 52 59  20 48 45 58 0A 20 20 30  |L BINARY HEX.  0|
00004FF0: 20 20 20 20 20 20 30 30  30 30 20 20 20 30 20 20  |      0000   0  |
00005000: 20 20 20 20 20 38 20 20  20 20 20 20 31 30 30 30  |     8      1000|
00005010: 20 20 20 38 20 20 20 31  20 20 20 20 20 20 30 30  |   8   1      00|
00005020: 30 31 20 20 20 31 20 20  20 20 20 20 20 39 20 20  |01   1       9  |
00005030: 20 20 20 20 31 30 30 31  20 20 20 39 20 20 20 32  |    1001   9   2|
00005040: 20 20 20 20 20 20 30 30  31 30 20 20 20 32 20 20  |      0010   2  |
00005050: 20 20 20 20 20 31 30 20  20 20 20 20 31 30 31 30  |     10     1010|
00005060: 20 20 20 41 20 20 20 33  20 20 20 20 20 20 30 30  |   A   3      00|
00005070: 31 31 20 20 20 33 20 20  20 20 20 20 20 31 31 20  |11   3       11 |
00005080: 20 20 20 20 31 30 31 31  20 20 20 42 20 20 20 34  |    1011   B   4|
00005090: 20 20 20 20 20 20 30 31  30 30 20 20 20 34 20 20  |      0100   4  |
000050A0: 20 20 20 20 20 31 32 20  20 20 20 20 31 31 30 30  |     12     1100|
000050B0: 20 20 20 43 20 20 20 35  20 20 20 20 20 20 30 31  |   C   5      01|
000050C0: 30 31 20 20 20 35 20 20  20 20 20 20 20 31 33 20  |01   5       13 |
000050D0: 20 20 20 20 31 31 30 31  20 20 20 44 20 20 20 36  |    1101   D   6|
000050E0: 20 20 20 20 20 20 30 31  31 30 20 20 20 36 20 20  |      0110   6  |
000050F0: 20 20 20 20 20 31 34 20  20 20 20 20 31 31 31 30  |     14     1110|
00005100: 20 20 20 45 20 20 20 37  20 20 20 20 20 20 30 31  |   E   7      01|
00005110: 31 31 20 20 20 37 20 20  20 20 20 20 20 31 35 20  |11   7       15 |
00005120: 20 20 20 20 31 31 31 31  20 20 20 46 20 FE 1F 0F  |    1111   F ...|
00005130: 02 48 45 58 41 44 45 43  49 4D 41 4C 0D 0A 0A 20  |.HEXADECIMAL... |
00005140: 55 73 69 6E 67 20 74 68  65 20 67 69 76 65 6E 20  |Using the given |
00005150: 74 61 62 6C 65 2C 20 69  74 20 69 73 20 65 61 73  |table, it is eas|
00005160: 79 20 74 6F 0D 0A 63 6F  6E 76 65 72 74 20 66 72  |y to..convert fr|
00005170: 6F 6D 20 62 69 6E 61 72  79 20 74 6F 20 68 65 78  |om binary to hex|
00005180: 61 64 65 63 69 6D 61 6C  20 28 68 65 78 29 6F 72  |adecimal (hex)or|
00005190: 20 76 69 63 65 20 76 65  72 73 61 2E 20 41 6C 73  | vice versa. Als|
000051A0: 6F 2C 20 75 73 69 6E 67  20 68 65 78 20 6D 61 6B  |o, using hex mak|
000051B0: 65 73 0D 0A 74 77 6F 27  73 20 63 6F 6D 70 6C 65  |es..two's comple|
000051C0: 6D 65 6E 74 20 65 61 73  69 65 72 20 74 6F 20 69  |ment easier to i|
000051D0: 6E 74 65 72 70 72 65 74  2E 0D 0A 20 42 79 20 70  |nterpret... By p|
000051E0: 72 65 73 73 69 6E 67 20  74 68 65 20 66 75 6E 63  |ressing the func|
000051F0: 74 69 6F 6E 20 6B 65 79  20 66 37 20 79 6F 75 63  |tion key f7 youc|
00005200: 61 6E 20 73 77 69 74 63  68 20 62 65 74 77 65 65  |an switch betwee|
00005210: 6E 20 68 65 78 61 64 65  63 69 6D 61 6C 20 61 6E  |n hexadecimal an|
00005220: 64 0D 0A 64 65 63 69 6D  61 6C 20 6D 6F 64 65 73  |d..decimal modes|
00005230: 2E 20 54 68 69 73 20 61  66 66 65 63 74 73 20 77  |. This affects w|
00005240: 68 65 74 68 65 72 0D 0A  74 68 65 20 76 61 6C 75  |hether..the valu|
00005250: 65 73 20 6F 66 20 74 68  65 20 41 2C 20 58 20 61  |es of the A, X a|
00005260: 6E 64 20 59 20 72 65 67  69 73 74 65 72 73 0D 0A  |nd Y registers..|
00005270: 61 72 65 20 64 69 73 70  6C 61 79 65 64 20 69 6E  |are displayed in|
00005280: 20 68 65 78 20 6F 72 20  64 65 63 69 6D 61 6C 2E  | hex or decimal.|
00005290: 0D 0A 57 68 65 6E 20 69  6E 20 68 65 78 20 6D 6F  |..When in hex mo|
000052A0: 64 65 20 74 68 65 20 27  24 27 20 63 68 61 72 61  |de the '$' chara|
000052B0: 63 74 65 72 20 69 73 0D  0A 75 73 65 64 20 74 6F  |cter is..used to|
000052C0: 20 73 68 6F 77 20 61 20  68 65 78 20 6E 75 6D 62  | show a hex numb|
000052D0: 65 72 2E 20 59 6F 75 20  63 61 6E 0D 0A 61 6C 73  |er. You can..als|
000052E0: 6F 20 75 73 65 20 74 68  69 73 20 63 68 61 72 61  |o use this chara|
000052F0: 63 74 65 72 20 69 6E 20  61 20 70 72 6F 67 72 61  |cter in a progra|
00005300: 6D 0D 0A 74 6F 20 73 70  65 63 69 66 79 20 61 20  |m..to specify a |
00005310: 68 65 78 20 6E 75 6D 62  65 72 20 61 73 20 77 65  |hex number as we|
00005320: 6C 6C 2E FE 1F 0F 02 48  45 58 41 44 45 43 49 4D  |ll.....HEXADECIM|
00005330: 41 4C 0D 0A 0A 20 42 79  20 6E 6F 77 20 79 6F 75  |AL... By now you|
00005340: 20 6D 75 73 74 20 62 65  20 77 65 6C 6C 20 61 77  | must be well aw|
00005350: 61 72 65 20 74 68 61 74  20 61 0D 0A 6D 65 6D 6F  |are that a..memo|
00005360: 72 79 20 6C 6F 63 61 74  69 6F 6E 20 61 6E 64 20  |ry location and |
00005370: 61 20 72 65 67 69 73 74  65 72 20 63 61 6E 20 6F  |a register can o|
00005380: 6E 6C 79 0D 0A 68 6F 6C  64 20 61 20 6E 75 6D 62  |nly..hold a numb|
00005390: 65 72 20 62 65 74 77 65  65 6E 20 30 20 61 6E 64  |er between 0 and|
000053A0: 20 32 35 35 2C 20 77 68  69 63 68 0D 0A 69 73 20  | 255, which..is |
000053B0: 61 6E 20 65 69 67 68 74  20 62 69 74 20 62 69 6E  |an eight bit bin|
000053C0: 61 72 79 20 6E 75 6D 62  65 72 2E 20 49 6E 20 68  |ary number. In h|
000053D0: 65 78 0D 0A 74 68 69 73  20 69 73 20 61 20 6E 75  |ex..this is a nu|
000053E0: 6D 62 65 72 20 62 65 74  77 65 65 6E 20 24 30 20  |mber between $0 |
000053F0: 61 6E 64 20 24 46 46 2E  0D 0A 48 6F 77 65 76 65  |and $FF...Howeve|
00005400: 72 2C 20 79 6F 75 20 63  61 6E 20 75 73 65 20 74  |r, you can use t|
00005410: 77 6F 20 63 6F 6E 73 65  63 75 74 69 76 65 0D 0A  |wo consecutive..|
00005420: 6D 65 6D 6F 72 79 20 6C  6F 63 61 74 69 6F 6E 73  |memory locations|
00005430: 20 74 6F 20 67 69 76 65  20 31 36 20 62 69 74 73  | to give 16 bits|
00005440: 20 77 68 69 63 68 0D 0A  63 61 6E 20 72 65 70 72  | which..can repr|
00005450: 65 73 65 6E 74 20 6F 6E  65 20 6E 75 6D 62 65 72  |esent one number|
00005460: 2E 20 54 68 69 73 20 74  77 6F 20 62 79 74 65 0D  |. This two byte.|
00005470: 0A 73 74 6F 72 61 67 65  20 68 61 73 20 74 68 65  |.storage has the|
00005480: 20 63 61 70 61 62 69 6C  69 74 79 20 74 6F 20 72  | capability to r|
00005490: 65 70 72 65 73 65 6E 74  0D 0A 36 35 35 33 36 20  |epresent..65536 |
000054A0: 28 32 35 36 2A 32 35 36  29 20 64 69 66 66 65 72  |(256*256) differ|
000054B0: 65 6E 74 20 6E 75 6D 62  65 72 73 2E 0D 0A 20 57  |ent numbers... W|
000054C0: 68 65 6E 20 75 73 69 6E  67 20 74 77 6F 20 6D 65  |hen using two me|
000054D0: 6D 6F 72 79 20 6C 6F 63  61 74 69 6F 6E 73 20 74  |mory locations t|
000054E0: 6F 0D 0A 73 74 6F 72 65  20 6F 6E 65 20 6E 75 6D  |o..store one num|
000054F0: 62 65 72 2C 20 74 68 65  20 6D 65 6D 6F 72 79 20  |ber, the memory |
00005500: 6C 6F 63 61 74 69 6F 6E  0D 0A 77 69 74 68 20 74  |location..with t|
00005510: 68 65 20 6C 6F 77 65 73  74 20 61 64 64 72 65 73  |he lowest addres|
00005520: 73 20 73 74 6F 72 65 73  20 77 68 61 74 20 69 73  |s stores what is|
00005530: 0D 0A 6B 6E 6F 77 6E 20  61 73 20 74 68 65 20 4C  |..known as the L|
00005540: 65 61 73 74 20 53 69 67  6E 69 66 69 63 61 6E 74  |east Significant|
00005550: 20 42 79 74 65 0D 0A 28  4C 53 42 29 2C 20 74 68  | Byte..(LSB), th|
00005560: 65 20 6E 65 78 74 20 73  65 71 75 65 6E 74 69 61  |e next sequentia|
00005570: 6C 20 62 79 74 65 20 73  74 6F 72 65 73 0D 0A 77  |l byte stores..w|
00005580: 68 61 74 20 69 73 20 6B  6E 6F 77 6E 20 61 73 20  |hat is known as |
00005590: 74 68 65 20 4D 6F 73 74  20 53 69 67 6E 69 66 69  |the Most Signifi|
000055A0: 63 61 6E 74 0D 0A 42 79  74 65 20 28 4D 53 42 29  |cant..Byte (MSB)|
000055B0: 2E 20 54 68 65 72 65 66  6F 72 65 2C 20 69 66 20  |. Therefore, if |
000055C0: 74 68 65 20 4C 53 42 20  68 6F 6C 64 73 0D 0A 24  |the LSB holds..$|
000055D0: 41 31 20 61 6E 64 20 74  68 65 20 4D 53 42 20 68  |A1 and the MSB h|
000055E0: 6F 6C 64 73 20 24 34 45  20 74 68 65 6E 20 74 68  |olds $4E then th|
000055F0: 65 0D 0A 72 65 73 75 6C  74 69 6E 67 20 6E 75 6D  |e..resulting num|
00005600: 62 65 72 20 77 69 6C 6C  20 62 65 20 24 34 45 41  |ber will be $4EA|
00005610: 31 2E FE 1F 0F 02 48 45  58 41 44 45 43 49 4D 41  |1.....HEXADECIMA|
00005620: 4C 0D 0A 0A 20 57 68 65  6E 20 69 6E 20 68 65 78  |L... When in hex|
00005630: 20 6D 6F 64 65 2C 20 77  68 65 6E 20 61 20 6C 6F  | mode, when a lo|
00005640: 61 64 20 6F 72 20 73 74  6F 72 65 0D 0A 69 73 20  |ad or store..is |
00005650: 70 65 72 66 6F 72 6D 65  64 20 6F 6E 20 61 20 6D  |performed on a m|
00005660: 65 6D 6F 72 79 20 6C 6F  63 61 74 69 6F 6E 2C 20  |emory location, |
00005670: 74 68 65 0D 0A 63 6F 6D  70 75 74 65 72 20 77 69  |the..computer wi|
00005680: 6C 6C 20 70 72 69 6E 74  20 27 52 45 53 55 4C 54  |ll print 'RESULT|
00005690: 49 4E 47 20 41 44 44 52  45 53 53 3A 27 66 6F 6C  |ING ADDRESS:'fol|
000056A0: 6C 6F 77 65 64 20 62 79  20 61 20 68 65 78 61 64  |lowed by a hexad|
000056B0: 65 63 69 6D 61 6C 20 6E  75 6D 62 65 72 2E 20 54  |ecimal number. T|
000056C0: 68 69 73 0D 0A 69 73 20  74 68 65 20 61 63 74 75  |his..is the actu|
000056D0: 61 6C 20 61 64 64 72 65  73 73 20 6F 66 20 61 20  |al address of a |
000056E0: 6D 65 6D 6F 72 79 0D 0A  6C 6F 63 61 74 69 6F 6E  |memory..location|
000056F0: 20 74 68 65 20 63 6F 6D  70 75 74 65 72 20 75 73  | the computer us|
00005700: 65 73 20 66 6F 72 20 74  68 65 0D 0A 69 6E 73 74  |es for the..inst|
00005710: 72 75 63 74 69 6F 6E 2C  20 65 76 65 6E 20 66 6F  |ruction, even fo|
00005720: 72 20 69 6E 64 65 78 65  64 20 61 64 64 72 65 73  |r indexed addres|
00005730: 73 69 6E 67 61 6E 64 20  74 68 65 20 6C 69 6B 65  |singand the like|
00005740: 2E 0D 0A 20 54 68 65 72  65 20 61 72 65 20 74 77  |... There are tw|
00005750: 6F 20 65 78 61 6D 70 6C  65 20 70 72 6F 67 72 61  |o example progra|
00005760: 6D 73 20 75 73 69 6E 67  0D 0A 68 65 78 61 64 65  |ms using..hexade|
00005770: 63 69 6D 61 6C 20 6E 75  6D 62 65 72 73 2C 20 74  |cimal numbers, t|
00005780: 6F 20 68 65 6C 70 20 64  65 6D 6F 6E 73 74 72 61  |o help demonstra|
00005790: 74 65 77 68 61 74 20 68  61 73 20 62 65 65 6E 20  |tewhat has been |
000057A0: 64 69 73 63 75 73 73 65  64 2E 20 52 65 6D 65 6D  |discussed. Remem|
000057B0: 62 65 72 20 74 6F 0D 0A  70 72 65 73 73 20 66 75  |ber to..press fu|
000057C0: 6E 63 74 69 6F 6E 20 6B  65 79 20 66 37 20 74 6F  |nction key f7 to|
000057D0: 20 70 75 74 20 74 68 65  20 64 69 73 70 6C 61 79  | put the display|
000057E0: 69 6E 20 68 65 78 61 64  65 63 69 6D 61 6C 20 6D  |in hexadecimal m|
000057F0: 6F 64 65 2E 20 54 68 65  20 66 69 72 73 74 20 70  |ode. The first p|
00005800: 72 6F 67 72 61 6D 0D 0A  69 73 20 61 20 31 36 20  |rogram..is a 16 |
00005810: 62 69 74 20 6D 75 6C 74  69 70 6C 69 63 61 74 69  |bit multiplicati|
00005820: 6F 6E 20 70 72 6F 67 72  61 6D 20 74 68 61 74 0D  |on program that.|
00005830: 0A 77 69 6C 6C 20 6D 75  6C 74 69 70 6C 79 20 74  |.will multiply t|
00005840: 68 65 20 76 61 6C 75 65  20 6F 66 20 74 68 65 20  |he value of the |
00005850: 58 20 61 6E 64 20 59 0D  0A 72 65 67 69 73 74 65  |X and Y..registe|
00005860: 72 73 20 74 6F 67 65 74  68 65 72 2E 20 54 68 65  |rs together. The|
00005870: 20 72 65 73 75 6C 74 20  69 73 20 73 74 6F 72 65  | result is store|
00005880: 64 61 74 20 63 6F 6E 73  65 63 75 74 69 76 65 20  |dat consecutive |
00005890: 6D 65 6D 6F 72 79 20 6C  6F 63 61 74 69 6F 6E 73  |memory locations|
000058A0: 20 69 6E 20 4C 53 42 0D  0A 4D 53 42 20 66 6F 72  | in LSB..MSB for|
000058B0: 6D 61 74 2E 20 54 68 65  20 73 65 63 6F 6E 64 20  |mat. The second |
000058C0: 70 72 6F 67 72 61 6D 20  69 73 20 61 0D 0A 73 69  |program is a..si|
000058D0: 6D 70 6C 65 20 31 36 20  62 69 74 20 73 75 62 74  |mple 16 bit subt|
000058E0: 72 61 63 74 69 6F 6E 20  70 72 6F 67 72 61 6D 2E  |raction program.|
000058F0: FE 1F 10 02 41 20 50 41  47 45 0D 0A 0A 20 41 20  |....A PAGE... A |
00005900: 70 61 67 65 20 69 73 20  61 20 6E 61 74 75 72 61  |page is a natura|
00005910: 6C 20 66 6F 6C 6C 6F 77  20 6F 6E 20 66 72 6F 6D  |l follow on from|
00005920: 20 74 68 65 0D 0A 64 65  66 69 6E 69 74 69 6F 6E  | the..definition|
00005930: 20 6F 66 20 61 20 68 65  78 61 64 65 63 69 6D 61  | of a hexadecima|
00005940: 6C 20 6E 75 6D 62 65 72  2E 20 41 0D 0A 70 61 67  |l number. A..pag|
00005950: 65 20 69 73 20 61 20 63  6F 6D 6D 6F 6E 6C 79 20  |e is a commonly |
00005960: 75 73 65 64 20 74 65 72  6D 20 74 6F 20 64 65 73  |used term to des|
00005970: 63 72 69 62 65 41 52 45  41 53 20 6F 66 20 6D 65  |cribeAREAS of me|
00005980: 6D 6F 72 79 2E 20 49 74  20 69 73 20 73 69 6D 70  |mory. It is simp|
00005990: 6C 79 20 74 68 65 20 4D  53 42 0D 0A 6F 66 20 61  |ly the MSB..of a|
000059A0: 20 6D 65 6D 6F 72 79 20  61 64 64 72 65 73 73 2E  | memory address.|
000059B0: 20 46 6F 72 20 65 78 61  6D 70 6C 65 2C 20 6D 65  | For example, me|
000059C0: 6D 6F 72 79 6C 6F 63 61  74 69 6F 6E 20 24 31 45  |morylocation $1E|
000059D0: 41 20 69 73 20 64 65 73  63 72 69 62 65 64 20 61  |A is described a|
000059E0: 73 20 62 65 69 6E 67 0D  0A 69 6E 20 70 61 67 65  |s being..in page|
000059F0: 20 31 2E 20 41 6E 79 20  6D 65 6D 6F 72 79 20 6C  | 1. Any memory l|
00005A00: 6F 63 61 74 69 6F 6E 20  62 65 74 77 65 65 6E 0D  |ocation between.|
00005A10: 0A 61 64 64 72 65 73 73  65 73 20 30 20 61 6E 64  |.addresses 0 and|
00005A20: 20 32 35 35 20 77 69 6C  6C 20 74 68 65 72 65 66  | 255 will theref|
00005A30: 6F 72 65 20 62 65 0D 0A  69 6E 20 70 61 67 65 20  |ore be..in page |
00005A40: 7A 65 72 6F 2E 20 42 65  63 61 75 73 65 20 79 6F  |zero. Because yo|
00005A50: 75 20 63 61 6E 20 6F 6E  6C 79 20 75 73 65 0D 0A  |u can only use..|
00005A60: 6D 65 6D 6F 72 79 20 6C  6F 63 61 74 69 6F 6E 73  |memory locations|
00005A70: 20 77 69 74 68 20 61 64  64 72 65 73 73 65 73 20  | with addresses |
00005A80: 62 65 74 77 65 65 6E 0D  0A 30 20 61 6E 64 20 31  |between..0 and 1|
00005A90: 30 32 34 20 28 30 20 61  6E 64 20 34 30 30 20 68  |024 (0 and 400 h|
00005AA0: 65 78 29 20 74 68 69 73  20 6D 65 61 6E 73 0D 0A  |ex) this means..|
00005AB0: 79 6F 75 20 63 61 6E 20  6F 6E 6C 79 20 75 73 65  |you can only use|
00005AC0: 20 34 20 70 61 67 65 73  20 77 69 74 68 20 74 68  | 4 pages with th|
00005AD0: 69 73 0D 0A 73 69 6D 75  6C 61 74 6F 72 2E 20 4F  |is..simulator. O|
00005AE0: 6E 20 61 20 6E 6F 72 6D  61 6C 20 36 35 30 32 20  |n a normal 6502 |
00005AF0: 73 79 73 74 65 6D 0D 0A  77 69 74 68 6F 75 74 20  |system..without |
00005B00: 74 68 69 73 20 73 69 6D  75 6C 61 74 6F 72 20 79  |this simulator y|
00005B10: 6F 75 20 68 61 76 65 20  32 35 36 0D 0A 70 61 67  |ou have 256..pag|
00005B20: 65 73 20 6F 66 20 52 41  4D 20 61 6E 64 20 52 4F  |es of RAM and RO|
00005B30: 4D 20 28 61 64 64 72 65  73 73 65 73 20 30 20 74  |M (addresses 0 t|
00005B40: 6F 0D 0A 24 46 46 46 46  29 2E FF 20 20 20 20 20  |o..$FFFF)..     |
00005B50: 20 20 4C 44 58 20 23 24  45 39 0D 20 20 20 20 20  |  LDX #$E9.     |
00005B60: 20 20 4C 44 59 20 23 24  41 0D 20 20 20 20 20 20  |  LDY #$A.      |
00005B70: 20 4C 44 41 20 23 30 0D  20 20 20 20 20 20 20 53  | LDA #0.       S|
00005B80: 54 41 20 33 30 0D 20 20  20 20 20 20 20 53 54 41  |TA 30.       STA|
00005B90: 20 33 31 0D 4C 4F 4F 50  20 20 20 54 58 41 0D 20  | 31.LOOP   TXA. |
00005BA0: 20 20 20 20 20 20 43 4C  43 0D 20 20 20 20 20 20  |      CLC.      |
00005BB0: 20 41 44 43 20 33 30 0D  20 20 20 20 20 20 20 53  | ADC 30.       S|
00005BC0: 54 41 20 33 30 0D 20 20  20 20 20 20 20 4C 44 41  |TA 30.       LDA|
00005BD0: 20 33 31 0D 20 20 20 20  20 20 20 41 44 43 20 23  | 31.       ADC #|
00005BE0: 30 0D 20 20 20 20 20 20  20 53 54 41 20 33 31 0D  |0.       STA 31.|
00005BF0: 20 20 20 20 20 20 20 44  45 59 0D 20 20 20 20 20  |       DEY.     |
00005C00: 20 20 42 4E 45 20 4C 4F  4F 50 0D 20 20 20 20 20  |  BNE LOOP.     |
00005C10: 20 20 4C 44 58 20 33 30  0D 20 20 20 20 20 20 20  |  LDX 30.       |
00005C20: 4C 44 59 20 33 31 FF 20  20 20 20 20 20 20 53 45  |LDY 31.       SE|
00005C30: 43 0D 20 20 20 20 20 20  20 4C 44 41 20 23 24 32  |C.       LDA #$2|
00005C40: 44 0D 20 20 20 20 20 20  20 53 42 43 20 23 24 45  |D.       SBC #$E|
00005C50: 32 0D 20 20 20 20 20 20  20 53 54 41 20 34 35 30  |2.       STA 450|
00005C60: 0D 20 20 20 20 20 20 20  4C 44 41 20 23 24 33 41  |.       LDA #$3A|
00005C70: 0D 20 20 20 20 20 20 20  53 42 43 20 23 24 33 38  |.       SBC #$38|
00005C80: 0D 20 20 20 20 20 20 20  53 54 41 20 34 35 31 0D  |.       STA 451.|
00005C90: 20 20 20 20 20 20 20 4C  44 58 20 34 35 30 0D 20  |       LDX 450. |
00005CA0: 20 20 20 20 20 20 4C 44  59 20 34 35 31 0D 20 20  |      LDY 451.  |
00005CB0: 20 20 20 20 20 42 52 4B  FF 1F 08 02 42 49 4E 41  |     BRK....BINA|
00005CC0: 52 59 20 43 4F 44 45 44  20 44 45 43 49 4D 41 4C  |RY CODED DECIMAL|
00005CD0: 20 28 42 43 44 29 0D 0A  0A 20 54 68 69 73 20 69  | (BCD)... This i|
00005CE0: 73 20 61 20 73 79 73 74  65 6D 20 77 68 65 72 65  |s a system where|
00005CF0: 20 64 65 63 69 6D 61 6C  20 6E 75 6D 62 65 72 73  | decimal numbers|
00005D00: 20 61 72 65 20 72 65 70  72 65 73 65 6E 74 65 64  | are represented|
00005D10: 20 75 73 69 6E 67 20 68  65 78 61 64 65 63 69 6D  | using hexadecim|
00005D20: 61 6C 0D 0A 6E 75 6D 62  65 72 73 2E 20 46 6F 72  |al..numbers. For|
00005D30: 20 65 78 61 6D 70 6C 65  2C 20 6E 6F 72 6D 61 6C  | example, normal|
00005D40: 6C 79 20 74 68 65 20 68  65 78 0D 0A 6E 75 6D 62  |ly the hex..numb|
00005D50: 65 72 20 24 32 35 20 69  73 20 32 2A 31 36 2B 35  |er $25 is 2*16+5|
00005D60: 20 28 33 37 29 20 69 6E  20 64 65 63 69 6D 61 6C  | (37) in decimal|
00005D70: 2E 0D 0A 48 6F 77 65 76  65 72 2C 20 75 73 69 6E  |...However, usin|
00005D80: 67 20 42 43 44 20 74 68  69 73 20 68 65 78 20 6E  |g BCD this hex n|
00005D90: 75 6D 62 65 72 20 77 6F  75 6C 64 61 63 74 75 61  |umber wouldactua|
00005DA0: 6C 6C 79 20 72 65 70 72  65 73 65 6E 74 20 74 68  |lly represent th|
00005DB0: 65 20 44 45 43 49 4D 41  4C 20 6E 75 6D 62 65 72  |e DECIMAL number|
00005DC0: 0D 0A 32 35 2E 20 57 68  65 6E 20 75 73 69 6E 67  |..25. When using|
00005DD0: 20 42 43 44 2C 20 72 65  73 75 6C 74 73 20 77 69  | BCD, results wi|
00005DE0: 6C 6C 20 62 65 0D 0A 6D  65 61 6E 69 6E 67 6C 65  |ll be..meaningle|
00005DF0: 73 73 20 69 66 20 6C 6F  6F 6B 69 6E 67 20 61 74  |ss if looking at|
00005E00: 20 74 68 65 20 72 65 73  75 6C 74 73 0D 0A 69 6E  | the results..in|
00005E10: 20 64 65 63 69 6D 61 6C  20 6F 72 20 68 65 78 20  | decimal or hex |
00005E20: 77 69 74 68 6F 75 74 20  6B 6E 6F 77 69 6E 67 20  |without knowing |
00005E30: 79 6F 75 0D 0A 61 72 65  20 75 73 69 6E 67 20 42  |you..are using B|
00005E40: 43 44 2E 20 54 6F 20 6F  70 65 72 61 74 65 20 42  |CD. To operate B|
00005E50: 43 44 20 74 68 65 20 36  35 30 32 0D 0A 69 6E 73  |CD the 6502..ins|
00005E60: 74 72 75 63 74 69 6F 6E  20 53 45 44 2C 20 53 45  |truction SED, SE|
00005E70: 74 20 44 65 63 69 6D 61  6C 20 6D 6F 64 65 2C 0D  |t Decimal mode,.|
00005E80: 0A 77 69 6C 6C 20 73 65  74 20 74 68 65 20 64 65  |.will set the de|
00005E90: 63 69 6D 61 6C 20 6D 6F  64 65 20 66 6C 61 67 2E  |cimal mode flag.|
00005EA0: 20 54 6F 20 43 4C 65 61  72 74 68 65 20 44 65 63  | To CLearthe Dec|
00005EB0: 69 6D 61 6C 20 6D 6F 64  65 20 66 6C 61 67 2C 20  |imal mode flag, |
00005EC0: 75 73 65 20 74 68 65 0D  0A 69 6E 73 74 72 75 63  |use the..instruc|
00005ED0: 74 69 6F 6E 20 43 4C 44  2E 20 4F 6E 63 65 20 64  |tion CLD. Once d|
00005EE0: 65 63 69 6D 61 6C 20 6D  6F 64 65 20 69 73 0D 0A  |ecimal mode is..|
00005EF0: 61 63 74 69 76 61 74 65  64 20 61 6C 6C 20 41 44  |activated all AD|
00005F00: 43 20 61 6E 64 20 53 42  43 20 69 6E 73 74 72 75  |C and SBC instru|
00005F10: 63 74 69 6F 6E 73 0D 0A  77 69 6C 6C 20 62 65 20  |ctions..will be |
00005F20: 63 61 72 72 69 65 64 20  6F 75 74 20 69 6E 20 42  |carried out in B|
00005F30: 43 44 2E FE 1F 08 02 42  49 4E 41 52 59 20 43 4F  |CD.....BINARY CO|
00005F40: 44 45 44 20 44 45 43 49  4D 41 4C 20 28 42 43 44  |DED DECIMAL (BCD|
00005F50: 29 0D 0A 0A 20 49 66 20  79 6F 75 20 74 72 79 20  |)... If you try |
00005F60: 74 6F 20 61 64 64 20 75  73 69 6E 67 20 42 43 44  |to add using BCD|
00005F70: 2C 20 61 6E 64 20 74 68  65 0D 0A 72 65 73 75 6C  |, and the..resul|
00005F80: 74 20 69 73 20 67 72 65  61 74 65 72 20 74 68 61  |t is greater tha|
00005F90: 6E 20 68 65 78 61 64 65  63 69 6D 61 6C 20 39 39  |n hexadecimal 99|
00005FA0: 0D 0A 74 68 65 6E 20 74  68 65 20 63 61 72 72 79  |..then the carry|
00005FB0: 20 66 6C 61 67 20 77 69  6C 6C 20 62 65 20 73 65  | flag will be se|
00005FC0: 74 2E 20 49 66 20 79 6F  75 0D 0A 70 65 72 66 6F  |t. If you..perfo|
00005FD0: 72 6D 20 61 20 73 75 62  74 72 61 63 74 69 6F 6E  |rm a subtraction|
00005FE0: 20 61 6E 64 20 74 68 65  20 72 65 73 75 6C 74 0D  | and the result.|
00005FF0: 0A 69 73 20 6C 65 73 73  20 74 68 61 6E 20 7A 65  |.is less than ze|
00006000: 72 6F 20 74 68 65 6E 20  74 68 65 0D 0A 63 61 72  |ro then the..car|
00006010: 72 79 20 66 6C 61 67 20  77 69 6C 6C 20 62 65 20  |ry flag will be |
00006020: 63 6C 65 61 72 65 64 2E  0D 0A 20 54 68 65 72 65  |cleared... There|
00006030: 20 69 73 20 61 6E 20 65  78 61 6D 70 6C 65 20 70  | is an example p|
00006040: 72 6F 67 72 61 6D 20 75  73 69 6E 67 20 42 43 44  |rogram using BCD|
00006050: 0D 0A 77 68 69 63 68 20  73 68 6F 75 6C 64 20 63  |..which should c|
00006060: 6C 61 72 69 66 79 20 77  68 61 74 20 68 61 73 20  |larify what has |
00006070: 62 65 65 6E 0D 0A 64 69  73 63 75 73 73 65 64 2E  |been..discussed.|
00006080: 20 52 65 6D 65 6D 62 65  72 20 74 6F 20 70 72 65  | Remember to pre|
00006090: 73 73 20 66 75 6E 63 74  69 6F 6E 0D 0A 6B 65 79  |ss function..key|
000060A0: 20 66 37 20 74 6F 20 65  6E 74 65 72 20 68 65 78  | f7 to enter hex|
000060B0: 20 6D 6F 64 65 2C 20 6F  74 68 65 72 77 69 73 65  | mode, otherwise|
000060C0: 20 74 68 65 20 72 65 73  75 6C 74 73 20 77 69 6C  | the results wil|
000060D0: 6C 20 62 65 20 6D 65 61  6E 69 6E 67 6C 65 73 73  |l be meaningless|
000060E0: 2E FF 20 20 20 20 20 20  20 53 45 44 0D 20 20 20  |..       SED.   |
000060F0: 20 20 20 20 4C 44 41 20  23 24 38 30 0D 41 44 44  |    LDA #$80.ADD|
00006100: 31 20 20 20 43 4C 43 0D  20 20 20 20 20 20 20 41  |1   CLC.       A|
00006110: 44 43 20 23 31 0D 20 20  20 20 20 20 20 42 43 43  |DC #1.       BCC|
00006120: 20 41 44 44 31 0D 20 20  20 20 20 20 20 4C 44 41  | ADD1.       LDA|
00006130: 20 23 24 39 35 0D 54 41  4B 45 35 20 20 53 45 43  | #$95.TAKE5  SEC|
00006140: 0D 20 20 20 20 20 20 20  53 42 43 20 23 35 0D 20  |.       SBC #5. |
00006150: 20 20 20 20 20 20 42 43  53 20 54 41 4B 45 35 0D  |      BCS TAKE5.|
00006160: 20 20 20 20 20 20 20 43  4C 44 0D 20 20 20 20 20  |       CLD.     |
00006170: 20 20 4C 44 41 20 23 32  34 32 0D 4E 4F 52 4D 41  |  LDA #242.NORMA|
00006180: 4C 20 43 4C 43 0D 20 20  20 20 20 20 20 41 44 43  |L CLC.       ADC|
00006190: 20 23 31 0D 20 20 20 20  20 20 20 43 4D 50 20 23  | #1.       CMP #|
000061A0: 24 31 42 0D 20 20 20 20  20 20 20 42 4E 45 20 4E  |$1B.       BNE N|
000061B0: 4F 52 4D 41 4C 0D 20 20  20 20 20 20 20 42 52 4B  |ORMAL.       BRK|
000061C0: FF D4 20 E0 A4 A9 07 D0  07 20 EA A9 D0 40 A9 10  |.. ...... ...@..|
000061D0: 20 D8 A9 20 8A 9B 4C E3  AF 24 B6 10 0B 38 E9 01  | .. ..L..$...8..|
000061E0: 20 CB A1 A9 4D 4C 28 A2  4C CB A1 20 CD AF D0 1E  | ...ML(.L.. ....|
000061F0: A5 B6 F0 0F AD 94 04 20  D6 AF F0 07 AD 94 04 29  |....... .......)|
00006200: 04 D0 0B 20 F2 AF AD 5E  A9 F0 03 20 CB A1 60 20  |... ...^... ..` |
00006210: A1 A3 F0 03 4C A7 A8 A5  A8 F0 14 A0 00 84 92 20  |....L.......... |
00006220: 30 B2 B0 09 69 FD F0 F3  20 32 B2 90 1B 38 60 A5  |0...i... 2...8`.|
00006230: B6 30 05 20 6F A1 B0 F5  A0 02 B1 86 A8 88 B1 86  |.0. o...........|
00006240: 91 80 98 D0 F8 20 F1 A3  A0 02 B1 80 C8 84 92 A8  |..... ..........|
00006250: A9 3C 91 80 18 60 B9 4D  BA 48 20 36 B3 8A A6 D5  |.<...`.M.H 6....|
00006260: 38 E5 AE A8 8A E5 AF AA  98 38 E9 02 85 B0 68 20  |8........8....h |
00006270: 46 AB A5 B0 20 46 AB A8  8A E9 00 D0 05 98 30 09  |F... F........0.|
00006280: 10 0C AA E8 D0 03 98 30  05 A9 03 20 01 A4 A9 02  |.......0... ....|
00006290: 4C 3B B1 A8 C9 22 B0 0B  0A A8 B9 16 BA 48 B9 15  |L;...".......H..|
000062A0: BA 48 60 C9 2B 90 13 C9  4C B0 0F C9 44 B0 A7 B9  |.H`.+...L...D...|
000062B0: 4D BA 20 46 AB A9 01 4C  3B B1 B9 4D BA AA 29 E3  |M. F...L;..M..).|
000062C0: 85 AC 8A 29 1C F0 02 A9  0B 85 AD 20 28 9E C9 3F  |...)....... (..?|
000062D0: D0 04 A0 00 F0 14 C9 3E  D0 07 20 36 B3 A0 01 D0  |.......>.. 6....|
000062E0: 09 C9 40 F0 02 C6 92 20  36 B3 84 B0 18 98 65 AD  |..@.... 6.....e.|
000062F0: A8 A5 AC C9 82 D0 08 C0  09 D0 18 A0 06 D0 12 C9  |................|
00006300: 80 D0 08 C0 08 D0 0C A0  05 D0 06 C0 06 D0 04 A0  |................|
00006310: 09 84 B0 19 59 BA 20 46  AB A5 D4 20 46 AB A5 D5  |....Y. F... F...|
00006320: 20 46 AB A4 B0 B9 A5 BA  85 99 C9 02 D0 0E A4 D5  | F..............|
00006330: F0 0A C8 F0 07 A9 04 20  01 A4 A5 99 4C 3B B1 40  |....... ....L;.@|
00006340: 20 01 80 02 04 08 10 A4  99 C8 99 00 04 84 99 60  | ..............`|
00006350: A9 80 A2 02 D0 12 A9 C0  A2 02 D0 0C A9 01 AE 5D  |...............]|
00006360: A9 D0 05 A9 00 AE 5D A9  8E 00 04 85 AC A9 00 85  |......].........|
00006370: A1 20 28 9E C9 12 F0 04  C6 92 D0 07 20 36 B3 86  |. (......... 6..|
00006380: A1 E6 92 20 28 9E C9 41  F0 53 C9 0B F0 70 C6 92  |... (..A.S...p..|
00006390: 20 36 B3 84 FF A4 AC 30  31 F0 05 8A 20 32 AC AA  | 6.....01... 2..|
000063A0: 8A 20 46 AB A5 D5 F0 09  C9 FF F0 05 A9 0A 20 01  |. F........... .|
000063B0: A4 A4 FF 30 CC A5 A1 F0  0E A4 99 18 B9 00 04 65  |...0...........e|
000063C0: A1 99 00 04 88 D0 F4 4C  3E B1 C0 C0 D0 04 A5 D4  |.......L>.......|
000063D0: A6 D5 48 8A 20 46 AB 68  20 46 AB D0 D4 20 28 9E  |..H. F.h F... (.|
000063E0: 29 7F AA 20 28 9E A4 AC  F0 03 20 32 AC 20 46 AB  |).. (..... 2. F.|
000063F0: CA D0 F0 E6 92 20 B5 B4  98 10 BA 4C 80 AB 20 78  |..... .....L.. x|
00006400: B4 A2 00 A1 93 85 B0 A0  06 B1 93 9D 80 05 E8 C8  |................|
00006410: C4 B0 90 F5 C9 9B F0 02  D0 01 CA 86 B0 A2 00 BD  |................|
00006420: 80 05 A4 AC F0 03 20 32  AC 20 46 AB E8 E4 B0 90  |...... 2. F.....|
00006430: EE B0 C2 A8 08 29 7F C9  60 B0 0B C9 20 90 05 E9  |.....)..`... ...|
00006440: 20 4C 45 AC 69 40 28 10  02 09 80 60 20 36 B3 05  | LE.i@(....` 6..|
00006450: D4 08 20 AE A9 28 F0 0F  A9 01 4C ED AC AD 84 04  |.. ..(....L.....|
00006460: C9 40 F0 08 4C 87 A9 A9  03 20 ED AC 20 0E AA B0  |.@..L.... .. ...|
00006470: EC 20 28 9E 10 0A 29 7F  18 65 92 85 92 20 28 9E  |. (...)..e... (.|
00006480: C9 01 D0 12 A9 00 20 ED  AC AD 94 04 29 08 D0 DC  |...... .....)...|
00006490: 20 C8 A9 4C 6B AC C9 02  D0 1B A4 B2 B9 A0 04 F0  | ..Lk...........|
000064A0: E8 C9 03 D0 08 A9 02 99  A0 04 4C C8 A9 A9 09 20  |..........L.... |
000064B0: 06 A4 4C 88 AC C9 03 F0  0E C9 05 D0 CC A5 B6 F0  |..L.............|
000064C0: C8 20 01 AE 4C 6B AC A4  B2 F0 0B C6 B2 F0 0C B9  |. ..Lk..........|
000064D0: A0 04 F0 17 D0 05 A9 09  20 06 A4 4C C8 A9 A4 B2  |........ ..L....|
000064E0: F0 F4 B9 A0 04 F0 F4 C9  02 F0 EB 4C 88 AC A4 B2  |...........L....|
000064F0: C8 C0 11 B0 06 99 A0 04  84 B2 60 A9 0B 4C 06 A4  |..........`..L..|
00006500: 20 28 9E 20 BE B6 B1 93  29 04 D0 08 A9 1E 20 06  | (. ....)..... .|
00006510: A4 4C C8 A9 A6 A0 E0 40  90 05 A9 1F 4C 0D AD A5  |.L.....@....L...|
00006520: 86 9D B0 04 A5 87 9D B1  04 A5 A8 9D B3 04 A5 A3  |................|
00006530: 9D B2 04 8A 18 69 04 85  A0 A0 02 B1 93 85 87 88  |.....i..........|
00006540: B1 93 85 86 20 C8 A9 A5  A4 30 1D 24 D2 30 19 85  |.... ....0.$.0..|
00006550: D2 0A 85 A4 A5 AE 8D FC  04 A5 AF 8D FD 04 A5 86  |................|
00006560: 8D FE 04 A5 87 8D FF 04  A4 A3 B1 88 18 69 01 0A  |.............i..|
00006570: 0A 65 A3 B0 33 85 9B A8  A9 00 85 A8 A2 FF 86 B6  |.e..3...........|
00006580: 91 88 C8 91 88 C8 A5 93  91 88 C8 A5 94 91 88 C8  |................|
00006590: 84 AD 20 28 9E C9 3C F0  3C C9 3B F0 38 C9 3D F0  |.. (..<.<.;.8.=.|
000065A0: F1 C9 41 D0 06 4C E5 AD  4C E0 AD C6 92 20 36 B3  |..A..L..L.... 6.|
000065B0: 48 8A A4 AD 91 88 C8 68  91 88 C8 A5 93 91 88 C8  |H......h........|
000065C0: A5 94 91 88 C8 84 AD F0  18 A4 9B B1 88 18 69 01  |..............i.|
000065D0: 91 88 4C 91 AD A5 9B 85  A3 A5 D2 F0 03 4C E3 AF  |..L..........L..|
000065E0: 60 A9 1F 4C 88 99 20 28  9E 20 A8 B6 A9 9B 9D 80  |`..L.. (. ......|
000065F0: 05 8A 48 E8 E6 B1 20 D0  B6 E6 92 68 AA A9 00 4C  |..H... ....h...L|
00006600: AF AD A6 A0 F0 47 CA CA  CA CA D0 21 06 D2 F0 1D  |.....G.....!....|
00006610: A9 40 85 A4 AD FC 04 85  AE AD FD 04 85 AF AD FE  |.@..............|
00006620: 04 85 86 AD FF 04 85 87  A9 00 85 A7 60 86 A0 BD  |............`...|
00006630: B1 04 85 87 BD B0 04 85  86 BD B2 04 85 A3 BD B3  |................|
00006640: 04 85 A8 20 C8 A9 A5 A0  D0 02 85 B6 60 4C 19 AD  |... ........`L..|
00006650: A9 20 48 20 36 B3 68 20  46 AB 8A 20 46 AB A5 D5  |. H 6.h F.. F...|
00006660: 20 46 AB A9 03 4C 3B B1  A4 92 B1 80 C9 40 F0 04  | F...L;......@..|
00006670: A9 4C D0 DE E6 92 A9 6C  D0 D8 20 28 9E 20 BE B6  |.L.....l.. (. ..|
00006680: B1 93 A6 A4 10 40 29 04  D0 38 A9 04 91 93 88 A5  |.....@)..8......|
00006690: 8D 91 93 88 A5 8C 91 93  20 0E AA 90 05 A9 12 4C  |........ ......L|
000066A0: 88 99 84 AD A2 8C 20 68  99 A4 AD 88 B1 80 91 95  |...... h........|
000066B0: 98 D0 F8 20 28 9E C9 04  F0 05 C9 05 D0 DA 60 4C  |... (.........`L|
000066C0: E0 AD A9 14 91 93 29 10  F0 05 A9 10 20 06 A4 20  |......)..... .. |
000066D0: C8 A9 20 0E AA 20 C8 A9  20 28 9E C9 04 F0 E0 C9  |.. .. .. (......|
000066E0: 05 D0 EF 60 20 28 9E C9  45 F0 20 C9 46 D0 05 48  |...` (..E. .F..H|
000066F0: 20 69 AF 68 C9 47 D0 04  A0 00 84 A7 A8 B9 F8 AA  | i.h.G..........|
00006700: 49 FF 2D 94 04 8D 94 04  4C 20 AF 20 28 9E C9 46  |I.-.....L . (..F|
00006710: D0 05 48 20 33 AF 68 A8  B9 F8 AA 0D 94 04 8D 94  |..H 3.h.........|
00006720: 04 20 28 9E C9 3D F0 BC  4C C8 A9 A4 AA 91 82 E6  |. (..=..L.......|
00006730: AA F0 01 60 A5 AA C9 04  F0 F9 38 E9 05 18 A0 00  |...`......8.....|
00006740: 71 82 A0 02 91 82 88 B1  82 69 00 A0 03 91 82 48  |q........i.....H|
00006750: 88 B1 82 48 20 DD B2 68  18 69 01 A0 00 91 82 C8  |...H ..h.i......|
00006760: 68 69 00 91 82 A0 04 84  AA 60 A5 AF 48 A5 AE 18  |hi.......`..H...|
00006770: 90 E9 A9 00 85 A7 A5 D2  F0 3A A6 B1 A9 28 9D 80  |.........:...(..|
00006780: 05 E6 B1 E8 20 D0 B6 B1  93 24 D2 30 15 29 08 D0  |.... ....$.0.)..|
00006790: 23 A9 08 91 93 88 B1 97  91 93 88 B1 97 91 93 4C  |#..............L|
000067A0: B3 AF 29 08 F0 0E A9 00  91 93 88 B1 93 91 97 88  |..).............|
000067B0: B1 93 91 97 20 36 B3 A0  02 91 97 8A 88 91 97 A0  |.... 6..........|
000067C0: 03 B1 97 29 FE 05 A2 09  02 91 97 4C AE A9 A5 A4  |...).......L....|
000067D0: 30 0F AD 94 04 10 08 29  20 D0 06 A6 A7 F0 03 A9  |0......) .......|
000067E0: 00 60 CA 60 AD 94 04 29  20 D0 03 4C 32 A4 A9 00  |.`.`...) ..L2...|
000067F0: 85 A7 60 EE 83 04 AD 83  04 C9 3D 90 3A AD 94 04  |..`.......=.:...|
00006800: 29 01 D0 2E 20 CD AF D0  29 A5 D4 48 A5 D5 48 20  |)... ...)..H..H |
00006810: 12 A5 20 12 A5 AD 94 04  29 02 D0 07 AD 1F D0 29  |.. .....)......)|
00006820: 01 D0 F9 20 A3 B0 20 C8  B0 20 12 A5 68 85 D5 68  |... .. .. ..h..h|
00006830: 85 D4 A9 00 8D 83 04 60  A2 08 20 6E B0 20 CD AF  |.......`.. n. ..|
00006840: D0 0B 20 C8 A9 20 50 B0  A9 FF 8D 83 04 60 20 12  |.. .. P......` .|
00006850: A5 20 F2 AF AD 83 04 D0  F5 60 A2 06 20 6E B0 4C  |. .......`.. n.L|
00006860: C8 A9 A2 0A 20 6E B0 A9  00 20 06 A4 4C C8 A9 20  |.... n... ..L.. |
00006870: 28 9E C9 41 F0 01 60 BD  71 8F 85 93 BD 72 8F 85  |(..A..`.q....r..|
00006880: 94 20 28 9E 29 7F AA A9  00 85 B0 E0 47 90 02 A2  |. (.).......G...|
00006890: 46 20 28 9E A4 B0 E6 B0  29 7F 91 93 CA D0 F2 09  |F (.....).......|
000068A0: 80 91 93 60 EE 8F 04 D0  03 EE 90 04 A0 8F A2 68  |...`...........h|
000068B0: 20 1D A5 AE 8F 04 AD 90  04 85 D5 86 D4 20 C5 A4  | ............ ..|
000068C0: 20 C9 A1 A2 7D A0 8F D0  04 A2 C3 A0 8F 4C 33 A5  | ...}........L3.|
000068D0: 20 36 B3 8E 8C 04 E6 92  20 36 B3 8E 8D 04 E6 92  | 6...... 6......|
000068E0: 20 36 B3 8E 8E 04 20 52  A9 4C C8 A9 20 D7 A0 C9  | 6.... R.L.. ...|
000068F0: FE D0 12 20 D7 A0 C9 FE  D0 0B 20 D7 A0 85 BD 20  |... ...... .... |
00006900: D7 A0 85 BE 60 A9 17 4C  88 99 20 36 B3 A4 A2 F0  |....`..L.. 6....|
00006910: 04 A9 0E D0 F2 24 A4 10  07 85 AF 86 AE 4C 9E A9  |.....$.......L..|
00006920: 48 8A 48 20 33 AF A9 FF  8D 93 04 20 9E A9 68 85  |H.H 3...... ..h.|
00006930: AE 68 85 AF 4C 69 AF A9  13 4C 88 99 8D 00 04 24  |.h..Li...L.....$|
00006940: A4 10 08 20 48 B4 85 AF  86 AE 60 2C 94 04 70 2F  |... H.....`,..p/|
00006950: A5 99 F0 2B AD 93 04 F0  DE A4 D3 D0 0E 88 C8 C4  |...+............|
00006960: 99 B0 1C B9 01 04 91 AE  4C 5D B1 A0 FF 84 D1 E6  |........L]......|
00006970: D1 A4 D1 C4 99 B0 08 B9  01 04 20 2A AF D0 F0 A9  |.......... *....|
00006980: 00 85 FE 20 CD AF D0 BB  20 A6 B1 A9 10 38 ED 95  |... .... ....8..|
00006990: 04 20 D8 A9 20 8A 9B A5  99 F0 09 20 A6 B1 20 12  |. .. ...... .. .|
000069A0: A5 4C 96 B1 4C E3 AF 20  F2 AF AD 5E A9 F0 05 20  |.L..L.. ...^... |
000069B0: CB A1 A9 00 8D 95 04 A5  AE A4 AF 20 17 A5 A5 99  |........... ....|
000069C0: F0 1D AD 00 04 85 B0 A4  FE B9 01 04 20 E6 A4 E6  |............ ...|
000069D0: AE D0 02 E6 AF E6 FE C6  99 F0 04 C6 B0 D0 E8 60  |...............`|
000069E0: A5 A8 D0 08 20 33 AF A9  80 8D 84 04 4C 9E A9 20  |.... 3......L.. |
000069F0: 36 B3 8A C9 02 90 08 A9  1B 20 06 A4 4C 08 B2 48  |6........ ..L..H|
00006A00: E6 92 20 36 B3 68 20 0B  B2 4C C8 A9 0A A8 B9 17  |.. 6.h ..L......|
00006A10: B2 48 B9 16 B2 48 60 19  B2 27 B2 A5 D4 F0 04 C9  |.H...H`..'......|
00006A20: 05 90 02 A9 04 8D 5D A9  60 A5 D4 29 1F 8D 5E A9  |......].`..)..^.|
00006A30: 60 A9 03 85 D4 A2 00 A5  BB 05 BC F0 1A A4 92 A1  |`...............|
00006A40: B9 91 80 E6 92 E6 BB D0  02 E6 BC E6 B9 D0 02 E6  |................|
00006A50: BA C6 D4 D0 E2 18 60 A5  BE 05 BD F0 45 A5 BE C9  |......`.....E...|
00006A60: 04 B0 08 85 9F A5 BD 85  9E 90 08 A9 03 85 9F A9  |................|
00006A70: FF 85 9E 38 A5 BD E5 9E  85 BD A5 BE E5 9F 85 BE  |...8............|
00006A80: A9 07 A6 A8 20 59 A1 A9  8B 85 BA A0 00 84 B9 20  |.... Y......... |
00006A90: 8C A3 C0 80 F0 09 90 16  C0 88 F0 12 20 B3 A2 4C  |............ ..L|
00006AA0: A7 A8 A5 A8 8D 86 04 A9  88 20 B9 A2 38 60 38 A9  |......... ..8`8.|
00006AB0: 00 FD 48 03 85 BB A9 00  FD 49 03 85 BC A2 00 4C  |..H......I.....L|
00006AC0: 3C B2 A2 03 B9 D7 B2 95  E6 88 CA 10 F7 A9 00 85  |<...............|
00006AD0: 9C A9 04 85 9D 4C 33 9A  00 8B 00 87 00 8B A6 D3  |.....L3.........|
00006AE0: A9 0B 20 54 A2 A0 00 A5  AA D0 01 C8 9D 48 03 98  |.. T.........H..|
00006AF0: 9D 49 03 A5 83 A4 82 20  8C A3 4C B3 A2 E6 92 A5  |.I..... ..L.....|
00006B00: A8 C9 04 F0 2A 8D 97 04  A8 F0 0D 20 C1 B2 A2 05  |....*...... ....|
00006B10: B5 B9 9D F0 04 CA 10 F8  A9 00 85 BB 85 BC 20 51  |.............. Q|
00006B20: DA A9 04 A8 84 A8 20 86  A2 20 EB B0 4C C8 A9 A9  |...... .. ..L...|
00006B30: 15 20 06 A4 4C C8 A9 A0  7F 84 E4 A9 3C 99 00 01  |. ..L.......<...|
00006B40: A0 00 84 A2 84 E5 20 2A  B4 B0 06 20 B7 B3 4C 45  |...... *... ..LE|
00006B50: B3 85 B4 AA BD 3C B6 85  B5 A4 E4 BE 00 01 BD 69  |.....<.........i|
00006B60: B6 C5 B5 90 14 A8 F0 25  E6 E4 20 6F B3 4C 58 B3  |.......%.. o.LX.|
00006B70: BD D0 B3 48 BD F4 B3 48  60 A5 B4 88 C4 E5 90 08  |...H...H`.......|
00006B80: 99 00 01 84 E4 4C 45 B3  A9 06 20 01 A4 20 C5 B3  |.....LE... .. ..|
00006B90: 85 D5 86 D4 A5 A2 F0 05  A9 05 20 06 A4 C6 92 20  |.......... .... |
00006BA0: B5 B4 A6 D4 A5 D5 05 A2  F0 07 C0 05 90 03 C8 C8  |................|
00006BB0: C8 A5 D5 60 A5 D5 A6 D4  A4 E5 99 00 01 C8 8A 99  |...`............|
00006BC0: 00 01 C8 84 E5 60 A4 E5  88 B9 00 01 AA 88 B9 00  |.....`..........|
00006BD0: 01 84 E5 60 20 C5 B3 85  E1 86 E0 20 C5 B3 86 D4  |...` ...... ....|
00006BE0: 85 D5 60 B4 B4 B5 B5 B5  00 B5 B6 B6 B5 B6 B6 B4  |..`.............|
00006BF0: B3 B5 00 00 00 B5 B5 00  00 00 00 00 00 00 00 00  |................|
00006C00: B5 B5 B5 B6 B6 B4 B4 E2  FE 16 37 5D 00 92 11 38  |..........7]...8|
00006C10: AA 01 0A F1 76 CB 00 00  00 D5 E3 00 00 00 00 00  |....v...........|
00006C20: 00 00 00 00 6B B8 95 1A  29 D1 D9 20 28 9E 30 24  |....k...).. (.0$|
00006C30: C9 0B B0 0E 4A 20 28 9E  AA B0 03 A9 00 60 18 4C  |....J (......`.L|
00006C40: 28 9E C9 0D F0 03 90 31  60 18 A5 AE 65 99 AA A5  |(......1`...e...|
00006C50: AF 69 00 60 20 BE B6 B1  93 90 05 A9 81 18 90 04  |.i.` ...........|
00006C60: 29 01 05 A2 85 A2 A0 01  B1 93 AA C8 B1 93 60 A9  |).............`.|
00006C70: 20 20 06 A4 A9 00 AA 18  60 20 28 9E C9 40 D0 0A  |  ......` (..@..|
00006C80: 20 28 9E 20 53 B4 E6 92  D0 05 20 33 B4 D0 E0 8A  | (. S..... 3....|
00006C90: A4 A3 D1 88 F0 02 B0 D7  A6 A0 F0 D3 0A 0A 18 65  |...............e|
00006CA0: A3 A8 B1 88 C8 AA B1 88  48 C8 B1 88 85 93 C8 B1  |........H.......|
00006CB0: 88 85 94 68 18 60 A4 92  B1 80 C9 36 B0 01 60 AA  |...h.`.....6..`.|
00006CC0: 30 04 BC 91 B4 60 18 60  03 02 06 05 04 07 07 FB  |0....`.`........|
00006CD0: 00 00 00 20 C5 B3 A9 00  4C B7 B3 20 C5 B3 AA A9  |... ....L.. ....|
00006CE0: 00 4C B7 B3 20 D3 B3 18  8A 65 E0 AA A5 D5 65 E1  |.L.. ....e....e.|
00006CF0: 4C B7 B3 20 C5 B3 86 E0  85 E1 A2 00 86 D5 F0 03  |L.. ............|
00006D00: 20 D3 B3 38 8A E5 E0 AA  A5 D5 E5 E1 4C B7 B3 A9  | ..8........L...|
00006D10: 00 85 D6 85 D7 A0 10 60  20 D3 B3 20 0E B5 46 D7  |.......` .. ..F.|
00006D20: 66 D6 66 D5 66 D4 88 30  33 90 F3 18 A2 FE B5 E2  |f.f.f..03.......|
00006D30: 75 D8 95 D8 E8 D0 F7 F0  E5 20 D3 B3 20 0E B5 06  |u........ .. ...|
00006D40: D4 26 D5 26 D6 26 D7 38  A5 D6 E5 E0 AA A5 D7 E5  |.&.&.&.8........|
00006D50: E1 90 06 85 D7 86 D6 E6  D4 88 D0 E3 4C B3 B3 20  |............L.. |
00006D60: D3 B3 8A 25 E0 AA A5 D5  25 E1 4C B7 B3 20 C5 B3  |...%....%.L.. ..|
00006D70: A0 03 A2 00 24 A4 70 12  A5 D2 D0 0E 24 A2 86 A2  |....$.p.....$...|
00006D80: 30 08 A9 10 11 93 91 93  D0 15 B1 93 86 A2 29 10  |0.............).|
00006D90: D0 0D F0 12 20 FF B4 20  C5 B3 D0 0A 8A D0 07 A2  |.... .. ........|
00006DA0: 01 A9 00 4C B7 B3 A2 00  8A 4C B7 B3 20 FF B4 20  |...L.....L.. .. |
00006DB0: C5 B3 D0 EB 8A D0 E8 4C  B7 B3 20 C5 B3 A0 03 B1  |.......L.. .....|
00006DC0: 93 29 01 49 01 AA A9 00  85 A2 4C B7 B3 A4 E4 68  |.).I......L....h|
00006DD0: 68 BE 00 01 4C 67 B3 20  D3 B3 8A 05 E0 AA A5 D5  |h...Lg. ........|
00006DE0: 05 E1 4C B7 B3 20 D3 B3  8A 45 E0 AA A5 D5 45 E1  |..L.. ...E....E.|
00006DF0: 4C B7 B3 20 D3 B3 A5 D5  C5 E1 90 06 D0 04 A5 D4  |L.. ............|
00006E00: C5 E0 60 20 F2 B5 F0 3A  90 38 B0 33 20 F2 B5 90  |..` ...:.8.3 ...|
00006E10: 2E B0 2F 20 F2 B5 F0 27  90 25 B0 26 20 D3 B3 05  |../ ...'.%.& ...|
00006E20: D4 F0 1F A5 E0 05 E1 F0  19 D0 14 20 D3 B3 05 D4  |........... ....|
00006E30: D0 0D A5 E0 05 E1 D0 07  F0 08 20 F2 B5 90 03 4C  |.......... ....L|
00006E40: 9E B5 4C A5 B5 00 00 00  00 00 00 00 00 00 00 09  |..L.............|
00006E50: 09 0A 0A 08 00 07 07 07  07 07 07 0F 0F 04 00 00  |................|
00006E60: 00 08 08 00 00 00 00 00  00 00 00 00 0F 0F 0B 06  |................|
00006E70: 05 0F 0F 00 00 00 00 00  00 00 00 00 09 09 0A 0A  |................|
00006E80: 08 00 07 07 07 07 07 07  0D 03 0E 00 00 00 08 08  |................|
00006E90: 00 00 00 00 00 00 00 00  00 02 02 0B 06 05 02 02  |................|
00006EA0: 00 00 00 00 00 00 00 00  00 29 7F 85 B1 A2 00 A4  |.........)......|
00006EB0: 92 B1 80 9D 80 05 E8 C8  E4 B1 90 F5 84 92 60 20  |..............` |
00006EC0: A8 B6 AD 80 05 C9 3F D0  08 AD F8 04 F0 03 8D 80  |......?.........|
00006ED0: 05 8A 18 69 06 85 9A AE  80 05 E0 3F B0 04 A2 3F  |...i.......?...?|
00006EE0: D0 06 E0 5B 90 02 A2 5A  BC DD 04 C0 FF F0 38 BD  |...[...Z......8.|
00006EF0: C1 04 18 65 8C 85 93 98  65 8D 85 94 A2 00 A5 9A  |...e....e.......|
00006F00: C1 FF FF FF FF                                    |.....           |
..".... 3072: ANY.E DID IT AGAIN !...   
                                        
                                        
                                        
                                        
                                        
                 ........YA.PN.P... R..>
.8.<...EC...?.ED(.=... LO..EW........L..
 ,. .....P)...PJP..P.X` ... )O.....P...F
.P.. )O...P.JJ`..EW.W........). JO.... J
O..F.P.`JP.....JP...` .OI..... IO..H..P.
.# .O IO.CEW.W.CP..D.CE..D.... IO .NH..X
.... .L.. .. .N.W....... YO&...I.P. . IO
I...D.P. IO.P.`.... YO&.F.P...`..,......
....H.....HJJ`..........H.....HJJ`......
........................................
........................................
........................................
........................................
........................................
........................................
........................................
........................................
........................................
........................................
.........................XX.....).......
.......)........P. ..P... P..P)...)..0..
P F....E..D... .1 Z.L.............@..T .
5 F.L.......4.......J..................`
.. .1.. .1 .1L.......`........ ...I... .
1HP...P...... .... .1... .1... .1 %4....
I...L(.....$...I P'.. .1.. .1... .1.....
.....L.....I P.L1....I...........IA..LD.
I[..LD.L1....I'..... .4...L.....I0..LU.I
:..L1....I.P....I...N.... .1L.....I.P...
.I.....................M....J..L..L1....
I.P....I.P.L..N..L..I.P....I'P.L........
..L..I.P....I.P.L..N..L..I.P....I.P.L...
..L...G... Z... .4..........LN..H...L..L
.......{..............A.....P...........
................ Z. .5LR...... ...I... .
1HP...P...... ..L.......`....CBM80 G.X .
"XX %4...I_P.LN..I.P(...I...I.P. Z#X ...
.....I.PILC5 .. ..L.....I.P...... -. G.L
X..... .1.. .1 .1 ..  .1.P... .4...P....
P...Q.. .1.. .1.. .1 ..PI... .1HP..QP...
... .. &. G.L.....*..2... N.LZ....I0..IG
..I:..IA..` ..+.H.+.....P..0.+.JPU`.:M..
.....8.0.M*..*.L.....8.7.M*..*..:M-....-
.8.0.....M*..*.LJ..-.8.7.....M*..*..:M,.
...,.8.0.M2..2.L...,.8.7.M2..2..:M+....+
.8.0.....M2..2.L...+.8.7.....M2..2.`...B
. Z..W...<...T...... W. ....`.H...I...H.
.I... W.N`.P.L_.... ...I...I... .1HP...P
....`........THE COMPLETE MACHINE CODE T
UTOR  ........**************************
*****  .......            BY PAUL BUNN..
...  (C) 1984 NEW GENERATION SOFTWARE...
CHOOSE SELECTION BY PRESSING RETURN...WH
EN CHOICE IS MADE PRESS THE SPACE BAR...
 ....`........ .1.. .1... .1.. .1......I
.P... .1.. .1.B. .1.. .1.. .1.. .1 %4I.P
..B...`.I.MB.P....B.LF.I ..L...B.8....I.
.....H.... ....A...I...HP.H....H...... .
1.A.I..7 W....... S....I..... .1... I.L.
..B..`..I.MB.P....B.L ...... ... .1.. .1
... .1..I...I... .1HP...P....HLE.L......
............ W. %4I P.........`....PRESS
 SPACE BAR TO CONTINUE....*..2. N..+.I0.
....M*..*..2.I..2.N+.LA..,.I0...D ..N,.L
...-.I0.... ..N-.L.....I0.... ..N..L..`.
M*..*..2.I..2.`...V.{.W.....X.X..AP.H..A
I...`.. .1.. .1. .1.W ..... .1... .1.V .
.... .1... .1.  .1 .1...Y.X..AI...L... .
.... .1... .1.X.YL..H..AI....X..AL..H..A
I.P..X..AL....VEY.V..X.XL4....P.......3.
.4.........(..Z. .4._.V. .W....... .1...
.I. .1.(. .1.. .4.......N....PY...I P...
.P..P..P.I...LW. $9LX. .:.....I ..LN....
P. ..VI..<Y..P#H..P..V.....{.3...A....A.
.A...).L.. ..LY..V.I..V.WI..W`.. .1.. .1
.. .1..... .4I....P...... .1...P. %4LN..
..V. .W.....IA..L$.....I P...P. ..VI...Y
..P#H..P..V.....{.3...A....A..A...).L.. 
..L...Q.V. .W.....I#..LB.L.. ..VI...Y..P
?H..P..V.....{.3...A...)......I$.$ .....
..+..H..P. ...2...L..L.. ..L;. .......+.
.H..P. >..2...L...*......{.3...A....A..A
L..... .+.JP. ....I,..IG..I(..H..P.L..LP
.H...IX.PIY..L.. ....I$P,..H....+....P. 
>..2.P.L.....V.!.W...). ..L}.......+.H..
.P. ..L.. ....I$P)..H....+....P. >..2..:
...V.!.W...). ..L}.......+..H..P. ..LZ..
K.V.".W...). ..L.....V.".W...). ..L_. ..
....I$.'....+..H..P. ...2..*.S.V.!.W...)
. ..L}.H....+....P. >..2...LK....V. .W..
.). ..LK. ..VI..PY..PEH..P..V.....{.3...
A.).I..2....*...{.3...A....2...{.3...A..
..A..AHHL.. ..L..`....*...{.3...A....A..
AHHL..LS.....M).....(...3.M).I..3.L.... 
.1.. .1.. .1..... .4I....P.L.....I......
..`.....`.  .1JP.`.. .1.. .1.. .1... ...
..K. .... .1.. .1.. .1... .....K. .... .
1.! .1.. .1... .....K. .... .1.. .1.. .1
...K....*..I0 .1.. P....JJ..I0 .1.. P...
.JJJJ.0I. .1.. P....**..I0 .1.. P....J..
I0 .1.. P....JJJ..I0 .1`...I...LY... .1.
. .1.. .1... .. .... .1.. .1.. .1... .. 
.... .1.. .1.. .1... .. .... .1.. .1.. .
1...)..I0 .1.. .1.. .1.. .1..,.....1 .1L
6..0 .1.. .1.. .1.. .1...JJJ..I0 .1.. .1
.. .1.. .1...JJ..I0 .1.. .1.. .1.. .1...
*..I0 .1.. .1.. .1.. .1...**..I0 .1`... 
...$...............`...JJJJI....I7...LT.
I0......).I....I7...`I0...`......I...L..
.0............8.D.....N...ID8.......N...
I.8.......N..`.. .1.. .1.. .1. .  .1JP.`
...I....... .1.. .1. .1.. .1...P.L......
 .1.. .1. .1.. .1...P.L.... .1.. .1... .
1.. .1.. .1`.. .1.. .1... .1.. .1.. .1`.
.. .1... .1...L.1.....I(..L......I$..L..
 ......+.H..P. >.L.. .....+.H...P. .....
..I ..I).;I,.....P.L.....IX..L.....I)..L
...T.V.".W...)..2.P. ..L..L.....I,..L...
..IY..L...U.V.".WLA....V.".W ..VI..0Y..P
%H..P.....V..{.3...A...)..P.I.P. ..L.. .
.L{.LA.....A..AL.....V.".W ..VI...Y..P.H
..P.L..L.. ..LI..V.....{.3...A....A..A..
.)..P.I.P. ..L...).I.......{..{.3...A K.
.3...A.....{` K.8..8........{.3...A`....
..... .1. .1... .1..... .4......8.......
Q..........PN.. .1.. .1... .1.. .4. .%..
 ..Q.Y..P..H..P......`...I......LP..... 
.1.. .1.. .1...I... .4.P.HHHHL..#$,()...
ACCUMULATOR  :000..                 ..X 
- REGISTER :000..                 ..Y - 
REGISTER :000..                 ..CARRY 
FLAG   :0  ..DECIMAL MODE :0  ..INTERRUP
TS   :0  ..ZERO FLAG    :0  ..NEGATIVE F
LAG:0  ..OVERFLOW FLAG:0  ..            
     ...F3/F7 FOR MODES...'RETURN' TO RU
N  ...'_' TO EDIT    .........LABELS INS
TRUCTIONS.....PRESS KEYS:........ F1   .
..ASSEMBLES PROGRAM........ F3   ...FOR 
MAIN MENU........ F5   ...TO ERASE PROGR
AM............... ...EDIT MODE  .... ...
*********  .....TYPE IN PROGRAM, USING T
HE CURSOR KEYS..TO EDIT PROGRAM......ACC
UMULATOR    X-REGISTER    Y-REGISTER  ..
.000  ..     ...000  ..    ...000  ..   
     NEG ZERO DEC O/F CARRY I/DISABLEFLA
GS:...0   0    0   0    0        0.ERROR
 - INSTRUCTION NOT RECOGNISED :.ERROR - 
NUMBER BIGGER THAN 255:.ERROR - LABEL NO
T FOUND : .ERROR - RESULTING ADDRESS GRE
ATER THAN..1024 (DECIMAL) OR $400 (HEX).
BRK.CLC.CLDXCLIXCLV.DEXJDEY.INX.INYHNOP.
PHAHPHP.PLAHPLP(RTS`SEC8SED.SEIXTAX.TAY.
TSX.TXA.TXS.TYA..ASL.LSRJROL*RORJ.ADCIAN
D)CMPICPX.CPY.EORILDA.LDX.LDY ORA.SBC..A
DCEAND%ASL.BIT$CMPECPX.CPYDDECFEOREINC.L
DA.LDX.LDY.LSRFORA.ROL&RORFSBC.STA.STX.S
TY..ADCMAND-ASL.BIT,CMPMCPX.CPYLEORMINC.
LDA.LDX.LDY.LSRNORA.ROL.RORNSBC.STA.STX.
STY.DECN.ADC}AND=ASL.CMP.DEC.EOR]INC.LDA
.LDY.LSR^ORA.ROL>ROR~SBC.STA..ADCYAND9CM
PYEORYLDA.LDX.ORA.SBC.STA..ADCUAND5ASL.C
MPUDECVEORUINC.LDA.LDY.LSRVORA.ROL6RORVS
BC.STA.STY..LDX.STX..ADCAAND!CMPAEORALDA
.ORA.SBC.STA..ADCQAND1CMPQEORQLDA.ORA.SB
C.STA..JMPLJSR .BCC.BCS.BEQ.BMI0BNEPBPL.
BVCPBVSP... .1.. .1.. .1.P....  .1N.....
P.`.....(.. .".. .1.. .1.. .1.......]...
{.\.........I.....I...JL.# .....H....H..
..H.... }#H....H.... }#H....H.... }#H...
[. .#....'I...M[....P...I...L.& W(`L....
. ...I... .4HP....` ."HHLN. .........L.&
I.P.`I.P.........`I.P..]...{....{.I...`I
.P..].......{..`I.P..^.......]...{.^.`I.
P. .#...M......I...`I.P. .#...M....L.$I.
P+.....]...{.. ......H...I.......M......
I...`I.P%.....]...{.M.... ......H...I...
.....`I.P..]...{.M......I...`I.P..]...{.
M..L.$I.P..]...{... ...M....H..P.L (..`I
.P..]...{....I........Q.... .L.$` ....)L
... ....^..^...^...H).......`.........N.
.`............`.........N..`............
L.& %4HHLN. ......L.&... ...` ......L.& 
......` ......L.& ......`.]. ...-.....L.
&...)....`........` ...J......)L...H)...
....` ...M.....L.& ....).H(..*......)L..
.H).......` ....^....,^.....)....H)B....
..`..8.....`..........I...........I{..L 
( ...M....H..P.L (..L.&.{......N...]..I.
......N..L.&...)....`...).H( ....)......
.Q.....H)C......`...).H( ....)......J...
H)C......`N..L.&..........)M...H).......
`......L.&......`........`.... .1.. .1..
 .1.. I... .1.P. %4HHLN.......`........`
...L.&N..L.& ....^.N^..^...L.&...L.&...)
.H(...)....... .......H)C......`...)....
... .8...H)C......`...).......LJ'...)...
....LJ'......L.&......L.&......L.&...)..
..` ....^..^..^...L.&...)....`...)...L.'
`...).P......N..`...)@..`...).P.`...).P.
`...)..X`...)..P`...)@PH`...8(I... .1.L"
( %4HHLN....ERROR - ADDRESS NOT FOUND...
.....I...`..(I... .1.P.8.... ..... .1.. 
..... .1... .1`...RESULTING ADDRESS $...
#?6{6.(..#.5.507.:%[6{6.(.:%[6{6.(.:%[6{
6.(..#.5.507..$.5.6.(.:%[6{6.(..%.6.6"6.
.#.5.5H5..$.5.5.(.:%[6{6.(.:%[6{6.(..#.5
.507..$.5.6.(.:%[6{6.(..(.8.8.(..#.5.507
.:%[6{6.(.:%[6{6.(.:%[6{6.(..#.5.507..$.
5.6.(.:%[6{6.(..%.6 6.6..#.5.507.:%[6{6.
(.:%[6{6.(.:%[6{6.(..#.5.507..$.5.6.(.:%
[6{6.(.>&.7.(.(.X%B607.(.:%[6{6.(.:%[6{6
.(..%.6.6.(.X%B607.(.A%.6.6.6.:%[6{6.(..
%.7.6.6.X%B6H5.(.A%.6.6.5.:%[6{6.(..%.6.
6.(.X%B607.(.A%.6.6.6.:%[6{6.(..(.8.8.(.
X%B607.(.:%[6{6.(.:%[6{6.(.:%[6{6.(.X%B6
07.(.A%.6.6.6.:%[6{6.(..%+7 6.6.X%B607.(
.:%[6{6.(.:%[6{6.(.:%[6{6.(.X%B607.(.A%.
6.6.6.:%[6{6.(.:%[6{6.(..%.7.507.:%[6{6.
(.:%[6{6.(.:%[6{6.(..%.7.507..%.7.6.6.:%
[6{6.(..%.6.5"6..%.7.5H5..%.7.6.5.:%[6{6
.(..&.7.(.(..%.7.507..%.7.6.6.:%[6{6.(..
'.8.8.(..%.7.507.:%[6{6.(.:%[6{6.(.:%[6{
6.(..%.7.507..%.7.6.6.:%[6{6.(.[&.6O7.6.
.%.7.507.:%[6{6.(.:%[6{6.(.:%[6{6.(..%.7
.507..%.7.6.6.:%[6{6.(..&.8.(.(.D&E7 6.6
.:%[6{6.(.:%[6{6.(.:%[6{6.(.D&E7 6.6..&.
6.6.6.:%[6{6.(.+%.7.5.6.D&E7 6D8..&.6.6.
5.:%[6{6.(.:%[6{6.(.D&E7 6.6..&.6.6.6.:%
[6{6.(..(.8.9.(.D&E7 6.6.:%[6{6.(.:%[6{6
.(.:%[6{6.(.D&E7 6.6..&.6.6.6.:%[6{6.(.X
&+7O7.6.D&E7 6.6.:%[6{6.(.:%[6{6.(.:%[6{
6.(.D&E7 6.6..&.6.6.6.:%[6{6.(.:%[6{6.(.
L%L7.5S7.:%[6{6.(.:%[6{6.(.P%L7.5S7.L%L7
.5S7.^%L7.5S7.:%[6{6.(..&.7.5.(.:%[6{6.(
..&B7.5.7.:%[6{6.(.P%L7.5S7.L%L7.5S7.^%L
7.5S7.:%[6{6.(..(.8 6.8.L%L7.5S7.:%[6{6.
(.:%[6{6.(.P%L7.5S7.L%L7.5S7.^%L7.5S7.:%
[6{6.(.H&B7.5.7.L%L7.5S7.Q&B7.5.7.:%[6{6
.(.:%[6{6.(.L%L7.5S7.:%[6{6.(.:%[6{6.(.F
%.7.5H5.B%.7.5U5.T%.7.5H5.:%[6{6.(.F%.7.
5U5.B%.7.5U5.T%.7.5U5.:%[6{6.(..'B7.5M8.
B%.7.5H5..'B7.5.8.:%[6{6.(.F%.7.5U5.B%.7
.5U5.T%.7.5U5.:%[6{6.(..'.8 6.8.B%.7.5U5
.:%[6{6.(.:%[6{6.(.F%.7.5U5.B%.7.5U5.T%.
7.5U5.:%[6{6.(.L'.6.8.6.B%.7.5U5..'B7.7.
8.:%[6{6.(.F%.7.5U5.B%.7.5U5.T%.7.5U5.:%
[6{6.(.Z'[8.5H5..'[8.5U5.:%[6{6.(.:%[6{6
.(.Z'[8.5U5..'[8.5U5.#'.7.6.(.:%[6{6.(..
'+8.5.(..'[8.5H5..'.7.5.(.:%[6{6.(.Z'[8.
5U5..'[8.5U5.#'.7.6.(.:%[6{6.(..'.8D8.(.
.'[8.5U5.:%[6{6.(.:%[6{6.(.:%[6{6.(..'[8
.5U5.#'.7.6.(.:%[6{6.(..'.668.6..'[8.5U5
.:%[6{6.(.:%[6{6.(.:%[6{6.(..'[8.5U5.#'.
7.6.(.:%[6{6.(._'[8.5H5.;'L8 6.6.:%[6{6.
(.:%[6{6.(._'[8.5U5.;'L8 6.6..'+8.6.(.:%
[6{6.(.5'+8.5.(.;'L8 6D8..'.8.(.(.:%[6{6
.(._'[8.5U5.;'L8 6.6..'+8.6.(.:%[6{6.(.U
'.8|8.(.;'L8 6.6.:%[6{6.(.:%[6{6.(.:%[6{
6.(.;'L8 6.6..'+8.6.(.:%[6{6.(..'+768.6.
;'L8 6.6.:%[6{6.(.:%[6{6.(.:%[6{6.(.;'L8
 6.6..'+8.6.(.:%[6{6.(..F.H.H.H..)...X.D
...LW3.F.I.P....K....J.L.4I.P..J..K.L.4I
.P.L.3I.P....D.L.3I.P....E..K....J..$.).
%.*L.3I.P.L.2I.P'8NE..)...).*...* ....).
... .E.."... L.3I{..8.....4.J.. LA2I_P..
.LA2IA...`.C..F..E.."...&.'.C.......&I..
&.'I..'JLU2 ...'IX.'.&.)H..P..J......K..
E.. L.2..$I@.).$.%I..*.%...K..E....J... 
I(. .!I..!.."I(.".#I..#L.3.E...)I..).*I.
.*.E.I(P.L.2......H.H.H` ....). .*...)HP
..*.*I.P.... ...!...# .."... . ."HP..!.#
.!I.P....J....K....!...E.. .*...$. .%...
"...#L.3I..@.F. ....).$. .*.%..."...#...
 ...!......)I..).*I..*HJL.3.E.ND.L.3.F..
8NF...)I@.).*I..*. I(. .!I..!.."I(.".#I.
.#.$I@.$.%I..%L.3ND....K....J....P. .4L.
3.F.H.H.H.F.I...L.1L.2.H.H .. ..X.. ]4.F
..H..G..I......F. <.....JP.LJ4H.H..F.`H.
..H..G..I.HI.P....H.`I.P....I.`I.P....G.
`.E.. )..K.. H.(P.. LA2I...`.E.."...`...
...............V...W.. ..V).I...H.(P...V
I(.V.WI..WJP.L.4...VLO4.E.. ).... `.Z...
....Z.`.. .1.. .1 .1.(.  .1J......... .1
.. .1... .1...  .1J........I.P... .1.. .
1.. .1.H.  .1JP. -.`.W...5.. ." W. %4LN.
...END OF PROGRAM - PRESS A KEY.ACCUMULA
TOR .X REGISTER .Y REGISTER .LOGICAL OR 
.WITH NUMBER .WITH MEMORY LOCATION.ARITH
METIC SHIFT LEFT .PUSH .PROCESSOR STATUS
 REGISTER..ONTO STACK .MEMORY LOCATION .
BREAK - WILL STOP EXECUTION.NOT A VALID 
INSTRUCTION OP-CODE..PRESS RETURN KEY TO
 CONTINUE.CLEAR .CARRY .FLAG .RIGHT .LEF
T .ROTATE .LOGICAL AND ACCUMULATOR .TEST
 BITS OF ACCUMULATOR AGAINST .FROM STACK
.PULL .LOGICAL SHIFT .EXCLUSIVE OR .SET 
.WITH MEMORY.LOCATION.ADD WITH .INTERRUP
T DISABLE .TRANSFER .STORE .AT MEMORY LO
CATION.TO STACK POINTER.TO ACCUMULATOR.J
UMP TO SUBROUTINE.JUMP - LOAD PROGRAM CO
UNTER WITH NEW.ADDRESS.DECREMENT .LOAD .
STACK POINTER .TO X REGISTER.OVERFLOW .N
O OPERATION.INCREMENT .DECIMAL MODE .NUM
BER .SUBTRACT WITH .COMPARE .NOT EQUAL T
O ZERO (Z=0).EQUAL TO ZERO (Z=1).BRANCH 
IF .POSITIVE (N=0).MINUS (N=1).RETURN FR
OM SUBROUTINE.TO Y REGISTER.SET (C=1).CL
EAR (C=0).OVERFLOW FLAG CLEAR (V=0).OVER
FLOW FLAG SET (V=1).................LN9.
. .1... .1... .1.. .4.` 69....Q.........
.I.P..Q.I P.L.9...C............C.M.... .
:....Q.P..........I.P.L.9.C..C.I.PI.....
.I...L)9`.....9.. W....Q. .1...P.." .1 %
4HHLN....ERROR - DUPLICATE LABEL FOUND "
... .1... .1.C. .1.. .4.`.. .1.. .1.(. .
1.. .4. ..LL;.....I ..LG;...IB..IJ..L.:.
...I P..N........I .BIA.XI$......I(.AI#.
.I0..L.;L";I:..........I ..I,..I0..L.;I:
..L.:`.........I ..L.;....I)..I(....P.L.
;....I)..I(....P......I$.....I)..I,..I0.
.I:...P..L.:L.;....I)..I,..I0..IG..IA..I
:..L.:HHL......I ..I,..I0.II:..IA.AIG..L
";L.:L.:.U...;.. W.LW;...THERE SHOULD BE
 A SPACE BETWEEN THE..MNEMONIC AND OPERA
ND. THE HIGHLIGHTED..LINE INDICATES WHIC
H LINE HAS AN ERROR.......<.. W... .1.. 
.1.(. .1.. .1.. .1.. .1.. .1 %4HHLN....A
 LABEL SHOULD ONLY BE UPTO SIX LETTERS L
ONG. THE HIGHLIGHTED LINE INDICATES THEL
INE WHICH HAS A LABEL TOO LONG....<.<.<.
=$=A=D=.=.=J=.=.>9>B>.   LESSON 14 - BRA
NCHES AND JUMPS....>.     EXERCISE 1 FOR
 LESSON 14....D.     EXERCISE 2 FOR LESS
ON 14....D.     EXERCISE 3 FOR LESSON 14
...GE.   LESSON 15 - COMPARES...*F.     
EXERCISE 1 FOR LESSON 15....M.     EXERC
ISE 2 FOR LESSON 15...WN.   LESSON 16 - 
SUBROUTINES....O.     EXERCISE 1 FOR LES
SON 16...|Q.   LESSON 17 - HEXADECIMAL N
OTATION....R.     EXERCISE 1 FOR LESSON 
17...JC.     EXERCISE 2 FOR LESSON 17...
&D.   LESSON 18 - BINARY CODED DECIMAL..
..D.     EXERCISE 1 FOR LESSON 18....H..
.BRANCHES AND JUMPS... JUMP INSTRUCTIONS
 ARE LIKE THE GOTO..STATEMENT IN BASIC, 
AND THE BRANCH..INSTRUCTIONS ARE LIKE IF
..THEN..GOTO..STATEMENTS IN BASIC... PRE
VIOUSLY YOU HAVE BEEN PRESSING THE..SPAC
E BAR BEFORE TYPING IN A PROGRAM..LINE. 
YOU HAVE BEEN SKIPPING THE LABEL..FIELD 
EACH TIME YOU HAVE DONE SO. IF YOUWANT T
O USE A JUMP OR A BRANCH TO A LINEDO NOT
 PRESS THE SPACE BAR AT THE START OF THE
 LINE, BUT TYPE IN A LABEL OF UP..TO 6 C
HARACTERS LONG AND THEN PRESS THE SPACE 
BAR. A LABEL CAN THEN BE USED BY..A PROG
RAM FOR JUMPS AND BRANCHES. EACH..JUMP A
ND BRANCH WILL NOW BE DESCRIBED.....BRAN
CHES AND JUMPS....JMP.- JUMP (UNCONDITIO
NAL)....BEQ.- BRANCH IF ZERO FLAG SET...
.BNE.- BRANCH IF ZERO FLAG CLEAR....BCS.
- BRANCH IF CARRY FLAG SET....BCC.- BRAN
CH IF CARRY FLAG CLEAR....BVS.- BRANCH I
F OVERFLOW FLAG SET....BVC.- BRANCH IF O
VERFLOW FLAG CLEAR....BMI.- BRANCH IF NE
GATIVE FLAG SET....BPL.- BRANCH IF NEGAT
IVE FLAG CLEAR....THE DEMONSTRATION PROG
RAMS....EXERCISE 1.. THIS IS A SIMPLE PR
OGRAM TO USE THE..X REGISTER TO COUNT DO
WN FROM 10 TO 0...BEQ IS USED TO DETECT 
WHEN X REACHES..0, AND JMP IS USED TO JU
MP ROUND A LOOP UNTIL X EQUALS 0....EXER
CISE 2.. THIS PROGRAM WILL DIVIDE 58 BY 
5. THE..X REGISTER HOLDS THE ANSWER, AND
 AT THE END THE Y REGISTER HOLDS THE REM
AINDER. .EXERCISE 3.. THIS PROGRAM WILL 
MULTIPLY THE NUMBER  CONTAINED IN THE X 
REGISTER AT THE START(IN THIS CASE 5) BY
 THE NUMBER IN THE Y..REGISTER AT THE ST
ART (IN THIS CASE 6).. YOU CAN EASILY CH
ANGE THE PROGRAM TO..MULTIPLY ANY TWO NU
MBERS (AS LONG AS THEANSWER DOES NOT EXC
EED 255)..       LDX #10.LOOP   DEX.    
   BEQ END.       JMP LOOP.END    BRK.  
     LDA #58.       SEC.AGAIN  SBC #5.  
     BMI FINISH.       INX.       JMP AG
AIN.FINISH ADC #5.       TAY.       BRK.
       LDX #5.       LDY #6.       LDA #
0.       STA 20.LINE1  TYA.       CLC.  
     ADC 20.       STA 20.       DEX.   
    BNE LINE1.       JMP DUMMY.DUMMY2 JM
P END.DUMMY  JMP DUMMY2.END    BRK....CO
MPARES... SO FAR BRANCHES HAVE ONLY BEEN
 USED..FOR DETECTING WHETHER FLAGS ARE S
ET OR..CLEAR. THIS IS, IN ESSENCE, ALL T
HAT..BRANCHES CAN DO, BUT WITH COMPARES,
 THEYCAN DO A LOT MORE. A COMPARE IS REA
LLY..A SUBTRACTION THAT AFFECTS THE FLAG
S ANDLEAVES THE ACCUMULATOR IN ITS ORIGI
NAL..CONDITION. THE NEGATIVE, OVERFLOW, 
ZERO AND CARRY FLAGS ARE ALL AFFECTED AF
TER..A COMPARE, HOW THEY ARE AFFECTED WI
LL BEDISCUSSED SHORTLY.....COMPARES... A
S PREVIOUSLY MENTIONED, A COMPARE..IS RE
ALLY A SUBTRACTION, LEAVING THE..ACCUMUL
ATOR INTACT. THEREFORE, A COMPAREWILL AF
FECT THE FLAGS IN EXACTLY THE..SAME WAY.
 WITH A COMPARE HOWEVER, IT..IS NOT NECE
SSARY TO SET THE CARRY FLAG..BEFOREHAND,
 AS IT IS WITH A SUBTRACTION.. YOU MAY P
ERFORM A COMPARE BETWEEN ANY..OF THE THR
EE REGISTERS AND A MEMORY..LOCATION OR A
N IMMEDIATE NUMBER. THE..INSTRUCTION CMP
 IS USED TO COMPARE THE..ACCUMULATOR, AN
D THE INSTRUCTIONS CPX..AND CPY ARE USED
 TO COMPARE THE X AND Y REGISTERS RESPEC
TIVELY.....COMPARES... THE ZERO FLAG WIL
L BECOME SET IF THE..COMPARE SHOULD PROV
E BOTH NUMBERS EQUAL,OTHERWISE IT WILL B
E CLEARED.... THE CARRY FLAG WILL BE SET
 IF THE..NUMBER SPECIFIED WITH THE COMPA
RE..IS LESS THAN OR EQUAL TO THE REGISTE
R..USED BY THE COMPARE. THE CARRY FLAG W
ILLBE CLEARED OTHERWISE.... THE NEGATIVE
 FLAG WILL BE SET IF THE..SUBTRACTION (C
OMPARE) PRODUCES A..NEGATIVE RESULT, OTH
ERWISE IT WILL BE..CLEARED.... THE OVERF
LOW FLAG WILL BE SET OR..CLEARED DEPENDI
NG ON THE SUBTRACTION..USING THE RULES F
OR TWO'S COMPLEMENT..AS PREVIOUSLY DISCU
SSED......COMPARES... THERE ARE TWO EXAM
PLE PROGRAMS..SHOWING THE COMPARE INSTRU
CTIONS WHEN..WORKING. LOOK PARTICULARLY 
AT THE FLAGS,AND HOW THEY ARE AFFECTED B
Y THE COMPAREINSTRUCTIONS. TRY CHANGING 
THE PROGRAMS..YOURSELF, TO SEE WHAT HAPP
ENS....A SUMMARY OF INSTRUCTIONS:....CMP
.COMPARE ACCUMULATOR WITH NUMBER..     O
R MEMORY LOCATION....CPX.COMPARE X-REGIS
TER WITH NUMBER..     OR MEMORY LOCATION
....CPY.COMPARE Y-REGISTER WITH NUMBER..
     OR MEMORY LOCATION.START  LDX #50.L
OOP1  DEX.       CPX #40.       BEQ END1
.       JMP LOOP1.END1   DEY.       CPY 
#254.       BNE START.       CLV.       
CLC.       LDA #156.       CMP #100.    
   BVS ALWAYS.NEVER  BRK.ALWAYS CMP #1. 
      BVC NEVER.PROG2  LDX #230.       S
TX 300.       LDY #0.LAB1   LDA #230.   
    CMP 290,Y.       BEQ FOUND.       IN
Y.       JMP LAB1.FOUND  CLC.       LDX 
#4.LAB2   CPX #2.       BCC END1.       
DEX.       JMP LAB2.END1   BRK....SUBROU
TINES... THE INSTRUCTION JSR (FOLLOWED B
Y A..LABEL NAME) IS EFFECTIVELY THE SAME
..AS THE GOSUB COMMAND FROM BASIC. WHEN.
.THE.JSR.INSTRUCTION IS EXECUTED, CONTRO
LIS PASSED TO THE LINE WITH THAT LABEL..
ON IT. WHEN THE SUBROUTINE HAS FINISHED,
THE INSTRUCTION.RTS.(RETURN FROM..SUBROU
TINE) SHOULD BE EXECUTED. THIS..INSTRUCT
ION WILL RETURN TO THE LINE..AFTER THE J
SR INSTRUCTION.... THERE IS AN EXAMPLE P
ROGRAM SHOWING..THE INSTRUCTIONS JSR AND
 RTS IN USE..       LDA #0.       LDX #5
.LOOP   JSR ADD8.       DEX.       BNE L
OOP.       BRK.ADD8   CLC.       ADC #8.
       RTS...THIS PROGRAM WILL.MULTIPLY 
FIVE BY.EIGHT.....HEXADECIMAL... LIKE BI
NARY AND DECIMAL, HEXADECIMAL..IS A NUMB
ER BASE. WHERE BINARY IS BASE 2AND DECIM
AL IS BASE 10, HEXADECIMAL IS..BASE 16. 
A NUMBER BASE RELATES TO THE..NUMBER OF 
DIFFERENT DIGITS USED IN EACH..OF THE CO
LUMN HEADINGS. WITH DECIMAL..THIS IS TEN
 DIGITS, THE NUMBERS 0 TO 9...HEXADECIMA
L ALSO USES THESE DIGITS, BUT..BECAUSE I
T USES SIXTEEN DIFFERENT DIGITSFOR EACH 
COLUMN HEADING, SIX MORE..CHARACTERS ARE
 USED TO REPRESENT THE..NUMBER DIGITS 10
,11,12,13,14 AND 15...THE STANDARD WAY T
O REPRESENT THESE IS..TO USE A,B,C,D,E A
ND F RESPECTIVELY.....HEXADECIMAL... SO 
IN ACTUAL FACT, THE HEXADECIMAL..NUMBER 
 12   15   11   4  COULD EASILY..BE MISU
NDERSTOOD AS 12   15   1   14..FOR EXAMP
LE. THIS IS WHY THE LETTERS..A TO F ARE 
USED TO REPRESENT THE..NUMBERS 10 TO 15.
 USING LETTERS THE..ABOVE NUMBER WOULD B
E CFB4. THE COLUMN..HEADINGS FOR HEXADEC
IMAL ARE:...4096   256    16     1....HE
XADECIMAL... THIS MEANS THAT CFB4 IN DEC
IMAL IS..CALCULATED THUS:...C      = 12 
* 4096 = 49152..F      = 15 * 256  =  38
40..B      = 11 * 16   =   176..4      =
 4  * 1    = +   4..                    
 -----..CFB4 IS THEREFORE    53172 IN DE
CIMAL.....HEXADECIMAL... AS YOU HAVE SEE
N, A HEXADECIMAL NUMBER..BEARS HARDLY AN
Y RESEMBLANCE TO A..DECIMAL NUMBER. HOWE
VER, A BINARY NUMBERBEARS A DIRECT RESEM
BLANCE. EACH GROUP..OF FOUR BITS OF A BI
NARY NUMBER (CALLED..A NYBBLE) REPRESENT
S ONE HEXADECIMAL..DIGIT. HERE IS THE TA
BLE FOR CONVERSION:.DECIMAL BINARY HEX  
  DECIMAL BINARY HEX.  0      0000   0  
     8      1000   8   1      0001   1  
     9      1001   9   2      0010   2  
     10     1010   A   3      0011   3  
     11     1011   B   4      0100   4  
     12     1100   C   5      0101   5  
     13     1101   D   6      0110   6  
     14     1110   E   7      0111   7  
     15     1111   F ....HEXADECIMAL... 
USING THE GIVEN TABLE, IT IS EASY TO..CO
NVERT FROM BINARY TO HEXADECIMAL (HEX)OR
 VICE VERSA. ALSO, USING HEX MAKES..TWO'
S COMPLEMENT EASIER TO INTERPRET... BY P
RESSING THE FUNCTION KEY F7 YOUCAN SWITC
H BETWEEN HEXADECIMAL AND..DECIMAL MODES
. THIS AFFECTS WHETHER..THE VALUES OF TH
E A, X AND Y REGISTERS..ARE DISPLAYED IN
 HEX OR DECIMAL...WHEN IN HEX MODE THE '
$' CHARACTER IS..USED TO SHOW A HEX NUMB
ER. YOU CAN..ALSO USE THIS CHARACTER IN 
A PROGRAM..TO SPECIFY A HEX NUMBER AS WE
LL.....HEXADECIMAL... BY NOW YOU MUST BE
 WELL AWARE THAT A..MEMORY LOCATION AND 
A REGISTER CAN ONLY..HOLD A NUMBER BETWE
EN 0 AND 255, WHICH..IS AN EIGHT BIT BIN
ARY NUMBER. IN HEX..THIS IS A NUMBER BET
WEEN $0 AND $FF...HOWEVER, YOU CAN USE T
WO CONSECUTIVE..MEMORY LOCATIONS TO GIVE
 16 BITS WHICH..CAN REPRESENT ONE NUMBER
. THIS TWO BYTE..STORAGE HAS THE CAPABIL
ITY TO REPRESENT..65536 (256*256) DIFFER
ENT NUMBERS... WHEN USING TWO MEMORY LOC
ATIONS TO..STORE ONE NUMBER, THE MEMORY 
LOCATION..WITH THE LOWEST ADDRESS STORES
 WHAT IS..KNOWN AS THE LEAST SIGNIFICANT
 BYTE..(LSB), THE NEXT SEQUENTIAL BYTE S
TORES..WHAT IS KNOWN AS THE MOST SIGNIFI
CANT..BYTE (MSB). THEREFORE, IF THE LSB 
HOLDS..$A1 AND THE MSB HOLDS $4E THEN TH
E..RESULTING NUMBER WILL BE $4EA1.....HE
XADECIMAL... WHEN IN HEX MODE, WHEN A LO
AD OR STORE..IS PERFORMED ON A MEMORY LO
CATION, THE..COMPUTER WILL PRINT 'RESULT
ING ADDRESS:'FOLLOWED BY A HEXADECIMAL N
UMBER. THIS..IS THE ACTUAL ADDRESS OF A 
MEMORY..LOCATION THE COMPUTER USES FOR T
HE..INSTRUCTION, EVEN FOR INDEXED ADDRES
SINGAND THE LIKE... THERE ARE TWO EXAMPL
E PROGRAMS USING..HEXADECIMAL NUMBERS, T
O HELP DEMONSTRATEWHAT HAS BEEN DISCUSSE
D. REMEMBER TO..PRESS FUNCTION KEY F7 TO
 PUT THE DISPLAYIN HEXADECIMAL MODE. THE
 FIRST PROGRAM..IS A 16 BIT MULTIPLICATI
ON PROGRAM THAT..WILL MULTIPLY THE VALUE
 OF THE X AND Y..REGISTERS TOGETHER. THE
 RESULT IS STOREDAT CONSECUTIVE MEMORY L
OCATIONS IN LSB..MSB FORMAT. THE SECOND 
PROGRAM IS A..SIMPLE 16 BIT SUBTRACTION 
PROGRAM.....A PAGE... A PAGE IS A NATURA
L FOLLOW ON FROM THE..DEFINITION OF A HE
XADECIMAL NUMBER. A..PAGE IS A COMMONLY 
USED TERM TO DESCRIBEAREAS OF MEMORY. IT
 IS SIMPLY THE MSB..OF A MEMORY ADDRESS.
 FOR EXAMPLE, MEMORYLOCATION $1EA IS DES
CRIBED AS BEING..IN PAGE 1. ANY MEMORY L
OCATION BETWEEN..ADDRESSES 0 AND 255 WIL
L THEREFORE BE..IN PAGE ZERO. BECAUSE YO
U CAN ONLY USE..MEMORY LOCATIONS WITH AD
DRESSES BETWEEN..0 AND 1024 (0 AND 400 H
EX) THIS MEANS..YOU CAN ONLY USE 4 PAGES
 WITH THIS..SIMULATOR. ON A NORMAL 6502 
SYSTEM..WITHOUT THIS SIMULATOR YOU HAVE 
256..PAGES OF RAM AND ROM (ADDRESSES 0 T
O..$FFFF)..       LDX #$E9.       LDY #$
A.       LDA #0.       STA 30.       STA
 31.LOOP   TXA.       CLC.       ADC 30.
       STA 30.       LDA 31.       ADC #
0.       STA 31.       DEY.       BNE LO
OP.       LDX 30.       LDY 31.       SE
C.       LDA #$2D.       SBC #$E2.      
 STA 450.       LDA #$3A.       SBC #$38
.       STA 451.       LDX 450.       LD
Y 451.       BRK....BINARY CODED DECIMAL
 (BCD)... THIS IS A SYSTEM WHERE DECIMAL
 NUMBERS ARE REPRESENTED USING HEXADECIM
AL..NUMBERS. FOR EXAMPLE, NORMALLY THE H
EX..NUMBER $25 IS 2*16+5 (37) IN DECIMAL
...HOWEVER, USING BCD THIS HEX NUMBER WO
ULDACTUALLY REPRESENT THE DECIMAL NUMBER
..25. WHEN USING BCD, RESULTS WILL BE..M
EANINGLESS IF LOOKING AT THE RESULTS..IN
 DECIMAL OR HEX WITHOUT KNOWING YOU..ARE
 USING BCD. TO OPERATE BCD THE 6502..INS
TRUCTION SED, SET DECIMAL MODE,..WILL SE
T THE DECIMAL MODE FLAG. TO CLEARTHE DEC
IMAL MODE FLAG, USE THE..INSTRUCTION CLD
. ONCE DECIMAL MODE IS..ACTIVATED ALL AD
C AND SBC INSTRUCTIONS..WILL BE CARRIED 
OUT IN BCD.....BINARY CODED DECIMAL (BCD
)... IF YOU TRY TO ADD USING BCD, AND TH
E..RESULT IS GREATER THAN HEXADECIMAL 99
..THEN THE CARRY FLAG WILL BE SET. IF YO
U..PERFORM A SUBTRACTION AND THE RESULT.
.IS LESS THAN ZERO THEN THE..CARRY FLAG 
WILL BE CLEARED... THERE IS AN EXAMPLE P
ROGRAM USING BCD..WHICH SHOULD CLARIFY W
HAT HAS BEEN..DISCUSSED. REMEMBER TO PRE
SS FUNCTION..KEY F7 TO ENTER HEX MODE, O
THERWISE THE RESULTS WILL BE MEANINGLESS
..       SED.       LDA #$80.ADD1   CLC.
       ADC #1.       BCC ADD1.       LDA
 #$95.TAKE5  SEC.       SBC #5.       BC
S TAKE5.       CLD.       LDA #242.NORMA
L CLC.       ADC #1.       CMP #$1B.    
   BNE NORMAL.       BRK.T ....P. ..P@..
 X. ..L..$...8.. K..ML(.LK. M.P........ 
V......).P. ...^... K.` ....L...... ... 
0...I... 2...8`..0. O... ..........P. ..
 ...H....<...`.M.H 6...U8........8....H 
F... F.....P..0.....P..0... ....L;..I"..
.....H...H`I+..IL..ID...M. F...L;..M..).
...)....... (.I?P. ...I>P. 6. .P.I@..F. 
6.....E....I.P...P. .P.I.P...P. .P...P. 
....Y. F..T F..U F........I.P..U..H.... 
....L;.@ ........H.....`....P.....P....]
.P....].......... (.I...F.P. 6..... (.IA
.SI..PF. 6.....01... 2... F..U..I..... .
...0L..........E.....P.L>...P..T.UH. F.H
 F.PT (.). (..... 2. F.JP... .....L.. X
....... .......HD...I...P.J........... 2
. F.......B..)I`..I ... LE.I@(....` 6..
T. ..(....L.....I@..L.... .. .... (...)
.E... (.I.P... .....).P. H.LK.I.P.... ..
.I.P.... .LH... ..L..I...I.PL...H ..LK..
...F.... ...P... ..LH...... ...I...L....
H..... ...`..L.. (. ....).P... ..LH.. .@
....L........................I..  ......
.... H...0.$R0..R.......................
.....I...E..3.............H..H....H....H
.. (.I<.<I;.8I=..IAP.L..L..F. 6.H.....HH
..H....H....H.........I...L.......R..L..
`..L.. (. ........H... P...H...L... .GJJ
JJP!.R...@..........................`. .
................... H.. P...`L... H 6.H 
F.. F..U F...L;.....I@...LP....LPX (. ..
.....@).P8.............. ......L...... H
.........P. (.I...I.PZ`L......)..... .. 
H. .. H. (.I...I.P.` (.IE. IFP.H I.HIGP.
 .......I.-.....L . (.IFP.H 3.H.........
. (.I=..LH.........`..I...8... .Q. .....
.I. ...H...H ..H.I. ...HHI... ...`..H...
.......R.:...(...... P...$R0.).P#.......
.......L..)................. 6. ....... 
...).......L....0......) P.......`J`...)
 P.L2.....`......I=.:...).P. M.P).TH.UH 
.. .....).P...P).P. .. H. ..H.UH.T.....`
.. N. M.P. H. P......` .. .....P.`.. N.L
H... N... ..LH. (.IA..`.Q....R... (.)..
....G...F (.....)..JP.....`...P.... ..H
 .........U.T E. I..} .P..C .L3. 6......
 6...... 6.... R.LH. W I.P. W I.P. W .. 
W ..`..L.. 6.......P.$.......L..H.H 3...
... ..H..H..LI...L.....$... H.....`,..P/
...+......SP..HD........L]. ..Q.Q.QD....
.. *.P..... M.P. ....8... X. ...... .. .
.L..L.. ...^... K.......... ............
.... ....P.....F...F.P.`..P. 3......L.. 
6..I..... ..L..H.. 6.H ..LH......H...H`.
.'..T..I......].`.T)..^.`...T...........
.......P.....P...FTP..`.....E..I........
...........8................ Y..... ... 
............ ..L......... ..8`8...H.....
.I.....L<....W....J..........L3........S
.. T. ...P.H.H...I..... ..L......I..*...
... A........J........ QZ..... .. ..LH..
. ..LH. ...<... ..... *... ..LE.....<..
.......I.E.....%.. O.LX..P.H...H`...D...
.....LE... .. E..U.T...... ..F. ...T.U..
......HHH.U`.U.T.....H....H..`..........
...` E..... E..T.U`.....................
..................7]...8....VK...U......
....K...)QY (.0$I...J (......`.L(.I....1
`...E....I.` ...........)..... ....H..`.
  ......` (.I@P. (. S...P. 3.P....Q....W
. .S...E....H...HH....H....H.`....I6..`.
0....`.`........... E...L.. E....L.. S..
.E...UE.L.. E........U.. S.8.....U..L...
..V.W .` S. ..FWFVFUFT.03.......UX.X.P..
. S. ...T&U&V&W8.V....W.....W.V.T.P.L.. 
S..%...U%.L.. E. ...$.P..RP.$...0.......
P.....).P... .. E.P..P.....L.....L.. .. 
E.P..P.L.. E. ...).I......L....HH...LG. 
S......U..L.. S..E...UE.L.. S..UE...P..T
E.` ...:.8.3 ...../ ...'.%.& S..T.......
.P. S..TP.....P... ....L..L.............
........................................
........................................
.........)............H......` .....I?P
...........I.......?...?P..[...Z......8.
A..E....E.......A....
C64 Preview

> CLICK IMAGE PREVIEW FOR FULL MODAL