The Complete Machine Code Tutor (UK) (Face 1) (1985) [Original] [TAPE] [UTILITAIRE].cdt
HexaDumpAscii only
000000:  5A 58 54 61 70 65 21 1A 01 0C 20 21 46 11 13 09    ZXTape!... !F...
000010:  A6 04 57 04 94 04 27 09 01 10 08 0F 00 07 01 00    ..W...'.........
000020:  2C 4D 2F 43 20 54 55 54 4F 52 00 00 00 00 00 00    ,M/C TUTOR......
000030:  00 01 FF 02 6F 05 FA 0F FF 6F 05 00 10 00 00 00    ....o....o......
000040:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
000050:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
000060:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
000070:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
000080:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
000090:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
0000A0:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
0000B0:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
0000C0:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
0000D0:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
0000E0:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
0000F0:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
000100:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
000110:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
000120:  00 E6 79 FF FF FF FF 11 14 09 A6 04 A6 04 93 04    ..y.............
000130:  26 09 FF 0F 08 31 21 11 06 00 16 CD A1 BC D4 00    &....1!.........
000140:  00 CD FF BB 3E 00 DD 21 A3 10 DD 46 00 48 F5 CD    ....>..!£..F.H..
000150:  32 BC F1 DD 23 3C FE 04 20 F0 01 0E 0E CD 38 BC    2...#<.. .....8.
000160:  21 00 C0 11 01 C0 01 FF 3F 36 00 ED B0 3E 05 CD    !.......?6...>..
000170:  6F BB 3E 16 CD 72 BB 06 1F 21 A7 10 7E C5 E5 CD    o.>..r...!..~...
000180:  5D BB E1 C1 23 10 F5 DD 21 C6 10 21 00 C0 11 00    ]...#...!..!....
000190:  08 CD 63 10 21 00 E0 CD 63 10 21 00 10 11 00 43    ..c.!...c.!....C
0001A0:  3E 6C 18 97 DD 7E 00 07 DD AE 00 E6 22 DD 7E 00    >l...~......".~.
0001B0:  DD 23 0E 01 20 05 DD 4E 00 DD 23 B9 20 03 FE 00    .#.. ..N..#. ...
0001C0:  C8 06 04 E5 F5 77 CB 67 20 06 CB 27 CB A7 18 04    .....w.g ..'....
0001D0:  CB 27 CB E7 CB 4F 28 01 3C 19 10 E9 F1 E1 23 0D    .'...O(.<.....#.
0001E0:  20 DF 18 C0 0E 18 09 01 A4 20 4E 65 77 20 47 65     ........ New Ge
0001F0:  6E 65 72 61 74 69 6F 6E 20 53 6F 66 74 77 61 72    neration Softwar
000200:  65 20 20 31 39 38 35 00 C0 11 F0 05 11 F0 01 00    e  1985.........
000210:  01 11 F0 01 11 F0 04 00 42 FF 01 F0 01 00 02 FF    ........B.......
000220:  01 F0 04 FF 01 F0 03 00 43 FF 01 F0 01 00 02 FF    ........C.......
000230:  01 F0 01 00 01 FF 01 F0 01 FF 01 0C 76 F0 04 00    ............v...
000240:  D2 11 F0 01 0F 01 1F F0 01 00 01 11 F0 01 0F 01    ................
000250:  1F F0 01 FF 01 F0 02 11 F0 02 FF 01 F0 01 0F 01    ................
000260:  1F F0 01 FF 01 F0 01 00 03 FF 01 F0 01 0F 02 0E    ................
000270:  EF 0F 01 1F F0 01 0F 01 0E FF 01 F0 01 0F 02 0E    ................
000280:  00 25 FF 01 F0 01 00 01 11 F0 01 00 01 FF 01 F0    .%..............
000290:  01 00 01 FF 01 F0 01 FF 01 F0 01 EF 0E FF 01 F0    ................
0002A0:  01 FF 01 F0 01 0F 01 0E 00 01 FF 01 F0 01 00 03    ................
0002B0:  FF 01 F0 01 0F 01 0E 00 03 FF 01 F0 01 00 02 FF    ................
0002C0:  01 F0 01 0F 01 0E 00 27 EF 0F 01 0E 00 03 EF 0F    .......'........
0002D0:  01 0E 00 01 EF 0E 00 02 EF 0E EF 0E 00 03 EF 0F    ................
0002E0:  03 0E EF 0F 03 0E 00 02 EF 0E 00 02 EF 0F 03 0E    ................
0002F0:  00 69 11 F0 01 00 02 11 F0 01 00 03 11 F0 01 00    .i..............
000300:  04 11 F0 02 00 02 11 F0 01 00 01 11 F0 01 00 01    ................
000310:  11 F0 01 00 01 11 F0 01 00 02 11 F0 01 11 F0 04    ................
000320:  00 09 11 F0 02 00 02 11 F0 02 00 01 11 F0 03 00    ................
000330:  01 11 F0 04 00 0C FF 01 F0 01 1F F0 01 FF 56 1F    ..............V.
000340:  F0 01 00 01 11 F0 01 0E EF 1F F0 01 00 01 FF 01    ................
000350:  F0 01 00 01 EF 0E 00 01 FF 01 F0 04 00 01 FF 01    ................
000360:  F0 01 00 01 FF 01 F0 01 1F F0 01 FF 01 F0 01 FF    ................
000370:  01 F0 03 00 09 FF 01 F0 01 00 01 EF 0E FF 01 F0    ................
000380:  01 00 01 FF 01 F0 01 FF 01 F0 01 00 01 FF 01 F0    ................
000390:  01 FF 01 F0 03 00 0D FF 01 F0 01 00 02 FF 01 F0    ................
0003A0:  01 00 01 FF 01 F0 01 0F 02 1F F0 01 00 01 EF 1F    ................
0003B0:  F0 02 0E 00 01 FF 01 F0 01 00 01 FF 01 F0 01 00    ................
0003C0:  01 FF 01 F0 01 00 01 FF 01 F0 01 00 01 EF 1F F0    ................
0003D0:  01 FF 01 F0 04 00 08 EF 1F F0 02 0E EF 1F F0 02    ................
0003E0:  0E FF 01 F0 03 0E FF 01 F0 04 00 C0 EF 0F 01 1F    ................
0003F0:  F0 01 0F 01 0E FF 01 F0 01 00 01 FF 01 F0 01 EF    ................
000400:  0F 01 1F F0 01 0F 01 0E 11 F0 01 0F 01 1F F0 01    ................
000410:  FF 01 F0 01 0F 01 1F F0 01 00 37 FF 01 F0 01 00    ..........7.....
000420:  02 FF 01 F0 01 00 01 FF 01 F0 01 00 02 FF 01 F0    ................
000430:  01 00 02 FF 01 F0 01 00 01 FF 01 F0 01 FF 01 DE    ................
000440:  A2 F0 01 1F F0 01 00 38 EF 0E 00 03 EF 0F 01 0E    .......8........
000450:  00 03 EF 0E 00 03 EF 0F 01 0E 00 01 EF 0E 00 01    ................
000460:  EF 0E 00 00 00 C0 EF 0F 01 1F F0 01 0F 01 0E FF    ................
000470:  01 F0 01 00 01 FF 01 F0 01 FF 01 F0 01 0F 02 0E    ................
000480:  00 42 FF 01 F0 01 00 02 FF 01 F0 01 0F 01 1F F0    .B..............
000490:  01 FF 01 F0 01 0F 01 0E 00 43 EF 0E 00 02 EF 0E    .........C......
0004A0:  00 01 EF 0E EF 0F 03 0E 00 83 11 F0 02 00 03 11    ................
0004B0:  F0 02 00 01 11 F0 01 00 02 11 F0 01 11 F0 03 00    ................
0004C0:  01 11 F0 01 00 03 11 F0 04 11 F0 05 11 F0 04 00    ................
0004D0:  25 FF 01 F0 01 00 01 EF 0E 00 01 FF 01 F0 01 00    %...............
0004E0:  01 FF 01 F0 01 FF 01 F0 01 1F F0 01 1F F0 01 FF    ................
0004F0:  01 F0 03 0E FF 01 F0 01 00 03 FF 01 F0 03 00 03    ................
000500:  FF 01 F0 01 00 02 FF 01 F0 03 00 26 EF 1F F0 02    ...........&....
000510:  0E 00 01 EF 1F F0 02 0E FF 01 F0 01 00 02 FF 01    ................
000520:  F0 01 FF 01 F0 01 00 03 FF 01 F0 04 FF 01 F0 04    ................
000530:  00 02 FF 01 F0 01 00 02 FF 01 F0 04 00 B9 FF 01    ................
000540:  F0 00 32 02 11 F0 02 00 02 11 F0 01 1F F0 01 00    ..2.............
000550:  02 11 F0 01 0F 01 1F F0 01 00 01 FF 01 F0 01 00    ................
000560:  01 FF 01 F0 01 00 01 FF 01 F0 01 00 01 FF 01 F0    ................
000570:  02 00 01 FF 01 F0 01 FF 01 F0 01 0F 02 0E 00 08    ................
000580:  11 F0 01 0F 01 1F F0 01 11 F0 01 0F 01 1F F0 01    ................
000590:  FF 01 F0 01 0F 01 1F F0 01 FF 01 F0 01 0F 02 0E    ................
0005A0:  00 0C FF 01 F0 01 EF 0E FF 01 F0 01 00 01 FF 01    ................
0005B0:  F0 05 00 01 FF 01 F0 01 00 01 11 F0 01 00 01 FF    ................
0005C0:  01 F0 01 0F 01 1F F0 01 00 01 FF 01 F0 01 00 01    ................
0005D0:  FF 01 F0 01 EF 1F F0 02 FF 01 F0 01 0F 01 0E 00    ................
0005E0:  09 FF 01 F0 01 00 01 11 F0 01 FF 01 F0 01 00 01    ................
0005F0:  FF 01 F0 01 FF 01 F0 01 00 01 FF 01 F0 01 FF 01    ................
000600:  F0 01 0F 01 0E 00 0D EF 0E 00 02 EF 0E 00 01 EF    ................
000610:  0E 00 02 EF 0E 00 02 EF 0F 01 0E 00 02 EF 0E 00    ................
000620:  01 EF 0E 00 01 EF 0E 00 01 EF 0E 00 02 EF 0E EF    ................
000630:  0F 03 0E 00 09 EF 0F 01 0E 00 02 EF 0F 01 0E 00    ................
000640:  01 EF 0F 70 8F 02 0E 00 01 EF 0F 03 0E 00 70 11    ...p..........p.
000650:  F0 05 11 F0 01 00 01 11 F0 01 11 F0 05 00 01 11    ................
000660:  F0 02 00 01 11 F0 03 00 38 FF 01 F0 01 00 02 FF    ........8.......
000670:  01 F0 01 00 01 FF 01 F0 01 00 02 FF 01 F0 01 00    ................
000680:  02 FF 01 F0 01 00 01 FF 01 F0 01 FF 01 F0 03 0E    ................
000690:  00 37 FF 01 F0 01 00 02 EF 1F F0 02 0E 00 02 FF    .7..............
0006A0:  01 F0 01 00 02 EF 1F F0 02 0E FF 01 F0 01 EF 1F    ................
0006B0:  F0 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
0006C0:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
0006D0:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
0006E0:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
0006F0:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
000700:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
000710:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
000720:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
000730:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
000740:  00 00 00 00 00 50 B3 FF FF FF FF 11 15 09 A6 04    .....P..........
000750:  A6 04 91 04 23 09 1E 10 08 D8 22 8B 43 00 6C 20    ....#.....".C.l 
000760:  71 BC 21 BA 10 CD 88 10 CD D9 51 38 18 CD 9B 10    q.!.......Q8....
000770:  CD CB 51 CD B3 19 CD 1F 10 CD CB 51 18 E4 ED 73    ..Q........Q...s
000780:  59 14 C3 48 12 21 00 11 CD 88 10 21 B7 11 11 01    Y..H.!.....!....
000790:  00 3E FC CD A1 BC 30 3C 3A B7 11 FE 00 21 22 11    .>....0<:....!".
0007A0:  28 15 FE 02 21 40 11 28 0E FE 04 21 5F 11 28 07    (...!@.(...!_.(.
0007B0:  FE 06 21 7E 11 20 24 CD 88 10 21 00 58 11 00 55    ..!~. $...!.X..U
0007C0:  3E FB CD A1 BC 30 0D CD 9B 10 3E 0F 32 91 1A CD    >....0....>.2...
0007D0:  E8 50 18 B1 21 E0 10 FE 00 28 03 21 9D 11 CD 88    .P..!....(.!....
0007E0:  10 CD 93 10 C3 03 10 3E F0 32 91 1A 11 00 18 C3    .......>.2......
0007F0:  B0 51 06 00 CD 19 BD 10 FB C9 CD FF BB 3E 00 DD    .Q...........>..
000800:  21 92 1A DD 46 00 48 F5 CD 32 BC F1 DD 23 3C FE    !...F.H..2...#<.
000810:  04 20 F0 01 0E 0E C3 38 BC 20 20 44 6F 20 79 6F    . .....8.  Do yo
000820:  75 20 77 69 73 68 20 74 6F 20 65 6E 74 65 72 20    u wish to enter 
000830:  6C 65 73 73 6F 6E 73 3F 20 20 20 59 2F 4E A3 20    lessons?   Y/N£ 
000840:  20 20 20 20 20 20 4C 6F 61 64 69 6E 67 20 68 61          Loading ha
000850:  73 20 62 65 65 6E 20 73 74 6F 70 70 65 64 A3 34    s been stopped£4
000860:  45 20 20 20 20 20 20 20 50 6C 65 61 73 65 20 73    E       Please s
000870:  74 61 72 74 20 74 61 70 65 20 72 65 63 6F 72 64    tart tape record
000880:  65 72 A3 20 20 20 20 20 20 20 20 20 20 4C 6F 61    er£          Loa
000890:  64 69 6E 67 20 6C 65 73 73 6F 6E 73 20 31 2D 39    ding lessons 1-9
0008A0:  A3 20 20 20 20 20 20 20 20 20 4C 6F 61 64 69 6E    £         Loadin
0008B0:  67 20 6C 65 73 73 6F 6E 73 20 31 30 2D 31 37 A3    g lessons 10-17£
0008C0:  20 20 20 20 20 20 20 20 20 4C 6F 61 64 69 6E 67             Loading
0008D0:  20 6C 65 73 73 6F 6E 73 20 31 38 2D 32 35 A3 20     lessons 18-25£ 
0008E0:  20 20 20 20 20 20 20 20 4C 6F 61 64 69 6E 67 20            Loading 
0008F0:  6C 65 73 73 6F 6E 73 20 32 36 2D 33 35 A3 20 20    lessons 26-35£  
000900:  20 20 20 20 20 20 20 20 20 20 4C 6F 61 64 69 6E              Loadin
000910:  67 20 65 72 72 6F 72 A3 00 00 ED 73 59 14 CD 55    g error£...sY..U
000920:  13 CD E6 12 CD 00 14 CD DF 33 CD CB 13 21 3C 16    .........3...!<.
000930:  11 00 12 CD F1 32 C3 6A 12 CD 06 BB CD 19 BD FE    .....2.j........
000940:  45 28 66 FE 54 CA 0A 13 FE 52 28 11 3E 42 CD 1E    E(f.T....R(.>B..
000950:  BB 28 E6 ED 7B 59 14 3E 0F 32 91 1A C9 CD E6 12    .(..{Y.>.2......
000960:  CD 95 07 76 12 DD 2A EC 3B 11 00 12 ED 53 D0 31    ...v..*.;....S.1
000970:  DD 7E 03 FE 72 38 08 21 EC 15 CD F1 32 18 BC CD    .~..r8.!....2...
000980:  46 20 DD 7E 03 FE 72 30 B2 CD 06 BB FE 53 28 0F    F .~..r0.....S(.
000990:  FE 45 28 17 FE 23 28 BD CD 35 3E 30 C5 18 9C 21    .E(..#(..5>0...!
0009A0:  8C 16 11 00 12 CD F1 32 C3 D8 11 CD 8F 13 CD E6    .......2........
0009B0:  12 CD B6 18 CD 00 14 CD E6 12 ED 73 0E 3B CD DF    ...........s.;..
0009C0:  33 CD CB 13 21 4B 15 11 00 12 CD F1 32 CD F3 3C    3...!K......2..<
0009D0:  CD AE 3D CD E6 12 C3 D8 11 2A 12 14 CD 1A BC 0E    ..=......*......
0009E0:  08 06 50 7E E6 0F 77 23 10 F9 11 B0 07 19 0D 20    ..P~..w#....... 
0009F0:  F0 DD 21 20 3B ED 5B CD 31 21 02 00 06 10 C5 DD    ..! ;.[.1!......
000A00:  CB 00 7E 28 29 DD 7E 08 BB 20 23 DD 7E 09 BA 20    ..~().~.. #.~.. 
000A10:  1D C1 DD 22 EC 3B 22 12 14 CD 1A BC 0E 08 06 50    ...".;"........P
000A20:  7E ED 6F 23 10 FA 11 B0 07 19 0D 20 F1 C9 01 0C    ~.o#....... ....
000A30:  00 DD 09 2C C1 10 C7 3E 0F 32 91 1A 11 00 12 21    ...,...>.2.....!
000A40:  9C 15 CD F1 32 E1 C3 D8 11 DD 21 20 3B DD 22 EC    ....2.....! ;.".
000A50:  3B DD 6E 08 DD 66 09 22 CD 31 21 01 02 22 D0 31    ;.n..f.".1!..".1
000A60:  21 45 17 95 3F 22 EE 3B 21 FE 0F 22 9B 42 C9 3A    !E..?".;!..".B.:
000A70:  CF 31 EE 01 32 CF 31 CD 21 13 CD E6 12 CD 00 14    .1..2.1.!.......
000A80:  CD DF 33 C3 6A 12 CD B3 19 DD 21 20 3B 11 45 17    ..3.j.....! ;.E.
000A90:  06 10 21 CF 31 CB D6 C5 D5 DD 22 EC 3B CD D2 31    ..!.1.....".;..1
000AA0:  11 0C 00 DD 19 D1 21 17 00 19 EB C1 10 E9 21 CF    ......!.......!.
000AB0:  31 CB 96 CD CB 13 CD D9 19 C9 CD B3 19 2A 41 17    1............*A.
000AC0:  11 45 17 06 10 3E 20 C5 BE 01 06 00 28 05 ED B0    .E...> .....(...
000AD0:  13 18 05 EB 0C 09 EB 23 01 10 00 CB 7E 20 0C ED    .......#....~ ..
000AE0:  A0 EA 76 13 C1 10 E0 CD D9 19 C9 23 ED A0 E2 7F    ..v........#....
000AF0:  13 2B 18 F8 3E F0 32 91 1A 11 00 00 21 83 14 CD    .+..>.2.....!...
000B00:  F1 32 3E 0F 32 91 1A 3E 20 CD 45 1A 3E 14 BA 20    .2>.2..> .E.>.. 
000B10:  F6 DD 21 3B 14 06 0A C5 DD 7E 00 32 91 1A DD 6E    ..!;.....~.2...n
000B20:  01 DD 66 02 CD F1 32 01 03 00 DD 09 C1 10 E8 C9    ..f...2.........
000B30:  3E F0 32 91 1A 11 00 00 21 5B 14 CD F1 32 3E 0F    >.2.....![...2>.
000B40:  32 91 1A 11 00 14 DD 21 14 14 06 0D C5 DD 7E 00    2......!......~.
000B50:  32 91 1A DD 6E 01 DD 66 02 CD F1 32 01 03 00 DD    2...n..f...2....
000B60:  09 C1 10 E8 C9 95 F4 11 00 02 21 2F 17 CD F1 32    ..........!/...2
000B70:  14 1E 00 3E 12 BA 20 F2 C9 02 00 F0 DD 16 0F 05    ...>.. .........
000B80:  17 F0 23 17 0F 3C 17 0F 0A 17 0F 23 17 0F 3C 17    ..#..<.....#..<.
000B90:  0F 0F 17 F0 23 17 0F 3C 17 0F 14 17 0F 23 17 0F    ....#..<.....#..
000BA0:  3C 17 0F AB 14 0F 19 17 F0 FB 14 0F FE 14 F0 0B    <...............
000BB0:  15 0F 10 15 F0 23 15 0F 26 15 F0 33 15 0F 38 15    .....#..&..3..8.
000BC0:  00 00 41 44 44 52 45 53 53 20 4D 41 43 48 49 4E    ..ADDRESS MACHIN
000BD0:  45 20 43 4F 44 45 20 20 20 20 53 4F 55 52 43 45    E CODE    SOURCE
000BE0:  20 43 4F 44 45 20 20 20 20 A0 20 41 53 53 45 4D     CODE    . ASSEM
000BF0:  42 4C 45 44 20 43 4F 44 45 20 20 20 4C 41 42 45    BLED CODE   LABE
000C00:  4C 53 20 20 49 4E 53 54 52 55 43 54 49 4F 4E 53    LS  INSTRUCTIONS
000C10:  20 A0 43 75 72 73 6F 72 20 6B 65 79 73 2C 20 64     .Cursor keys, d
000C20:  65 6C 65 74 65 2C 20 61 6E 64 20 61 75 74 6F 2D    elete, and auto-
000C30:  72 65 70 65 61 74 20 61 72 65 61 73 20 73 74 61    repeat areas sta
000C40:  6E 64 61 72 64 2E 20 45 53 43 20 72 65 74 75 72    ndard. ESC retur
000C50:  6E 73 20 79 6F 75 20 74 6F 20 6D 65 6E 75 2E 20    ns you to menu. 
000C60:  20 A0 5B 43 DD 20 63 3D AC 6C 65 61 72 73 20 61     .[C. c=.lears a
000C70:  6C 6C 20 A0 45 4E 54 45 D2 20 74 61 62 73 20 74    ll .ENTE. tabs t
000C80:  6F 20 6E 65 78 74 20 6C 69 6E 65 A0 5B 41 DD 20    o next line.[A. 
000C90:  61 73 73 65 6D 62 6C 65 73 20 20 A0 53 50 41 43    assembles  .SPAC
000CA0:  C5 20 74 61 62 73 20 69 6E 20 6C 61 62 65 6C 20    . tabs in label 
000CB0:  61 72 65 E1 20 50 72 6F 67 72 61 6D 20 68 61 73    are. Program has
000CC0:  20 73 75 63 63 65 73 73 66 75 6C 6C 79 20 61 73     successfully as
000CD0:  73 65 6D 62 6C 65 64 2E 20 20 20 20 50 72 65 73    sembled.    Pres
000CE0:  73 20 52 75 6E 2C 20 45 64 69 74 2C 20 6F 72 20    s Run, Edit, or 
000CF0:  45 53 43 20 74 6F 20 65 78 69 74 2E 20 20 20 20    ESC to exit.    
000D00:  20 20 20 A0 A0 20 50 72 6F 67 72 61 6D 20 63 6F       .. Program co
000D10:  75 6E 74 65 72 20 68 61 73 20 6A 75 6D 70 65 64    unter has jumped
000D20:  20 74 6F 20 6E 6F 6E 2D 76 61 6C 69 64 61 64 64     to non-validadd
000D30:  72 65 73 73 2E 20 45 44 49 54 20 6F 72 20 72 65    ress. EDIT or re
000D40:  52 55 4E 20 70 72 6F 67 72 61 6D 2E 20 20 20 20    RUN program.    
000D50:  20 20 20 20 A0 20 59 6F 75 20 61 72 65 20 74 72        . You are tr
000D60:  79 69 6E 67 20 74 6F 20 72 C7 30 75 6E 20 63 6F    ying to r.0un co
000D70:  64 65 20 69 6E 20 61 6C 6C 6F 63 61 74 65 64 73    de in allocateds
000D80:  74 6F 72 61 67 65 20 61 72 65 61 2E 20 52 45 54    torage area. RET
000D90:  20 6D 69 73 73 69 6E 67 3F 20 50 6C 65 61 73 65     missing? Please
000DA0:  20 45 44 49 54 20 A0 20 50 72 65 73 73 20 5B 52     EDIT . Press [R
000DB0:  5D 20 74 6F 20 72 75 6E 20 65 78 61 6D 70 6C 65    ] to run example
000DC0:  2C 20 5B 45 5D 20 74 6F 20 20 65 64 69 74 2C 61    , [E] to  edit,a
000DD0:  6E 64 20 45 53 43 20 74 6F 20 72 65 74 75 72 6E    nd ESC to return
000DE0:  20 74 6F 20 6D 65 6E 75 2E 20 20 20 20 20 20 20     to menu.       
000DF0:  20 20 20 20 20 20 A0 20 50 72 6F 67 72 61 6D 20          . Program 
000E00:  73 74 6F 70 70 65 64 2E 20 59 6F 75 20 6D 61 79    stopped. You may
000E10:  20 72 65 2D 52 55 4E 2C 20 45 44 49 54 20 20 6F     re-RUN, EDIT  o
000E20:  72 20 70 72 65 73 73 20 45 53 43 20 74 6F 20 72    r press ESC to r
000E30:  65 74 75 72 6E 20 74 6F 20 6D 65 6E 75 2E 20 20    eturn to menu.  
000E40:  20 20 20 20 20 20 20 A0 46 4C 41 47 53 20 20 20           .FLAGS   
000E50:  20 52 65 67 69 73 74 65 72 73 20 61 6E 64 20 43     Registers and C
000E60:  6F 6E 74 65 6E 74 73 20 20 20 20 D6 C6 53 54 41    ontents    ..STA
000E70:  43 CB 20 43 3A 20 A0 20 5A 3A 20 A0 50 56 3A 20    C. C: . Z: .PV: 
000E80:  A0 20 53 3A 20 A0 20 20 20 20 20 20 20 20 20 20    . S: .          
000E90:  20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20                    
000EA0:  20 20 20 20 20 20 20 20 20 20 20 20 20 A0 00 00                 ...
000EB0:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
000EC0:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
000ED0:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
000EE0:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
000EF0:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
000F00:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
000F10:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
000F20:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
000F30:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
000F40:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
000F50:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
000F60:  00 00 00 00 00 00 00 00 00 00 00 00 00 7A 6E 00    .............zn.
000F70:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
000F80:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
000F90:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
000FA0:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
000FB0:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
000FC0:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
000FD0:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
000FE0:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
000FF0:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
001000:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
001010:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
001020:  00 00 00 00 00 DD 21 3F 1A CD D9 19 CD 15 1A CD    ......!?........
001030:  06 BB 32 43 1A 3E 42 CD 1E BB 28 05 ED 7B 59 14    ..2C.>B...(..{Y.
001040:  C9 CD 19 BD CD 2A 1A 3A 43 1A FE 0D 20 13 DD 36    .....*.:C... ..6
001050:  00 00 DD 34 01 DD 7E 01 FE 10 20 CD DD 35 01 18    ...4..~... ..5..
001060:  C8 FE F2 01 FF 00 28 4E FE F3 01 01 00 28 47 4B    ......(N.....(GK
001070:  19 FE F1 01 00 01 28 40 FE F0 01 00 FF 28 39 FE    ......(@.....(9.
001080:  43 CA A2 19 FE 7F 28 6B FE 41 C8 FE 20 38 9F FE    C.....(k.A.. 8..
001090:  3A 38 0A FE 61 38 97 FE 7B 30 93 D6 20 CD C1 19    :8..a8..{0.. ...
0010A0:  3A 43 1A FE 20 20 0E DD 7E 00 FE 06 30 07 DD 34    :C..  ..~...0..4
0010B0:  00 3E 20 18 E8 01 01 00 DD 36 03 0F DD 7E 00 81    .> ......6...~..
0010C0:  FE 16 38 0C CB 79 20 05 3E 00 04 18 03 05 3E 15    ..8..y .>.....>.
0010D0:  DD 77 00 DD 7E 01 80 FE 10 30 06 DD 77 01 C3 BA    .w..~....0..w...
0010E0:  18 CB 78 28 07 DD 36 01 00 C3 BA 18 DD 36 01 0F    ..x(..6......6..
0010F0:  C3 BA 18 DD 35 00 F2 9A 19 DD 36 00 15 DD 35 01    ....5.....6...5.
001100:  F2 9A 19 DD 36 00 00 DD 36 01 00 3E 20 CD C1 19    ....6...6..> ...
001110:  C3 BA 18 CD B3 19 DD 36 00 00 DD 36 01 00 DD 36    .......6...6...6
001120:  02 00 18 94 21 45 17 11 46 17 36 20 01 6F 01 ED    ....!E..F.6 .o..
001130:  B0 C9 4F 21 45 17 11 17 00 DD 7E 01 FE 00 28 04    ..O!E.....~...(.
001140:  47 19 10 FD DD 5E 00 19 71 C9 21 43 17 11 17 00    G....^..q.!C....
001150:  06 10 19 CB FE 10 FB 21 45 17 06 10 11 12 02 C5    .......!E.......
001160:  CD F1 32 23 23 1E 12 C1 10 F5 21 43 17 11 17 00    ..2##.....!C....
001170:  06 97 F9 10 19 CB BE 10 FB C9 DD 6E 01 2C 2C 3E    ...........n.,,>
001180:  12 DD 86 00 67 C3 1A BC CD 07 1A 11 FF 07 06 08    ....g...........
001190:  3E 00 ED 6F 23 3E 00 ED 6F 19 10 F4 C9 CD 07 1A    >..o#>..o.......
0011A0:  11 FF 07 06 08 3E 00 ED 67 23 3E 00 ED 67 19 10    .....>..g#>..g..
0011B0:  F4 C9 00 00 00 00 00 00 E5 21 CF 31 CB 56 28 04    .........!.1.V(.
0011C0:  12 13 E1 C9 D5 6F 26 00 29 29 29 25 29 01 96 1A    .....o&.)))%)...
0011D0:  09 CD 72 1A D1 1C 3E 28 BB 20 08 1E 00 3E 18 BA    ..r...>(. ...>..
0011E0:  28 01 14 E1 C9 EB 7C 65 6F CD 1A BC 3A 91 1A 4F    (.....|eo...:..O
0011F0:  06 08 C5 1A A1 77 23 13 1A A1 77 13 01 FF 07 09    .....w#...w.....
001200:  C1 10 EF C9 0F 00 18 0E 06 FF FF FF FF FF FF FF    ................
001210:  FF FF FF FF FF FF FF FF FF EE 77 EE 77 EE 77 EE    ..........w.w.w.
001220:  77 EE 77 FF FF EE 77 FF FF 39 39 39 39 39 39 FF    w.w...w..999999.
001230:  FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF    ................
001240:  FF FF FF FF FF FF FF FF FF 00 00 00 00 00 00 00    ................
001250:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
001260:  00 00 00 00 00 00 00 00 00 CC 77 99 33 CC 77 88    ..........w.3.w.
001270:  99 22 33 71 CA 33 33 88 99 FF FF EE 77 EE 77 CC    ."3q.33.....w.w.
001280:  FF FF FF FF FF FF FF FF FF FF FF FF 33 EE 77 CC    ............3.w.
001290:  FF CC FF CC FF EE 77 FF 33 FF FF CC FF EE 77 FF    ......w.3.....w.
0012A0:  33 FF 33 FF 33 EE 77 CC FF FF FF FF FF 99 99 CC    3.3.3.w.........
0012B0:  33 00 00 CC 33 99 99 FF FF FF FF FF FF EE 77 EE    3...3.........w.
0012C0:  77 88 11 EE 77 EE 77 FF FF FF FF FF FF FF FF FF    w...w.w.........
0012D0:  FF FF FF FF FF EE 77 EE 77 CC FF FF FF FF FF FF    ......w.w.......
0012E0:  FF 88 11 FF FF FF FF FF FF FF FF FF FF FF FF FF    ................
0012F0:  FF FF FF FF FF EE 77 EE 77 FF FF FF 99 FF 33 EE    ......w.w.....3.
001300:  77 CC FF 99 FF 33 FF 77 FF FF FF 88 33 33 99 33    w....3.w....33.3
001310:  11 22 99 11 99 33 99 88 33 FF FF EE 77 CC 77 EE    ."...3..3...w.w.
001320:  77 EE 77 EE 77 EE 77 88 11 FF FF CC 33 99 99 FF    w.w.w.w.....3...
001330:  99 CC 33 99 FF 99 99 88 11 FF FF CC 33 BB 99 FF    ..3.........3...
001340:  99 EE 33 FF 99 99 99 CC 33 FF FF EE 77 CC 77 AA    ..3.....3...w.w.
001350:  77 66 77 00 11 EE 77 CC 33 FF FF 88 11 99 DD 99    wfw...w.3.......
001360:  FF CC 33 FF 99 99 99 CC 33 FF FF CC 33 99 99 99    ..3.....3...3...
001370:  FF 88 33 99 99 78 28 99 99 CC 33 FF FF 88 11 BB    ..3..x(...3.....
001380:  99 FF 99 FF 33 EE 77 EE 77 EE 77 FF FF CC 33 99    ....3.w.w.w...3.
001390:  99 99 99 CC 33 99 99 99 99 CC 33 FF FF CC 33 99    ....3.....3...3.
0013A0:  99 99 99 CC 11 FF 99 99 99 CC 33 FF FF FF FF FF    ..........3.....
0013B0:  FF EE 77 EE 77 FF FF EE 77 EE 77 FF FF FF FF FF    ..w.w...w.w.....
0013C0:  FF EE 77 EE 77 FF FF EE 77 EE 77 CC FF FF 33 EE    ..w.w...w.w...3.
0013D0:  77 CC FF 99 FF CC FF EE 77 FF 33 FF FF FF FF FF    w.......w.3.....
0013E0:  FF 88 11 FF FF FF FF 88 11 FF FF FF FF 99 FF CC    ................
0013F0:  FF EE 77 FF 33 EE 77 CC FF 99 FF FF FF CC 33 99    ..w.3.w.......3.
001400:  99 FF 99 FF 33 EE 77 FF FF EE 77 FF FF 88 33 33    ....3.w...w...33
001410:  99 22 11 22 11 22 11 33 FF 88 33 FF FF EE 77 CC    .".".".3..3...w.
001420:  33 99 99 99 99 88 11 99 99 99 99 FF FF 00 33 99    3.............3.
001430:  99 99 99 88 33 99 99 99 99 00 33 FF FF CC 33 99    ....3.....3...3.
001440:  99 33 FF 33 FF 33 FF 99 99 CC 33 FF FF 00 77 99    .3.3.3....3...w.
001450:  33 99 99 99 99 99 99 99 33 00 77 FF FF 00 11 99    3.......3.w.....
001460:  DD 99 77 88 77 99 77 99 DD 00 11 FF FF 00 11 99    ..w.w.w.........
001470:  DD 99 77 88 77 99 77 B6 D0 99 FF 00 FF FF FF CC    ..w.w.w.........
001480:  33 99 99 33 FF 33 FF 33 11 33 99 88 11 FF FF 99    3..3.3.3.3......
001490:  99 99 99 99 99 88 11 99 99 99 99 99 99 FF FF 88    ................
0014A0:  11 EE 77 EE 77 EE 77 EE 77 EE 77 88 11 FF FF EE    ..w.w.w.w.w.....
0014B0:  11 FF 33 FF 33 FF 33 33 33 33 33 88 77 FF FF 11    ..3.3.33333.w...
0014C0:  99 99 99 99 33 88 77 99 33 99 99 11 99 FF FF 00    ....3.w.3.......
0014D0:  FF 99 FF 99 FF 99 FF 99 DD 99 99 00 11 FF FF 33    ...............3
0014E0:  99 11 11 00 11 00 11 22 99 33 99 33 99 FF FF 33    .......".3.3...3
0014F0:  99 11 99 00 99 22 11 33 11 33 99 33 99 FF FF CC    .....".3.3.3....
001500:  77 99 33 33 99 33 99 33 99 99 33 CC 77 FF FF 00    w.33.3.3..3.w...
001510:  33 99 99 99 99 88 77 99 FF 99 FF 00 FF FF FF CC    3.....w.........
001520:  77 99 33 33 99 33 99 22 55 33 33 88 99 FF FF 00    w.33.3."U33.....
001530:  33 99 99 99 99 88 33 99 33 99 99 11 99 FF FF CC    3.....3.3.......
001540:  33 99 99 99 FF CC 33 FF 99 99 99 CC 33 FF FF 88    3.....3.....3...
001550:  11 AA 55 EE 77 EE 77 EE 77 EE 77 CC 33 FF FF 99    ..U.w.w.w.w.3...
001560:  99 99 99 99 99 99 99 99 99 99 99 CC 33 FF FF 99    ............3...
001570:  99 99 99 99 99 99 99 99 99 C7 20 CC 33 EE 77 FF    .......... .3.w.
001580:  FF 33 99 33 99 33 99 22 99 00 11 11 11 33 99 FF    .3.3.3.".....3..
001590:  FF 33 99 99 33 CC 77 CC 77 99 33 33 99 33 99 FF    .3..3.w.w.33.3..
0015A0:  FF 99 99 99 99 99 99 CC 33 EE 77 EE 77 CC 33 FF    ........3.w.w.3.
0015B0:  FF 00 11 33 99 77 33 EE 77 CC DD 99 99 00 11 FF    ...3.w3.w.......
0015C0:  FF CC 33 CC FF CC FF CC FF CC FF CC FF CC 33 FF    ..3...........3.
0015D0:  FF 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
0015E0:  00 CC 33 FF 33 FF 33 FF 33 FF 33 FF 33 CC 33 FF    ..3.3.3.3.3.3.3.
0015F0:  FF 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
001600:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
001610:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
001620:  00 FF FF FF FF 88 77 FF 33 88 33 33 33 88 99 FF    ......w.3.333...
001630:  FF 11 FF 11 FF 88 33 99 99 99 99 99 99 44 33 FF    ......3......D3.
001640:  FF FF FF FF FF CC 33 99 99 99 FF 99 99 CC 33 FF    ......3.......3.
001650:  FF EE 33 FF 33 88 33 33 33 33 33 33 33 88 99 FF    ..3.3.3333333...
001660:  FF FF FF FF FF CC 33 99 99 88 11 99 FF CC 33 FF    ......3.......3.
001670:  FF EE 33 CC 99 CC FF 88 77 CC FF D4 C0 CC FF 88    ..3.....w.......
001680:  77 FF FF FF FF FF FF CC 11 99 99 99 99 CC 11 FF    w...............
001690:  99 88 33 11 FF 99 FF 99 33 88 99 99 99 99 99 11    ..3.....3.......
0016A0:  99 FF FF EE 77 FF FF CC 77 EE 77 EE 77 EE 77 CC    ....w...w.w.w.w.
0016B0:  33 FF FF FF DD FF FF FF 11 FF 99 FF 99 99 99 99    3...............
0016C0:  99 CC 33 11 FF 99 FF 99 99 99 33 88 77 99 33 11    ..3.......3.w.3.
0016D0:  99 FF FF CC 77 EE 77 EE 77 EE 77 EE 77 EE 77 CC    ....w.w.w.w.w.w.
0016E0:  33 FF FF FF FF FF FF 55 33 00 11 22 99 22 99 33    3......U3..".".3
0016F0:  99 FF FF FF FF FF FF 22 77 99 99 99 99 99 99 99    ......."w.......
001700:  99 FF FF FF FF FF FF CC 33 99 99 99 99 99 99 CC    ........3.......
001710:  33 FF FF FF FF FF FF 22 33 99 99 99 99 88 33 99    3......"3.....3.
001720:  FF 00 FF FF FF FF FF 88 99 33 33 33 33 88 33 FF    .........3333.3.
001730:  33 EE 11 FF FF FF FF 22 77 99 33 99 FF 99 FF 00    3......"w.3.....
001740:  FF FF FF FF FF FF FF CC 33 99 FF CC 33 FF 99 88    ........3...3...
001750:  33 FF FF CC FF CC FF 88 33 CC FF CC FF CC 99 EE    3.......3.......
001760:  33 FF FF FF FF FF FF 99 99 99 99 99 99 99 99 CC    3...............
001770:  11 FF FF FF FF FF FF 99 99 99 99 99 99 95 00 CC    ................
001780:  33 EE 77 FF FF FF FF FF FF 33 99 22 99 22 99 00    3.w......3."."..
001790:  11 99 33 FF FF FF FF FF FF 33 99 99 33 CC 77 99    ..3......3..3.w.
0017A0:  33 33 99 FF FF FF FF FF FF 99 99 99 99 99 99 CC    33..............
0017B0:  11 FF 99 88 33 FF FF 88 11 BB 33 EE 77 CC FF 88    ....3.....3.w...
0017C0:  11 FF FF FF FF 3E 0F 32 91 1A 21 CF 31 CB EE DD    .....>.2..!.1...
0017D0:  7E 03 FE 28 30 3D DD CB 00 56 20 7E FE 0E 20 17    ~..(0=...V ~.. .
0017E0:  CD D1 20 DD 7E 04 FE 02 28 06 21 7B 22 CD 0A 22    .. .~...(.!{".."
0017F0:  CD 08 21 CD E9 21 C9 FE 16 38 0B FE 1E 30 07 DD    ..!..!...8...0..
001800:  7E 05 FE 7F 28 0D CD 08 21 CD D1 20 CD 86 21 CD    ~...(...!.. ..!.
001810:  E9 21 C9 FE 3C 28 EF FE 54 28 28 FE 60 28 11 FE    .!..<(..T((.`(..
001820:  6A 28 0D CD D1 20 CD 08 21 CD 86 21 CD E9 21 C9    j(... ..!..!..!.
001830:  CD D1 20 CD 86 21 21 A6 22 CD 0A 22 CD 08 21 CD    .. ..!!.".."..!.
001840:  E9 21 C9 CD D1 20 CD 08 21 1D 1D 1D CD E9 21 C9    .!... ..!.....!.
001850:  DD 7E 03 21 A9 22 CD 02 22 C9 DD 7E 03 FE 0E 30    .~.!.".."..~...0
001860:  10 CD 08 21 21 1B 23 DD 7E 03 CD 02 22 CD E9 21    ...!!.#.~..."..!
001870:  C9 21 1B 23 CD 02 22 CD 08 21 DD 7E 05 21 2F 7F    .!.#.."..!.~.!/.
001880:  F8 23 CD 02 22 CD E9 21 C9 DD 7E 04 FE 7F C8 FE    .#.."..!..~.....
001890:  1A 28 5E FE 76 28 3B FE 72 28 3D FE 74 28 39 FE    .(^.v(;.r(=.t(9.
0018A0:  0C 28 0C FE 02 CA D0 21 21 2F 23 CD 02 22 C9 DD    .(.....!!/#.."..
0018B0:  7E 03 FE 16 28 0F FE 1A 28 0B FE 1C 28 07 FE 22    ~...(...(...(.."
0018C0:  DD 7E 04 20 E3 21 F1 23 CD 0A 22 C9 C9 CD 0A 22    .~. .!.#.."...."
0018D0:  18 06 21 8B 22 CD 0A 22 7B FE 22 38 0A 3E 20 CD    ..!.".."{."8.> .
0018E0:  45 1A 7B FE 00 20 F6 DD 6E 01 DD 66 02 CD 0A 22    E.{.. ..n..f..."
0018F0:  C9 21 8B 22 CD 0A 22 DD E5 E1 01 06 00 09 CD 67    .!.".."........g
001900:  22 3E 20 CD 45 1A C9 DD 7E 05 FE 7F C8 FE 18 28    "> .E...~......(
001910:  38 FE 02 28 3C FE 74 28 BF FE 72 28 BB FE 48 28    8..(<.t(..r(..H(
001920:  19 FE 4A 28 15 FE 32 28 11 21 7F 22 CD 0A 22 DD    ..J(..2(.!."..".
001930:  7E 05 FE 1A 28 BB FE 76 28 98 21 2F 23 CD 02 22    ~...(..v(.!/#.."
001940:  C9 21 9B 22 CD 0A 22 18 8F 21 9B 22 CD 0A 22 18    .!.".."..!."..".
001950:  A6 21 9B 22 CD 0A 22 DD 7E 00 E6 03 01 06 00 28    .!."..".~......(
001960:  01 0C DD E5 E1 09 CD 5B 22 C9 3E 2E CD 45 1A CD    .......[".>..E..
001970:  F7 21 7A FE 14 38 F8 C9 3E 20 CD 45 1A 7B FE 00    .!z..8..> .E.{..
001980:  20 2C 02 F6 C9 4F 06 00 09 4E 23 66 69 3A CF 31     ,...O...N#fi:.1
001990:  CB 6F 28 13 E6 DF 32 CF 31 7E E6 DF 18 0A CD 45    .o(...2.1~.....E
0019A0:  1A 23 7B FE 00 28 0B 7E CB 7F 28 F2 E6 7F CD 45    .#{..(.~..(....E
0019B0:  1A C9 7E CB 7F 20 07 FE 20 20 08 23 18 E9 E6 7F    ..~.. ..  .#....
0019C0:  FE 20 C8 3E 20 1E 28 15 2B 1D 7E E6 7F FE 20 20    . .> .(.+.~...  
0019D0:  F7 23 3E 20 CD 45 1A 7B FE 00 20 F6 18 C9 7B FE    .#> .E.{.. ...{.
0019E0:  26 38 03 CD F7 21 CD 1D 33 C9 7B FE 24 38 03 CD    &8...!..3.{.$8..
0019F0:  F7 21 CD 31 33 C9 61 64 64 72 65 73 73 A0 74 68    .!.13.address.th
001A00:  65 20 63 6F 6E 74 65 6E 74 73 20 6F 66 A0 6D 65    e contents of.me
001A10:  6D 6F 72 79 20 6C 6F 63 61 74 69 6F 6E A0 74 68    mory location.th
001A20:  65 20 6E 75 6D 62 65 72 A0 74 6F A0 46 29 86 29    e number.to.F).)
001A30:  D0 29 10 2A 72 26 81 26 91 26 AB 26 D2 26 EE 26    .).*r&.&.&.&.&.&
001A40:  02 27 57 2A 70 2A B4 2A DE 2A EE 2A 2D 2B 5F 2B    .'W*p*.*.*.*-+_+
001A50:  16 27 43 27 87 2B C6 2B F6 2B 35 2C 5F 2C 8C 2C    .'C'.+.+.+5,_,.,
001A60:  70 27 A9 2C 93 27 B7 27 F7 27 09 28 32 28 63 28    p'.,.'.'.'.(2(c(
001A70:  DA 2C 0C 2D 2E 2D 62 2D 88 28 A3 28 85 2D C9 2D    .,.-.-b-.(£(.-.-
001A80:  0E 2E 27 F7 12 2E 3A 2E 80 2E B8 2E FE 2E 36 2F    ..'...:.......6/
001A90:  46 2F 7D 2F C3 2F FA 2F 3F 30 46 30 76 30 ED 28    F/}/././?0F0v0.(
001AA0:  A5 30 CF 30 EA 30 16 31 32 31 64 31 98 31 2B 29    .0.0.0.121d1.1+)
001AB0:  34 29 3C 29 9E 23 AA 23 B5 23 C1 23 CF 23 DB 23    4)<).#.#.#.#.#.#
001AC0:  E6 23 07 24 12 24 1D 24 28 24 33 24 AA 23 CC 31    .#.$.$.$($3$.#.1
001AD0:  3F 24 54 24 60 24 79 24 93 24 9F 24 AB 24 C0 24    ?$T$`$y$.$.$.$.$
001AE0:  D5 24 E3 24 F1 24 FE 24 17 25 25 25 45 25 53 25    .$.$.$.$.%%%E%S%
001AF0:  61 25 67 25 84 25 9C 25 B0 25 CA 25 DB 25 F5 25    a%g%.%.%.%.%.%.%
001B00:  0C 26 1A 26 1F 26 24 26 29 26 2E 26 33 26 38 26    .&.&.&$&)&.&3&8&
001B10:  3D 26 42 26 48 26 4E 26 54 26 5A 26 60 26 66 26    =&B&H&N&T&Z&`&f&
001B20:  6C 26 A0 61 63 63 75 6D 75 6C 61 74 6F 72 A0 74    l&.accumulator.t
001B30:  68 65 20 6E 75 6D 62 65 72 A0 48 4C 20 72 65 67    he number.HL reg
001B40:  69 73 74 65 72 A0 6C 6F 63 61 74 69 6F 6E 20 28    ister.location (
001B50:  48 4C 29 A0 44 45 20 72 65 67 69 73 74 65 72 A0    HL).DE register.
001B60:  42 20 72 65 67 69 73 74 65 72 A0 43 20 72 65 67    B register.C reg
001B70:  69 73 74 65 72 A0 69 66 20 43 61 72 72 79 20 66    ister.if Carry f
001B80:  6C 61 67 20 69 47 85 73 20 73 65 74 2C A0 44 20    lag iG.s set,.D 
001B90:  72 65 67 69 73 74 65 72 A0 45 20 72 65 67 69 73    register.E regis
001BA0:  74 65 72 A0 48 20 72 65 67 69 73 74 65 72 A0 4C    ter.H register.L
001BB0:  20 72 65 67 69 73 74 65 72 A0 42 43 20 72 65 67     register.BC reg
001BC0:  69 73 74 65 72 A0 69 66 20 5A 65 72 6F 20 66 6C    ister.if Zero fl
001BD0:  61 67 20 69 73 20 73 65 74 2C A0 4E 4F 54 20 44    ag is set,.NOT D
001BE0:  45 46 49 4E 45 44 A0 69 66 20 5A 65 72 6F 20 66    EFINED.if Zero f
001BF0:  6C 61 67 20 69 73 20 6E 6F 74 20 73 65 74 2C A0    lag is not set,.
001C00:  69 66 20 43 61 72 72 79 20 66 6C 61 67 20 69 73    if Carry flag is
001C10:  20 6E 6F 74 20 73 65 74 2C A0 49 58 20 72 65 67     not set,.IX reg
001C20:  69 73 74 65 72 A0 49 59 20 72 65 67 69 73 74 65    ister.IY registe
001C30:  72 A0 6C 6F 63 61 74 69 6F 6E 20 28 49 58 2B 6F    r.location (IX+o
001C40:  66 66 73 65 74 29 A0 6C 6F 63 61 74 69 6F 6E 20    ffset).location 
001C50:  28 49 59 2B 6F 66 66 73 65 74 29 A0 6C 6F 63 61    (IY+offset).loca
001C60:  74 69 6F 6E 20 28 42 43 29 A0 6C 6F 63 61 74 69    tion (BC).locati
001C70:  6F 6E 20 28 44 45 29 A0 41 46 20 72 65 67 69 73    on (DE).AF regis
001C80:  74 65 72 73 A0 61 6C D8 F8 74 65 72 6E 61 74 69    ters.al..ternati
001C90:  76 65 20 41 46 20 72 65 67 69 73 74 65 72 73 A0    ve AF registers.
001CA0:  53 74 61 63 6B 20 50 6F 69 6E 74 65 72 A0 69 66    Stack Pointer.if
001CB0:  20 53 69 67 6E 20 66 6C 61 67 20 69 73 20 30 2C     Sign flag is 0,
001CC0:  20 69 65 20 50 6F 73 69 74 69 76 65 2C A0 6C 6F     ie Positive,.lo
001CD0:  63 61 74 69 6F 6E 20 28 49 58 29 A0 6C 6F 63 61    cation (IX).loca
001CE0:  74 69 6F 6E 20 28 49 59 29 A0 73 74 61 63 6B A0    tion (IY).stack.
001CF0:  69 66 20 53 69 67 6E 20 66 6C 61 67 20 69 73 20    if Sign flag is 
001D00:  31 2C 20 69 65 20 4D 69 6E 75 73 2C A0 69 66 20    1, ie Minus,.if 
001D10:  50 2F 56 20 66 6C 61 67 20 69 73 20 6E 4F 74 20    P/V flag is nOt 
001D20:  73 65 74 2C A0 69 66 20 50 2F 56 20 66 6C 61 67    set,.if P/V flag
001D30:  20 69 73 20 73 45 74 2C A0 49 6E 74 65 72 72 75     is sEt,.Interru
001D40:  70 74 20 76 65 63 74 6F 72 20 72 65 67 69 73 74    pt vector regist
001D50:  65 72 A0 52 65 66 72 65 73 68 20 72 65 67 69 73    er.Refresh regis
001D60:  74 65 72 A0 70 6F 72 74 20 77 68 6F 73 65 20 6E    ter.port whose n
001D70:  75 6D 62 65 72 20 69 73 20 69 6E 20 43 A0 70 6F    umber is in C.po
001D80:  72 74 20 77 69 74 68 20 61 BA 13 62 6F 76 65 20    rt with a..bove 
001D90:  6E 75 6D 62 65 72 A0 46 6C 61 67 20 72 65 67 69    number.Flag regi
001DA0:  73 74 65 72 A0 30 20 6F 66 A0 31 20 6F 66 A0 32    ster.0 of.1 of.2
001DB0:  20 6F 66 A0 33 20 6F 66 A0 34 20 6F 66 A0 35 20     of.3 of.4 of.5 
001DC0:  6F 66 A0 36 20 6F 66 A0 37 20 6F 66 A0 30 30 30    of.6 of.7 of.000
001DD0:  30 48 A0 30 30 30 38 48 A0 30 30 31 30 48 A0 30    0H.0008H.0010H.0
001DE0:  30 31 38 48 A0 30 30 32 30 48 A0 30 30 32 38 48    018H.0020H.0028H
001DF0:  A0 30 30 33 30 48 A0 30 30 33 38 48 A0 69 73 20    .0030H.0038H.is 
001E00:  6C 6F 61 64 65 64 20 77 69 74 68 A0 68 61 73 20    loaded with.has 
001E10:  61 64 64 65 64 20 74 6F 20 69 74 A0 68 61 73 20    added to it.has 
001E20:  61 64 64 65 64 20 74 6F 20 69 74 20 63 61 72 72    added to it carr
001E30:  79 20 61 6E 64 A0 54 68 65 20 41 63 63 75 6D 75    y and.The Accumu
001E40:  6C 61 74 6F 72 20 68 61 73 20 73 75 62 74 72 61    lator has subtra
001E50:  63 74 65 64 20 66 72 6F 6D 20 69 74 A0 68 61 73    cted from it.has
001E60:  20 74 61 6B 65 6E 20 66 72 6F 6D 20 69 74 20 63     taken from it c
001E70:  61 72 72 79 20 61 6E 64 A0 69 73 20 49 4E 43 72    arry and.is INCr
001E80:  65 6D 65 6E 74 65 64 20 62 79 20 8A AC 31 A0 69    emented by ..1.i
001E90:  73 20 44 45 43 72 65 6D 65 6E 74 65 64 20 62 79    s DECremented by
001EA0:  20 31 A0 69 73 20 50 55 53 48 65 64 20 6F 6E 74     1.is PUSHed ont
001EB0:  6F 20 73 74 61 63 6B 20 61 6E 64 20 53 50 20 64    o stack and SP d
001EC0:  65 63 72 65 6D 65 6E 74 65 64 20 62 79 20 32 A0    ecremented by 2.
001ED0:  69 73 20 50 4F 50 70 65 64 20 66 72 6F 6D 20 73    is POPped from s
001EE0:  74 61 63 6B 20 61 6E 64 20 53 50 20 69 6E 63 72    tack and SP incr
001EF0:  65 6D 65 6E 74 65 64 20 62 79 20 32 A0 41 63 63    emented by 2.Acc
001F00:  75 6D 75 6C 61 74 6F 72 20 69 73 20 6C 6F 67 69    umulator is logi
001F10:  63 61 6C 6C 79 20 4F 52 65 64 20 77 69 74 68 A0    cally ORed with.
001F20:  41 63 63 75 6D 75 6C 61 74 6F 72 20 69 73 20 6C    Accumulator is l
001F30:  6F 67 69 63 61 6C 6C 79 20 41 4E 44 65 64 20 77    ogically ANDed w
001F40:  69 74 68 A0 42 43 2C 20 44 45 2C 20 48 4C 20 72    ith.BC, DE, HL r
001F50:  65 67 69 73 74 65 72 73 20 61 72 65 20 61 6C 6C    egisters are all
001F60:  20 45 58 63 68 61 6E 67 65 64 20 77 69 74 68 20     EXchanged with 
001F70:  74 68 65 20 61 6C 74 65 72 6E 61 74 69 76 65 20    the alternative 
001F80:  73 65 74 A0 69 73 20 45 58 63 68 61 6E 7B 71 67    set.is EXchan{qg
001F90:  65 64 20 77 69 74 68 A0 41 63 63 75 6D 75 6C 61    ed with.Accumula
001FA0:  74 6F 72 20 69 73 20 4E 45 47 61 74 65 64 2C 20    tor is NEGated, 
001FB0:  69 65 20 6D 61 64 65 20 6E 65 67 61 74 69 76 65    ie made negative
001FC0:  A0 63 61 72 72 79 20 66 6C 61 67 20 69 73 20 69    .carry flag is i
001FD0:  6E 76 65 72 74 65 64 2C 20 69 65 20 43 6F 6D 70    nverted, ie Comp
001FE0:  6C 69 6D 65 6E 74 20 43 61 72 72 79 20 46 6C 61    liment Carry Fla
001FF0:  67 A0 63 61 72 72 79 20 66 6C 61 67 20 69 73 20    g.carry flag is 
002000:  73 65 74 2C 20 69 65 20 53 65 74 20 43 61 72 72    set, ie Set Carr
002010:  79 20 46 6C 61 67 A0 64 65 63 69 6D 61 6C 20 41    y Flag.decimal A
002020:  64 6A 75 73 74 20 41 63 63 75 6D 75 6C 61 74 6F    djust Accumulato
002030:  72 A0 4E 6F 20 4F 50 65 72 61 74 69 6F 6E 20 69    r.No OPeration i
002040:  73 20 70 65 72 66 6F 72 6D 65 64 2C 20 69 6E 73    s performed, ins
002050:  70 69 74 65 20 6F 66 20 74 68 69 73 20 69 74 20    pite of this it 
002060:  74 61 6B 65 73 20 2E 30 30 30 30 30 31 20 73 65    takes .000001 se
002070:  63 73 20 74 6F 20 64 6F 20 69 74 A0 63 6F 6D 70    cs to do it.comp
002080:  75 74 65 72 20 69 73 20 48 41 4C 54 65 64 20 3C    uter is HALTed <
002090:  15 75 6E 74 69 6C 20 61 6E 20 69 6E 74 65 72 72    .until an interr
0020A0:  75 70 74 20 63 6F 6D 65 73 20 74 6F 20 61 77 61    upt comes to awa
0020B0:  6B 65 20 69 74 20 61 67 61 69 6E A0 74 65 73 74    ke it again.test
0020C0:  20 42 49 54 A0 53 45 54 20 62 69 74 A0 52 45 53     BIT.SET bit.RES
0020D0:  65 74 20 62 69 74 A0 62 6C 6F 63 6B 20 74 72 61    et bit.block tra
0020E0:  6E 73 66 65 72 20 28 42 43 29 20 62 79 74 65 73    nsfer (BC) bytes
0020F0:  20 73 74 61 72 74 69 6E 67 20 61 74 20 28 48 4C     starting at (HL
002100:  29 20 74 6F 20 28 44 45 29 20 69 6E 63 72 65 6D    ) to (DE) increm
002110:  65 6E 74 69 6E 67 A0 74 72 61 6E 73 66 65 72 20    enting.transfer 
002120:  28 48 4C 29 20 74 6F 20 28 44 45 29 2C 20 69 6E    (HL) to (DE), in
002130:  63 72 65 6D 65 6E 74 20 48 4C 20 61 6E 64 20 44    crement HL and D
002140:  45 2C 20 64 65 63 20 42 43 2C 20 72 65 73 65 74    E, dec BC, reset
002150:  20 50 56 20 66 6C 61 67 20 69 66 20 42 43 3D 30     PV flag if BC=0
002160:  A0 62 6C 6F 63 6B 20 74 72 61 6E 73 66 65 72 20    .block transfer 
002170:  28 42 43 29 20 62 79 74 65 73 20 73 74 61 72 74    (BC) bytes start
002180:  69 6E 67 20 61 74 20 28 48 4C 29 20 74 6F 20 28    ing at (HL) to (
002190:  44 A0 82 45 29 20 64 65 63 72 65 6D 65 6E 74 69    D..E) decrementi
0021A0:  6E 67 A0 74 72 61 6E 73 66 65 72 20 28 48 4C 29    ng.transfer (HL)
0021B0:  20 74 6F 20 28 44 45 29 2C 20 64 65 63 72 65 6D     to (DE), decrem
0021C0:  65 6E 74 20 48 4C 2C 20 44 45 2C 20 61 6E 64 20    ent HL, DE, and 
0021D0:  42 43 2C 20 72 65 73 65 74 20 50 56 20 66 6C 61    BC, reset PV fla
0021E0:  67 20 69 66 20 42 43 3D 30 A0 70 65 72 66 6F 72    g if BC=0.perfor
0021F0:  6D 20 72 65 6C 61 74 69 76 65 20 6A 75 6D 70 20    m relative jump 
002200:  74 6F A0 64 65 63 72 65 6D 65 6E 74 20 42 2C 20    to.decrement B, 
002210:  69 66 20 7A 65 72 6F 20 63 6F 6E 74 69 6E 75 65    if zero continue
002220:  2C 20 69 66 20 4E 6F 74 20 5A 65 72 6F 20 70 65    , if Not Zero pe
002230:  72 66 6F 72 6D 20 72 65 6C 61 74 69 76 65 20 6A    rform relative j
002240:  75 6D 70 20 74 6F A0 70 75 73 68 20 74 68 65 20    ump to.push the 
002250:  72 65 74 75 72 6E 20 61 64 64 72 65 73 73 20 74    return address t
002260:  6F 20 73 74 61 63 6B 20 61 6E 64 20 43 41 4C 4C    o stack and CALL
002270:  A0 70 65 72 66 6F 72 6D 20 6A 75 6D 70 20 74 6F    .perform jump to
002280:  A0 52 45 54 75 72 6E 20 66 72 6F 6D 20 4E 6F 6E    .RETurn from Non
002290:  2D 6D 61 44 52 73 6B 61 62 6C 65 20 69 6E 74 65    -maDRskable inte
0022A0:  72 72 75 70 74 3A 20 4E 4F 54 20 50 45 52 46 4F    rrupt: NOT PERFO
0022B0:  52 4D 45 44 20 42 59 20 53 49 4D 55 4C 41 54 4F    RMED BY SIMULATO
0022C0:  52 A0 52 45 54 75 72 6E 20 66 72 6F 6D 20 49 6E    R.RETurn from In
0022D0:  74 65 72 72 75 70 74 3A 20 4E 4F 54 20 50 45 52    terrupt: NOT PER
0022E0:  46 4F 52 4D 45 44 20 42 59 20 53 49 4D 55 4C 41    FORMED BY SIMULA
0022F0:  54 4F 52 A0 52 45 54 75 72 6E 20 61 64 64 72 65    TOR.RETurn addre
002300:  73 73 20 69 73 20 50 4F 50 70 65 64 20 66 72 6F    ss is POPped fro
002310:  6D 20 74 68 65 20 73 74 61 63 6B A0 73 65 61 72    m the stack.sear
002320:  63 68 20 66 72 6F 6D 20 28 48 4C 29 20 49 6E 63    ch from (HL) Inc
002330:  72 65 6D 65 6E 74 69 6E 67 20 42 43 20 62 79 74    rementing BC byt
002340:  65 73 20 66 6F 72 20 64 61 74 61 20 69 6E 20 41    es for data in A
002350:  63 63 75 6D 75 6C 61 74 6F 72 A0 63 6F 6D 70 61    ccumulator.compa
002360:  72 65 20 28 48 4C 29 20 77 69 74 68 20 41 2C 20    re (HL) with A, 
002370:  69 6E 63 72 65 6D 65 6E 74 20 48 4C 2C 20 64 65    increment HL, de
002380:  63 72 65 6D 65 6E 74 20 42 43 A0 73 65 61 72 63    crement BC.searc
002390:  68 20 66 72 6F E0 6F 6D 20 28 48 4C 29 20 44 65    h fro.om (HL) De
0023A0:  63 72 65 6D 65 6E 74 69 6E 67 20 42 43 20 62 79    crementing BC by
0023B0:  74 65 73 20 66 6F 72 20 64 61 74 61 20 69 6E 20    tes for data in 
0023C0:  41 63 63 75 6D 75 6C 61 74 6F 72 A0 63 6F 6D 70    Accumulator.comp
0023D0:  61 72 65 20 28 48 4C 29 20 77 69 74 68 20 41 2C    are (HL) with A,
0023E0:  20 64 65 63 72 65 6D 65 6E 74 20 48 4C 2C 20 61     decrement HL, a
0023F0:  6E 64 20 42 43 A0 69 6E 76 65 72 74 20 61 6C 6C    nd BC.invert all
002400:  20 62 69 74 73 20 69 6E 20 41 20 72 65 67 69 73     bits in A regis
002410:  74 65 72 2C 20 69 65 20 43 6F 6D 50 4C 69 6D 65    ter, ie ComPLime
002420:  6E 74 A0 61 63 63 75 6D 75 6C 61 74 6F 72 20 69    nt.accumulator i
002430:  73 20 43 6F 6D 50 61 72 65 64 20 77 69 74 68 A0    s ComPared with.
002440:  63 6F 6E 74 65 6E 74 73 20 6F 66 20 41 63 63 75    contents of Accu
002450:  6D 75 6C 61 74 6F 72 20 69 73 20 65 58 63 6C 75    mulator is eXclu
002460:  73 69 76 65 6C 79 20 4F 52 65 64 20 77 69 74 68    sively ORed with
002470:  A0 72 6F 74 61 74 65 20 41 63 63 75 6D 75 6C 61    .rotate Accumula
002480:  74 6F 72 20 4C 65 66 74 20 73 68 69 66 74 69 6E    tor Left shiftin
002490:  67 20 62 69 74 20 37 1E FB 20 69 6E 74 6F 20 43    g bit 7.. into C
0024A0:  61 72 72 79 A0 72 6F 74 61 74 65 20 41 63 63 75    arry.rotate Accu
0024B0:  6D 75 6C 61 74 6F 72 20 61 6E 64 20 63 61 72 72    mulator and carr
0024C0:  79 20 4C 65 66 74 A0 72 6F 74 61 74 65 20 41 63    y Left.rotate Ac
0024D0:  63 75 6D 75 6C 61 74 6F 72 20 52 69 67 68 74 2C    cumulator Right,
0024E0:  20 73 68 69 66 74 69 6E 67 20 62 69 74 20 30 20     shifting bit 0 
0024F0:  69 6E 74 6F 20 43 61 72 72 79 A0 72 6F 74 61 74    into Carry.rotat
002500:  65 20 61 63 63 75 6D 75 6C 61 74 6F 72 20 61 6E    e accumulator an
002510:  64 20 63 61 72 72 79 20 52 69 67 68 74 A0 72 6F    d carry Right.ro
002520:  74 61 74 65 20 4C 65 66 74 20 44 65 63 69 6D 61    tate Left Decima
002530:  6C 20 63 6F 6E 74 65 6E 74 73 20 6F 66 20 28 48    l contents of (H
002540:  4C 29 20 77 69 74 68 20 6C 6F 77 20 6E 69 62 62    L) with low nibb
002550:  6C 65 20 6F 66 20 41 63 63 75 6D 75 6C 61 74 6F    le of Accumulato
002560:  72 A0 72 6F 74 61 74 65 20 52 69 67 68 74 20 44    r.rotate Right D
002570:  65 63 69 6D 61 6C 20 63 6F 6E 74 65 6E 74 73 20    ecimal contents 
002580:  6F 66 20 28 48 4C 29 20 77 69 74 68 20 6C 6F 77    of (HL) with low
002590:  20 6E 69 62 62 6C 65 20 6F 4C 93 66 20 41 63 63     nibble oL.f Acc
0025A0:  75 6D 75 6C 61 74 6F 72 A0 63 68 61 6E 67 65 20    umulator.change 
0025B0:  49 6E 74 65 72 72 75 70 74 20 4D 6F 64 65 20 74    Interrupt Mode t
0025C0:  6F A0 72 65 53 54 61 72 74 20 61 74 20 61 64 64    o.reSTart at add
0025D0:  72 65 73 73 A0 69 4E 70 75 74 20 66 72 6F 6D 20    ress.iNput from 
0025E0:  70 6F 72 74 20 28 43 29 2C 20 69 6E 74 6F 20 62    port (C), into b
0025F0:  6C 6F 63 6B 20 66 72 6F 6D 20 28 48 4C 29 20 49    lock from (HL) I
002600:  6E 63 72 65 6D 65 6E 74 69 6E 67 20 48 4C 20 66    ncrementing HL f
002610:  6F 72 20 42 20 62 79 74 65 73 A0 69 4E 70 75 74    or B bytes.iNput
002620:  20 69 6E 74 6F 20 28 48 4C 29 20 66 72 6F 6D 20     into (HL) from 
002630:  70 6F 72 74 20 28 43 29 20 69 6E 63 72 65 6D 65    port (C) increme
002640:  6E 74 20 48 4C 2C 20 64 65 63 72 65 6D 65 6E 74    nt HL, decrement
002650:  20 42 A0 69 4E 70 75 74 20 66 72 6F 6D 20 70 6F     B.iNput from po
002660:  72 74 20 28 43 29 2C 20 69 6E 74 6F 20 62 6C 6F    rt (C), into blo
002670:  63 6B 20 66 72 6F 6D 20 28 48 4C 29 20 44 65 63    ck from (HL) Dec
002680:  72 65 6D 65 6E 74 69 6E 67 20 48 4C 20 66 6F 72    rementing HL for
002690:  20 42 20 62 79 74 65 73 A0 69 4E 03 25 70 75 74     B bytes.iN.%put
0026A0:  20 69 6E 74 6F 20 28 48 4C 29 20 66 72 6F 6D 20     into (HL) from 
0026B0:  70 6F 72 74 20 28 43 29 20 44 65 63 72 65 6D 65    port (C) Decreme
0026C0:  6E 74 20 48 4C 2C 20 64 65 63 72 65 6D 65 6E 74    nt HL, decrement
0026D0:  20 42 A0 69 6E 70 75 74 20 64 61 74 61 20 66 72     B.input data fr
0026E0:  6F 6D A0 6F 75 74 70 75 74 20 66 72 6F 6D 20 28    om.output from (
0026F0:  48 4C 29 20 74 6F 20 70 6F 72 74 20 28 43 29 20    HL) to port (C) 
002700:  69 6E 63 72 65 6D 65 6E 74 20 48 4C 2C 20 64 65    increment HL, de
002710:  63 72 65 6D 65 6E 74 20 42 A0 6F 75 54 70 75 74    crement B.ouTput
002720:  20 66 72 6F 6D 20 28 48 4C 29 20 74 6F 20 70 6F     from (HL) to po
002730:  72 74 20 28 43 29 20 62 6C 6F 63 6B 20 66 72 6F    rt (C) block fro
002740:  6D 20 28 48 4C 29 20 49 6E 63 72 65 6D 65 6E 74    m (HL) Increment
002750:  69 6E 67 20 66 6F 72 20 42 20 62 79 74 65 73 A0    ing for B bytes.
002760:  6F 55 54 70 75 74 20 66 72 6F 6D 20 28 48 4C 29    oUTput from (HL)
002770:  20 74 6F 20 70 6F 72 74 20 28 43 29 20 44 65 63     to port (C) Dec
002780:  72 65 6D 65 6E 74 20 48 4C 2C 20 64 65 63 72 65    rement HL, decre
002790:  6D 65 6E 74 20 42 A0 6F 75 54 70 75 74 B5 33 20    ment B.ouTput.3 
0027A0:  74 6F 20 70 6F 72 74 20 28 43 29 2C 20 66 72 6F    to port (C), fro
0027B0:  6D 20 62 6C 6F 63 6B 20 66 72 6F 6D 20 28 48 4C    m block from (HL
0027C0:  29 20 44 65 63 72 65 6D 65 6E 74 69 6E 67 20 48    ) Decrementing H
0027D0:  4C 20 66 6F 72 20 42 20 62 79 74 65 73 A0 6F 55    L for B bytes.oU
0027E0:  54 70 75 74 A0 64 69 73 61 62 6C 65 20 49 6E 74    Tput.disable Int
0027F0:  65 72 72 75 70 74 73 2E 20 4E 4F 54 20 50 45 52    errupts. NOT PER
002800:  46 4F 52 4D 45 44 20 42 59 20 53 49 4D 55 4C 41    FORMED BY SIMULA
002810:  54 4F 52 2E A0 65 6E 61 62 6C 65 20 49 6E 74 65    TOR..enable Inte
002820:  72 72 75 70 74 73 2E 20 4E 4F 54 20 50 45 52 46    rrupts. NOT PERF
002830:  4F 52 4D 45 44 20 42 59 20 53 49 4D 55 4C 41 54    ORMED BY SIMULAT
002840:  4F 52 2E A0 69 73 20 52 6F 74 61 74 65 64 20 4C    OR..is Rotated L
002850:  65 66 74 20 73 68 69 66 74 69 6E 67 20 62 69 74    eft shifting bit
002860:  20 37 20 69 6E 74 6F 20 43 61 72 72 79 A0 61 6E     7 into Carry.an
002870:  64 20 43 61 72 72 79 20 61 72 65 20 72 6F 74 61    d Carry are rota
002880:  74 65 64 20 4C 65 66 74 A0 69 73 20 52 6F 74 61    ted Left.is Rota
002890:  74 65 64 20 52 69 67 68 74 2C 20 73 68 69 66 C3    ted Right, shif.
0028A0:  F4 74 69 6E 67 20 62 69 74 20 30 20 69 6E 74 6F    .ting bit 0 into
0028B0:  20 43 61 72 72 79 A0 61 6E 64 20 43 61 72 72 79     Carry.and Carry
0028C0:  20 61 72 65 20 52 6F 74 61 74 65 64 20 52 69 67     are Rotated Rig
0028D0:  68 74 A0 69 73 20 53 68 69 66 74 65 64 20 4C 65    ht.is Shifted Le
0028E0:  66 74 20 41 72 69 74 68 6D 65 74 69 63 61 6C 6C    ft Arithmeticall
0028F0:  79 2C 20 30 20 65 6E 74 65 72 73 20 61 74 20 62    y, 0 enters at b
002900:  69 74 20 30 A0 69 73 20 53 68 69 66 74 65 64 20    it 0.is Shifted 
002910:  52 69 67 68 74 20 41 72 69 74 68 6D 65 74 69 63    Right Arithmetic
002920:  61 6C 6C 79 2C 20 73 69 67 6E 20 62 69 74 20 75    ally, sign bit u
002930:  6E 63 68 61 6E 67 65 64 A0 69 73 20 53 68 69 66    nchanged.is Shif
002940:  74 65 64 20 52 69 67 68 74 20 4C 6F 67 69 63 61    ted Right Logica
002950:  6C 6C 79 2C 20 30 20 69 73 20 73 68 69 66 74 65    lly, 0 is shifte
002960:  64 20 69 6E 74 6F 20 62 69 74 20 37 A0 A0 00 58    d into bit 7...X
002970:  00 00 00 DD CB 00 7E C8 21 CF 31 CB 8E DD CB 00    ......~.!.1.....
002980:  76 28 2E DD 6E 08 DD 66 09 DD E5 01 08 00 DD 21    v(..n..f.......!
002990:  F3 3B 7D DD BE 06 20 15 7C DD BE 07 20 0F DD E5    .;}... .|... ...
0029A0:  E1 53 9D DD E1 CD F1 32 3E 20 CD 45 1A 18 0B DD    .S.....2> .E....
0029B0:  09 18 E1 3E 07 83 5F 30 01 14 21 F0 45 DD CB 00    ...>.._0..!.E...
0029C0:  56 28 03 21 68 46 22 4D 32 CD 4C 32 CD F1 32 3E    V(.!hF"M2.L2..2>
0029D0:  20 CD 45 1A DD 7E 04 FE 7F C8 CD 5C 32 DD 7E 05     .E..~.....\2.~.
0029E0:  FE 7F C8 3E 2C CD 45 1A DD 7E 05 CD 5C 32 C9 21    ...>,.E..~..\2.!
0029F0:  F0 45 7D DD 86 03 6F 30 01 24 7E 23 66 6F C9 FE    .E}...o0.$~#fo..
002A00:  28 20 15 CD E6 32 21 CF 31 CB CE 3E 06 CD DE 32    ( ...2!.1..>...2
002A10:  CD 1D 33 3E 29 C3 45 1A FE 2A 28 E7 FE 02 20 11    ..3>).E..*(... .
002A20:  3E 06 21 CF 31 CB 4E 28 02 3E 07 CD DE 32 C3 1D    >.!.1.N(.>...2..
002A30:  33 FE 18 20 08 3E 06 CD DE 32 C3 31 33 FE 1E 28    3.. .>...2.13..(
002A40:  F4 FE 4A 20 0C 3E 28 CD 45 1A 3E 06 CD DE 32 18    ..J .>(.E.>...2.
002A50:  BF FE 1A 20 0A 3E 28 CD 45 1A CD 92 32 18 B4 FE    ... .>(.E...2...
002A60:  72 28 04 FE 74 20 09 DD 6E 01 DD 66 02 C3 F1 32    r(..t ..n..f...2
002A70:  FE 76 20 15 3E 28 CD 45 1A CD C4 32 3E 29 C3 45    .v .>(.E...2>).E
002A80:  1A 2A EC 3B 85 6F D0 24 C9 21 0B 45 4F 06 00 09    .*.;.o.$.!.EO...
002A90:  4E 23 66 69 7E CB 7F 20 06 CD 45 1A 23 18 F5 E6    N#fi~.. ..E.#...
002AA0:  7F CD 45 13 06 1A C9 3E 00 CD 0D 33 CD 0D 33 ED    ..E....>...3..3.
002AB0:  6F C9 ED 6F F5 C6 30 FE 3A 38 02 C6 07 CD 45 1A    o..o..0.:8....E.
002AC0:  F1 C9 3A CF 31 CB 47 28 05 6E 26 00 18 1A CD 02    ..:.1.G(.n&.....
002AD0:  33 3E 48 C3 45 1A 3A CF 31 CB 47 20 07 23 CD 02    3>H.E.:.1.G .#..
002AE0:  33 2B 18 EA 7E 23 66 6F DD E5 C5 D5 11 00 00 7B    3+..~#fo.......{
002AF0:  01 00 10 DD 21 A9 33 29 30 12 7B DD 86 00 27 5F    ....!.3)0.{...'_
002B00:  7A DD 8E 01 27 57 79 DD 8E 02 27 4F DD 23 DD 23    z...'Wy...'O.#.#
002B10:  DD 23 10 E3 ED 53 A6 33 32 A8 33 21 A8 33 06 03    .#...S.32.3!.3..
002B20:  3E 00 D1 C5 ED 6F C4 9A 33 ED 6F C4 9A 33 2B C1    >....o..3.o..3+.
002B30:  10 F1 CB 7F 20 05 3E 30 CD 45 1A C1 DD E1 C9 CB    .... .>0.E......
002B40:  FF F5 E6 0F C6 30 CD 45 1A F1 C9 00 00 00 68 27    .....0.E......h'
002B50:  03 84 63 01 92 81 00 96 40 00 48 20 00 24 10 00    ..c.....@.H .$..
002B60:  12 05 00 56 02 00 28 01 00 64 00 00 32 00 00 16    ...V..(..d..2...
002B70:  00 00 08 00 00 04 00 00 02 00 00 01 00 00 45 52    ..............ER
002B80:  52 4F 52 A0 CD 64 39 21 1F 3B 36 00 21 F3 3B 22    ROR..d9!.;6.!.;"
002B90:  1B 3B 21 73 3C 22 1D 3B 06 10 DD 21 20 3B C5 CD    .;!s<".;...! ;..
002BA0:  21 34 C1 10 F9 63 44 CD E6 12 DD 21 20 3B 06 10    !4...cD....! ;..
002BB0:  C5 CD 57 35 C1 10 F9 DD 36 00 00 2A CD 31 DD 75    ..W5....6..*.1.u
002BC0:  08 DD 74 09 CD A0 41 C9 DD 36 00 00 ED 5B EE 3B    ..t...A..6...[.;
002BD0:  1A FE 20 28 0E CD 3B 39 1A FE 20 21 9D 3A CA 03    .. (..;9.. !.:..
002BE0:  37 18 06 21 07 00 19 EB 1A 2A CD 31 DD 75 08 DD    7..!.....*.1.u..
002BF0:  74 09 FE 20 CA 5D 35 D5 21 CD 31 ED 5B D0 31 CD    t.. .]5.!.1.[.1.
002C00:  31 33 D1 21 F0 45 22 2E 39 06 3C CD FB 38 38 0A    13.!.E".9.<..88.
002C10:  FE 20 28 1B 21 EB 39 C3 03 37 21 68 46 22 2E 39    . (.!.9..7!hF".9
002C20:  06 0A CD FB 38 21 F9 39 DA 03 37 DD CB 00 D6 DD    ....8!.9..7.....
002C30:  71 03 13 1A FE 20 28 28 CD 0B 36 32 F1 3B 3A F0    q.... ((..62.;:.
002C40:  3B DD 77 04 1A FE 20 28 1F FE 2C 21 08 3A C2 03    ;.w... (..,!.:..
002C50:  37 13 CD 0B 36 32 F2 3B 3A F0 3B DD 77 05 18 10    7...62.;:.;.w...
002C60:  3E 7F DD 77 04 32 F1 3B 3E 7F 32 F2 3B DD 77 05    >..w.2.;>.2.;.w.
002C70:  DD 4E 03 21 F0 45 DD CB 00 56 28 03 21 68 46 22    .N.!.E...V(.!hF"
002C80:  2E 39 CD 2D 39 01 05 00 09 3A F1 3B BE 28 34 23    .9.-9....:.;.(4#
002C90:  23 23 23 7E FE 80 C2 E2 34 21 F1 3B CD 04 35 21    ###~....4!.;..5!
002CA0:  F2 3B CD 04 35 21 1B 9C 63 3A C3 03 37 7E FE 02    .;..5!..c:..7~..
002CB0:  0E 18 28 05 FE 4A C0 0E 1A 71 DD CB 00 E6 DD 36    ..(..J...q.....6
002CC0:  07 00 E1 18 AD 23 3A F2 3B BE 20 C6 23 7E DD 77    .....#:.;. .#~.w
002CD0:  0A 0E 00 FE CB 28 01 0C 23 7E DD 77 0B FE 30 28    .....(..#~.w..0(
002CE0:  01 0C 79 DD 4E 00 06 05 CB 09 CE 00 10 FA 5F 16    ..y.N........._.
002CF0:  00 2A CD 31 19 ED 5B D0 31 DD CB 00 FE C3 D3 35    .*.1..[.1......5
002D00:  DD CB 00 7E 20 06 ED 5B D0 31 18 73 CD 7F 39 ED    ...~ ..[.1.s..9.
002D10:  5B D0 31 2A CD 31 1E 08 DD CB 00 46 28 07 3E DD    [.1*.1.....F(.>.
002D20:  CD 5E 39 18 0B DD CB 00 4E 28 05 3E FD CD 5E 39    .^9.....N(.>..^9
002D30:  DD CB 00 56 28 1A 3E CB CD 5E 39 DD 7E 00 E6 03    ...V(.>..^9.~...
002D40:  28 0E DD 7E 06 CD 5E 39 DD 7E 0A CD 5E 39 18 2C    (..~..^9.~..^9.,
002D50:  DD 7E 0A FE CB 28 3F CD 5E 39 DD 7E 0B FE 30 28    .~...(?.^9.~..0(
002D60:  03 CD 5E 39 DD CB 00 5E 28 06 DD 7E 06 CD 5E 39    ..^9...^(..~..^9
002D70:  DD CB 00 66 28 06 DD 7E 07 CD 5E 39 22 CD 31 14    ...f(..~..^9".1.
002D80:  1E 01 ED 53 D0 31 11 0C 00 DD 19 2A EE 3B 11 17    ...S.1.....*.;..
002D90:  00 19 22 EE 3B C9 DD 7E 06 77 DD CB 00 66 28 0E    ..".;..~.w...f(.
002DA0:  DD 7E 07 23 E5 77 2B CD 31 48 C8 33 E1 23 18 CE    .~.#.w+.1H.3.#..
002DB0:  E5 CD 1D 33 18 F6 21 0B 45 22 2E 39 01 4E 03 DD    ...3..!.E".9.N..
002DC0:  7E 03 FE 54 28 13 01 5E 08 FE 56 28 0C DD CB 00    ~..T(..^..V(....
002DD0:  56 01 00 2F 20 03 01 00 27 CD FD 38 30 45 DD CB    V../ ...'..80E..
002DE0:  00 46 20 1E DD CB 00 4E 20 18 CD 1C 37 3A 19 3B    .F ....N ...7:.;
002DF0:  DD 77 06 CB 68 28 06 3A 1A 3B DD 77 07 79 32 F0    .w..h(.:.;.w.y2.
002E00:  3B C9 3A F1 3B FE 06 20 E1 CD 1C 37 CB 68 21 7C    ;.:.;.. ...7.h!|
002E10:  3A C2 03 37 3A 19 3B DD 77 07 DD CB 00 E6 79 32    :..7:.;.w.....y2
002E20:  F0 3B C9 FE 20 28 13 FE 2C 28 0F 79 FE 28 28 42    .;.. (..,(.y.((B
002E30:  FE 2A 28 38 EB CD 0A 39 18 A2 79 FE 38 28 26 FE    .*(8...9..y.8(&.
002E40:  3A 28 1B FE 24 28 0D FE 26 C0 CD EC 36 3E 04 DD    :(..$(..&...6>..
002E50:  CB 00 CE C9 CD EC 36 3E 04 DD CB 00 C6 C9 CD E1    ......6>........
002E60:  36 3E 06 18 EA CD E1 36 3E 06 18 ED DD CB 00 CE    6>.....6>.......
002E70:  18 04 DD CB 00 C6 01 07 00 CD 20 37 CB 68 21 2D    .......... 7.h!-
002E80:  3A 20 2B 3A 19 3B DD 77 06 3E 06 C9 DD 7E 03 FE    : +:.;.w.>...~..
002E90:  1C C8 21 AE 3A 18 17 DD 7E 03 FE 10 21 3C 3A 28    ..!.:...~...!<:(
002EA0:  0D FE 0C 21 3C 3A 28 06 DD 7E 04 60 53 FE 08 C0    ...!<:(..~.`S...
002EB0:  ED 7B 0E 3B ED 5B D0 31 1E 00 CD F1 32 11 00 12    .{.;.[.1....2...
002EC0:  21 BD 3A CD F1 32 C3 4B 12 06 00 0E 03 D5 1A FE    !.:..2.K........
002ED0:  28 28 1D FE 29 28 21 FE 20 28 45 FE 2C 28 41 CB    ((..)(!. (E.,(A.
002EE0:  61 C2 C2 37 FE 30 38 26 FE 3A 30 22 04 13 18 DE    a..7.08&.:0"....
002EF0:  CB 51 20 7B CB D1 18 F5 CB 51 28 73 CB D9 13 1A    .Q {.....Q(s....
002F00:  FE 20 28 1C FE 2C 28 18 21 08 3A C3 03 37 CB 81    . (..,(.!.:..7..
002F10:  FE 41 38 04 FE 47 38 D4 FE 48 20 53 CB E1 18 CD    .A8..G8..H S....
002F20:  78 FE 00 21 4E 3A CA 03 37 79 07 A9 E6 08 20 3F    x..!N:..7y.... ?
002F30:  E1 D5 1B 78 21 7C 3A CB 61 20 04 CB 41 20 0A FE    ...x!|:.a ..A ..
002F40:  05 D2 03 37 CD AC 38 18 08 FE 06 D2 03 37 CD 65    ...7..8......7.e
002F50:  38 41 D1 DD CB 00 DE CB 68 28 0C DD CB 00 E6 0E    8A......h(......
002F60:  1A CB 50 C0 0E 18 C9 0E 4A CB 50 C0 0E 02 C9 D1    ..P.....J.P.....
002F70:  DD 7E 03 FE 16 28 04 FE 18 20 0B CD 1F 38 3E 72    .~...(... ...8>r
002F80:  0E 1E CB C6 18 31 1A DD CB 00 E6 FE 28 28 10 CD    .....1......((..
002F90:  1F 38 1A FE 29 28 2F 3E 74 0E 18 CB 86 18 18 13    .8..)(/>t.......
002FA0:  3A CF 31 CB DF 32 CF 31 CD 1F 38 1A FE 36 07 29    :.1..2.1..8..6.)
002FB0:  20 16 13 3E 76 0E 1A CB 86 32 F0 3B DD CB 00 DE     ..>v....2.;....
002FC0:  79 23 23 22 1D 3B E1 C9 21 5D 3A C3 03 37 2A 1D    y##".;..!]:..7*.
002FD0:  3B DD 75 01 DD 74 02 06 07 DD CB 00 EE 1A FE 20    ;.u..t......... 
002FE0:  28 13 FE 2C 28 16 FE 29 28 12 77 13 23 10 EE 21    (..,(..)(.w.#..!
002FF0:  6D 3A C3 03 37 3A CF 31 CB 5F 20 09 05 C8 3E 20    m:..7:.1._ ...> 
003000:  77 23 10 FC C9 CB 9F 32 CF 31 05 C8 3E 20 77 23    w#.....2.1..> w#
003010:  13 10 FB C9 C5 DD E5 CB 59 28 01 1B CD F2 38 6F    ........Y(....8o
003020:  26 00 DD 21 0F 3B 18 15 CD F2 38 FE 00 28 0E C5    &..!.;....8..(..
003030:  DD 4E 00 DD 46 01 09 38 18 3D 20 FA C1 DD 23 DD    .N..F..8.= ...#.
003040:  23 1B 10 E4 DD E1 C1 22 19 3B 3E 00 BC C8 CB E9    #......".;>.....
003050:  C9 E1 E1 E1 E1 21 7C 3A C3 03 37 21 19 3B 36 00    .....!|:..7!.;6.
003060:  CB 59 28 01 1B CB 61 28 01 1B CD F2 38 ED 67 05    .Y(...a(....8.g.
003070:  28 21 1B CD F2 38 ED 67 05 28 1C 1B 23 36 00 CD    (!...8.g.(..#6..
003080:  F2 38 ED 67 05 28 13 1B CD F2 38 ED 67 05 28 0E    .8.g.(....8.g.(.
003090:  CB F9 C9 3E 00 ED 67 CB A9 C9 3E 00 ED 67 CB E9    ...>..g...>..g..
0030A0:  C9 1A D6 30 FE 0A D8 D6 07 C9 0E 00 CD 2D 39 A2    ...0.........-9.
0030B0:  A3 D5 CB 7E 20 17 1A BE 28 07 D1 0C 0C 10 EF 37    £..~ ...(......7
0030C0:  C9 23 13 CB 7E 20 06 1A BE 28 F6 18 ED CB BE 1A    .#..~ ...(......
0030D0:  BE CB FE 20 E5 13 79 32 F0 3B 1A E1 A7 C9 21 F0    ... ..y2.;....!.
0030E0:  45 7D 81 6F 30 01 24 7E 23 66 6F C9 2A 1B 3B EB    E}.o0.$~#fo.*.;.
0030F0:  01 06 00 ED B0 ED 4B CD 31 EB 2B CB FE 23 71 23    ......K.1.+..#q#
003100:  70 23 22 1B 3B 13 21 1F 3B 34 DD CB 00 F6 C9 77    p#".;.!.;4.....w
003110:  CD 02 33 23 C9 21 20 3B 11 21 3B 36 00 01 BF 00    ..3#.! ;.!;6....
003120:  ED B0 21 F3 3B 11 F4 3B 01 7F 00 36 00 ED B0 C9    ..!.;..;...6....
003130:  DD CB 00 6E C8 3A 1F 3B FE 00 21 8D 3A CA 03 37    ...n.:.;..!.:..7
003140:  DD 6E 01 DD 66 02 11 F3 3B 47 0E 06 C5 1A E6 7F    .n..f...;G......
003150:  BE 28 0F 01 08 00 EB 09 EB C1 10 F0 21 8D 3A C3    .(..........!.:.
003160:  03 37 D5 E5 13 23 0D 28 0A 1A E6 7F BE 28 F5 E1    .7...#.(.....(..
003170:  D1 18 E0 EB 1A 5E 23 56 CB 47 E1 E1 DD 75 01 DD    .....^#V.G...u..
003180:  74 02 E1 20 07 DD 73 06 DD 72 07 C9 DD 6E 08 DD    t.. ..s..r...n..
003190:  66 09 23 23 EB A7 ED 52 DD 75 06 C9 53 70 61 63    f.##...R.u..Spac
0031A0:  65 20 6D 69 73 73 69 6E 67 A0 49 6E 73 74 72 2E    e missing.Instr.
0031B0:  20 2C 31 75 6E 6B 6E 6F 77 6E A0 4D 69 73 73 69     ,1unknown.Missi
0031C0:  6E 67 20 73 70 61 63 65 20 6F 72 20 2C A0 45 72    ng space or ,.Er
0031D0:  72 6F 72 20 61 66 74 65 72 20 69 6E 73 74 2E A0    ror after inst..
0031E0:  4F 66 66 73 65 74 20 74 6F 6F 20 62 69 67 A0 43    Offset too big.C
0031F0:  61 6E 20 6F 6E 6C 79 20 41 44 44 20 49 58 2F 49    an only ADD IX/I
003200:  D9 4E 75 6D 62 65 72 20 6D 69 73 73 69 6E 67 A0    .Number missing.
003210:  42 72 61 63 6B 65 74 20 6D 69 73 73 69 6E 67 A0    Bracket missing.
003220:  4C 61 62 65 6C 20 74 6F 6F 20 6C 6F 6E 67 A0 4E    Label too long.N
003230:  75 6D 62 65 72 20 74 6F 6F 20 6C 61 72 67 65 A0    umber too large.
003240:  4C 61 62 65 6C 20 6E 6F 74 20 66 6F 75 6E 64 A0    Label not found.
003250:  4E 6F 20 44 45 46 42 2C 20 6F 72 20 44 45 46 57    No DEFB, or DEFW
003260:  A0 4F 66 66 73 65 74 20 6D 69 73 73 69 6E 67 A0    .Offset missing.
003270:  20 45 72 72 6F 72 20 20 66 6F 75 6E 64 20 20 64     Error  found  d
003280:  75 72 69 6E 67 20 20 61 73 73 65 6D 62 6C 79 2E    uring  assembly.
003290:  20 20 50 6C 65 61 73 65 63 6F 72 72 65 63 74 20      Pleasecorrect 
0032A0:  62 65 66 6F 72 65 20 72 75 6E 6E 69 6E 67 20 70    before running p
0032B0:  72 6F 67 7F D5 72 61 6D 2E 20 20 20 20 20 20 20    rog..ram.       
0032C0:  20 A0 A0 00 01 00 0A 00 64 00 E8 03 10 27 00 00     .......d....'..
0032D0:  F3 3B 73 3C 00 00 00 00 00 00 00 00 00 00 0F 00    .;s<............
0032E0:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
0032F0:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
003300:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
003310:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
003320:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
003330:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
003340:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
003350:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
003360:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
003370:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
003380:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
003390:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
0033A0:  00 20 3B 45 17 00 00 00 00 00 00 00 00 00 00 00    . ;E............
0033B0:  00 00 00 00 00 61 51 00 00 00 00 00 00 00 00 00    .....aQ.........
0033C0:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
0033D0:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
0033E0:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
0033F0:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
003400:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
003410:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
003420:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
003430:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
003440:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
003450:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
003460:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
003470:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
003480:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
003490:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
0034A0:  00 00 00 00 00 00 00 00 00 00 3E F0 32 91 1A 11    ..........>.2...
0034B0:  05 15 CD 29 3E 11 05 E1 63 17 CD 29 3E 21 BB 42    ...)>...c..)>!.B
0034C0:  36 00 11 05 16 21 43 42 0E 14 DD 21 20 3B 06 0F    6....!CB...! ;..
0034D0:  C5 7E E6 7F DD BE 04 28 42 DD BE 05 28 3D 01 0C    .~.....(B...(=..
0034E0:  00 DD 09 C1 10 EA 23 23 36 00 23 36 00 23 36 00    ......##6.#6.#6.
0034F0:  23 36 00 23 0D 20 D3 3E 19 BA 20 0E 3E 0F 32 91    #6.#. .>.. .>.2.
003500:  1A 21 35 44 11 00 12 CD F1 32 21 FE 0F 22 9B 42    .!5D.....2!..".B
003510:  21 BC 42 06 06 36 00 23 10 FB C9 4E 23 46 78 E6    !.B..6.#...N#Fx.
003520:  0F 83 FE 23 38 10 3E 16 BA 20 05 11 06 18 18 EE    ...#8.>.. ......
003530:  11 30 19 C1 18 B1 F5 78 07 07 47 E6 03 83 23 77    .0.....x..G...#w
003540:  23 72 23 36 00 23 36 00 E5 15 78 07 07 E6 03 83    #r#6.#6...x.....
003550:  5F CB B9 21 0B 45 06 00 09 4E 23 66 69 CD F1 32    _..!.E...N#fi..2
003560:  E1 F1 5F 14 C1 18 8C 3E 0F 32 91 1A 11 05 16 CD    .._....>.2......
003570:  29 3E 11 05 18 CD 29 3E DD 21 43 42 06 14 C5 3E    )>....)>.!CB...>
003580:  00 DD BE 03 28 1B DD 5E 02 DD 56 03 DD E5 E1 01    ....(..^..V.....
003590:  04 00 09 DD CB 00 7E 28 05 CD 31 33 18 03 CD 1D    ......~(..13....
0035A0:  33 01 06 00 DD 09 C1 10 D5 DD 21 BB 42 11 03 15    3.........!.B...
0035B0:  DD CB 00 46 CD 20 3E 11 03 25 94 16 DD CB 00 76    ...F. >..%.....v
0035C0:  CD 20 3E 11 03 17 DD CB 00 56 CD 20 3E 11 03 18    . >......V. >...
0035D0:  DD CB 00 7E CD 20 3E CD FE 41 C9 3E 30 28 01 3C    ...~. >..A.>0(.<
0035E0:  CD 45 1A C9 06 1E 3E 20 C5 CD 45 1A C1 10 F7 C9    .E....> ..E.....
0035F0:  DD 2A EC 3B DD 4E 03 21 85 44 DD CB 00 56 28 03    .*.;.N.!.D...V(.
003600:  21 F7 44 06 00 09 4E 23 66 69 E9 DD 7E 04 FE 1A    !.D...N#fi..~...
003610:  CA 21 3F DD 4E 06 DD 21 43 42 FE 06 CA 2D 3F FE    .!?.N..!CB...-?.
003620:  2C CA 3D 3F FE 2E CA 49 3F FE 28 CA 59 3F FE 2A    ,.=?...I?.(.Y?.*
003630:  CA 65 3F C3 6B 40 DD 7E 05 18 D8 CD 51 41 D2 1D    .e?.k@.~....QA..
003640:  41 2A 7D 42 FE 06 28 14 2A 8F 42 FE 38 28 0D 2A    A*}B..(.*.B.8(.*
003650:  95 42 FE 3A 28 06 DD 6E 06 DD 66 07 22 CD 31 C3    .B.:(..n..f.".1.
003660:  2A 41 CD 51 41 D2 1D 41 DD 5E 06 1C 1C 2A CD 31    *A.QA..A.^...*.1
003670:  16 00 CB 7B 28 01 15 19 22 CD 31 C3 2A 41 3A 4D    ...{(...".1.*A:M
003680:  42 3D 32 4D 42 32 84 42 CA 1D 41 18 DB CD 51 41    B=2MB2.B..A...QA
003690:  D2 1D 41 2A 9B 42 2B DD 7E 15 77 2B DD 7E 14 77    ..A*.B+.~.w+.~.w
0036A0:  22 9B 42 DD 6E 06 DD 66 07 22 CD 31 C3 2A 41 CD    ".B.n..f.".1.*A.
0036B0:  51 41 D2 1D 41 2A 9B 42 01 FE 0F 05 5A A7 ED 42    QA..A*.B....Z..B
0036C0:  28 11 2A 9B 42 4E 23 46 23 22 9B 42 ED 43 CD 31    (.*.BN#F#".B.C.1
0036D0:  C3 2A 41 21 95 43 11 00 12 CD F1 32 37 C9 DD 6E    .*A!.C.....27..n
0036E0:  06 DD 66 07 CD DF 3F C3 6B 40 DD 21 43 42 DD 6E    ..f...?.k@.!CB.n
0036F0:  3A DD 66 3B CD DF 3F C3 6B 40 DD 6E 40 DD 66 41    :.f;..?.k@.n@.fA
003700:  CD DF 3F C3 6B 40 DD 21 43 42 DD 6E 46 DD 66 47    ..?.k@.!CB.nF.fG
003710:  CD DF 3F C3 6B 40 2A 8F 42 06 00 09 CD DF 3F C3    ..?.k@*.B.....?.
003720:  6B 40 2A 95 42 06 00 09 CD DF 3F C3 6B 40 DD 21    k@*.B.....?.k@.!
003730:  43 42 DD 6E 46 DD 66 47 CD DF 3F DD 4E 40 DD 46    CB.nF.fG..?.N@.F
003740:  41 0B 09 CD DF 3F C3 6B 40 DD 21 43 42 DD 6E 46    A....?.k@.!CB.nF
003750:  DD 66 47 CD DF 3F DD 46 41 DD 4E 40 0B A7 ED 42    .fG..?.FA.N@...B
003760:  CD DF 3F C3 6B 40 DD 21 43 42 DD 6E 3A DD 66 3B    ..?.k@.!CB.n:.f;
003770:  CD DF 3F DD 4E 0A 0D 06 00 09 CD DF 3F C3 6B 40    ..?.N.......?.k@
003780:  DD 21 43 42 DD 6E 3A DD 66 3B CD DF 3F 06 00 DD    .!CB.n:.f;..?...
003790:  4E 0A 0D A7 ED 42 CD DF 3F C3 6B 40 DD 21 20 3B    N....B..?.k@.! ;
0037A0:  DD 7E 09 BC 20 2C 3E BF BD 38 27 06 0F 11 0C 00    .~.. ,>..8'.....
0037B0:  2C DD 7E 14 BD 30 09 DD 19 10 F6 DD 21 F5 7E 43    ,.~..0......!.~C
0037C0:  42 C9 DD CB 00 7E 28 F1 DD 7E 03 FE 72 30 EE 21    B....~(..~..r0.!
0037D0:  45 43 18 03 21 F5 42 11 00 12 CD F1 32 E1 37 C9    EC..!.B.....2.7.
0037E0:  DD 7E 05 FE 32 20 43 DD 21 43 42 DD 66 04 DD 6E    .~..2 C.!CB.f..n
0037F0:  77 DD 75 04 DD 74 77 DD 66 78 DD 6E 76 DD 75 78    w.u..tw.fx.nv.ux
003800:  DD 74 76 18 19 DD 21 43 42 06 06 21 BC 42 11 06    .tv...!CB..!.B..
003810:  00 DD 4E 0A 7E 71 DD 77 0A DD 19 23 10 F3 21 C1    ..N.~q.w...#..!.
003820:  40 06 05 36 00 23 10 FB 18 22 DD 2A EC 3B DD 6E    @..6.#...".*.;.n
003830:  08 DD 66 09 DD 7E 14 95 4F 06 00 11 C1 40 ED B0    ..f..~..O....@..
003840:  EB FE 05 28 07 0E 00 71 23 3C 18 F5 DD 21 43 42    ...(...q#<...!CB
003850:  DD 46 0A DD 4E 10 DD 56 16 DD 5E 1C 21 BB 42 6E    .F..N..V..^.!.Bn
003860:  E5 F1 DD 66 22 DD 6E 28 DD 7E 04 DD 2A 8F 42 F3    ...f".n(.~..*.B.
003870:  FD 22 EE 42 FD 2A 95 42 ED 73 EC 42 ED 7B 9B 42    .".B.*.B.s.B.{.B
003880:  00 00 00 00 00 ED 73 9B 42 ED 7B EC 42 FD 22 95    ......s.B.{.B.".
003890:  42 FD 2A EE 42 FB DD 22 8F 42 DD 21 43 42 DD 77    B.*.B..".B.!CB.w
0038A0:  04 DD 77 71 DD 70 0A DD 70 41 DD 71 10 DD 71 40    ..wq.p..pA.q..q@
0038B0:  0A DD 77 64 DD 72 16 DD 72 47 DD 73 1C DD 73 BB    ..wd.r..rG.s..s.
0038C0:  A2 46 1A DD 77 6A DD 74 22 DD 74 3B DD 75 28 DD    .F..wj.t".t;.u(.
0038D0:  75 3A 7E DD 77 5E F5 C1 DD 71 70 DD 71 78 DD 2A    u:~.w^...qp.qx.*
0038E0:  EC 3B DD 6E 14 DD 66 15 22 CD 31 2A 9B 42 3E C1    .;.n..f.".1*.B>.
0038F0:  BD 38 13 CD AE 3D 3E 0F 32 91 1A 21 E5 43 11 00    .8...=>.2..!.C..
003900:  12 CD F1 32 37 C9 3E 0F BC 20 E8 CD AE 3D CD A0    ...27.>.. ...=..
003910:  41 C9 3A BB 42 47 DD 7E 04 FE 0C 28 1E FE 22 28    A.:.BG.~...(.."(
003920:  20 FE 1C 28 24 FE 20 28 24 FE 36 28 24 FE 3E 28     ..($. ($.6($.>(
003930:  24 FE 40 28 24 FE 42 28 24 37 C9 CB 40 20 08 A7    $.@($.B($7..@ ..
003940:  C9 CB 40 28 02 A7 C9 37 C9 CB 70 18 F0 CB 70 18    ..@(...7..p...p.
003950:  F2 CB 78 18 EE CB 78 18 E4 CB 50 18 E6 CB 50 18    ..x...x...P...P.
003960:  DC 3E 0F 32 91 1A DD 21 20 3B 11 08 02 06 10 C5    .>.2...! ;......
003970:  DD 7E 03 FE 74 20 08 CD D9 41 CD 31 33 18 0A FE    .~..t ...A.13...
003980:  72 20 06 CD D9 41 CD 1D 33 FE 76 CC E8 41 1E 08    r ...A..3.v..A..
003990:  14 01 0C 00 DD 09 C1 10 D6 C9 21 F0 42 CD F1 32    ..........!.B..2
0039A0:  1E 08 DD 6E 08 DD 66 09 C9 06 08 DD 6E 08 DD 66    ...n..f.....n..f
0039B0:  09 3E 30 CB 06 CE 00 C5 CD 45 1A C1 10 F3 C9 2A    .>0......E.....*
0039C0:  9B D1 A9 42 11 F8 0F A7 ED 52 4D 21 F8 0F 30 05    ...B.....RM!..0.
0039D0:  2A 9B 42 0E 00 06 04 11 23 18 C5 79 FE 00 3E 0F    *.B.....#..y..>.
0039E0:  20 02 3E FF 32 91 1A E5 21 F0 42 D5 CD F1 32 D1     .>.2...!.B...2.
0039F0:  E1 E5 D5 CD 31 33 D1 15 E1 23 23 C1 0D 0D 10 DA    ....13...##.....
003A00:  3E F0 32 91 1A C9 00 14 00 00 00 00 0A 14 00 00    >.2.............
003A10:  00 00 0C 14 00 00 00 00 0E 14 00 00 00 00 10 14    ................
003A20:  00 00 00 00 12 14 00 00 00 00 14 14 00 00 00 00    ................
003A30:  44 14 00 00 00 00 46 14 00 00 00 00 84 16 00 00    D.....F.........
003A40:  00 00 96 16 00 00 00 00 88 16 00 00 00 00 A4 16    ................
003A50:  00 00 00 00 A6 16 00 00 00 00 B4 16 00 00 80 7D    ...............}
003A60:  06 45 00 00 00 00 2C 45 00 00 00 00 2E 45 00 00    .E....,E.....E..
003A70:  00 00 B0 16 00 00 00 00 B2 16 00 00 00 00 00 00    ................
003A80:  00 00 00 00 00 46 4C 41 47 53 20 20 20 20 20 52    .....FLAGS     R
003A90:  65 67 69 73 74 65 72 73 20 61 6E 64 20 43 6F 6E    egisters and Con
003AA0:  74 65 6E 74 73 20 20 20 20 20 53 54 41 43 CB 00    tents     STAC..
003AB0:  00 00 00 20 20 20 20 A0 20 59 6F 75 20 61 72 65    ...    . You are
003AC0:  20 61 62 AC 5F 6F 75 74 20 74 6F 20 61 66 66 65     ab._out to affe
003AD0:  63 74 20 6D 65 6D 6F 72 79 20 61 72 65 61 20 6E    ct memory area n
003AE0:  6F 74 61 6C 6C 6F 63 61 74 65 64 20 74 6F 20 79    otallocated to y
003AF0:  6F 75 2E 20 50 6C 65 61 73 65 20 65 64 69 74 20    ou. Please edit 
003B00:  70 72 6F 67 72 61 6D 2E 20 A0 20 59 6F 75 20 61    program. . You a
003B10:  72 65 20 61 62 6F 75 74 20 74 6F 20 77 72 69 74    re about to writ
003B20:  65 20 74 6F 20 6D 65 6D 6F 72 79 20 77 68 69 63    e to memory whic
003B30:  68 20 77 69 6C 6C 20 61 66 66 65 63 74 20 79 6F    h will affect yo
003B40:  75 72 20 70 72 6F 67 72 61 6D 2E 20 50 6C 65 61    ur program. Plea
003B50:  73 65 20 65 64 69 74 2E 20 A0 20 54 68 65 20 70    se edit. . The p
003B60:  72 6F 67 72 61 6D 20 68 61 73 20 62 65 65 6E 20    rogram has been 
003B70:  63 6F 6D 70 6C 65 74 65 64 2E 20 59 6F 75 20 6D    completed. You m
003B80:  61 79 45 44 49 54 20 6F 72 20 72 65 52 55 4E 2E    ayEDIT or reRUN.
003B90:  20 45 78 69 74 20 62 79 20 70 72 65 73 73 69 6E     Exit by pressin
003BA0:  67 20 45 53 43 2E 20 20 20 A0 20 54 68 65 20 73    g ESC.   . The s
003BB0:  74 61 63 6B 20 70 6F 69 6E 74 65 72 20 69 73 20    tack pointer is 
003BC0:  6F 75 74 73 69 99 40 64 65 20 61 6C 6C 6F 63 61    outsi.@de alloca
003BD0:  74 65 64 20 6D 65 6D 6F 72 79 20 61 72 65 61 2E    ted memory area.
003BE0:  20 50 6C 65 61 73 65 20 65 64 69 74 20 70 72 6F     Please edit pro
003BF0:  67 72 61 6D 2E 20 20 20 20 20 20 A0 20 54 68 65    gram.      . The
003C00:  72 65 20 61 72 65 20 74 6F 6F 20 6D 61 6E 79 20    re are too many 
003C10:  72 65 67 69 73 74 65 72 73 20 63 61 6C 6C 65 64    registers called
003C20:  20 75 70 2C 74 6F 20 64 69 73 70 6C 61 79 2E 20     up,to display. 
003C30:  50 72 6F 67 72 61 6D 20 77 69 6C 6C 20 52 55 4E    Program will RUN
003C40:  20 61 73 20 6E 6F 72 6D 61 6C 2E A0 71 3F 49 3F     as normal..q?I?
003C50:  8C 3F 49 3F 50 3E 6B 40 6B 40 6B 40 6B 40 50 3E    .?I?P>k@k@k@k@P>
003C60:  50 3E A7 3E C3 3E D2 3E 80 3E 1D 41 1D 41 F4 3E    P>.>.>.>.>.A.A.>
003C70:  6B 40 6B 40 6B 40 6B 40 6B 40 6B 40 6B 40 6B 40    k@k@k@k@k@k@k@k@
003C80:  6B 40 6B 40 6B 40 46 40 21 40 6B 40 6B 40 6B 40    k@k@k@F@!@k@k@k@
003C90:  6B 40 6B 40 6B 40 6B 40 6B 40 6B 40 50 3E 50 3E    k@k@k@k@k@k@P>P>
003CA0:  1D 41 1D 41 1D 41 1D 41 1D 41 1D 41 1D 41 1D 41    .A.A.A.A.A.A.A.A
003CB0:  1D 41 1D 41 1D 41 1D 41 1D 41 6B 40 1D 41 50 3E    .A.A.A.A.Ak@.AP>
003CC0:  50 3E 50 3E 50 3E 50 F3 D5 3E 50 3E 50 3E 6B 40    P>P>P>P..>P>P>k@
003CD0:  7B 3E 7B 3E 79 45 85 45 90 45 AF 45 92 45 7A 45    {>{>yE.E.E.E.EzE
003CE0:  7B 45 7C 45 7D 45 7F 45 83 45 94 45 96 45 B3 45    {E|E}E.E.E.E.E.E
003CF0:  81 45 BA 45 98 45 9A 45 9C 45 9E 45 BD 45 C1 45    .E.E.E.E.E.E.E.E
003D00:  C5 45 C9 45 A0 45 CD 45 A6 45 82 45 D0 45 D4 45    .E.E.E.E.E.E.E.E
003D10:  A2 45 84 45 A8 45 AA 45 86 45 87 45 AC 45 B7 45    .E.E.E.E.E.E.E.E
003D20:  7E 45 88 45 89 45 8A 45 8B 45 8C 45 8D 45 8E 45    ~E.E.E.E.E.E.E.E
003D30:  8F 45 D8 45 DB 45 DE 45 E1 45 E4 45 E7 45 EA 45    .E.E.E.E.E.E.E.E
003D40:  ED 45 C1 C2 C3 C4 C5 C6 C8 CC DA D0 CC CD CE C9    .E..............
003D50:  D2 B0 B1 B2 B3 B4 B5 B6 B7 48 CC 44 C5 42 C3 4E    .........H.D.B.N
003D60:  CE 4E DA 4E C3 49 D8 49 D9 41 C6 28 53 50 A9 53    .N.N.I.I.A.(SP.S
003D70:  D0 50 CF 50 C5 28 43 A9 28 48 4C A9 28 4E 4E A9    .P.P.(C.(HL.(NN.
003D80:  28 4E A9 44 49 D3 28 49 58 AB 28 49 59 AB 28 42    (N.DI.(IX.(IY.(B
003D90:  43 A9 28 44 45 A9 41 46 A7 28 49 58 A9 28 49 59    C.(DE.AF.(IX.(IY
003DA0:  A9 30 30 C8 30 38 C8 31 30 C8 31 38 C8 32 30 C8    .00.08.10.18.20.
003DB0:  32 38 C8 33 30 C8 33 38 C8 B2 4F A8 4F C6 4F BC    28.30.38..O.O.O.
003DC0:  4F 7C 46 02 48 3C 48 76 48 39 E0 A0 48 10 49 DA    O|F.H<HvH9..H.I.
003DD0:  48 46 49 8E 49 98 49 60 49 B6 50 AC 50 C2 49 EC    HFI.I.I`I.P.P.I.
003DE0:  49 02 4A DA 4F D0 4F EE 4F E4 4F 02 50 18 4A 42    I.J.O.O.O.O.P.JB
003DF0:  4A 6C 4A 96 4A 9E 4F C0 4A 0C 50 16 50 20 50 76    JlJ.J.O.J.P.P Pv
003E00:  4F 80 4F 8A 4F 94 4F F8 4F 2A 50 34 50 3E 50 3E    O.O.O.O.O*P4P>P>
003E10:  4F 50 4F 52 50 48 50 66 50 5C 50 EE 4E 70 50 7A    OPORPHPfP\P.NpPz
003E20:  50 84 50 8E 50 18 4F 98 50 A2 50 C0 50 CA 50 DE    P.P.P.O.P.P.P.P.
003E30:  50 D4 50 D2 4A F8 4A 1E 4B 44 4B 6A 4B 90 4B B6    P.P.J.J.KDKjK.K.
003E40:  4B DC 4B E2 4C E8 4D 4C C4 00 00 00 00 02 3E 30    K.K.L.ML......>0
003E50:  00 1A 3A 30 1A 00 32 30 00 06 7E 30 06 00 77 30    ..:0..20..~0..w0
003E60:  06 02 36 30 0A 02 06 30 0C 02 0E 30 0E 02 16 30    ..60...0...0...0
003E70:  10 02 1E 30 12 02 26 30 14 02 2E 30 04 18 21 30    ...0..&0...0..!0
003E80:  08 18 11 30 16 18 01 30 04 1A 2A 30 08 1A ED 5B    ...0...0..*0...[
003E90:  16 1A ED 4B 1A 04 22 30 1A 08 ED 53 1A 16 ED 43    ...K.."0...S...C
003EA0:  0A 06 46 30 06 0A 70 30 0C 06 4E 30 06 0C 71 30    ..F0..p0..N0..q0
003EB0:  0E 06 56 30 06 0E 72 30 10 06 5E 30 06 10 73 30    ..V0..r0..^0..s0
003EC0:  00 0A 78 30 00 0C 79 30 00 0E 7A EA F6 30 00 10    ..x0..y0..z..0..
003ED0:  7B 30 00 12 7C 30 00 14 7D 30 0A 00 47 30 0C 00    {0..|0..}0..G0..
003EE0:  4F 30 0E 00 57 30 10 00 5F 30 12 00 67 30 14 00    O0..W0.._0..g0..
003EF0:  6F 30 00 2C 0A 30 00 2E 1A 30 34 18 31 30 34 1A    o0.,.0...04.104.
003F00:  ED 7B 1A 34 ED 73 2C 00 02 30 2E 00 12 30 34 04    .{.4.s,..0...04.
003F10:  F9 30 0A 0C 41 30 0A 0E 42 30 0A 10 43 30 0A 12    .0..A0..B0..C0..
003F20:  44 30 0A 14 45 30 0C 0A 48 30 0C 0E 4A 30 0C 10    D0..E0..H0..J0..
003F30:  4B 30 0C 12 4C 30 0C 14 4D 30 0E 0A 50 30 0E 0C    K0..L0..M0..P0..
003F40:  51 30 0E 10 53 30 0E 12 54 30 0E 14 55 30 10 0A    Q0..S0..T0..U0..
003F50:  58 30 10 0C 59 30 10 0E 5A 30 10 12 5C 30 10 14    X0..Y0..Z0..\0..
003F60:  5D 30 12 0A 60 30 12 0C 61 30 12 0E 62 30 12 10    ]0..`0..a0..b0..
003F70:  63 30 12 14 65 30 14 0A 68 30 14 0C 69 30 14 0E    c0..e0..h0..i0..
003F80:  6A 30 14 10 6B 30 14 12 6C 30 14 06 6E 30 12 06    j0..k0..l0..n0..
003F90:  66 30 06 12 74 30 06 14 75 30 00 44 ED 57 44 00    f0..t0..u0.D.WD.
003FA0:  ED 47 00 46 ED 5F 46 00 ED 4F 00 00 7F 30 0A 0A    .G.F._F..O...0..
003FB0:  40 30 0C 0C 49 30 0E 0E 52 30 10 10 5B 30 12 12    @0..I0..R0..[0..
003FC0:  64 30 14 14 6D 30 04 1A ED 6B 1A 04 ED 07 CE 63    d0..m0...k.....c
003FD0:  80 41 44 C4 00 00 00 02 C6 30 00 0A 80 30 00 0C    .AD......0...0..
003FE0:  81 30 00 06 86 30 04 16 09 30 04 08 19 30 00 0E    .0...0...0...0..
003FF0:  82 30 00 10 83 30 00 14 85 30 00 12 84 30 00 00    .0...0...0...0..
004000:  87 30 04 04 29 30 04 34 39 30 80 41 44 C3 00 00    .0..)0.490.AD...
004010:  00 02 CE 30 00 06 8E 30 04 16 ED 4A 04 08 ED 5A    ...0...0...J...Z
004020:  00 0A 88 30 00 0C 89 30 00 0E 8A 30 00 10 8B 30    ...0...0...0...0
004030:  00 12 8C 30 00 14 8D 30 04 34 ED 7A 04 04 ED 6A    ...0...0.4.z...j
004040:  00 00 8F 30 80 53 55 C2 00 00 02 7F D6 30 06 7F    ...0.SU......0..
004050:  96 30 0A 7F 90 30 0C 7F 91 30 0E 7F 92 30 10 7F    .0...0...0...0..
004060:  93 30 14 7F 95 30 12 7F 94 30 00 7F 97 30 80 53    .0...0...0...0.S
004070:  42 C3 00 00 00 02 DE 30 00 06 9E 30 04 16 ED 42    B......0...0...B
004080:  04 08 ED 52 00 0A 98 30 00 0C 99 30 00 0E 9A 30    ...R...0...0...0
004090:  00 10 9B 30 00 12 9C 30 00 14 9D 30 04 34 ED 72    ...0...0...0.4.r
0040A0:  04 04 ED 62 00 00 9F 30 80 44 45 C3 00 00 00 7F    ...b...0.DE.....
0040B0:  3D 30 06 7F 35 30 04 7F 2B 30 0C 7F 0D 30 0E 7F    =0..50..+0...0..
0040C0:  15 30 10 7F 1D 30 14 7F 2D 30 12 7F 25 30 08 37    .0...0..-0..%0.7
0040D0:  5A 7F 1B 30 16 7F 0B 30 0A 7F 05 30 34 7F 3B 30    Z..0...0...04.;0
0040E0:  80 49 4E C3 00 00 00 7F 3C 30 06 7F 34 30 04 7F    .IN.....<0..40..
0040F0:  23 30 0A 7F 04 30 0C 7F 0C 30 0E 7F 14 30 10 7F    #0...0...0...0..
004100:  1C 30 12 7F 24 30 14 7F 2C 30 08 7F 13 30 16 7F    .0..$0..,0...0..
004110:  03 30 34 7F 33 30 80 4A D2 00 00 00 1E 7F 18 30    .04.30.J.......0
004120:  0C 1E 38 30 22 1E 30 30 1C 1E 28 30 20 1E 20 30    ..80".00..(0 . 0
004130:  80 4A D0 00 00 00 18 7F C3 30 20 18 C2 30 1C 18    .J.......0 ..0..
004140:  CA 30 22 18 D2 30 0C 18 DA 30 06 7F E9 30 36 18    .0"..0...0...06.
004150:  F2 30 3E 18 FA 30 40 18 E2 30 42 18 EA 30 80 44    .0>..0@..0B..0.D
004160:  4A 4E DA 00 1E 7F 10 30 80 43 41 4C CC 00 18 7F    JN.....0.CAL....
004170:  CD 30 22 18 D4 30 20 18 C4 30 1C 18 CC 30 0C 18    .0"..0 ..0...0..
004180:  DC 30 36 18 F4 30 3E 18 FC 30 40 18 E4 30 42 18    .06..0>..0@..0B.
004190:  EC 30 80 52 45 D4 00 00 7F 7F C9 30 1C 7F C8 30    .0.RE......0...0
0041A0:  20 7F C0 30 0C 7F D8 30 22 7F D0 30 36 7F F0 30     ..0...0"..06..0
0041B0:  3E 7F F8 30 40 7F E0 30 42 7F E8 30 80 50 55 53    >..0@..0B..0.PUS
0041C0:  C8 00 04 7F E5 30 08 7F D5 30 16 7F C5 30 30 7F    .....0...0...00.
0041D0:  F5 21 BC 30 80 50 4F D0 00 00 04 7F E1 30 08 7F    .!.0.PO......0..
0041E0:  D1 30 16 7F C1 30 30 7F F1 30 80 43 D0 00 00 00    .0...00..0.C....
0041F0:  02 7F FE 30 06 7F BE 30 0A 7F B8 30 0C 7F B9 30    ...0...0...0...0
004200:  0E 7F BA 30 10 7F BB 30 12 7F BC 30 14 7F BD 30    ...0...0...0...0
004210:  00 7F BF 30 80 4F D2 00 00 00 02 7F F6 30 06 7F    ...0.O.......0..
004220:  B6 30 0A 7F B0 30 0C 7F B1 30 0E 7F B2 30 10 7F    .0...0...0...0..
004230:  B3 30 12 7F B4 30 14 7F B5 30 00 7F B7 30 80 58    .0...0...0...0.X
004240:  4F D2 00 00 02 7F EE 30 06 7F AE 30 0A 7F A8 30    O......0...0...0
004250:  0C 7F A9 30 0E 7F AA 30 10 7F AB 30 12 7F AC 30    ...0...0...0...0
004260:  14 7F AD 30 00 7F AF 30 80 41 4E C4 00 00 02 7F    ...0...0.AN.....
004270:  E6 30 06 7F A6 30 0A 7F A0 30 0C 7F A1 30 0E 7F    .0...0...0...0..
004280:  A2 30 10 7F A3 30 12 7F A4 30 14 7F A5 30 00 7F    .0..£0...0...0..
004290:  A7 30 80 45 D8 00 00 00 08 04 EB 30 30 32 08 30    .0.E.......002.0
0042A0:  3C 04 E3 30 80 52 4C C3 00 00 0A 7F 00 30 0C 7F    <..0.RL......0..
0042B0:  01 30 0E 7F 02 30 10 7F 03 30 06 7F 06 30 14 7F    .0...0...0...0..
0042C0:  05 30 12 7F 04 30 00 7F 07 30 80 52 CC 00 00 00    .0...0...0.R....
0042D0:  0A 7F 10 6E 74 30 0C 7F 11 30 0E 7F 12 30 10 7F    ...nt0...0...0..
0042E0:  13 30 06 7F 16 30 14 7F 15 30 12 7F 14 30 00 7F    .0...0...0...0..
0042F0:  17 30 80 52 52 C3 00 00 0A 7F 08 30 0C 7F 09 30    .0.RR......0...0
004300:  0E 7F 0A 30 10 7F 0B 30 06 7F 0E 30 14 7F 0D 30    ...0...0...0...0
004310:  12 7F 0C 30 00 7F 0F 30 80 52 D2 00 00 00 0A 7F    ...0...0.R......
004320:  18 30 0C 7F 19 30 0E 7F 1A 30 10 7F 1B 30 06 7F    .0...0...0...0..
004330:  1E 30 14 7F 1D 30 12 7F 1C 30 00 7F 1F 30 80 53    .0...0...0...0.S
004340:  4C C1 00 00 00 7F 27 30 0A 7F 20 30 0C 7F 21 30    L.....'0.. 0..!0
004350:  0E 7F 22 30 10 7F 23 30 06 7F 26 30 14 7F 25 30    .."0..#0..&0..%0
004360:  12 7F 24 30 80 53 52 C1 00 00 00 7F 2F 30 0A 7F    ..$0.SR...../0..
004370:  28 30 0C 7F 29 30 0E 7F 2A 30 10 7F 2B 30 06 7F    (0..)0..*0..+0..
004380:  2E 30 14 7F 2D 30 12 7F 2C 30 80 53 52 CC 00 00    .0..-0..,0.SR...
004390:  00 7F 3F 30 0A 7F 38 30 0C 7F 39 30 0E 7F 3A 30    ..?0..80..90..:0
0043A0:  10 7F 3B 30 06 7F 3E 30 14 7F 3D 30 12 7F 3C 30    ..;0..>0..=0..<0
0043B0:  80 42 49 D4 00 00 4E 00 47 30 50 00 4F 30 52 00    .BI...N.G0P.O0R.
0043C0:  57 30 54 00 5F 30 56 00 67 30 58 00 6F 30 5A 00    W0T._0V.g0X.o0Z.
0043D0:  77 30 5C 00 7F B0 2F 30 4E 06 46 30 50 06 4E 30    w0\.../0N.F0P.N0
0043E0:  52 06 56 30 54 06 5E 30 56 06 66 30 58 06 6E 30    R.V0T.^0V.f0X.n0
0043F0:  5A 06 76 30 5C 06 7E 30 4E 0A 40 30 50 0A 48 30    Z.v0\.~0N.@0P.H0
004400:  52 0A 50 30 54 0A 58 30 56 0A 60 30 58 0A 68 30    R.P0T.X0V.`0X.h0
004410:  5A 0A 70 30 5C 0A 78 30 4E 0C 41 30 50 0C 49 30    Z.p0\.x0N.A0P.I0
004420:  52 0C 51 30 54 0C 59 30 56 0C 61 30 58 0C 69 30    R.Q0T.Y0V.a0X.i0
004430:  5A 0C 71 30 5C 0C 79 30 4E 0E 42 30 50 0E 4A 30    Z.q0\.y0N.B0P.J0
004440:  52 0E 52 30 54 0E 5A 30 56 0E 62 30 58 0E 6A 30    R.R0T.Z0V.b0X.j0
004450:  5A 0E 72 30 5C 0E 7A 30 4E 10 43 30 50 10 4B 30    Z.r0\.z0N.C0P.K0
004460:  52 10 53 30 54 10 5B 30 56 10 63 30 58 10 6B 30    R.S0T.[0V.c0X.k0
004470:  5A 10 73 30 5C 10 7B 30 4E 12 44 30 50 12 4C 30    Z.s0\.{0N.D0P.L0
004480:  52 12 54 30 54 12 5C 30 56 12 64 30 58 12 6C 30    R.T0T.\0V.d0X.l0
004490:  5A 12 74 30 5C 12 7C 30 4E 14 45 30 50 14 4D 30    Z.t0\.|0N.E0P.M0
0044A0:  52 14 55 30 54 14 5D 30 56 14 65 30 58 14 6D 30    R.U0T.]0V.e0X.m0
0044B0:  5A 14 75 30 5C 14 7D 30 80 53 45 D4 00 00 4E 00    Z.u0\.}0.SE...N.
0044C0:  C7 30 50 00 CF 30 52 00 D7 30 54 00 DF 30 56 00    .0P..0R..0T..0V.
0044D0:  E7 30 58 00 EF 30 5A 19 C9 00 F7 30 5C 00 FF 30    .0X..0Z....0\..0
0044E0:  4E 06 C6 30 50 06 CE 30 52 06 D6 30 54 06 DE 30    N..0P..0R..0T..0
0044F0:  56 06 E6 30 58 06 EE 30 5A 06 F6 30 5C 06 FE 30    V..0X..0Z..0\..0
004500:  4E 0A C0 30 50 0A C8 30 52 0A D0 30 54 0A D8 30    N..0P..0R..0T..0
004510:  56 0A E0 30 58 0A E8 30 5A 0A F0 30 5C 0A F8 30    V..0X..0Z..0\..0
004520:  4E 0C C1 30 50 0C C9 30 52 0C D1 30 54 0C D9 30    N..0P..0R..0T..0
004530:  56 0C E1 30 58 0C E9 30 5A 0C F1 30 5C 0C F9 30    V..0X..0Z..0\..0
004540:  4E 0E C2 30 50 0E CA 30 52 0E D2 30 54 0E DA 30    N..0P..0R..0T..0
004550:  56 0E E2 30 58 0E EA 30 5A 0E F2 30 5C 0E FA 30    V..0X..0Z..0\..0
004560:  4E 10 C3 30 50 10 CB 30 52 10 D3 30 54 10 DB 30    N..0P..0R..0T..0
004570:  56 10 E3 30 58 10 EB 30 5A 10 F3 30 5C 10 FB 30    V..0X..0Z..0\..0
004580:  4E 12 C4 30 50 12 CC 30 52 12 D4 30 54 12 DC 30    N..0P..0R..0T..0
004590:  56 12 E4 30 58 12 EC 30 5A 12 F4 30 5C 12 FC 30    V..0X..0Z..0\..0
0045A0:  4E 14 C5 30 50 14 CD 30 52 14 D5 30 54 14 DD 30    N..0P..0R..0T..0
0045B0:  56 14 E5 30 58 14 ED 30 5A 14 F5 30 5C 14 FD 30    V..0X..0Z..0\..0
0045C0:  80 52 45 D3 00 00 4E 00 87 30 50 00 8F 30 52 00    .RE...N..0P..0R.
0045D0:  97 30 54 00 9F 30 56 00 A7 88 13 30 58 00 AF 30    .0T..0V....0X..0
0045E0:  5A 00 B7 30 5C 00 BF 30 4E 06 86 30 50 06 8E 30    Z..0\..0N..0P..0
0045F0:  52 06 96 30 54 06 9E 30 56 06 A6 30 58 06 AE 30    R..0T..0V..0X..0
004600:  5A 06 B6 30 5C 06 BE 30 4E 0A 80 30 50 0A 88 30    Z..0\..0N..0P..0
004610:  52 0A 90 30 54 0A 98 30 56 0A A0 30 58 0A A8 30    R..0T..0V..0X..0
004620:  5A 0A B0 30 5C 0A B8 30 4E 0C 81 30 50 0C 89 30    Z..0\..0N..0P..0
004630:  52 0C 91 30 54 0C 99 30 56 0C A1 30 58 0C A9 30    R..0T..0V..0X..0
004640:  5A 0C B1 30 5C 0C B9 30 4E 0E 82 30 50 0E 8A 30    Z..0\..0N..0P..0
004650:  52 0E 92 30 54 0E 9A 30 56 0E A2 30 58 0E AA 30    R..0T..0V..0X..0
004660:  5A 0E B2 30 5C 0E BA 30 4E 10 83 30 50 10 8B 30    Z..0\..0N..0P..0
004670:  52 10 93 30 54 10 9B 30 56 10 A3 30 58 10 AB 30    R..0T..0V.£0X..0
004680:  5A 10 B3 30 5C 10 BB 30 4E 12 84 30 50 12 8C 30    Z..0\..0N..0P..0
004690:  52 12 94 30 54 12 9C 30 56 12 A4 30 58 12 AC 30    R..0T..0V..0X..0
0046A0:  5A 12 B4 30 5C 12 BC 30 4E 14 85 30 50 14 8D 30    Z..0\..0N..0P..0
0046B0:  52 14 95 30 54 14 9D 30 56 14 A5 30 58 14 AD 30    R..0T..0V..0X..0
0046C0:  5A 14 B5 30 5C 14 BD 30 80 49 CE 00 00 00 00 4A    Z..0\..0.I.....J
0046D0:  DB 30 00 48 ED 78 0A 48 ED 40 0E 25 09 48 ED 50    .0.H.x.H.@.%.H.P
0046E0:  10 48 ED 58 12 48 ED 60 14 48 ED 68 0C 48 ED 48    .H.X.H.`.H.h.H.H
0046F0:  4C 48 ED 70 80 4F 55 D4 00 00 4A 00 D3 30 48 00    LH.p.OU...J..0H.
004700:  ED 79 48 0A ED 41 48 0E ED 51 48 10 ED 59 48 12    .yH..AH..QH..YH.
004710:  ED 61 48 14 ED 69 48 0C ED 49 80 49 CD 00 00 00    .aH..iH..I.I....
004720:  4E 7F ED 46 50 7F ED 56 52 7F ED 5E 80 52 53 D4    N..FP..VR..^.RS.
004730:  00 00 5E 7F C7 30 60 7F CF 30 62 7F D7 30 64 7F    ..^..0`..0b..0d.
004740:  DF 30 66 7F E7 30 68 7F EF 30 6A 7F F7 30 6C 7F    .0f..0h..0j..0l.
004750:  FF 30 80 52 4C 43 C1 00 7F 7F 07 30 80 52 4C C1    .0.RLC.....0.RL.
004760:  00 00 7F 7F 17 30 80 52 52 43 C1 00 7F 7F 0F 30    .....0.RRC.....0
004770:  80 52 52 C1 00 00 7F 7F 1F 30 80 45 58 D8 00 00    .RR......0.EX...
004780:  7F 7F D9 30 80 4C 44 C9 00 00 7F 7F ED A0 80 4C    ...0.LD........L
004790:  44 49 D2 00 7F 7F ED B0 80 4C 44 C4 00 00 7F 7F    DI.......LD.....
0047A0:  ED A8 80 4C 44 44 D2 00 7F 7F ED B8 80 43 50 C9    ...LDD.......CP.
0047B0:  00 00 7F 7F ED A1 80 43 50 49 D2 00 7F 7F ED B1    .......CPI......
0047C0:  80 43 50 C4 00 00 7F 7F ED A9 80 43 50 44 D2 00    .CP........CPD..
0047D0:  7F 7F ED B9 80 44 41 C1 00 00 7F 7F 27 1A A8 30    .....DA.....'..0
0047E0:  80 43 50 CC 00 00 7F 7F 2F 30 80 4E 45 C7 00 00    .CP...../0.NE...
0047F0:  7F 7F ED 44 80 43 43 C6 00 00 7F 7F 3F 30 80 53    ...D.CC.....?0.S
004800:  43 C6 00 00 7F 7F 37 30 80 4E 4F D0 00 00 7F 7F    C.....70.NO.....
004810:  00 30 80 52 4C C4 00 00 7F 7F ED 6F 80 52 52 C4    .0.RL......o.RR.
004820:  00 00 7F 7F ED 67 80 49 4E C9 00 00 7F 7F ED A2    .....g.IN.......
004830:  80 49 4E 49 D2 00 7F 7F ED B2 80 49 4E C4 00 00    .INI.......IN...
004840:  7F 7F ED AA 80 49 4E 44 D2 00 7F 7F ED BA 80 4F    .....IND.......O
004850:  55 54 C9 00 7F 7F ED A3 80 4F 54 49 D2 00 7F 7F    UT.....£.OTI....
004860:  ED B3 80 4F 55 54 C4 00 7F 7F ED AB 80 4F 54 44    ...OUT.......OTD
004870:  D2 00 7F 7F ED BB 80 44 C9 00 00 00 7F 7F F3 30    .......D.......0
004880:  80 45 C9 00 00 00 7F 7F FB 30 80 52 45 54 C9 00    .E.......0.RET..
004890:  7F 7F ED 4D 80 52 45 54 CE 00 7F 7F ED 45 80 48    ...M.RET.....E.H
0048A0:  41 4C D4 00 7F 7F 76 30 80 44 45 46 C2 00 02 7F    AL....v0.DEF....
0048B0:  CB 30 80 42 49 CE 00 00 02 7F CB 30 80 44 45 46    .0.BI......0.DEF
0048C0:  D7 00 18 7F CB 30 80 CD CB 51 21 50 C0 22 0D 52    .....0...Q!P.".R
0048D0:  18 33 2A 04 58 CD AD 51 21 37 52 CD FC 51 CD E1    .3*.X..Q!7R..Q..
0048E0:  7B E7 51 CD 06 BB FE 20 CA 7C 51 FE 0D 20 F4 2A    {.Q.... .|Q.. .*
0048F0:  00 58 ED 4B 02 58 A7 ED 42 20 0C 21 5F 52 CD FC    .X.K.X..B .!_R..
004900:  51 CD D9 51 D8 18 53 DD 2A 00 58 DD 6E 00 DD 66    Q..Q..S.*.X.n..f
004910:  01 E5 DD E1 DD CB 00 46 20 40 DD 6E 01 DD 66 02    .......F @.n..f.
004920:  DD CB 00 4E 20 1E CD AD 51 21 0F 52 CD FC 51 3E    ...N ...Q!.R..Q>
004930:  42 CD 1E BB 20 24 CD 06 BB FE 20 20 F2 01 03 00    B... $....  ....
004940:  DD 09 18 D0 DD CB 00 56 3E 01 28 02 3E 00 32 CF    .......V>.(.>.2.
004950:  31 22 41 17 CD CB 51 CD B9 11 CD CB 51 2A 00 58    1"A...Q.....Q*.X
004960:  ED 4B 02 58 A7 ED 42 CA 9E 51 2A 0D 52 01 50 00    .K.X..B..Q*.R.P.
004970:  09 22 0D 52 2A 00 58 23 23 22 00 58 C3 F3 50 21    .".R*.X##".X..P!
004980:  08 58 22 00 58 21 A0 C0 22 0D 52 C3 F3 50 11 00    .X".X!..".R..P..
004990:  00 CD F1 32 3E 00 BB 28 07 3E 20 CD 45 1A 18 F4    ...2>..(.> .E...
0049A0:  CB 4E 23 28 EC 2B 3E 16 BA 30 EE C9 21 00 C0 11    .N#(.+>..0..!...
0049B0:  01 C0 01 FF 3F 36 0F ED B0 C9 CD 18 BB FE 79 37    ....?6........y7
0049C0:  C8 FE 6E 37 3F C8 18 F2 2A 0D 52 0E 08 06 50 7E    ..n7?...*.R...P~
0049D0:  ED 6F 23 10 FA 11 B0 07 19 0D 20 F1 C9 3E F0 32    .o#....... ..>.2
0049E0:  91 C6 41 1A 11 00 18 CD F1 32 3E 0F 32 91 1A C9    ..A......2>.2...
0049F0:  A0 C0 20 20 20 20 20 20 20 20 50 72 65 73 73 20    ..        Press 
004A00:  53 50 41 43 45 20 74 6F 20 63 6F 6E 74 69 6E 75    SPACE to continu
004A10:  65 2E 20 20 20 20 20 20 20 A0 20 50 72 65 73 73    e.       . Press
004A20:  20 53 50 41 43 45 20 74 6F 20 73 65 6C 65 63 74     SPACE to select
004A30:  20 26 20 45 4E 54 45 52 20 74 6F 20 73 74 61 72     & ENTER to star
004A40:  74 A0 20 50 6C 65 61 73 65 20 63 6F 6E 66 69 72    t. Please confir
004A50:  6D 20 6C 6F 61 64 69 6E 67 20 72 65 71 75 69 72    m loading requir
004A60:  65 64 20 20 20 20 59 2F 4E A0 00 00 00 00 00 00    ed    Y/N.......
004A70:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
004A80:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
004A90:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
004AA0:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
004AB0:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
004AC0:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
004AD0:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
004AE0:  00 00 00 A2 EC FF FF FF FF 11 16 09 57 04 F6 04    ............W...
004AF0:  93 04 26 09 13 10 08 13 0A 07 01 00 FC 00 00 00    ..&.............
004B00:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
004B10:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
004B20:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
004B30:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
004B40:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
004B50:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
004B60:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
004B70:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
004B80:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
004B90:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
004BA0:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
004BB0:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
004BC0:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
004BD0:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
004BE0:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
004BF0:  00 00 00 00 00 00 00 00 00 00 00 00 00 BE 17 FF    ................
004C00:  FF FF FF 11 15 09 57 04 A6 04 92 04 24 09 01 10    ......W.....$...
004C10:  08 13 0A AF 55 00 FB 06 58 2E 58 EF 84 2F 58 33    ....U...X.X../X3
004C20:  58 37 58 44 58 51 58 5E 58 65 58 6F 58 76 58 83    X7XDXQX^XeXoXvX.
004C30:  58 8A 58 91 58 9B 58 A2 58 A9 58 B0 58 B7 58 BE    X.X.X.X.X.X.X.X.
004C40:  58 C5 58 CF 58 00 00 74 87 01 00 D6 58 01 00 CB    X.X.X..t....X...
004C50:  5B 00 77 5E 00 4E 61 00 76 62 01 00 CD 89 00 92    [.w^.Na.vb......
004C60:  8C 00 1A 8E 02 7B 90 01 00 57 63 00 F6 65 00 EE    .....{...Wc..e..
004C70:  68 00 F5 6B 01 00 26 91 02 92 93 01 00 C3 6C 00    h..k..&.......l.
004C80:  7D 6F 00 F6 6F 01 00 3C 94 02 0A 95 01 00 91 70    }o..o..<.......p
004C90:  00 74 73 00 B3 76 00 31 77 01 00 B9 95 02 7A 97    .ts..v.1w.....z.
004CA0:  01 00 0F 98 02 BC 98 01 00 FF 77 00 A7 7A 00 DD    ..........w..z..
004CB0:  7C 01 00 6A 99 02 93 9A 01 00 3A 9B 02 4D 9D 01    |..j......:..M..
004CC0:  00 04 7E 00 D7 80 01 00 19 9E 02 EA 9E 01 00 28    ..~............(
004CD0:  81 00 ED 82 01 00 7A 9F 02 0D A0 01 00 93 A0 00    ......z.........
004CE0:  CA A2 00 A8 A3 01 00 5D A4 02 3F A5 01 20 20 20    ....£..]..?..   
004CF0:  20 20 20 20 20 20 52 45 47 49 53 54 45 52 53 20          REGISTERS 
004D00:  61 6E 64 20 4D 45 4D 4F 52 59 A0 A0 20 52 65 67    and MEMORY.. Reg
004D10:  69 73 74 65 72 73 20 01 45 20 61 72 65 20 20 6C    isters .E are  l
004D20:  69 6B 65 20 20 70 69 67 65 6F 6E 20 20 68 6F 6C    ike  pigeon  hol
004D30:  65 73 20 20 69 6E 77 68 69 63 68 20 20 6E 75 6D    es  inwhich  num
004D40:  62 65 72 73 20 20 63 61 6E 20 62 65 20 73 74 6F    bers  can be sto
004D50:  72 65 64 2E 20 20 41 20 73 69 6E 67 6C 65 72 65    red.  A singlere
004D60:  67 69 73 74 65 72 20 63 61 6E 20 73 74 6F 72 65    gister can store
004D70:  20 20 61 6E 79 20 20 6E 75 6D 62 65 72 20 20 62      any  number  b
004D80:  65 74 77 65 65 6E 30 20 61 6E 64 20 20 32 35 35    etween0 and  255
004D90:  2E 20 20 54 68 65 20 20 5A 38 30 20 20 68 61 73    .  The  Z80  has
004DA0:  20 20 20 6D 61 6E 79 20 20 20 73 75 63 68 72 65       many   suchre
004DB0:  67 69 73 74 65 72 73 2E 20 20 49 6E 69 74 69 61    gisters.  Initia
004DC0:  6C 6C 79 20 20 77 65 20 73 68 61 6C 6C 20 63 6F    lly  we shall co
004DD0:  6E 73 69 64 65 72 6F 6E 6C 79 20 74 68 65 20 6D    nsideronly the m
004DE0:  6F 72 65 20 20 67 65 6E 65 72 61 6C 20 6F 6E 65    ore  general one
004DF0:  73 3A 20 20 64 65 73 69 67 6E 61 74 65 64 41 2C    s:  designatedA,
004E00:  42 2C 43 2C 44 2C 45 2C 48 20 61 6E 64 20 4C 2E    B,C,D,E,H and L.
004E10:  20 20 54 68 65 20 41 20 20 A1 AB 72 65 67 69 73      The A  ..regis
004E20:  74 65 72 20 28 20 6F 72 41 63 63 75 6D 75 6C 61    ter ( orAccumula
004E30:  74 6F 72 20 29 20 20 69 73 20 20 74 68 65 20 20    tor )  is  the  
004E40:  6D 6F 73 74 20 20 69 6D 70 6F 72 74 61 6E 74 2C    most  important,
004E50:  73 69 6E 63 65 20 20 6D 6F 72 65 20 20 69 6E 73    since  more  ins
004E60:  74 72 75 63 74 69 6F 6E 73 20 20 69 6E 76 6F 6C    tructions  invol
004E70:  76 65 20 20 74 68 69 73 72 65 67 69 73 74 65 72    ve  thisregister
004E80:  20 74 68 61 6E 20 61 6E 79 20 6F 74 68 65 72 2E     than any other.
004E90:  A0 A0 20 54 68 65 20 73 74 65 70 20 62 79 20 73    .. The step by s
004EA0:  74 65 70 20 69 6E 73 74 72 75 63 74 69 6F 6E 73    tep instructions
004EB0:  20 6D 61 6B 69 6E 67 20 75 70 61 20 70 72 6F 67     making upa prog
004EC0:  72 61 6D 20 61 72 65 20 73 74 6F 72 65 64 20 69    ram are stored i
004ED0:  6E 20 6D 65 6D 6F 72 79 2C 20 61 20 73 65 72 69    n memory, a seri
004EE0:  65 73 6F 66 20 20 20 73 69 6D 69 6C 61 72 20 20    esof   similar  
004EF0:  20 20 72 65 67 69 73 74 65 72 73 20 20 20 20 6F      registers    o
004F00:  72 20 20 20 6D 65 6D 6F 72 79 6C 6F 63 61 74 69    r   memorylocati
004F10:  6F 6E 73 20 20 65 78 74 65 72 6E CF 3B 61 6C 20    ons  extern.;al 
004F20:  20 74 6F 20 20 74 68 65 20 20 5A 38 30 20 20 63     to  the  Z80  c
004F30:  68 69 70 2E 36 35 35 33 36 20 6D 65 6D 6F 72 79    hip.65536 memory
004F40:  20 6C 6F 63 61 74 69 6F 6E 73 20 63 61 6E 20 62     locations can b
004F50:  65 20 20 61 63 63 65 73 73 65 64 2E 54 68 65 79    e  accessed.They
004F60:  20 20 61 72 65 20 20 64 65 73 69 67 6E 61 74 65      are  designate
004F70:  64 20 20 62 79 20 20 74 68 65 69 72 20 20 6E 75    d  by  their  nu
004F80:  6D 62 65 72 62 65 74 77 65 65 6E 20 30 20 61 6E    mberbetween 0 an
004F90:  64 20 36 35 35 33 35 2E 20 20 49 74 20 20 74 61    d 65535.  It  ta
004FA0:  6B 65 73 20 20 74 68 65 20 5A 38 30 6C 6F 6E 67    kes  the Z80long
004FB0:  65 72 20 20 74 6F 20 20 61 63 63 65 73 73 20 20    er  to  access  
004FC0:  6D 65 6D 6F 72 79 20 20 74 68 61 6E 20 69 74 73    memory  than its
004FD0:  20 6F 77 6E 69 6E 74 65 72 6E 61 6C 20 72 65 67     owninternal reg
004FE0:  69 73 74 65 72 73 2E A3 20 20 20 20 20 20 20 53    isters.£       S
004FF0:  49 4D 50 4C 45 20 4C 4F 41 44 20 49 4E 53 54 52    IMPLE LOAD INSTR
005000:  55 43 54 49 4F 4E 53 A0 A0 20 50 65 72 68 61 70    UCTIONS.. Perhap
005010:  73 20 20 61 20 20 62 65 74 74 65 72 20 27 F4 20    s  a  better '. 
005020:  64 65 73 63 72 69 70 74 69 6F 6E 20 6F 66 20 6C    description of l
005030:  6F 61 64 74 68 61 6E 20 74 68 65 20 63 6F 6E 76    oadthan the conv
005040:  65 6E 74 69 6F 6E 61 6C 20 6F 6E 65 20 69 73 20    entional one is 
005050:  63 6F 70 79 2C 20 73 69 6E 63 65 61 20 6C 6F 61    copy, sincea loa
005060:  64 20 20 69 6E 73 74 72 75 63 74 69 6F 6E 20 20    d  instruction  
005070:  63 6F 70 69 65 73 20 20 74 68 65 20 20 6E 75 6D    copies  the  num
005080:  62 65 72 68 65 6C 64 20 69 6E 20 61 20 72 65 67    berheld in a reg
005090:  69 73 74 65 72 20 20 6F 72 20 20 6D 65 6D 6F 72    ister  or  memor
0050A0:  79 20 20 6C 6F 63 61 74 69 6F 6E 69 6E 74 6F 20    y  locationinto 
0050B0:  20 20 61 6E 6F 74 68 65 72 20 20 20 20 72 65 67      another    reg
0050C0:  69 73 74 65 72 20 20 20 6F 72 20 20 20 6D 65 6D    ister   or   mem
0050D0:  6F 72 79 6C 6F 63 61 74 69 6F 6E 2E 20 20 20 41    orylocation.   A
0050E0:  73 20 20 20 77 69 74 68 20 20 61 6C 6C 20 20 63    s   with  all  c
0050F0:  6F 70 79 69 6E 67 20 20 74 68 65 6F 72 69 67 69    opying  theorigi
005100:  6E 61 6C 20 72 65 6D 61 69 6E 73 20 75 6E 63 68    nal remains unch
005110:  61 6E 67 65 64 2E A0 A0 20 54 68 65 20 20 20 4B    anged... The   K
005120:  BE 6C 6F 61 64 20 20 69 6E 73 74 72 75 63 74 69    .load  instructi
005130:  6F 6E 20 20 20 69 73 20 20 20 6E 6F 72 6D 61 6C    on   is   normal
005140:  6C 79 61 62 62 72 65 76 69 61 74 65 64 20 74 6F    lyabbreviated to
005150:  20 4C 44 2E 20 20 54 68 65 20 73 69 6D 70 6C 65     LD.  The simple
005160:  73 74 20 66 6F 72 6D 20 6F 66 6C 6F 61 64 20 20    st form ofload  
005170:  63 6F 70 69 65 73 20 64 61 74 61 20 66 72 6F 6D    copies data from
005180:  20 20 6F 6E 65 20 20 72 65 67 69 73 74 65 72 20      one  register 
005190:  74 6F 61 6E 6F 74 68 65 72 2C 20 69 2E 65 2E 20    toanother, i.e. 
0051A0:  4C 44 20 41 2C 42 20 20 2E A0 A0 20 49 6E 20 20    LD A,B  ... In  
0051B0:  74 68 65 73 65 20 20 61 62 62 72 65 76 69 61 74    these  abbreviat
0051C0:  69 6F 6E 65 64 20 20 69 6E 73 74 72 75 63 74 69    ioned  instructi
0051D0:  6F 6E 73 28 20 6D 6E 65 6D 6F 6E 69 63 73 20 29    ons( mnemonics )
0051E0:  2C 20 69 74 20 69 73 20 63 6F 6E 76 65 6E 74 69    , it is conventi
0051F0:  6F 6E 61 6C 20 74 6F 20 70 75 74 74 68 65 20 72    onal to putthe r
005200:  65 67 69 73 74 65 72 20 61 66 66 65 63 74 65 64    egister affected
005210:  20 66 69 72 73 74 2C 20 66 6F 6C 6C 6F 77 65 64     first, followed
005220:  20 90 D0 62 79 74 68 65 20 72 65 67 69 73 74 65     ..bythe registe
005230:  72 20 66 72 6F 6D 20 77 68 69 63 68 20 20 74 68    r from which  th
005240:  65 20 69 6E 66 6F 72 6D 61 74 69 6F 6E 69 73 20    e informationis 
005250:  20 63 6F 70 69 65 64 2E 20 20 20 48 65 6E 63 65     copied.   Hence
005260:  20 20 4C 44 20 41 2C 42 20 20 63 6F 70 69 65 73      LD A,B  copies
005270:  20 20 74 68 65 63 6F 6E 74 65 6E 74 73 20 6F 66      thecontents of
005280:  20 42 20 69 6E 74 6F 20 41 20 6F 72 20 41 63 63     B into A or Acc
005290:  75 6D 75 6C 61 74 6F 72 2E A3 20 57 65 20 20 63    umulator.£ We  c
0052A0:  61 6E 20 20 61 6C 73 6F 20 6C 6F 61 64 20 61 6E    an  also load an
0052B0:  79 20 6F 66 20 74 68 65 20 72 65 67 69 73 74 65    y of the registe
0052C0:  72 73 77 69 74 68 20 20 61 20 20 6E 75 6D 62 65    rswith  a  numbe
0052D0:  72 2C 20 20 6E 2C 20 62 65 74 77 65 65 6E 20 20    r,  n, between  
0052E0:  30 20 20 61 6E 64 20 32 35 35 64 69 72 65 63 74    0  and 255direct
0052F0:  6C 79 20 2C 20 20 20 77 69 74 68 20 20 20 20 69    ly ,   with    i
005300:  6E 73 74 72 75 63 74 69 6F 6E 73 20 20 20 6C 69    nstructions   li
005310:  6B 65 4C 44 20 43 2C 31 32 33 2E 20 57 65 20 20    keLD C,123. We  
005320:  73 68 61 8D 52 6C 6C 20 20 64 69 73 63 75 73 73    sha.Rll  discuss
005330:  20 6C 61 74 65 72 20 20 66 72 6F 6D 77 68 65 72     later  fromwher
005340:  65 20 20 74 68 65 20 6E 75 6D 62 65 72 20 20 69    e  the number  i
005350:  73 20 63 6F 70 69 65 64 2E 20 53 75 66 66 69 63    s copied. Suffic
005360:  65 20 74 6F 73 61 79 20 61 74 20 74 68 69 73 20    e tosay at this 
005370:  20 73 74 61 67 65 2C 20 20 20 74 68 61 74 20 20     stage,   that  
005380:  69 6E 73 74 72 75 63 74 69 6F 6E 73 61 72 65 20    instructionsare 
005390:  73 74 6F 72 65 64 20 61 73 20 20 6E 75 6D 62 65    stored as  numbe
0053A0:  72 73 2E 20 20 69 2E 65 2E 20 20 4C 44 20 41 2C    rs.  i.e.  LD A,
0053B0:  42 20 69 73 73 74 6F 72 65 64 20 61 73 20 20 37    B isstored as  7
0053C0:  38 2E 20 20 53 6F 6D 65 20 20 69 6E 73 74 72 75    8.  Some  instru
0053D0:  63 74 69 6F 6E 73 20 20 6C 69 6B 65 4C 44 20 41    ctions  likeLD A
0053E0:  2C 42 20 61 72 65 20 73 74 6F 72 65 64 20 61 73    ,B are stored as
0053F0:  20 6F 6E 65 20 6E 75 6D 62 65 72 2C 20 20 6F 74     one number,  ot
005400:  68 65 72 73 74 61 6B 65 20 75 70 20 74 6F 20 66    herstake up to f
005410:  6F 75 72 2E A0 A0 20 54 68 65 20 74 77 6F 20 74    our... The two t
005420:  79 70 65 73 20 E7 0D 6F 66 20 69 6E 73 74 72 75    ypes ..of instru
005430:  63 74 69 6F 6E 73 20 64 69 73 63 75 73 73 65 64    ctions discussed
005440:  28 20 4C 44 20 72 2C 72 27 20 61 6E 64 20 20 4C    ( LD r,r' and  L
005450:  44 20 72 2C 6E 20 29 20 20 63 61 6E 20 69 6E 76    D r,n )  can inv
005460:  6F 6C 76 65 20 61 6E 79 6F 66 20 74 68 65 20 20    olve anyof the  
005470:  72 65 67 69 73 74 65 72 73 20 63 6F 6E 73 69 64    registers consid
005480:  65 72 65 64 2E 20 20 4F 6E 6C 79 20 20 74 68 65    ered.  Only  the
005490:  41 20 20 72 65 67 69 73 74 65 72 20 20 20 63 61    A  register   ca
0054A0:  6E 20 20 62 65 20 20 6C 6F 61 64 65 64 20 20 77    n  be  loaded  w
0054B0:  69 74 68 20 20 74 68 65 63 6F 6E 74 65 6E 74 73    ith  thecontents
0054C0:  20 20 6F 66 20 20 61 20 20 6D 65 6D 6F 72 79 20      of  a  memory 
0054D0:  20 6C 6F 63 61 74 69 6F 6E 2E 20 20 20 54 68 65     location.   The
0054E0:  69 6E 73 74 72 75 63 74 69 6F 6E 73 20 6F 66 20    instructions of 
0054F0:  74 68 65 20 66 6F 72 6D 20 4C 44 20 41 2C 28 6E    the form LD A,(n
005500:  6E 29 20 6C 6F 61 64 73 6F 72 20 20 63 6F 70 69    n) loadsor  copi
005510:  65 73 20 20 74 68 65 20 20 20 63 6F 6E 74 65 6E    es  the   conten
005520:  74 73 20 20 20 6F 66 8A F3 20 20 20 6D 65 6D 6F    ts   of..   memo
005530:  72 79 6C 6F 63 61 74 69 6F 6E 20 6E 6E 20 20 28    rylocation nn  (
005540:  20 61 20 20 6E 75 6D 62 65 72 20 20 62 65 74 77     a  number  betw
005550:  65 65 6E 20 20 30 20 61 6E 64 36 35 35 33 35 20    een  0 and65535 
005560:  29 20 69 6E 74 6F 20 74 68 65 20 41 20 72 65 67    ) into the A reg
005570:  69 73 74 65 72 2E A3 20 57 65 20 63 61 6E 20 61    ister.£ We can a
005580:  6C 73 6F 20 6C 6F 61 64 20 61 20 6D 65 6D 6F 72    lso load a memor
005590:  79 20 6C 6F 63 61 74 69 6F 6E 20 77 69 74 68 74    y location witht
0055A0:  68 65 20 20 63 6F 6E 74 65 6E 74 73 20 20 6F 66    he  contents  of
0055B0:  20 20 74 68 65 20 20 41 63 63 75 6D 75 6C 61 74      the  Accumulat
0055C0:  6F 72 20 77 69 74 68 4C 44 20 28 6E 6E 29 2C 41    or withLD (nn),A
0055D0:  20 20 20 77 68 65 72 65 20 20 6E 6E 20 20 69 73       where  nn  is
0055E0:  20 20 74 68 65 20 6E 75 6D 62 65 72 20 6F 72 61      the number ora
0055F0:  64 64 72 65 73 73 20 6F 66 20 74 68 65 20 6D 65    ddress of the me
005600:  6D 6F 72 79 20 6C 6F 63 61 74 69 6F 6E 2E A0 A0    mory location...
005610:  20 41 6C 6C 20 20 6F 74 68 65 72 20 73 69 6E 67     All  other sing
005620:  6C 65 20 20 72 65 67 69 73 0E 0A 74 65 72 73 20    le  regis..ters 
005630:  20 63 61 6E 6E 6F 74 20 62 65 6C 6F 61 64 65 64     cannot beloaded
005640:  20 20 64 69 72 65 63 74 6C 79 20 66 72 6F 6D 20      directly from 
005650:  61 20 6D 65 6D 6F 72 79 20 6C 6F 63 61 74 69 6F    a memory locatio
005660:  6E 2E 54 77 6F 20 20 20 69 6E 73 74 72 75 63 74    n.Two   instruct
005670:  69 6F 6E 73 20 20 20 69 6E 76 6F 6C 76 69 6E 67    ions   involving
005680:  20 20 20 74 68 65 20 20 20 41 72 65 67 69 73 74       the   Aregist
005690:  65 72 20 61 72 65 20 72 65 71 75 69 72 65 64 2E    er are required.
0056A0:  A3 20 20 20 53 75 6D 6D 61 72 79 20 2D 20 4C 6F    £   Summary - Lo
0056B0:  61 64 69 6E 67 20 73 69 6E 67 6C 65 20 72 65 67    ading single reg
0056C0:  69 73 74 65 72 73 A0 A0 4C 44 20 72 2C 72 27 20    isters..LD r,r' 
0056D0:  20 20 20 77 68 65 72 65 20 72 20 61 6E 64 20 72       where r and r
0056E0:  27 20 61 72 65 20 61 6E 79 20 6F 66 20 74 68 65    ' are any of the
0056F0:  20 20 20 20 20 20 20 20 20 20 20 66 6F 6C 6C 6F               follo
005700:  77 69 6E 67 3A 20 41 2C 42 2C 43 2C 44 2C 45 2C    wing: A,B,C,D,E,
005710:  48 20 61 6E 64 20 4C 2E 4C 44 20 72 2C 6E 20 20    H and L.LD r,n  
005720:  20 20 20 77 68 65 72 65 20 6E 20 B5 09 69 73 20       where n ..is 
005730:  61 20 6E 75 6D 62 65 72 20 30 20 2D 20 32 35 35    a number 0 - 255
005740:  A0 A0 4C 44 20 41 2C 28 6E 6E 29 20 20 77 68 65    ..LD A,(nn)  whe
005750:  72 65 20 6E 6E 20 69 73 20 61 20 6E 75 6D 62 65    re nn is a numbe
005760:  72 20 20 20 30 20 74 6F A0 20 20 20 20 20 20 20    r   0 to.       
005770:  20 20 20 20 36 35 35 33 35 A0 4C 44 20 28 6E 6E        65535.LD (nn
005780:  29 2C 41 A3 20 20 20 20 20 20 20 20 20 20 20 20    ),A£            
005790:  52 45 47 49 53 54 45 52 20 50 41 49 52 53 A0 A0    REGISTER PAIRS..
0057A0:  20 54 68 65 20 66 61 63 74 20 74 68 61 74 20 20     The fact that  
0057B0:  61 20 20 73 69 6E 67 6C 65 20 20 72 65 67 69 73    a  single  regis
0057C0:  74 65 72 20 20 63 61 6E 6F 6E 6C 79 20 68 6F 6C    ter  canonly hol
0057D0:  64 20 20 6E 75 6D 62 65 72 73 20 20 75 70 20 20    d  numbers  up  
0057E0:  74 6F 20 32 35 35 20 20 61 6E 64 20 20 74 68 65    to 255  and  the
0057F0:  74 6F 74 61 6C 20 6D 65 6D 6F 72 79 20 20 61 76    total memory  av
005800:  61 69 6C 61 62 6C 65 20 20 69 73 20 75 70 20 74    ailable  is up t
005810:  6F 20 36 35 35 33 35 2C 69 73 20 61 20 6C 69 6D    o 65535,is a lim
005820:  69 74 61 74 69 6F 6E 2E 20 20 46 6F 72 30 78 20    itation.  For0x 
005830:  20 74 68 69 73 20 72 65 61 73 6F 6E 20 74 68 65     this reason the
005840:  72 65 61 72 65 20 61 20 20 77 68 6F 6C 65 20 20    reare a  whole  
005850:  73 65 74 20 6F 66 20 69 6E 73 74 72 75 63 74 69    set of instructi
005860:  6F 6E 73 20 6F 6E 20 74 68 65 5A 38 30 20 20 74    ons on theZ80  t
005870:  68 61 74 20 64 65 61 6C 20 77 69 74 68 20 20 72    hat deal with  r
005880:  65 67 69 73 74 65 72 73 20 69 6E 20 70 61 69 72    egisters in pair
005890:  73 2E 54 68 65 20 70 61 69 72 73 20 61 72 65 20    s.The pairs are 
0058A0:  20 42 43 2C 20 20 44 45 2C 20 61 6E 64 20 20 48     BC,  DE, and  H
0058B0:  4C 20 72 65 67 69 73 74 65 72 70 61 69 72 73 2E    L registerpairs.
0058C0:  A0 A0 20 54 68 65 20 74 77 6F 20 72 65 67 69 73    .. The two regis
0058D0:  74 65 72 73 20 68 6F 6C 64 20 20 64 69 66 66 65    ters hold  diffe
0058E0:  72 65 6E 74 20 70 61 72 74 73 6F 66 20 61 20 6E    rent partsof a n
0058F0:  75 6D 62 65 72 2E 20 43 6F 6E 73 69 64 65 72 20    umber. Consider 
005900:  74 68 65 20 64 65 63 69 6D 61 6C 20 6E 75 6D 62    the decimal numb
005910:  65 72 32 37 2E 20 57 65 20 20 63 61 6E 20 74 68    er27. We  can th
005920:  69 6E 6B 20 6F 66 20 74 68 69 73 20 61 73 20 20    ink of this as  
005930:  58 20 68 61 76 69 6E 67 20 74 77 6F 70 61 72 74    X having twopart
005940:  73 3B 20 74 68 65 20 68 69 67 68 20 70 61 72 74    s; the high part
005950:  20 28 20 6F 72 20 62 79 74 65 29 20 69 73 20 74     ( or byte) is t
005960:  68 65 20 32 73 69 6E 63 65 20 69 74 20 72 65 70    he 2since it rep
005970:  72 65 73 65 6E 74 73 20 20 32 2A 31 30 20 2C 20    resents  2*10 , 
005980:  74 68 65 20 6C 6F 77 20 70 61 72 74 28 20 6F 72    the low part( or
005990:  20 20 62 79 74 65 20 29 20 20 69 73 20 20 74 68      byte )  is  th
0059A0:  65 20 37 2C 20 20 20 73 69 6E 63 65 20 69 74 20    e 7,   since it 
0059B0:  6F 6E 6C 79 72 65 70 6C 65 73 65 6E 74 73 20 20    onlyreplesents  
0059C0:  37 2A 31 20 2E 20 20 54 68 65 20 20 74 6F 74 61    7*1 .  The  tota
0059D0:  6C 20 20 6E 75 6D 62 65 72 20 69 73 32 2A 31 30    l  number is2*10
0059E0:  20 2B 20 37 2A 31 20 3D 20 32 37 2E 20 20 45 61     + 7*1 = 27.  Ea
0059F0:  63 68 20 64 69 67 69 74 20 63 61 6E 20 6F 6E 6C    ch digit can onl
005A00:  79 20 62 65 30 20 2D 20 39 20 20 69 2E 65 2E 20    y be0 - 9  i.e. 
005A10:  31 30 20 20 64 69 66 66 65 72 65 6E 74 20 6E 75    10  different nu
005A20:  6D 62 65 72 73 2E A3 20 41 20 20 73 69 6E 67 6C    mbers.£ A  singl
005A30:  65 AF 00 20 72 65 67 69 73 74 65 72 20 63 61 6E    e.. register can
005A40:  20 68 6F 6C 64 20 20 30 2D 32 35 35 2C 20 32 35     hold  0-255, 25
005A50:  36 64 69 66 66 65 72 65 6E 74 20 20 20 6E 75 6D    6different   num
005A60:  62 65 72 73 2E 20 20 20 49 66 20 20 77 65 20 20    bers.   If  we  
005A70:  20 70 75 74 20 20 74 77 6F 72 65 67 69 73 74 65     put  tworegiste
005A80:  72 73 20 73 69 64 65 20 62 79 20 73 69 64 65 2C    rs side by side,
005A90:  20 69 2E 65 2E 20 20 48 4C 20 2C 20 74 68 65 20     i.e.  HL , the 
005AA0:  48 72 65 67 69 73 74 65 72 20 68 6F 6C 64 69 6E    Hregister holdin
005AB0:  67 20 74 68 65 20 48 69 67 68 20 62 79 74 65 20    g the High byte 
005AC0:  61 6E 64 20 74 68 65 20 4C 68 6F 6C 64 69 6E 67    and the Lholding
005AD0:  20 74 68 65 20 20 4C 6F 77 20 20 62 79 74 65 2C     the  Low  byte,
005AE0:  20 74 68 65 6E 20 77 65 20 63 61 6E 20 68 6F 6C     then we can hol
005AF0:  64 69 6E 20 74 68 65 20 72 65 67 69 73 74 65 72    din the register
005B00:  20 70 61 69 72 20 20 48 2A 32 35 36 20 2B 20 4C     pair  H*256 + L
005B10:  2A 31 20 69 6E 20 74 68 65 73 61 6D 65 20 77 61    *1 in thesame wa
005B20:  79 20 61 73 20 32 37 20 3D 20 32 2A 31 30 20 2B    y as 27 = 2*10 +
005B30:  20 37 2A E8 4F 31 2E 20 54 68 65 20 6D 61 78 69     7*.O1. The maxi
005B40:  6D 75 6D 74 68 61 74 20 63 61 6E 20 20 62 65 20    mumthat can  be 
005B50:  20 68 65 6C 64 20 20 69 6E 20 61 20 20 72 65 67     held  in a  reg
005B60:  69 73 74 65 72 20 20 70 61 69 72 69 73 20 20 74    ister  pairis  t
005B70:  68 65 72 65 66 6F 72 65 20 20 20 32 35 35 20 2A    herefore   255 *
005B80:  20 32 35 36 20 2B 20 32 35 35 20 3D 20 36 35 35     256 + 255 = 655
005B90:  33 35 2E 42 79 20 63 6F 6E 76 65 6E 74 69 6F 6E    35.By convention
005BA0:  20 20 74 68 65 20 20 68 69 67 68 20 20 62 79 74      the  high  byt
005BB0:  65 20 69 73 20 73 74 6F 72 65 64 69 6E 20 20 74    e is storedin  t
005BC0:  68 65 20 20 66 69 72 73 74 20 20 72 65 67 69 73    he  first  regis
005BD0:  74 65 72 20 69 6E 20 74 68 65 20 72 65 67 69 73    ter in the regis
005BE0:  74 65 72 70 61 69 72 20 6E 61 6D 65 2E A0 A0 20    terpair name... 
005BF0:  57 65 20 20 63 61 6E 20 20 6C 6F 61 64 20 61 6E    We  can  load an
005C00:  79 20 6F 66 20 74 68 65 20 72 65 67 69 73 74 65    y of the registe
005C10:  72 20 70 61 69 72 73 77 69 74 68 20 61 20 6E 75    r pairswith a nu
005C20:  6D 62 65 72 20 62 65 74 77 65 65 6E 20 30 20 2D    mber between 0 -
005C30:  20 36 35 35 33 F1 BA 35 20 64 69 72 65 63 74 6C     6553..5 directl
005C40:  79 75 73 69 6E 67 20 69 6E 73 74 72 75 63 74 69    yusing instructi
005C50:  6F 6E 73 20 6C 69 6B 65 20 4C 44 20 48 4C 2C 6E    ons like LD HL,n
005C60:  6E 2E A0 A0 20 4A 75 73 74 20 61 73 20 77 65 20    n... Just as we 
005C70:  63 61 6E 20 63 6F 6D 62 69 6E 65 20 74 77 6F 20    can combine two 
005C80:  72 65 67 69 73 74 65 72 73 20 74 6F 68 6F 6C 64    registers tohold
005C90:  20 6E 75 6D 62 65 72 73 20 75 70 20 74 6F 20 36     numbers up to 6
005CA0:  35 35 33 35 2C 20 77 65 20 63 61 6E 20 63 6F 6D    5535, we can com
005CB0:  62 69 6E 65 61 64 6A 61 63 65 6E 74 20 20 20 20    bineadjacent    
005CC0:  20 6D 65 6D 6F 72 79 20 20 20 20 20 6C 6F 63 61     memory     loca
005CD0:  74 69 6F 6E 73 2E 20 20 20 20 42 79 63 6F 6E 76    tions.    Byconv
005CE0:  65 6E 74 69 6F 6E 20 74 68 65 20 20 4C 6F 77 20    ention the  Low 
005CF0:  20 62 79 74 65 20 69 73 20 68 65 6C 64 20 69 6E     byte is held in
005D00:  20 74 68 65 6C 6F 63 61 74 69 6F 6E 20 77 69 74     thelocation wit
005D10:  68 20 74 68 65 20 4C 6F 77 65 72 20 61 64 64 72    h the Lower addr
005D20:  65 73 73 2E A3 20 57 65 20 20 63 61 6E 20 20 74    ess.£ We  can  t
005D30:  68 65 72 65 66 6F 72 19 C9 65 20 6C 6F 61 64 20    herefor..e load 
005D40:  61 20 72 65 67 69 73 74 65 72 20 70 61 69 72 77    a register pairw
005D50:  69 74 68 20 20 74 68 65 20 20 63 6F 6E 74 65 6E    ith  the  conten
005D60:  74 73 20 6F 66 20 61 20 20 70 61 69 72 20 6F 66    ts of a  pair of
005D70:  20 6D 65 6D 6F 72 79 6C 6F 63 61 74 69 6F 6E 73     memorylocations
005D80:  2C 20 20 20 77 69 74 68 20 20 20 69 6E 73 74 72    ,   with   instr
005D90:  75 63 74 69 6F 6E 73 20 20 20 20 6C 69 6B 65 4C    uctions    likeL
005DA0:  44 20 44 45 2C 28 6E 6E 29 20 2E 20 20 20 20 54    D DE,(nn) .    T
005DB0:  68 69 73 20 20 20 69 6E 73 74 72 75 63 74 69 6F    his   instructio
005DC0:  6E 20 20 20 20 69 73 65 71 75 69 76 61 6C 65 6E    n    isequivalen
005DD0:  74 20 74 6F 20 74 68 65 20 6E 6F 6E 2D 76 61 6C    t to the non-val
005DE0:  69 64 20 69 6E 73 74 72 75 63 74 69 6F 6E 73 4C    id instructionsL
005DF0:  44 20 45 2C 28 6E 6E 29 20 61 6E 64 20 20 4C 44    D E,(nn) and  LD
005E00:  20 44 2C 28 6E 6E 2B 31 29 2E A0 A0 20 53 69 6D     D,(nn+1)... Sim
005E10:  69 6C 61 72 6C 79 2C 20 20 77 65 20 63 61 6E 20    ilarly,  we can 
005E20:  6C 6F 61 64 20 74 68 65 20 63 6F 6E 74 65 6E 74    load the content
005E30:  73 20 6F 66 61 20 72 65 67 82 24 69 73 74 65 72    s ofa reg.$ister
005E40:  20 70 61 69 72 20 69 6E 74 6F 20 20 61 20 70 61     pair into  a pa
005E50:  69 72 20 20 6F 66 20 20 6D 65 6D 6F 72 79 6C 6F    ir  of  memorylo
005E60:  63 61 74 69 6F 6E 73 2C 20 20 69 2E 65 2E 20 20    cations,  i.e.  
005E70:  20 4C 44 20 28 6E 6E 29 2C 42 43 20 20 77 68 69     LD (nn),BC  whi
005E80:  63 68 20 20 69 73 65 71 75 69 76 61 6C 65 6E 74    ch  isequivalent
005E90:  20 20 20 74 6F 20 20 20 74 68 65 20 20 20 20 74       to   the    t
005EA0:  77 6F 20 20 20 6E 6F 6E 2D 76 61 6C 69 64 69 6E    wo   non-validin
005EB0:  73 74 72 75 63 74 69 6F 6E 73 20 4C 44 20 28 6E    structions LD (n
005EC0:  6E 29 2C 43 20 61 6E 64 20 20 4C 44 20 28 6E 6E    n),C and  LD (nn
005ED0:  2B 31 29 2C 42 2E 20 54 68 65 72 65 20 20 20 61    +1),B. There   a
005EE0:  72 65 20 20 6E 6F 20 20 69 6E 73 74 72 75 63 74    re  no  instruct
005EF0:  69 6F 6E 73 20 20 74 6F 20 20 6C 6F 61 64 72 65    ions  to  loadre
005F00:  67 69 73 74 65 72 20 20 70 61 69 72 73 20 20 77    gister  pairs  w
005F10:  69 74 68 20 20 74 68 65 20 20 63 6F 6E 74 65 6E    ith  the  conten
005F20:  74 73 20 20 6F 66 61 6E 6F 74 68 65 72 20 72 65    ts  ofanother re
005F30:  67 69 73 74 65 72 20 70 61 69 72 F3 6B 2E 20 20    gister pair.k.  
005F40:  54 77 6F 20 69 6E 73 74 72 75 63 74 69 6F 6E 73    Two instructions
005F50:  74 68 65 20 66 6F 72 6D 20 20 4C 44 20 72 2C 72    the form  LD r,r
005F60:  27 20 20 61 72 65 20 20 75 73 75 61 6C 6C 79 20    '  are  usually 
005F70:  20 75 73 65 64 20 74 6F 70 65 72 66 6F 72 6D 20     used toperform 
005F80:  73 75 63 68 20 61 6E 20 6F 70 65 72 61 74 69 6F    such an operatio
005F90:  6E 2E A0 A0 20 54 68 65 72 65 20 20 69 73 20 20    n... There  is  
005FA0:  6F 6E 65 20 20 69 6E 73 74 72 75 63 74 69 6F 6E    one  instruction
005FB0:  20 20 73 69 6D 69 6C 61 72 20 74 6F 74 68 69 73      similar tothis
005FC0:  20 74 79 70 65 3A 20 20 45 58 20 44 45 2C 48 4C     type:  EX DE,HL
005FD0:  2E 20 20 49 74 20 20 45 58 63 68 61 6E 67 65 73    .  It  EXchanges
005FE0:  20 74 68 65 63 6F 6E 74 65 6E 74 73 20 6F 66 20     thecontents of 
005FF0:  74 68 65 20 20 44 45 20 20 72 65 67 69 73 74 65    the  DE  registe
006000:  72 20 20 70 61 69 72 20 77 69 74 68 74 68 65 20    r  pair withthe 
006010:  63 6F 6E 74 65 6E 74 73 20 6F 66 20 74 68 65 20    contents of the 
006020:  48 4C 20 72 65 67 69 73 74 65 72 20 70 61 69 72    HL register pair
006030:  2E A3 20 20 53 75 6D 6D 61 72 79 20 2D 87 B9 20    .£  Summary -.. 
006040:  6C 6F 61 64 69 6E 67 20 72 65 67 69 73 74 65 72    loading register
006050:  20 70 61 69 72 73 A0 A0 4C 44 20 64 64 2C 6E 6E     pairs..LD dd,nn
006060:  20 20 20 77 68 65 72 65 20 64 64 20 69 73 20 61       where dd is a
006070:  6E 79 20 72 65 67 69 73 74 65 72 20 70 61 69 72    ny register pair
006080:  20 20 20 20 20 20 20 20 20 20 20 42 43 2C 20 44               BC, D
006090:  45 2C 20 61 6E 64 20 48 4C 2E A0 20 20 20 20 20    E, and HL..     
0060A0:  20 20 20 20 20 20 20 6E 6E 20 20 69 73 20 61 20           nn  is a 
0060B0:  6E 75 6D 62 65 72 20 30 20 2D 20 36 35 35 33 35    number 0 - 65535
0060C0:  A0 A0 4C 44 20 64 64 2C 28 6E 6E 29 A0 A0 4C 44    ..LD dd,(nn)..LD
0060D0:  20 28 6E 6E 29 2C 64 64 A0 A0 45 58 20 44 45 2C     (nn),dd..EX DE,
0060E0:  48 4C 20 20 20 20 65 78 63 68 61 6E 67 65 73 20    HL    exchanges 
0060F0:  72 65 67 69 73 74 65 72 20 63 6F 6E 74 65 6E 74    register content
006100:  73 A3 20 20 20 20 20 20 20 20 20 49 4E 44 49 52    s£         INDIR
006110:  45 43 54 20 41 44 44 52 45 53 53 49 4E 47 A0 A0    ECT ADDRESSING..
006120:  20 55 70 20 20 20 74 6F 20 20 6E 6F 77 20 20 20     Up   to  now   
006130:  20 77 65 20 20 20 68 61 76 65 20 20 20 6F 6E 46     we   have   onF
006140:  EF 6C 79 20 20 20 75 73 65 64 69 6E 73 74 72 75    .ly   usedinstru
006150:  63 74 69 6F 6E 73 20 69 6E 20 77 68 69 63 68 20    ctions in which 
006160:  20 6D 65 6D 6F 72 79 20 20 6C 6F 63 61 74 69 6F     memory  locatio
006170:  6E 73 68 61 76 65 20 20 62 65 65 6E 20 20 73 70    nshave  been  sp
006180:  65 63 69 66 69 65 64 20 20 64 69 72 65 63 74 6C    ecified  directl
006190:  79 20 20 69 6E 20 20 74 68 65 69 6E 73 74 72 75    y  in  theinstru
0061A0:  63 74 69 6F 6E 2E 20 41 6E 6F 74 68 65 72 20 20    ction. Another  
0061B0:  75 73 65 66 75 6C 20 20 6D 65 74 68 6F 64 20 20    useful  method  
0061C0:  6F 66 73 70 65 63 69 66 79 69 6E 67 20 61 20 6D    ofspecifying a m
0061D0:  65 6D 6F 72 79 20 6C 6F 63 61 74 69 6F 6E 20 69    emory location i
0061E0:  73 20 74 6F 20 75 73 65 20 61 6E 75 6D 62 65 72    s to use anumber
0061F0:  20 68 65 6C 64 20 69 6E 20 61 20 72 65 67 69 73     held in a regis
006200:  74 65 72 20 20 70 61 69 72 2C 20 20 20 6B 6E 6F    ter  pair,   kno
006210:  77 6E 61 73 20 69 6E 64 69 72 65 63 74 20 61 64    wnas indirect ad
006220:  64 72 65 73 73 69 6E 67 2E 20 20 54 68 65 20 69    dressing.  The i
006230:  6E 73 74 72 75 63 74 69 6F 6E 4C 44 20 42 2C 28    nstructionLD B,(
006240:  48 C4 4A 4C 29 20 66 6F 72 20 65 78 61 6D 70 6C    H.JL) for exampl
006250:  65 20 20 61 6C 6C 6F 77 73 20 75 73 20 74 6F 20    e  allows us to 
006260:  6C 6F 61 64 6F 72 20 63 6F 70 79 20 74 6F 20 74    loador copy to t
006270:  68 65 20 20 42 20 20 72 65 67 69 73 74 65 72 20    he  B  register 
006280:  74 68 65 20 63 6F 6E 74 65 6E 74 73 6F 66 20 74    the contentsof t
006290:  68 65 20 6D 65 6D 6F 72 79 20 6C 6F 63 61 74 69    he memory locati
0062A0:  6F 6E 20 77 68 6F 73 65 20 20 61 64 64 72 65 73    on whose  addres
0062B0:  73 20 69 73 69 6E 20 74 68 65 20 48 4C 20 72 65    s isin the HL re
0062C0:  67 69 73 74 65 72 20 70 61 69 72 2E A0 A0 20 41    gister pair... A
0062D0:  6C 6C 20 20 73 69 6E 67 6C 65 20 20 72 65 67 69    ll  single  regi
0062E0:  73 74 65 72 73 20 20 63 61 6E 20 20 62 65 20 20    sters  can  be  
0062F0:  6C 6F 61 64 65 64 75 73 69 6E 67 20 74 68 65 20    loadedusing the 
006300:  48 4C 20 72 65 67 69 73 74 65 72 20 70 61 69 72    HL register pair
006310:  20 61 73 20 61 20 70 6F 69 6E 74 65 72 2E A0 20     as a pointer.. 
006320:  53 69 6D 69 6C 61 72 6C 79 20 2C 20 20 6D 65 6D    Similarly ,  mem
006330:  6F 72 79 20 20 6C 6F 63 61 74 69 6F 6E 73 20 20    ory  locations  
006340:  63 61 6E 45 1B 20 20 62 65 6C 6F 61 64 65 64 20    canE.  beloaded 
006350:  20 20 69 6E 64 69 72 65 63 74 6C 79 20 20 66 72      indirectly  fr
006360:  6F 6D 20 20 20 61 6E 79 20 20 20 73 69 6E 67 6C    om   any   singl
006370:  65 72 65 67 69 73 74 65 72 20 75 73 69 6E 67 20    eregister using 
006380:  74 68 65 20 63 6F 6E 74 65 6E 74 73 20 20 6F 66    the contents  of
006390:  20 20 74 68 65 20 20 48 4C 72 65 67 69 73 74 65      the  HLregiste
0063A0:  72 20 70 61 69 72 20 61 73 20 61 64 64 72 65 73    r pair as addres
0063B0:  73 20 69 2E 65 2E 20 4C 44 20 28 48 4C 29 2C 43    s i.e. LD (HL),C
0063C0:  2E A3 20 55 73 65 20 6F 66 20 20 74 68 65 20 20    .£ Use of  the  
0063D0:  42 43 20 20 61 6E 64 20 20 44 45 20 20 72 65 67    BC  and  DE  reg
0063E0:  69 73 74 65 72 73 20 66 6F 72 69 6E 64 69 72 65    isters forindire
0063F0:  63 74 20 61 64 64 72 65 73 73 69 6E 67 20 69 73    ct addressing is
006400:  20 6C 69 6D 69 74 65 64 20 74 6F 20 74 68 65 20     limited to the 
006410:  20 41 72 65 67 69 73 74 65 72 2E 20 69 2E 65 2E     Aregister. i.e.
006420:  20 4C 44 20 28 44 45 29 2C 41 20 3B 4C 44 20 41     LD (DE),A ;LD A
006430:  2C 28 42 43 29 20 65 74 63 2E A3 20 20 20 53 75    ,(BC) etc.£   Su
006440:  6D 6D 61 72 79 13 62 20 2D 20 20 69 6E 64 69 72    mmary.b -  indir
006450:  65 63 74 20 61 64 64 72 65 73 73 69 6E 67 A0 A0    ect addressing..
006460:  4C 44 20 72 2C 28 48 4C 29 20 77 68 65 72 65 20    LD r,(HL) where 
006470:  72 20 69 73 20 61 6E 79 20 73 69 6E 67 6C 65 20    r is any single 
006480:  72 65 67 69 73 74 65 72 20 20 20 20 20 20 20 20    register        
006490:  20 20 41 2C 42 2C 43 2C 44 2C 45 2C 48 2C 20 6F      A,B,C,D,E,H, o
0064A0:  72 20 4C 2E A0 4C 44 20 28 48 4C 29 2C 72 A0 A0    r L..LD (HL),r..
0064B0:  4C 44 20 41 2C 28 42 43 29 A0 4C 44 20 41 2C 28    LD A,(BC).LD A,(
0064C0:  44 45 29 A0 4C 44 20 28 42 43 29 2C 41 A0 4C 44    DE).LD (BC),A.LD
0064D0:  20 28 44 45 29 2C 41 A3 20 20 20 20 20 20 41 44     (DE),A£      AD
0064E0:  44 49 54 49 4F 4E 53 20 41 4E 44 20 54 48 45 20    DITIONS AND THE 
0064F0:  43 41 52 52 59 20 46 4C 41 47 A0 A0 20 42 6F 74    CARRY FLAG.. Bot
006500:  68 20 73 69 6E 67 6C 65 20 20 72 65 67 69 73 74    h single  regist
006510:  65 72 20 61 6E 64 20 72 65 67 69 73 74 65 72 20    er and register 
006520:  70 61 69 72 61 64 64 69 74 69 6F 6E 20 61 72 65    pairaddition are
006530:  20 70 6F 73 73 69 62 6C 65 20 6F 6E 20 74 68 65     possible on the
006540:  20 5A 38 30 2E A0 A0 16 A8 20 41 6C 6C 20 20 20     Z80..... All   
006550:  73 69 6E 67 6C 65 20 20 20 72 65 67 69 73 74 65    single   registe
006560:  72 20 20 61 64 64 69 74 69 6F 6E 73 20 20 61 72    r  additions  ar
006570:  65 70 65 72 66 6F 72 6D 65 64 20 77 69 74 68 20    eperformed with 
006580:  74 68 65 20 41 63 63 75 6D 75 6C 61 74 6F 72 2E    the Accumulator.
006590:  20 41 20 6E 75 6D 62 65 72 28 20 69 2E 65 2E 20     A number( i.e. 
0065A0:  20 41 44 44 20 41 2C 36 20 29 2C 20 20 74 68 65     ADD A,6 ),  the
0065B0:  20 20 63 6F 6E 74 65 6E 74 73 20 20 6F 66 20 20      contents  of  
0065C0:  61 72 65 67 69 73 74 65 72 20 28 69 2E 65 2E 20    aregister (i.e. 
0065D0:  41 44 44 20 41 2C 42 29 2C 20 6F 72 20 74 68 65    ADD A,B), or the
0065E0:  20 63 6F 6E 74 65 6E 74 73 6F 66 20 20 61 6E 20     contentsof  an 
0065F0:  20 20 69 6E 64 69 72 65 63 74 6C 79 20 20 20 61      indirectly   a
006600:  64 64 72 65 73 73 65 64 20 20 20 6D 65 6D 6F 72    ddressed   memor
006610:  79 6C 6F 63 61 74 69 6F 6E 20 20 75 73 69 6E 67    ylocation  using
006620:  20 20 74 68 65 20 20 48 4C 20 20 72 65 67 69 73      the  HL  regis
006630:  74 65 72 20 20 70 61 69 72 28 69 2E 65 2E 20 41    ter  pair(i.e. A
006640:  44 44 20 41 2C 28 48 4C 29 06 1D 20 29 20 63 61    DD A,(HL).. ) ca
006650:  6E 20 62 65 20 61 64 64 65 64 20 20 74 6F 20 20    n be added  to  
006660:  74 68 65 41 63 63 75 6D 75 6C 61 74 6F 72 2E 20    theAccumulator. 
006670:  54 68 65 20 72 65 73 75 6C 74 20 20 69 73 20 20    The result  is  
006680:  68 65 6C 64 20 69 6E 20 74 68 65 41 63 63 75 6D    held in theAccum
006690:  75 6C 61 74 6F 72 2E 20 20 54 68 65 20 73 6F 75    ulator.  The sou
0066A0:  72 63 65 20 6F 66 20 74 68 65 20 61 64 64 69 74    rce of the addit
0066B0:  69 6F 6E 69 73 20 75 6E 61 66 66 65 63 74 65 64    ionis unaffected
0066C0:  2E A0 A0 20 52 65 67 69 73 74 65 72 20 20 70 61    ... Register  pa
0066D0:  69 72 20 61 64 64 69 74 69 6F 6E 20 69 73 20 70    ir addition is p
0066E0:  65 72 66 6F 72 6D 65 64 20 69 6E 63 6F 6E 6A 75    erformed inconju
0066F0:  6E 63 74 69 6F 6E 20 20 77 69 74 68 20 20 74 68    nction  with  th
006700:  65 20 48 4C 20 72 65 67 69 73 74 65 72 20 70 61    e HL register pa
006710:  69 72 2C 61 6E 64 20 20 63 61 6E 20 20 6F 6E 6C    ir,and  can  onl
006720:  79 20 20 69 6E 76 6F 6C 76 65 20 20 42 43 20 6F    y  involve  BC o
006730:  72 20 44 45 20 28 20 69 2E 65 2E 41 44 44 20 48    r DE ( i.e.ADD H
006740:  4C 2C 42 43 20 20 6F 72 20 20 41 1C 87 44 44 20    L,BC  or  A..DD 
006750:  48 4C 2C 44 45 20 29 2E 20 20 20 41 67 61 69 6E    HL,DE ).   Again
006760:  20 20 74 68 65 74 68 65 20 20 72 65 73 75 6C 74      thethe  result
006770:  20 69 73 20 68 65 6C 64 20 69 6E 20 20 74 68 65     is held in  the
006780:  20 20 48 4C 20 72 65 67 69 73 74 65 72 70 61 69      HL registerpai
006790:  72 2C 20 20 61 6E 64 20 20 74 68 65 20 6F 74 68    r,  and  the oth
0067A0:  65 72 20 20 72 65 67 69 73 74 65 72 20 20 70 61    er  register  pa
0067B0:  69 72 20 69 73 75 6E 61 66 66 65 63 74 65 64 2E    ir isunaffected.
0067C0:  A3 20 53 69 6E 67 6C 65 20 20 61 6E 64 20 20 64    £ Single  and  d
0067D0:  6F 75 62 6C 65 20 20 72 65 67 69 73 74 65 72 20    ouble  register 
0067E0:  61 64 64 69 74 69 6F 6E 73 77 69 6C 6C 20 20 6F    additionswill  o
0067F0:  62 76 69 6F 75 73 6C 79 20 20 6F 6E 6C 79 20 20    bviously  only  
006800:  67 69 76 65 20 20 74 68 65 20 63 6F 72 72 65 63    give  the correc
006810:  74 72 65 73 75 6C 74 20 20 69 66 20 20 74 68 65    tresult  if  the
006820:  20 20 61 6E 73 77 65 72 20 69 73 20 6C 65 73 73      answer is less
006830:  20 74 68 61 6E 20 74 68 65 6D 61 78 69 6D 75 6D     than themaximum
006840:  20 6E 75 6D 62 65 72 20 74 68 65 20 72 09 57 65     number the r.We
006850:  67 69 73 74 65 72 28 73 29 20 63 61 6E 20 68 6F    gister(s) can ho
006860:  6C 64 2E 49 66 20 69 74 20 69 73 20 67 72 65 61    ld.If it is grea
006870:  74 65 72 20 74 68 61 6E 20 74 68 69 73 20 20 61    ter than this  a
006880:  20 20 63 61 72 72 79 20 20 69 73 67 65 6E 65 72      carry  isgener
006890:  61 74 65 64 2E 20 20 54 68 65 20 70 72 6F 63 65    ated.  The proce
0068A0:  73 73 6F 72 20 20 20 68 6F 6C 64 73 20 20 20 74    ssor   holds   t
0068B0:  68 69 73 73 69 6E 67 6C 65 20 20 62 69 74 20 20    hissingle  bit  
0068C0:  6F 66 20 20 69 6E 66 6F 72 6D 61 74 69 6F 6E 20    of  information 
0068D0:  6F 72 20 66 6C 61 67 2C 20 73 6F 74 68 61 74 20    or flag, sothat 
0068E0:  20 61 63 74 69 6F 6E 20 20 20 63 61 6E 20 20 62     action   can  b
0068F0:  65 20 20 74 61 6B 65 6E 20 20 6F 76 65 72 20 20    e  taken  over  
006900:  74 68 65 6F 63 63 75 72 72 65 6E 63 65 20 6F 66    theoccurrence of
006910:  20 74 68 65 20 63 61 72 72 79 2E 20 20 20 49 66     the carry.   If
006920:  20 74 68 65 72 65 20 20 68 61 73 62 65 65 6E 20     there  hasbeen 
006930:  20 61 20 20 63 61 72 72 79 20 20 6F 6E 20 20 74     a  carry  on  t
006940:  68 65 20 20 6C 61 73 74 20 61 72 69 74 68 6D 1E    he  last arithm.
006950:  0E 65 74 69 63 6F 70 65 72 61 74 69 6F 6E 20 74    .eticoperation t
006960:  68 65 20 63 61 72 72 79 20 69 73 20 73 61 69 64    he carry is said
006970:  20 74 6F 20 62 65 20 73 65 74 20 74 6F 61 20 20     to be set toa  
006980:  22 31 22 20 2E 20 20 49 66 20 6E 6F 74 20 73 65    "1" .  If not se
006990:  74 20 20 69 74 20 69 73 20 73 61 69 64 20 74 6F    t  it is said to
0069A0:  20 62 65 20 61 22 30 22 2E A0 A0 20 41 20 73 65     be a"0"... A se
0069B0:  63 6F 6E 64 20 66 6F 72 6D 20 6F 66 20 61 64 64    cond form of add
0069C0:  69 74 69 6F 6E 20 69 73 20 20 61 76 61 69 6C 61    ition is  availa
0069D0:  62 6C 65 6F 6E 20 20 74 68 65 20 20 5A 38 30 20    bleon  the  Z80 
0069E0:  2C 20 20 20 66 6F 72 20 20 20 62 6F 74 68 20 20    ,   for   both  
0069F0:  73 69 6E 67 6C 65 20 20 61 6E 64 6D 75 6C 74 69    single  andmulti
006A00:  70 6C 65 20 72 65 67 69 73 74 65 72 73 2C 20 20    ple registers,  
006A10:  6B 6E 6F 77 6E 20 20 61 73 20 20 61 64 64 20 77    known  as  add w
006A20:  69 74 68 63 61 72 72 79 3B 20 20 61 62 62 72 65    ithcarry;  abbre
006A30:  76 69 61 74 65 64 20 20 74 6F 20 20 41 44 43 2E    viated  to  ADC.
006A40:  20 20 20 54 68 65 79 20 61 72 65 73 69 6D 69 6C       They aresimil
006A50:  61 BC 0A 72 20 74 6F 20 41 44 44 20 20 65 78 63    a..r to ADD  exc
006A60:  65 70 74 20 74 68 61 74 20 69 66 20 74 68 65 20    ept that if the 
006A70:  43 61 72 72 79 66 6C 61 67 20 20 69 73 20 20 73    Carryflag  is  s
006A80:  65 74 20 20 62 65 66 6F 72 65 20 20 74 68 65 20    et  before  the 
006A90:  20 61 64 64 69 74 69 6F 6E 20 74 68 65 72 65 73     addition theres
006AA0:  75 6C 74 20 69 73 20 20 69 6E 63 72 65 6D 65 6E    ult is  incremen
006AB0:  74 65 64 20 20 20 62 79 20 20 20 6F 6E 65 2E 20    ted   by   one. 
006AC0:  20 20 41 6C 6C 70 72 65 76 69 6F 75 73 6C 79 20      Allpreviously 
006AD0:  6D 65 6E 74 69 6F 6E 65 64 20 20 20 41 44 44 20    mentioned   ADD 
006AE0:  20 69 6E 73 74 72 75 63 74 69 6F 6E 73 63 61 6E     instructionscan
006AF0:  20 62 65 20 70 65 72 66 6F 72 6D 65 64 20 61 73     be performed as
006B00:  20 41 44 43 2E A3 20 41 44 43 20 69 6E 73 74 72     ADC.£ ADC instr
006B10:  75 63 74 69 6F 6E 73 20 63 61 6E 20 62 65 20 73    uctions can be s
006B20:  74 72 75 6E 67 20 74 6F 67 65 74 68 65 72 74 6F    trung togetherto
006B30:  20 70 65 72 66 6F 72 6D 20 20 74 68 65 20 20 61     perform  the  a
006B40:  64 64 69 74 69 6F 6E 20 6F 66 20 74 77 6F 20 6E    ddition of two n
006B50:  75 6D 62 B0 D5 65 72 73 6F 66 20 61 6E 79 20 20    umb..ersof any  
006B60:  6C 65 6E 67 74 68 2C 20 20 61 73 20 20 74 68 65    length,  as  the
006B70:  20 20 65 78 61 6D 70 6C 65 73 20 20 77 69 6C 6C      examples  will
006B80:  73 68 6F 77 2E A3 20 20 20 53 75 6D 6D 61 72 79    show.£   Summary
006B90:  20 2D 20 20 61 64 64 69 74 69 6F 6E A0 A0 41 44     -  addition..AD
006BA0:  44 20 41 2C 6E 20 20 20 20 77 68 65 72 65 20 6E    D A,n    where n
006BB0:  20 69 73 20 61 20 6E 75 6D 62 65 72 20 30 20 2D     is a number 0 -
006BC0:  20 32 35 35 A0 A0 41 44 44 20 41 2C 72 20 20 20     255..ADD A,r   
006BD0:  20 77 68 65 72 65 20 20 72 20 20 69 73 20 20 61     where  r  is  a
006BE0:  6E 79 20 20 20 73 69 6E 67 6C 65 A0 20 20 20 20    ny   single.    
006BF0:  20 20 20 20 20 20 20 72 65 67 69 73 74 65 72 A0           register.
006C00:  41 44 44 20 41 2C 28 48 4C 29 A0 A0 41 44 44 20    ADD A,(HL)..ADD 
006C10:  48 4C 2C 42 43 A0 41 44 44 20 48 4C 2C 44 45 A0    HL,BC.ADD HL,DE.
006C20:  A0 A0 41 44 43 20 41 2C 6E A0 A0 41 44 43 20 41    ..ADC A,n..ADC A
006C30:  2C 72 A0 A0 41 44 43 20 41 2C 28 48 4C 29 A0 A0    ,r..ADC A,(HL)..
006C40:  41 44 43 20 48 4C 2C 42 43 A0 41 44 43 20 48 4C    ADC HL,BC.ADC HL
006C50:  2C 44 45 A3 20 D2 AE 20 20 20 53 55 42 54 52 41    ,DE£ ..   SUBTRA
006C60:  43 54 49 4F 4E 20 41 4E 44 20 54 48 45 20 43 41    CTION AND THE CA
006C70:  52 52 59 20 46 4C 41 47 A0 A0 20 53 69 6E 67 6C    RRY FLAG.. Singl
006C80:  65 20 72 65 67 69 73 74 65 72 20 73 75 62 74 72    e register subtr
006C90:  61 63 74 69 6F 6E 20 74 61 6B 65 73 20 70 6C 61    action takes pla
006CA0:  63 65 77 69 74 68 20 74 68 65 20 41 63 63 75 6D    cewith the Accum
006CB0:  75 6C 61 74 6F 72 2E 20 20 41 6C 6C 20 20 74 68    ulator.  All  th
006CC0:  65 20 66 6F 72 6D 73 20 6F 66 41 44 44 20 20 63    e forms ofADD  c
006CD0:  61 6E 20 20 62 65 20 20 20 75 73 65 64 20 20 69    an  be   used  i
006CE0:  6E 20 20 20 73 75 62 74 72 61 63 74 2E 20 20 54    n   subtract.  T
006CF0:  68 65 61 62 62 72 65 76 69 61 74 69 6F 6E 20 20    heabbreviation  
006D00:  6F 72 20 20 6D 6E 65 6D 6F 6E 69 63 20 53 55 42    or  mnemonic SUB
006D10:  20 69 73 20 61 6C 77 61 79 73 77 72 69 74 74 65     is alwayswritte
006D20:  6E 20 77 69 74 68 6F 75 74 20 74 68 65 20 41 2C    n without the A,
006D30:  20 77 68 69 63 68 20 69 73 20 69 6D 70 6C 69 65     which is implie
006D40:  64 2E 48 65 6E 63 65 20 74 68 65 20 69 6E 73 74    d.Hence the inst
006D50:  72 75 63 74 69 6F 6E FE 61 73 20 61 72 65 20 53    ruction.as are S
006D60:  55 42 20 6E 2C 20 53 55 42 20 72 2C 61 6E 64 20    UB n, SUB r,and 
006D70:  53 55 42 20 28 48 4C 29 2E 20 20 20 41 67 61 69    SUB (HL).   Agai
006D80:  6E 20 74 68 65 20 72 65 73 75 6C 74 20 69 73 20    n the result is 
006D90:  68 65 6C 64 69 6E 20 74 68 65 20 41 63 63 75 6D    heldin the Accum
006DA0:  75 6C 61 74 6F 72 2E 20 20 20 54 68 65 20 20 63    ulator.   The  c
006DB0:  61 72 72 79 20 66 6C 61 67 20 69 73 73 65 74 20    arry flag isset 
006DC0:  74 6F 20 61 20 22 31 22 20 20 69 66 20 74 68 65    to a "1"  if the
006DD0:  20 20 72 65 73 75 6C 74 20 69 73 20 20 6F 75 74      result is  out
006DE0:  73 69 64 65 74 68 65 20 72 61 6E 67 65 20 20 30    sidethe range  0
006DF0:  20 2D 20 32 35 35 2E A0 A0 54 68 65 72 65 20 20     - 255...There  
006E00:  61 72 65 20 20 20 6E 6F 20 20 64 6F 75 62 6C 65    are   no  double
006E10:  20 20 20 72 65 67 69 73 74 65 72 20 20 20 53 55       register   SU
006E20:  42 69 6E 73 74 72 75 63 74 69 6F 6E 73 2E A0 A0    Binstructions...
006E30:  41 6C 6C 20 20 63 6F 6E 66 69 67 75 72 61 74 69    All  configurati
006E40:  6F 6E 73 20 6F 66 20 20 41 44 43 20 69 6E 73 74    ons of  ADC inst
006E50:  72 75 63 74 69 6F 6E 73 63 B4 83 61 6E 20 62 65    ructionsc..an be
006E60:  20 75 73 65 64 20 20 77 69 74 68 20 53 42 43 20     used  with SBC 
006E70:  6F 72 20 20 53 75 42 74 72 61 63 74 20 20 77 69    or  SuBtract  wi
006E80:  74 68 43 61 72 72 79 20 20 69 6E 73 74 72 75 63    thCarry  instruc
006E90:  74 69 6F 6E 73 2E 20 20 54 68 65 20 6F 70 65 72    tions.  The oper
006EA0:  61 74 69 6F 6E 20 20 20 69 73 73 69 6D 69 6C 61    ation   issimila
006EB0:  72 20 74 6F 20 53 55 42 2C 20 20 65 78 63 65 70    r to SUB,  excep
006EC0:  74 20 74 68 61 74 20 74 68 65 20 20 72 65 73 75    t that the  resu
006ED0:  6C 74 69 73 20 64 65 63 72 65 6D 65 6E 74 65 64    ltis decremented
006EE0:  20 20 62 79 20 6F 6E 65 20 69 66 20 74 68 65 20      by one if the 
006EF0:  63 61 72 72 79 20 66 6C 61 67 69 73 20 73 65 74    carry flagis set
006F00:  2E A3 20 4C 69 6B 65 20 20 41 44 43 20 69 6E 73    .£ Like  ADC ins
006F10:  74 72 75 63 74 69 6F 6E 73 20 53 42 43 20 69 6E    tructions SBC in
006F20:  73 74 72 75 63 74 69 6F 6E 73 63 61 6E 20 62 65    structionscan be
006F30:  20 20 73 74 72 75 6E 67 20 74 6F 67 65 74 68 65      strung togethe
006F40:  72 20 74 6F 20 20 73 75 62 74 72 61 63 74 20 61    r to  subtract a
006F50:  6E 79 6C 65 6E 67 74 68 20 6E 75 17 A2 6D 62 65    nylength nu..mbe
006F60:  72 2E A0 A0 20 53 69 6E 63 65 20 20 64 6F 75 62    r... Since  doub
006F70:  6C 65 20 72 65 67 69 73 74 65 72 20 20 73 75 62    le register  sub
006F80:  74 72 61 63 74 69 6F 6E 20 63 61 6E 6F 6E 6C 79    traction canonly
006F90:  20 62 65 20 70 65 72 66 6F 72 6D 65 64 20 77 69     be performed wi
006FA0:  74 68 20 63 61 72 72 79 2C 20 20 74 68 65 20 73    th carry,  the s
006FB0:  74 61 74 65 6F 66 20 74 68 65 20 20 63 61 72 72    tateof the  carr
006FC0:  79 20 66 6C 61 67 20 20 70 72 69 6F 72 20 74 6F    y flag  prior to
006FD0:  20 20 53 42 43 20 48 4C 2C 42 43 2C 61 6E 64 20      SBC HL,BC,and 
006FE0:  53 42 43 20 48 4C 2C 44 45 20 69 73 20 69 6D 70    SBC HL,DE is imp
006FF0:  6F 72 74 61 6E 74 2C 20 20 61 6E 64 20 20 73 68    ortant,  and  sh
007000:  6F 75 6C 64 62 65 20 22 30 22 2E A0 20 54 68 65    ouldbe "0".. The
007010:  20 63 61 72 72 79 20 66 6C 61 67 20 63 61 6E 20     carry flag can 
007020:  62 65 20 73 65 74 20 74 6F 20 61 20 22 31 22 20    be set to a "1" 
007030:  77 69 74 68 74 68 65 20 69 6E 73 74 72 75 63 74    withthe instruct
007040:  69 6F 6E 20 20 53 43 46 20 6F 72 20 53 65 74 20    ion  SCF or Set 
007050:  43 61 72 72 79 20 20 46 6C 61 67 2E 41 97 1B 6C    Carry  Flag.A..l
007060:  74 68 6F 75 67 68 20 20 20 74 68 65 72 65 20 20    though   there  
007070:  20 61 72 65 20 20 20 20 6E 6F 20 20 20 20 73 70     are    no    sp
007080:  65 63 69 66 69 63 69 6E 73 74 72 75 63 74 69 6F    ecificinstructio
007090:  6E 73 20 20 74 6F 20 63 6C 65 61 72 20 74 68 65    ns  to clear the
0070A0:  20 63 61 72 72 79 20 66 6C 61 67 20 74 6F 22 30     carry flag to"0
0070B0:  22 20 74 68 65 72 65 20 69 73 20 61 6E 20 69 6E    " there is an in
0070C0:  73 74 72 75 63 74 69 6F 6E 20 74 6F 20 69 6E 76    struction to inv
0070D0:  65 72 74 20 69 74 43 43 46 20 6F 72 20 20 43 6F    ert itCCF or  Co
0070E0:  6D 70 6C 69 6D 65 6E 74 20 43 61 72 72 79 20 46    mpliment Carry F
0070F0:  6C 61 67 2E 20 20 57 65 20 73 68 61 6C 6C 73 65    lag.  We shallse
007100:  65 20 6C 61 74 65 72 20 74 68 61 74 20 61 6C 6C    e later that all
007110:  20 6C 6F 67 69 63 20 69 6E 73 74 72 75 63 74 69     logic instructi
007120:  6F 6E 73 20 64 6F 63 6C 65 61 72 20 74 68 65 20    ons doclear the 
007130:  63 61 72 72 79 20 66 6C 61 67 2E A3 20 53 55 4D    carry flag.£ SUM
007140:  4D 41 52 59 20 2D 20 73 75 62 74 72 61 63 74 20    MARY - subtract 
007150:  77 69 74 68 20 63 61 72 72 79 A0 A0 53 55 42 76    with carry..SUBv
007160:  04 20 6E 20 20 20 20 20 29 A0 53 55 42 20 72 20    . n     ).SUB r 
007170:  20 20 20 20 29 20 20 53 55 42 74 72 61 63 74 20        )  SUBtract 
007180:  66 72 6F 6D 20 41 2C 20 6E 2C 20 72 2C 20 6F 72    from A, n, r, or
007190:  A0 53 55 42 20 28 48 4C 29 20 20 29 20 20 20 20    .SUB (HL)  )    
0071A0:  20 20 20 20 20 20 20 20 20 20 20 20 20 20 28 48                  (H
0071B0:  4C 29 A0 A0 53 42 43 20 41 2C 6E 20 20 20 29 A0    L)..SBC A,n   ).
0071C0:  53 42 43 20 41 2C 72 20 20 20 29 20 20 53 75 42    SBC A,r   )  SuB
0071D0:  74 72 61 63 74 20 66 72 6F 6D 20 41 20 20 77 69    tract from A  wi
0071E0:  74 68 20 63 61 72 72 79 53 42 43 20 41 2C 28 48    th carrySBC A,(H
0071F0:  4C 29 29 A0 A0 53 42 43 20 48 4C 2C 42 43 20 29    L))..SBC HL,BC )
007200:  20 20 53 75 42 74 72 61 63 74 20 66 72 6F 6D 20      SuBtract from 
007210:  48 4C 20 77 69 74 68 20 63 61 72 72 79 53 42 43    HL with carrySBC
007220:  20 48 4C 2C 44 45 20 29 A0 A0 53 43 46 20 20 20     HL,DE )..SCF   
007230:  20 20 20 20 20 53 65 74 20 43 61 72 72 79 20 46         Set Carry F
007240:  6C 61 67 A0 43 43 46 20 20 20 20 20 20 20 20 43    lag.CCF        C
007250:  6F 6D 70 6C 69 6D 65 6E 74 20 43 61 72 72 79 20    ompliment Carry 
007260:  46 1B 91 6C 61 67 A3 20 20 49 4E 43 52 45 4D 45    F..lag£  INCREME
007270:  4E 54 20 41 4E 44 20 44 45 43 52 45 4D 45 4E 54    NT AND DECREMENT
007280:  20 49 4E 53 54 52 55 43 54 49 4F 4E 53 A0 A0 20     INSTRUCTIONS.. 
007290:  54 68 65 20 6C 61 73 74 20 61 72 69 74 68 6D 65    The last arithme
0072A0:  74 69 63 20 69 6E 73 74 72 75 63 74 69 6F 6E 73    tic instructions
0072B0:  20 74 6F 20 20 62 65 64 69 73 63 75 73 73 65 64     to  bediscussed
0072C0:  20 63 61 6E 20 62 65 20 70 65 72 66 6F 72 6D 65     can be performe
0072D0:  64 20 6F 6E 20 61 6E 79 20 73 69 6E 67 6C 65 6F    d on any singleo
0072E0:  72 20 64 6F 75 62 6C 65 20 72 65 67 69 73 74 65    r double registe
0072F0:  72 28 73 29 2E 20 54 68 65 73 65 20 61 72 65 20    r(s). These are 
007300:  49 4E 43 20 61 6E 64 44 45 43 2E 20 20 49 4E 43    INC andDEC.  INC
007310:  20 69 6E 63 72 65 6D 65 6E 74 73 20 28 6F 72 20     increments (or 
007320:  20 69 6E 63 72 65 61 73 65 73 29 20 74 68 65 63     increases) thec
007330:  6F 6E 74 65 6E 74 73 20 20 6F 66 20 20 74 68 65    ontents  of  the
007340:  20 20 72 65 67 69 73 74 65 72 2C 20 20 6F 72 20      register,  or 
007350:  20 6D 65 6D 6F 72 79 6C 6F 63 61 74 69 6F 6E 20     memorylocation 
007360:  69 6E 64 85 87 69 72 65 63 74 6C 79 20 20 61 64    ind..irectly  ad
007370:  64 72 65 73 73 65 64 20 62 79 20 74 68 65 20 48    dressed by the H
007380:  4C 72 65 67 69 73 74 65 72 20 70 61 69 72 2C 20    Lregister pair, 
007390:  20 62 79 20 6F 6E 65 2E 20 20 20 44 45 43 20 64     by one.   DEC d
0073A0:  65 63 72 65 6D 65 6E 74 73 28 20 6F 72 20 20 64    ecrements( or  d
0073B0:  65 63 72 65 61 73 65 73 20 29 20 20 74 68 65 20    ecreases )  the 
0073C0:  20 63 6F 6E 74 65 6E 74 73 20 20 6F 66 20 74 68     contents  of th
0073D0:  65 72 65 67 69 73 74 65 72 20 6F 72 20 20 6D 65    eregister or  me
0073E0:  6D 6F 72 79 20 20 6C 6F 63 61 74 69 6F 6E 20 69    mory  location i
0073F0:  6E 64 69 72 65 63 74 6C 79 61 64 64 72 65 73 73    ndirectlyaddress
007400:  65 64 20 62 79 20 74 68 65 20 20 48 4C 20 72 65    ed by the  HL re
007410:  67 69 73 74 65 72 20 20 70 61 69 72 2C 20 20 62    gister  pair,  b
007420:  79 20 54 68 65 20 20 63 61 72 72 79 20 20 66 6C    y The  carry  fl
007430:  61 67 20 20 69 73 20 20 6E 6F 74 20 20 61 66 66    ag  is  not  aff
007440:  65 63 74 65 64 20 20 62 79 65 69 74 68 65 72 20    ected  byeither 
007450:  6F 66 20 74 68 65 73 65 20 69 6E 73 74 72 75 63    of these instruc
007460:  74 69 6F 6E 73 8B 0B 2E A0 A0 20 54 68 65 73 65    tions..... These
007470:  20 69 6E 73 74 72 75 63 74 69 6F 6E 73 20 20 61     instructions  a
007480:  72 65 20 20 70 72 69 6D 61 72 69 6C 79 20 75 73    re  primarily us
007490:  65 64 77 68 65 72 65 20 20 20 63 6F 75 6E 74 65    edwhere   counte
0074A0:  72 73 20 20 20 61 72 65 20 20 20 72 65 71 75 69    rs   are   requi
0074B0:  72 65 64 2E 20 20 20 54 68 65 6F 70 65 72 61 74    red.   Theoperat
0074C0:  69 6F 6E 20 20 6F 6E 20 20 72 65 67 69 73 74 65    ion  on  registe
0074D0:  72 20 20 70 61 69 72 73 20 20 69 73 20 20 61 6C    r  pairs  is  al
0074E0:  73 6F 75 73 65 66 75 6C 20 20 69 6E 20 20 20 73    souseful  in   s
0074F0:  65 71 75 65 6E 74 69 61 6C 20 20 6F 70 65 72 61    equential  opera
007500:  74 69 6F 6E 73 20 20 20 6F 6E 6D 65 6D 6F 72 79    tions   onmemory
007510:  20 20 20 6C 6F 63 61 74 69 6F 6E 73 20 20 75 74       locations  ut
007520:  69 6C 69 73 69 6E 67 20 20 20 69 6E 64 69 72 65    ilising   indire
007530:  63 74 61 64 64 72 65 73 73 69 6E 67 2E A3 20 53    ctaddressing.£ S
007540:  75 6D 6D 61 72 79 20 2D 20 69 6E 63 72 65 6D 65    ummary - increme
007550:  6E 74 20 61 6E 64 20 64 65 63 72 65 6D 65 6E 74    nt and decrement
007560:  A0 A0 49 4E 43 20 72 FD EF A0 49 4E 43 20 28 48    ..INC r...INC (H
007570:  4C 29 A0 49 4E 43 20 64 64 A0 A0 44 45 43 20 72    L).INC dd..DEC r
007580:  A0 44 45 43 20 28 48 4C 29 A0 44 45 43 20 64 64    .DEC (HL).DEC dd
007590:  A3 20 20 20 20 20 20 20 20 20 20 20 54 48 45 20    £           THE 
0075A0:  5A 45 52 4F 20 46 4C 41 47 A0 A0 20 41 6E 6F 74    ZERO FLAG.. Anot
0075B0:  68 65 72 20 20 76 65 72 79 20 20 75 73 65 66 75    her  very  usefu
0075C0:  6C 20 20 66 6C 61 67 20 69 6E 63 6C 75 64 65 64    l  flag included
0075D0:  20 69 6E 61 6C 6C 20 20 70 72 6F 63 65 73 73 6F     inall  processo
0075E0:  72 73 20 69 73 20 20 74 68 65 20 5A 65 72 6F 20    rs is  the Zero 
0075F0:  66 6C 61 67 2E 20 20 54 68 69 73 66 6C 61 67 20    flag.  Thisflag 
007600:  69 73 20 73 65 74 20 74 6F 20 22 31 22 20 20 69    is set to "1"  i
007610:  66 20 74 68 65 20 72 65 73 75 6C 74 20 6F 66 20    f the result of 
007620:  61 6E 79 73 69 6E 67 6C 65 20 72 65 67 69 73 74    anysingle regist
007630:  65 72 20 61 72 69 74 68 6D 65 74 69 63 20 6F 70    er arithmetic op
007640:  65 72 61 74 69 6F 6E 20 20 69 73 7A 65 72 6F 2E    eration  iszero.
007650:  20 4F 74 68 65 72 77 69 73 65 20 69 74 20 69 73     Otherwise it is
007660:  20 63 6C 65 61 72 65 64 20 6E 3A 74 6F 20 22 30     cleared n:to "0
007670:  22 2E A0 A0 20 49 74 20 69 73 20 20 6F 6E 6C 79    "... It is  only
007680:  20 61 66 66 65 63 74 65 64 20 62 79 20 64 6F 75     affected by dou
007690:  62 6C 65 20 72 65 67 69 73 74 65 72 61 72 69 74    ble registerarit
0076A0:  68 6D 65 74 69 63 20 20 20 6F 70 65 72 61 74 69    hmetic   operati
0076B0:  6F 6E 73 20 20 20 69 6E 76 6F 6C 76 69 6E 67 20    ons   involving 
0076C0:  20 74 68 65 63 61 72 72 79 20 20 66 6C 61 67 20     thecarry  flag 
0076D0:  2C 20 20 20 69 2E 65 2E 20 20 6F 6E 6C 79 20 20    ,   i.e.  only  
0076E0:  61 66 66 65 63 74 65 64 20 20 62 79 41 44 43 20    affected  byADC 
0076F0:  48 4C 2C 64 64 20 20 6F 72 20 20 53 42 43 20 48    HL,dd  or  SBC H
007700:  4C 2C 64 64 2E A0 A0 20 54 68 65 20 20 7A 65 72    L,dd... The  zer
007710:  6F 20 66 6C 61 67 2C 20 6C 69 6B 65 20 74 68 65    o flag, like the
007720:  20 63 61 72 72 79 20 66 6C 61 67 2C 20 69 73 75     carry flag, isu
007730:  6E 61 66 66 65 63 74 65 64 20 62 79 20 61 6E 79    naffected by any
007740:  20 4C 44 20 6F 72 20 45 58 20 69 6E 73 74 72 75     LD or EX instru
007750:  63 74 69 6F 6E 73 2E A3 20 53 75 6D 6D 61 72 79    ctions.£ Summary
007760:  20 2D 20 7A 65 72 6F 20 61 6E 64 45 C9 20 63 61     - zero andE. ca
007770:  72 72 79 20 66 6C 61 67 73 A0 A0 69 6E 73 74 72    rry flags..instr
007780:  75 63 74 69 6F 6E 20 20 20 20 20 20 43 61 72 72    uction      Carr
007790:  79 20 20 20 20 20 20 20 20 5A 65 72 6F A0 20 20    y        Zero.  
0077A0:  20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 20                  r 
0077B0:  20 20 20 64 64 20 20 20 20 20 20 72 20 20 20 64       dd      r   d
0077C0:  64 A0 A0 20 20 4C 44 20 20 20 20 20 20 20 20 20    d..  LD         
0077D0:  20 20 20 2E 20 20 20 20 20 2E 20 20 20 20 20 20       .     .      
0077E0:  2E 20 20 20 20 2E A0 20 20 45 58 20 20 20 20 20    .    ..  EX     
0077F0:  20 20 20 20 20 20 6E 2F 76 20 20 20 20 2E 20 20          n/v    .  
007800:  20 20 20 6E 2F 76 20 20 20 2E A0 A0 20 20 41 44       n/v   ...  AD
007810:  44 20 20 20 20 20 20 20 20 20 20 20 2A 20 20 20    D           *   
007820:  20 20 2A 20 20 20 20 20 20 2A 20 20 20 20 2E A0      *      *    ..
007830:  20 20 41 44 43 20 20 20 20 20 20 20 20 20 20 20      ADC           
007840:  2A 20 20 20 20 20 2A 20 20 20 20 20 20 2A 20 20    *     *      *  
007850:  20 20 2A A0 20 20 53 55 42 20 20 20 20 20 20 20      *.  SUB       
007860:  20 20 20 20 2A 20 20 20 20 6E 2F 76 20 7E E1 20        *    n/v ~. 
007870:  20 20 20 2A 20 20 20 6E 2F 76 A0 20 20 53 42 43       *   n/v.  SBC
007880:  20 20 20 20 20 20 20 20 20 20 20 2A 20 20 20 20               *    
007890:  20 2A 20 20 20 20 20 20 2A 20 20 20 20 2A A0 A0     *      *    *..
0078A0:  20 20 49 4E 43 20 20 20 20 20 20 20 20 20 20 20      INC           
0078B0:  2E 20 20 20 20 20 2E 20 20 20 20 20 20 2A 20 20    .     .      *  
0078C0:  20 20 2E A0 20 20 44 45 43 20 20 20 20 20 20 20      ..  DEC       
0078D0:  20 20 20 20 2E 20 20 20 20 20 2E 20 20 20 20 20        .     .     
0078E0:  20 2A 20 20 20 20 2E A0 A0 A0 72 20 73 69 6E 67     *    ....r sing
0078F0:  6C 65 20 72 65 67 69 73 74 65 72 20 20 20 64 64    le register   dd
007900:  20 20 64 6F 75 62 6C 65 20 72 65 67 69 73 74 65      double registe
007910:  72 20 A0 2A 20 66 6C 61 67 20 61 66 66 65 63 74    r .* flag affect
007920:  65 64 20 20 20 20 20 20 2E 20 66 6C 61 67 20 6E    ed      . flag n
007930:  6F 74 20 61 66 66 65 63 74 65 64 A0 20 20 20 20    ot affected.    
007940:  20 6E 2F 76 20 20 20 20 69 6E 73 74 72 75 63 74     n/v    instruct
007950:  69 6F 6E 20 6E 6F 74 20 76 61 6C 69 64 A3 20 20    ion not valid£  
007960:  20 20 20 20 20 20 20 20 20 20 4C 65 73 73 6F 27              Lesso'
007970:  D5 6E 73 20 31 20 2D 20 39 A0 A0 20 31 2E 20 20    .ns 1 - 9.. 1.  
007980:  52 65 67 69 73 74 65 72 73 20 61 6E 64 20 4D 65    Registers and Me
007990:  6D 6F 72 79 A0 20 32 2E 20 20 53 69 6D 70 6C 65    mory. 2.  Simple
0079A0:  20 4C 6F 61 64 20 49 6E 73 74 72 75 63 74 69 6F     Load Instructio
0079B0:  6E 73 A0 20 20 20 20 20 20 20 20 20 45 78 20 2D    ns.         Ex -
0079C0:  20 73 69 6D 70 6C 65 20 6C 6F 61 64 20 69 6E 73     simple load ins
0079D0:  74 72 75 63 74 69 6F 6E 73 A0 20 33 2E 20 20 52    tructions. 3.  R
0079E0:  65 67 69 73 74 65 72 20 50 61 69 72 73 A0 20 20    egister Pairs.  
0079F0:  20 20 20 20 20 20 20 45 78 20 2D 20 72 65 67 69           Ex - regi
007A00:  73 74 65 72 20 70 61 69 72 20 6C 6F 61 64 69 6E    ster pair loadin
007A10:  67 A0 20 34 2E 20 20 49 6E 64 69 72 65 63 74 20    g. 4.  Indirect 
007A20:  41 64 64 72 65 73 73 69 6E 67 A0 20 20 20 20 20    Addressing.     
007A30:  20 20 20 20 45 78 20 2D 20 69 6E 64 69 72 65 63        Ex - indirec
007A40:  74 20 61 64 64 72 65 73 73 69 6E 67 A0 20 35 2E    t addressing. 5.
007A50:  20 20 41 64 64 69 74 69 6F 6E 20 61 6E 64 20 74      Addition and t
007A60:  68 65 20 43 61 72 72 79 20 46 6C 61 67 A0 20 20    he Carry Flag.  
007A70:  20 E0 A4 20 20 20 20 20 20 45 78 20 2D 20 73 69     ..      Ex - si
007A80:  6E 67 6C 65 20 72 65 67 69 73 74 65 72 20 61 64    ngle register ad
007A90:  64 69 74 69 6F 6E A0 20 20 20 20 20 20 20 20 20    dition.         
007AA0:  45 78 20 2D 20 72 65 67 69 73 74 65 72 20 70 61    Ex - register pa
007AB0:  69 72 20 61 64 64 69 74 69 6F 6E A0 20 36 2E 20    ir addition. 6. 
007AC0:  20 53 75 62 74 72 61 63 74 69 6F 6E 20 61 6E 64     Subtraction and
007AD0:  20 74 68 65 20 43 61 72 72 79 20 46 6C 61 67 A0     the Carry Flag.
007AE0:  20 20 20 20 20 20 20 20 20 45 78 20 2D 20 72 65             Ex - re
007AF0:  67 69 73 74 65 72 20 73 75 62 74 72 61 63 74 69    gister subtracti
007B00:  6F 6E A0 20 20 20 20 20 20 20 20 20 45 78 20 2D    on.         Ex -
007B10:  20 72 65 67 69 73 74 65 72 20 70 61 69 72 20 73     register pair s
007B20:  75 62 74 72 61 63 74 69 6F 6E A0 20 37 2E 20 20    ubtraction. 7.  
007B30:  49 6E 63 72 65 6D 65 6E 74 20 61 6E 64 20 44 65    Increment and De
007B40:  63 72 65 6D 65 6E 74 A0 20 20 20 20 20 20 20 20    crement.        
007B50:  20 45 78 20 2D 20 69 6E 63 20 61 6E 64 20 64 65     Ex - inc and de
007B60:  63 20 69 6E 73 74 72 75 63 74 69 6F 6E 73 A0 20    c instructions. 
007B70:  38 2E 20 2C 0F 20 5A 65 72 6F 20 46 6C 61 67 A0    8. ,. Zero Flag.
007B80:  20 20 20 20 20 20 20 20 20 45 78 20 2D 20 7A 65             Ex - ze
007B90:  72 6F 20 66 6C 61 67 A0 20 39 2E 20 20 43 6F 6D    ro flag. 9.  Com
007BA0:  70 61 72 65 A0 20 20 20 20 20 20 20 45 78 20 2D    pare.       Ex -
007BB0:  20 63 6F 6D 70 61 72 69 73 6F 6E 20 69 6E 73 74     comparison inst
007BC0:  72 75 63 74 69 6F 6E 73 A0 20 4C 6F 61 64 20 66    ructions. Load f
007BD0:  75 72 74 68 65 72 20 6C 65 73 73 6F 6E 73 20 66    urther lessons f
007BE0:  72 6F 6D 20 74 61 70 65 A3 20 20 20 20 20 20 20    rom tape£       
007BF0:  20 20 20 20 49 4E 54 52 4F 44 55 43 54 49 4F 4E        INTRODUCTION
007C00:  A0 A0 20 54 68 65 20 20 5A 38 30 20 69 73 20 20    .. The  Z80 is  
007C10:  74 68 65 20 6D 69 63 72 6F 70 72 6F 63 65 73 73    the microprocess
007C20:  6F 72 20 20 61 74 20 74 68 65 68 65 61 72 74 20    or  at theheart 
007C30:  6F 66 20 79 6F 75 72 20 41 6D 73 74 72 61 64 2E    of your Amstrad.
007C40:  20 54 68 69 73 20 70 72 6F 67 72 61 6D 20 77 69     This program wi
007C50:  6C 6C 74 65 61 63 68 20 20 20 79 6F 75 20 20 20    llteach   you   
007C60:  74 68 65 20 20 20 75 73 65 20 20 20 6F 66 20 20    the   use   of  
007C70:  20 61 6C 6C 20 86 A3 20 20 74 68 65 69 6E 73 74     all .£  theinst
007C80:  72 75 63 74 69 6F 6E 73 20 61 76 61 69 6C 61 62    ructions availab
007C90:  6C 65 20 20 6F 6E 20 20 74 68 65 20 5A 38 30 2C    le  on  the Z80,
007CA0:  20 20 69 6E 61 20 73 65 72 69 65 73 20 6F 66 20      ina series of 
007CB0:  73 69 6D 70 6C 65 20 20 70 72 6F 67 72 65 73 73    simple  progress
007CC0:  69 76 65 20 6C 65 73 73 6F 6E 73 2E A0 20 20 41    ive lessons..  A
007CD0:  66 74 65 72 20 20 65 61 63 68 20 20 20 6C 65 73    fter  each   les
007CE0:  73 6F 6E 2C 20 20 20 73 74 65 70 20 20 62 79 20    son,   step  by 
007CF0:  20 73 74 65 70 65 78 61 6D 70 6C 65 73 20 61 72     stepexamples ar
007D00:  65 20 67 69 76 65 6E 2E 20 20 54 6F 20 66 75 72    e given.  To fur
007D10:  74 68 65 72 20 20 69 6D 70 72 6F 76 65 79 6F 75    ther  improveyou
007D20:  72 20 75 6E 64 65 72 73 74 61 6E 64 69 6E 67 20    r understanding 
007D30:  6F 66 20 74 68 65 20 74 6F 70 69 63 2C 20 79 6F    of the topic, yo
007D40:  75 20 6D 61 79 74 68 65 6E 20 6D 6F 64 69 66 79    u maythen modify
007D50:  20 6F 72 20 72 65 77 72 69 74 65 20 74 68 65 20     or rewrite the 
007D60:  65 78 61 6D 70 6C 65 73 2C 20 61 6E 64 72 75 6E    examples, andrun
007D70:  20 74 68 65 6D 20 20 70 D6 77 69 74 68 6F 75 74     them  p.without
007D80:  20 20 66 65 61 72 20 6F 66 20 20 63 72 61 73 68      fear of  crash
007D90:  69 6E 67 20 74 68 65 73 79 73 74 65 6D 2E A0 A0    ing thesystem...
007DA0:  20 50 72 6F 63 65 65 64 20 20 74 68 72 6F 75 67     Proceed  throug
007DB0:  68 20 20 74 68 65 20 6D 65 6E 75 20 62 79 20 20    h  the menu by  
007DC0:  70 72 65 73 73 69 6E 67 45 4E 54 45 52 20 74 6F    pressingENTER to
007DD0:  20 62 65 67 69 6E 20 74 68 65 20 68 69 67 68 6C     begin the highl
007DE0:  69 67 68 74 65 64 20 6C 65 73 73 6F 6E 20 6F 72    ighted lesson or
007DF0:  65 78 61 6D 70 6C 65 2C 20 61 6E 64 20 20 53 50    example, and  SP
007E00:  41 43 45 20 74 6F 20 6A 75 6D 70 20 74 6F 20 74    ACE to jump to t
007E10:  68 65 20 6E 65 78 74 2E 41 74 20 61 6E 79 74 69    he next.At anyti
007E20:  6D 65 20 42 52 45 41 4B 20 77 69 6C 6C 20 72 65    me BREAK will re
007E30:  74 75 72 6E 20 79 6F 75 20 20 74 6F 20 74 68 65    turn you  to the
007E40:  6D 65 6E 75 2E A3 20 20 20 20 49 4E 54 52 4F 44    menu.£    INTROD
007E50:  55 43 54 49 4F 4E 20 54 4F 20 52 55 4E 4E 49 4E    UCTION TO RUNNIN
007E60:  47 20 53 49 4D 55 4C 41 54 4F 52 A0 A0 20 41 6C    G SIMULATOR.. Al
007E70:  6C 20 20 20 65 78 61 6D 70 72 6A 6C 65 73 20 20    l   examprjles  
007E80:  20 61 72 65 20 20 20 72 75 6E 20 20 20 75 73 69     are   run   usi
007E90:  6E 67 20 20 74 68 65 53 69 6D 75 6C 61 74 6F 72    ng  theSimulator
007EA0:  2E 20 41 74 20 74 68 69 73 20 73 74 61 67 65 20    . At this stage 
007EB0:  74 68 65 20 6F 6E 6C 79 20 20 61 72 65 61 73 6F    the only  areaso
007EC0:  66 20 74 68 65 20 73 69 6D 75 6C 61 74 6F 72 20    f the simulator 
007ED0:  73 63 72 65 65 6E 20 74 6F 20 63 6F 6E 73 69 64    screen to consid
007EE0:  65 72 20 20 61 72 65 74 68 65 20 53 6F 75 72 63    er  arethe Sourc
007EF0:  65 20 20 43 6F 64 65 20 28 20 74 68 65 20 74 68    e  Code ( the th
007F00:  69 72 64 20 63 6F 6C 75 6D 6E 20 74 68 61 74 68    ird column thath
007F10:  6F 6C 64 73 20 74 68 65 20 69 6E 73 74 72 75 63    olds the instruc
007F20:  74 69 6F 6E 73 20 29 20 61 6E 64 20 74 68 65 20    tions ) and the 
007F30:  61 72 65 61 20 61 74 74 68 65 20 62 6F 74 74 6F    area atthe botto
007F40:  6D 20 6F 66 20 74 68 65 20 73 63 72 65 65 6E 2C    m of the screen,
007F50:  20 77 68 69 63 68 20 64 69 73 70 6C 61 79 73 74     which displayst
007F60:  68 65 20 63 6F 6E 74 65 6E 74 73 20 20 6F 66 20    he contents  of 
007F70:  20 74 68 65 20 20 72 65 67 69 73 76 25 74 65 72     the  regisv%ter
007F80:  73 2E 20 20 4F 74 68 65 72 61 72 65 61 73 20 20    s.  Otherareas  
007F90:  77 69 6C 6C 20 20 62 65 20 20 64 65 73 63 72 69    will  be  descri
007FA0:  62 65 64 20 20 61 73 20 20 74 68 65 79 20 61 72    bed  as  they ar
007FB0:  65 72 65 71 75 69 72 65 64 2E A0 A0 20 54 68 65    erequired... The
007FC0:  20 61 73 73 65 6D 62 6C 65 72 2C 20 74 68 61 74     assembler, that
007FD0:  20 63 6F 6E 76 65 72 74 73 20 20 69 6E 73 74 72     converts  instr
007FE0:  75 63 74 2D 69 6F 6E 73 20 20 69 6E 74 6F 20 20    uct-ions  into  
007FF0:  20 6D 61 63 68 69 6E 65 20 20 63 6F 64 65 2C 20     machine  code, 
008000:  77 69 6C 6C 20 20 61 63 63 65 70 74 4C 61 62 65    will  acceptLabe
008010:  6C 73 2E 20 49 6E 73 74 65 61 64 20 20 6F 66 20    ls. Instead  of 
008020:  20 70 75 74 74 69 6E 67 20 20 61 6E 20 61 64 64     putting  an add
008030:  72 65 73 73 69 6E 74 6F 20 74 68 65 20 70 72 6F    ressinto the pro
008040:  67 72 61 6D 2C 20 77 65 20 63 61 6E 20 67 69 76    gram, we can giv
008050:  65 20 69 74 20 61 20 6E 61 6D 65 2E 54 68 65 20    e it a name.The 
008060:  20 61 73 73 65 6D 62 6C 65 72 20 20 77 69 6C 6C     assembler  will
008070:  20 20 20 74 68 65 6E 20 20 61 6C 6C 6F A2 A1 63       then  allo..c
008080:  61 74 65 20 20 61 6D 65 6D 6F 72 79 20 20 6C 6F    ate  amemory  lo
008090:  63 61 74 69 6F 6E 20 74 6F 20 69 74 2E 20 54 68    cation to it. Th
0080A0:  65 20 6E 61 6D 65 20 6D 75 73 74 20 62 65 63 61    e name must beca
0080B0:  6C 6C 65 64 20 20 75 70 20 20 69 6E 20 20 74 68    lled  up  in  th
0080C0:  65 20 20 70 72 6F 67 72 61 6D 20 20 77 69 74 68    e  program  with
0080D0:  20 20 20 69 74 73 69 6E 69 74 69 61 6C 20 63 6F       itsinitial co
0080E0:  6E 64 69 74 69 6F 6E 20 75 73 69 6E 67 20 20 74    ndition using  t
0080F0:  68 65 20 69 6E 73 74 72 75 63 74 69 6F 6E 44 45    he instructionDE
008100:  46 42 2C 20 44 45 46 69 6E 65 20 42 79 74 65 2E    FB, DEFine Byte.
008110:  A3 20 44 45 46 42 20 69 73 20 61 6E 20 20 61 73    £ DEFB is an  as
008120:  73 65 6D 62 6C 65 72 20 69 6E 73 74 72 75 63 74    sembler instruct
008130:  69 6F 6E 20 6E 6F 74 20 61 5A 38 30 20 20 69 6E    ion not aZ80  in
008140:  73 74 72 75 63 74 69 6F 6E 2E 20 20 54 68 65 20    struction.  The 
008150:  61 6C 6C 6F 63 61 74 65 64 20 20 6D 65 6D 6F 72    allocated  memor
008160:  79 61 64 64 72 65 73 73 20 69 73 20 67 69 76 65    yaddress is give
008170:  6E 20 69 6E 20 74 68 65 20 66 69 72 73 74 20 A9    n in the first .
008180:  1C 63 6F 6C 75 6D 6E 2E A0 A0 20 54 68 65 20 73    .column... The s
008190:  69 6D 75 6C 61 74 6F 72 20 77 69 6C 6C 20 64 69    imulator will di
0081A0:  73 70 6C 61 79 20 74 68 65 20 63 6F 6E 74 65 6E    splay the conten
0081B0:  74 73 6F 66 20 74 68 69 73 20 20 6D 65 6D 6F 72    tsof this  memor
0081C0:  79 20 6C 6F 63 61 74 69 6F 6E 2C 20 69 6E 20 64    y location, in d
0081D0:  65 63 69 6D 61 6C 2C 20 69 6E 74 68 65 20 73 65    ecimal, inthe se
0081E0:  63 6F 6E 64 20 63 6F 6C 75 6D 6E 2E A0 A0 20 42    cond column... B
0081F0:  65 66 6F 72 65 20 65 61 63 68 20 69 6E 73 74 72    efore each instr
008200:  75 63 74 69 6F 6E 20 69 73 20 65 78 65 63 75 74    uction is execut
008210:  65 64 20 74 68 65 69 6E 73 74 72 75 63 74 69 6F    ed theinstructio
008220:  6E 20 69 73 20 64 65 73 63 72 69 62 65 64 20 69    n is described i
008230:  6E 20 45 4E 47 4C 49 53 48 2E 20 54 72 79 74 6F    n ENGLISH. Tryto
008240:  20 77 6F 72 6B 20 6F 75 74 20 77 68 61 74 20 20     work out what  
008250:  73 68 6F 75 6C 64 20 20 68 61 70 70 65 6E 20 20    should  happen  
008260:  62 65 66 6F 72 65 70 72 65 73 73 69 6E 67 20 20    beforepressing  
008270:  61 6E 79 20 20 6B 65 79 20 20 20 74 6F 20 20 20    any  key   to   
008280:  70 B9 CB 65 72 66 6F 72 6D 20 20 20 20 74 68 65    p..erform    the
008290:  69 6E 73 74 72 75 63 74 69 6F 6E 2E A3 20 59 6F    instruction.£ Yo
0082A0:  75 20 6D 61 79 20 67 6F 20 20 74 68 72 6F 75 67    u may go  throug
0082B0:  68 20 74 68 65 20 65 78 61 6D 70 6C 65 20 61 73    h the example as
0082C0:  20 6D 61 6E 79 74 69 6D 65 73 20 61 73 20 79 6F     manytimes as yo
0082D0:  75 20 6C 69 6B 65 2C 20 75 6E 74 69 6C 20 79 6F    u like, until yo
0082E0:  75 20 20 75 6E 64 65 72 73 74 61 6E 64 69 74 2E    u  understandit.
0082F0:  20 49 66 20 79 6F 75 20 73 74 69 6C 6C 20 66 69     If you still fi
008300:  6E 64 20 20 64 69 66 66 69 63 75 6C 74 79 2C 20    nd  difficulty, 
008310:  70 72 65 73 73 45 53 43 2C 20 73 6B 69 70 20 20    pressESC, skip  
008320:  6F 76 65 72 20 74 68 65 20 6C 65 73 73 6F 6E 73    over the lessons
008330:  20 61 6E 64 20 72 65 2D 45 4E 54 45 52 74 68 65     and re-ENTERthe
008340:  20 6C 65 73 73 6F 6E 20 20 77 69 74 68 20 77 68     lesson  with wh
008350:  69 63 68 20 20 79 6F 75 20 20 61 72 65 20 20 68    ich  you  are  h
008360:  61 76 69 6E 67 64 69 66 66 69 63 75 6C 74 79 2E    avingdifficulty.
008370:  20 54 68 65 20 6D 61 6E 75 61 6C 20 68 6F 77 65     The manual howe
008380:  76 65 72 8B D4 20 20 67 69 76 65 73 20 61 6E 6F    ver..  gives ano
008390:  75 74 6C 69 6E 65 20 6F 66 20 65 61 63 68 20 6C    utline of each l
0083A0:  65 73 73 6F 6E 2E A0 A0 20 57 68 65 6E 20 20 79    esson... When  y
0083B0:  6F 75 20 20 64 6F 20 20 75 6E 64 65 72 73 74 61    ou  do  understa
0083C0:  6E 64 20 20 74 68 65 20 65 78 61 6D 70 6C 65 73    nd  the examples
0083D0:  67 69 76 65 6E 20 20 74 72 79 20 20 6D 6F 64 69    given  try  modi
0083E0:  66 79 69 6E 67 20 20 74 68 65 6D 20 20 20 75 73    fying  them   us
0083F0:  69 6E 67 20 20 74 68 65 65 64 69 74 6F 72 2E 20    ing  theeditor. 
008400:  20 54 68 65 6E 20 20 74 72 79 20 20 65 6E 74 65     Then  try  ente
008410:  72 69 6E 67 20 20 20 79 6F 75 72 20 20 6F 77 6E    ring   your  own
008420:  70 72 6F 67 72 61 6D 73 2E 20 20 41 6C 6C 20 20    programs.  All  
008430:  70 72 6F 67 72 61 6D 73 20 73 68 6F 75 6C 64 20    programs should 
008440:  65 6E 64 20 77 69 74 68 52 45 54 20 28 20 6F 72    end withRET ( or
008450:  20 72 65 74 75 72 6E 20 29 2E 20 20 20 44 6F 6E     return ).   Don
008460:  27 74 20 20 77 6F 72 72 79 20 69 66 20 79 6F 75    't  worry if you
008470:  66 6F 72 67 65 74 2C 20 74 68 65 20 73 69 6D 75    forget, the simu
008480:  6C 61 74 6F 72 9A A7 20 77 69 6C 6C 20 74 65 6C    lator.. will tel
008490:  6C 20 79 6F 75 2E A0 A0 20 52 65 6D 65 6D 62 65    l you... Remembe
0084A0:  72 2C 20 20 69 74 20 20 69 73 20 20 20 69 6D 70    r,  it  is   imp
0084B0:  6F 73 73 69 62 6C 65 20 20 66 6F 72 20 20 20 61    ossible  for   a
0084C0:  70 72 6F 67 72 61 6D 20 74 6F 20 64 65 73 74 72    program to destr
0084D0:  6F 79 20 79 6F 75 72 20 63 6F 6D 70 75 74 65 72    oy your computer
0084E0:  2E 20 59 6F 75 27 6C 6C 6E 65 65 64 20 61 20 68    . You'llneed a h
0084F0:  61 6D 6D 65 72 20 74 6F 20 64 6F 20 74 68 61 74    ammer to do that
008500:  21 A3 20 4C 44 20 41 2C 33 34 A0 20 20 4C 44 20    !£ LD A,34.  LD 
008510:  42 2C 41 A0 20 20 4C 44 20 28 33 38 36 37 29 2C    B,A.  LD (3867),
008520:  41 A0 20 20 4C 44 20 41 2C 28 53 54 4F 52 45 29    A.  LD A,(STORE)
008530:  A0 20 20 4C 44 20 28 33 38 36 37 29 2C 41 A0 20    .  LD (3867),A. 
008540:  20 4C 44 20 41 2C 42 A0 20 20 4C 44 20 28 53 54     LD A,B.  LD (ST
008550:  4F 52 45 29 2C 41 A0 20 20 4C 44 20 43 2C 42 A0    ORE),A.  LD C,B.
008560:  20 20 4C 44 20 41 2C 28 33 38 36 37 29 A0 20 20      LD A,(3867).  
008570:  4C 44 20 41 2C 36 37 A0 20 20 4C 44 20 28 33 38    LD A,67.  LD (38
008580:  36 36 29 2C 41 A0 20 DF 86 20 52 45 54 A0 20 20    66),A. .. RET.  
008590:  A0 20 53 54 4F 52 45 20 44 45 46 42 20 31 32 34    . STORE DEFB 124
0085A0:  A0 20 20 44 45 46 42 20 30 A0 20 20 20 A0 20 20    .  DEFB 0.   .  
0085B0:  20 20 20 20 20 20 20 52 45 47 49 53 54 45 52 20           REGISTER 
0085C0:  50 41 49 52 20 45 58 41 4D 50 4C 45 53 A0 A0 20    PAIR EXAMPLES.. 
0085D0:  54 68 65 20 20 65 78 61 6D 70 6C 65 20 69 6C 6C    The  example ill
0085E0:  75 73 74 72 61 74 65 73 20 20 65 61 63 68 20 20    ustrates  each  
0085F0:  74 79 70 65 20 6F 66 69 6E 73 74 72 75 63 74 69    type ofinstructi
008600:  6F 6E 20 20 74 68 61 74 20 20 6C 6F 61 64 73 20    on  that  loads 
008610:  72 65 67 69 73 74 65 72 20 70 61 69 72 73 2E 49    register pairs.I
008620:  74 20 61 6C 73 6F 20 20 64 65 6D 6F 6E 73 74 72    t also  demonstr
008630:  61 74 65 73 20 20 74 68 61 74 20 61 20 20 72 65    ates  that a  re
008640:  67 69 73 74 65 72 2F 6D 65 6D 6F 72 79 20 20 70    gister/memory  p
008650:  61 69 72 20 20 61 72 65 20 20 73 74 69 6C 6C 20    air  are  still 
008660:  20 74 77 6F 20 69 6E 64 69 76 69 64 75 61 6C 72     two individualr
008670:  65 67 69 73 74 65 72 73 20 6F 72 20 6D 65 6D 6F    egisters or memo
008680:  72 79 20 6C 6F 63 61 74 69 56 30 6F 6E 73 20 61    ry locatiV0ons a
008690:  6E 64 20 63 61 6E 20 62 65 74 72 65 61 74 65 64    nd can betreated
0086A0:  20 61 73 20 73 75 63 68 2E A0 A0 20 41 6E 6F 74     as such... Anot
0086B0:  68 65 72 20 20 20 20 61 73 73 65 6D 62 6C 65 72    her    assembler
0086C0:  20 20 20 20 69 6E 73 74 72 75 63 74 69 6F 6E 20        instruction 
0086D0:  20 69 73 69 6E 74 72 6F 64 75 63 65 64 2C 20 20     isintroduced,  
0086E0:  74 68 65 20 20 44 45 46 57 20 20 69 6E 73 74 72    the  DEFW  instr
0086F0:  75 63 74 69 6F 6E 2E 20 54 68 65 61 73 73 65 6D    uction. Theassem
008700:  62 6C 65 72 20 61 6C 6C 6F 63 61 74 65 73 20 20    bler allocates  
008710:  32 20 20 6D 65 6D 6F 72 79 20 6C 6F 63 61 74 69    2  memory locati
008720:  6F 6E 73 74 6F 20 74 68 65 20 20 61 73 73 6F 63    onsto the  assoc
008730:  69 61 74 65 64 20 20 6C 61 62 65 6C 2E 20 20 54    iated  label.  T
008740:  68 65 20 20 20 6E 75 6D 62 65 72 61 66 74 65 72    he   numberafter
008750:  20 20 74 68 65 20 20 20 44 45 46 57 20 20 20 73      the   DEFW   s
008760:  65 74 73 20 20 20 74 68 65 20 20 20 69 6E 69 74    ets   the   init
008770:  69 61 6C 63 6F 6E 64 69 74 69 6F 6E 73 2E A0 A0    ialconditions...
008780:  20 54 68 65 20 61 64 64 72 65 73 E1 1E 73 20 69     The addres..s i
008790:  6E 20 74 68 65 20 66 69 72 73 74 20 20 63 6F 6C    n the first  col
0087A0:  75 6D 6E 20 69 73 20 74 68 65 6C 6F 77 20 20 62    umn is thelow  b
0087B0:  79 74 65 20 61 64 64 72 65 73 73 2E 20 20 54 68    yte address.  Th
0087C0:  65 20 20 73 65 63 6F 6E 64 20 20 20 63 6F 6C 75    e  second   colu
0087D0:  6D 6E 64 69 73 70 6C 61 79 73 20 20 74 68 65 20    mndisplays  the 
0087E0:  20 63 6F 6E 74 65 6E 74 73 20 20 6F 66 20 20 74     contents  of  t
0087F0:  68 65 20 70 61 69 72 20 6F 66 6D 65 6D 6F 72 79    he pair ofmemory
008800:  20 6C 6F 63 61 74 69 6F 6E 73 20 61 73 20 61 20     locations as a 
008810:  73 69 6E 67 6C 65 20 6E 75 6D 62 65 72 2E A3 20    single number.£ 
008820:  4C 44 20 44 45 2C 32 35 36 A0 20 20 4C 44 20 45    LD DE,256.  LD E
008830:  2C 34 A0 20 20 4C 44 20 28 53 54 4F 52 45 29 2C    ,4.  LD (STORE),
008840:  44 45 A0 20 20 4C 44 20 28 4C 4F 57 29 2C 44 45    DE.  LD (LOW),DE
008850:  A0 20 20 4C 44 20 41 2C 32 A0 20 20 4C 44 20 28    .  LD A,2.  LD (
008860:  48 49 47 48 29 2C 41 A0 20 20 4C 44 20 48 4C 2C    HIGH),A.  LD HL,
008870:  28 4C 4F 57 29 A0 20 20 45 58 20 44 45 2C 48 4C    (LOW).  EX DE,HL
008880:  A0 20 20 4C 44 20 44 2C 30 A0 20 20 52 EC 57 45    .  LD D,0.  R.WE
008890:  54 A0 20 20 A0 20 53 54 4F 52 45 20 44 45 46 57    T.  . STORE DEFW
0088A0:  20 33 32 30 30 30 A0 20 4C 4F 57 20 20 20 44 45     32000. LOW   DE
0088B0:  46 42 20 30 A0 20 48 49 47 48 20 20 44 45 46 42    FB 0. HIGH  DEFB
0088C0:  20 30 A0 20 20 A0 20 20 20 A0 20 20 20 20 20 45     0.  .   .     E
0088D0:  58 41 4D 50 4C 45 53 20 4F 46 20 49 4E 44 49 52    XAMPLES OF INDIR
0088E0:  45 43 54 20 41 44 44 52 45 53 53 49 4E 47 A0 A0    ECT ADDRESSING..
0088F0:  20 20 54 68 65 73 65 20 20 65 78 61 6D 70 6C 65      These  example
008900:  73 20 20 69 6C 6C 75 73 74 72 61 74 65 20 20 20    s  illustrate   
008910:  69 6E 64 69 72 65 63 74 61 64 64 72 65 73 73 69    indirectaddressi
008920:  6E 67 2E 20 20 20 41 74 20 20 20 74 68 69 73 20    ng.   At   this 
008930:  20 20 73 74 61 67 65 20 20 69 74 20 20 20 69 73      stage  it   is
008940:  69 6D 70 6F 73 73 69 62 6C 65 20 74 6F 20 20 64    impossible to  d
008950:  65 6D 6F 6E 73 74 72 61 74 65 20 20 69 74 73 20    emonstrate  its 
008960:  20 75 73 65 66 75 6C 2D 6E 65 73 73 2E 20 20 49     useful-ness.  I
008970:  74 20 69 73 20 65 6D 70 6C 6F 79 65 64 20 65 78    t is employed ex
008980:  74 65 6E 73 69 76 65 20 69 6E 20 6C 61 74 65 0E    tensive in late.
008990:  B5 72 65 78 61 6D 70 6C 65 73 A3 20 4C 44 20 48    .rexamples£ LD H
0089A0:  4C 2C 4C 4F 57 A0 20 20 4C 44 20 43 2C 28 48 4C    L,LOW.  LD C,(HL
0089B0:  29 A0 20 20 4C 44 20 48 4C 2C 48 49 47 48 A0 20    ).  LD HL,HIGH. 
0089C0:  20 4C 44 20 42 2C 28 48 4C 29 A0 20 20 4C 44 20     LD B,(HL).  LD 
0089D0:  41 2C 28 42 43 29 A0 20 20 4C 44 20 44 45 2C 33    A,(BC).  LD DE,3
0089E0:  38 36 30 A0 20 20 4C 44 20 28 44 45 29 2C 41 A0    860.  LD (DE),A.
0089F0:  20 20 4C 44 20 28 48 4C 29 2C 30 A0 20 20 4C 44      LD (HL),0.  LD
008A00:  20 42 43 2C 33 38 36 32 A0 20 20 4C 44 20 28 42     BC,3862.  LD (B
008A10:  43 29 2C 41 A0 20 20 52 45 54 A0 20 20 A0 20 4C    C),A.  RET.  . L
008A20:  4F 57 20 20 20 44 45 46 42 20 32 31 A0 20 48 49    OW   DEFB 21. HI
008A30:  47 48 20 20 44 45 46 42 20 31 35 A0 20 20 44 45    GH  DEFB 15.  DE
008A40:  46 42 20 30 A0 20 20 20 A0 20 20 20 45 58 41 4D    FB 0.   .   EXAM
008A50:  50 4C 45 53 20 4F 46 20 53 49 4E 47 4C 45 20 52    PLES OF SINGLE R
008A60:  45 47 49 53 54 45 52 20 41 44 44 49 54 49 4F 4E    EGISTER ADDITION
008A70:  A0 A0 20 54 68 65 20 20 65 78 61 6D 70 6C 65 20    .. The  example 
008A80:  20 61 64 64 73 20 20 74 6F 67 65 74 68 65 72 20     adds  together 
008A90:  20 57 67 20 74 68 65 20 20 74 77 6F 6E 75 6D 62     Wg the  twonumb
008AA0:  65 72 73 20 20 38 37 34 30 20 20 61 6E 64 20 20    ers  8740  and  
008AB0:  31 32 36 30 20 20 20 75 73 69 6E 67 20 20 73 69    1260   using  si
008AC0:  6E 67 6C 65 72 65 67 69 73 74 65 72 20 20 20 61    ngleregister   a
008AD0:  64 64 69 74 69 6F 6E 20 20 6F 6E 6C 79 2E 20 20    ddition  only.  
008AE0:  20 54 68 65 20 20 64 6F 75 62 6C 65 6C 65 6E 67     The  doubleleng
008AF0:  74 68 20 20 6E 75 6D 62 65 72 73 20 61 72 65 20    th  numbers are 
008B00:  68 65 6C 64 20 69 6E 20 42 43 20 61 6E 64 20 44    held in BC and D
008B10:  45 20 73 6F 74 68 61 74 20 20 74 68 65 20 20 72    E sothat  the  r
008B20:  65 73 75 6C 74 73 20 20 63 61 6E 20 20 20 62 65    esults  can   be
008B30:  20 20 20 64 69 73 70 6C 61 79 65 64 65 61 73 69       displayedeasi
008B40:  6C 79 2E 20 20 20 54 68 69 73 20 6D 65 74 68 6F    ly.   This metho
008B50:  64 20 6F 66 20 61 64 64 69 74 69 6F 6E 20 63 61    d of addition ca
008B60:  6E 20 62 65 70 65 72 66 6F 72 6D 65 64 20 75 73    n beperformed us
008B70:  69 6E 67 20 72 65 67 69 73 74 65 72 20 70 61 69    ing register pai
008B80:  72 20 20 61 64 64 69 74 69 6F 6E 2C 61 73 20 77    r  addition,as w
008B90:  65 6C 6C E4 44 2C 20 20 74 6F 20 61 64 64 20 74    ell.D,  to add t
008BA0:  6F 67 65 74 68 65 72 20 6E 75 6D 62 65 72 73 20    ogether numbers 
008BB0:  6F 66 20 61 6E 79 6C 65 6E 67 74 68 2E A0 A0 20    of anylength... 
008BC0:  54 68 65 20 73 74 61 74 65 20 20 6F 66 20 20 74    The state  of  t
008BD0:  68 65 20 69 6E 64 69 76 69 64 75 61 6C 20 66 6C    he individual fl
008BE0:  61 67 73 20 61 72 65 64 69 73 70 6C 61 79 65 64    ags aredisplayed
008BF0:  20 74 6F 20 74 68 65 20 6C 65 66 74 20 6F 66 20     to the left of 
008C00:  74 68 65 20 72 65 67 69 73 74 65 72 73 2E A3 20    the registers.£ 
008C10:  4C 44 20 44 45 2C 38 37 34 30 A0 20 20 4C 44 20    LD DE,8740.  LD 
008C20:  42 43 2C 31 32 36 30 A0 20 20 4C 44 20 41 2C 45    BC,1260.  LD A,E
008C30:  A0 20 20 41 44 44 20 41 2C 43 A0 20 20 4C 44 20    .  ADD A,C.  LD 
008C40:  43 2C 41 A0 20 20 4C 44 20 41 2C 44 A0 20 20 41    C,A.  LD A,D.  A
008C50:  44 43 20 41 2C 42 A0 20 20 4C 44 20 42 2C 41 A0    DC A,B.  LD B,A.
008C60:  20 20 A0 20 20 4C 44 20 48 4C 2C 53 54 4F 52 45      .  LD HL,STORE
008C70:  A0 20 20 4C 44 20 41 2C 31 35 A0 20 20 41 44 44    .  LD A,15.  ADD
008C80:  20 41 2C 28 48 4C 29 A0 20 20 52 45 54 A0 20 20     A,(HL).  RET.  
008C90:  A0 20 53 54 4F 10 11 52 45 20 44 45 46 42 20 32    . STO..RE DEFB 2
008CA0:  35 A0 20 20 A0 20 20 20 20 45 58 41 4D 50 4C 45    5.  .    EXAMPLE
008CB0:  20 4F 46 20 52 45 47 49 53 54 45 52 20 50 41 49     OF REGISTER PAI
008CC0:  52 20 41 44 44 49 54 49 4F 4E A0 A0 20 54 68 69    R ADDITION.. Thi
008CD0:  73 20 20 65 78 61 6D 70 6C 65 20 20 65 66 66 65    s  example  effe
008CE0:  63 74 69 76 65 6C 79 20 6D 75 6C 74 69 70 6C 69    ctively multipli
008CF0:  65 73 20 61 6E 75 6D 62 65 72 20 20 68 65 6C 64    es anumber  held
008D00:  20 69 6E 20 74 68 65 20 20 48 4C 20 72 65 67 69     in the  HL regi
008D10:  73 74 65 72 20 70 61 69 72 20 62 79 31 30 20 20    ster pair by10  
008D20:  75 73 69 6E 67 20 20 20 61 64 64 69 74 69 6F 6E    using   addition
008D30:  20 20 20 74 6F 20 20 20 73 75 63 63 65 73 73 69       to   successi
008D40:  76 65 6C 79 6D 75 6C 74 69 70 6C 79 20 62 79 20    velymultiply by 
008D50:  32 2E A3 20 4C 44 20 48 4C 2C 28 53 54 4F 52 45    2.£ LD HL,(STORE
008D60:  29 A0 20 20 41 44 44 20 48 4C 2C 48 4C A0 20 20    ).  ADD HL,HL.  
008D70:  41 44 44 20 48 4C 2C 48 4C A0 20 20 4C 44 20 44    ADD HL,HL.  LD D
008D80:  45 2C 28 53 54 4F 52 45 29 A0 20 20 41 44 44 20    E,(STORE).  ADD 
008D90:  48 4C 2C 44 45 A0 20 C2 68 20 41 44 44 20 48 4C    HL,DE. .h ADD HL
008DA0:  2C 48 4C A0 20 20 4C 44 20 28 53 54 4F 52 45 29    ,HL.  LD (STORE)
008DB0:  2C 48 4C A0 20 20 A0 20 20 4C 44 20 48 4C 2C 31    ,HL.  .  LD HL,1
008DC0:  30 30 30 A0 20 20 4C 44 20 41 2C 32 35 35 A0 20    000.  LD A,255. 
008DD0:  20 41 44 44 20 41 2C 31 A0 20 20 41 44 43 20 48     ADD A,1.  ADC H
008DE0:  4C 2C 48 4C A0 20 20 52 45 54 A0 20 20 A0 20 53    L,HL.  RET.  . S
008DF0:  54 4F 52 45 20 44 45 46 57 20 36 30 30 30 A0 20    TORE DEFW 6000. 
008E00:  20 A0 20 20 45 58 41 4D 50 4C 45 20 4F 46 20 53     .  EXAMPLE OF S
008E10:  49 4E 47 4C 45 20 52 45 47 49 53 54 45 52 20 53    INGLE REGISTER S
008E20:  55 42 54 52 41 43 54 49 4F 4E A0 A0 20 54 68 69    UBTRACTION.. Thi
008E30:  73 20 65 78 61 6D 70 6C 65 20 73 75 62 74 72 61    s example subtra
008E40:  63 74 73 20 20 31 32 36 30 20 20 66 72 6F 6D 20    cts  1260  from 
008E50:  38 37 34 30 75 73 69 6E 67 20 20 6F 6E 6C 79 20    8740using  only 
008E60:  73 69 6E 67 6C 65 20 72 65 67 69 73 74 65 72 20    single register 
008E70:  73 75 62 74 72 61 63 74 69 6F 6E 2E 54 68 65 20    subtraction.The 
008E80:  20 74 77 6F 20 20 6E 75 6D 62 65 72 73 20 20 61     two  numbers  a
008E90:  72 65 20 68 65 6C 64 20 69 F0 1C 6E 20 61 6C 6C    re held i..n all
008EA0:  6F 63 61 74 65 64 6D 65 6D 6F 72 79 20 6C 6F 63    ocatedmemory loc
008EB0:  61 74 69 6F 6E 73 20 74 68 69 73 20 74 69 6D 65    ations this time
008EC0:  2E A0 A0 20 54 68 69 73 20 20 6D 65 74 68 6F 64    ... This  method
008ED0:  20 20 20 6F 66 20 20 73 75 62 74 72 61 63 74 69       of  subtracti
008EE0:  6F 6E 20 20 63 61 6E 20 20 62 65 65 78 74 65 6E    on  can  beexten
008EF0:  64 65 64 20 20 20 74 6F 20 20 61 6E 79 20 20 6C    ded   to  any  l
008F00:  65 6E 67 74 68 20 20 20 6E 75 6D 62 65 72 20 20    ength   number  
008F10:  61 6E 64 72 65 67 69 73 74 65 72 20 70 61 69 72    andregister pair
008F20:  20 73 75 62 74 72 61 63 74 69 6F 6E 2E A3 20 4C     subtraction.£ L
008F30:  44 20 48 4C 2C 4E 55 4D 31 A0 20 20 4C 44 20 44    D HL,NUM1.  LD D
008F40:  45 2C 4E 55 4D 32 A0 20 20 4C 44 20 41 2C 28 44    E,NUM2.  LD A,(D
008F50:  45 29 A0 20 20 53 55 42 20 28 48 4C 29 A0 20 20    E).  SUB (HL).  
008F60:  4C 44 20 28 44 45 29 2C 41 A0 20 20 4C 44 20 45    LD (DE),A.  LD E
008F70:  2C 31 38 A0 20 20 4C 44 20 4C 2C 32 30 A0 20 20    ,18.  LD L,20.  
008F80:  4C 44 20 41 2C 28 44 45 29 A0 20 20 53 42 43 20    LD A,(DE).  SBC 
008F90:  41 2C 28 48 4C 29 A0 20 20 4C 44 07 80 20 28 44    A,(HL).  LD.. (D
008FA0:  45 29 2C 41 A0 20 20 52 45 54 A0 20 20 A0 20 4E    E),A.  RET.  . N
008FB0:  55 4D 32 20 20 44 45 46 57 20 38 37 34 30 A0 20    UM2  DEFW 8740. 
008FC0:  4E 55 4D 31 20 20 44 45 46 57 20 31 32 36 30 A0    NUM1  DEFW 1260.
008FD0:  20 20 A0 20 20 A0 20 20 45 58 41 4D 50 4C 45 20      .  .  EXAMPLE 
008FE0:  55 53 49 4E 47 20 52 45 47 49 53 54 45 52 20 50    USING REGISTER P
008FF0:  41 49 52 20 53 55 42 54 52 41 43 54 49 4F 4E A0    AIR SUBTRACTION.
009000:  A0 20 54 68 69 73 20 65 78 61 6D 70 6C 65 20 69    . This example i
009010:  6C 6C 75 73 74 72 61 74 65 73 20 73 75 62 74 72    llustrates subtr
009020:  61 63 74 69 6F 6E 20 6F 66 72 65 67 69 73 74 65    action ofregiste
009030:  72 20 70 61 69 72 73 2E 20 20 49 74 20 73 75 62    r pairs.  It sub
009040:  74 72 61 63 74 73 20 20 31 35 33 36 20 66 72 6F    tracts  1536 fro
009050:  6D 36 35 35 33 36 2E 20 20 20 41 74 20 20 6C 65    m65536.   At  le
009060:  61 73 74 20 33 20 62 79 74 65 73 20 6F 66 20 6D    ast 3 bytes of m
009070:  65 6D 6F 72 79 20 61 72 65 72 65 71 75 69 72 65    emory arerequire
009080:  64 20 20 74 6F 20 20 68 6F 6C 64 20 20 74 68 65    d  to  hold  the
009090:  20 20 6C 61 74 74 65 72 20 20 6E 75 6D B7 D9 62      latter  num..b
0090A0:  65 72 2C 74 68 65 20 68 69 67 68 65 73 74 20 62    er,the highest b
0090B0:  79 74 65 20 20 72 65 70 72 65 73 65 6E 74 69 6E    yte  representin
0090C0:  67 20 36 35 35 33 36 2E A0 A0 20 41 6C 74 68 6F    g 65536... Altho
0090D0:  75 67 68 20 20 41 44 43 20 61 6E 64 20 20 53 42    ugh  ADC and  SB
0090E0:  43 20 20 6D 61 79 20 72 65 71 75 69 72 65 20 74    C  may require t
0090F0:  68 65 43 61 72 72 79 20 20 66 6C 61 67 20 74 6F    heCarry  flag to
009100:  20 20 62 65 20 63 6C 65 61 72 65 64 20 66 69 72      be cleared fir
009110:  73 74 2C 20 69 66 20 74 68 65 70 72 65 76 69 6F    st, if theprevio
009120:  75 73 20 63 61 6C 63 75 6C 61 74 69 6F 6E 20 20    us calculation  
009130:  4E 45 56 45 52 20 72 65 73 75 6C 74 73 20 69 6E    NEVER results in
009140:  20 61 63 61 72 72 79 20 62 65 69 6E 67 20 20 67     acarry being  g
009150:  65 6E 65 72 61 74 65 64 2C 20 74 68 69 73 20 73    enerated, this s
009160:  74 65 70 20 6D 61 79 20 62 65 6F 6D 69 74 74 65    tep may beomitte
009170:  64 2E 20 20 48 6F 77 65 76 65 72 20 69 74 20 69    d.  However it i
009180:  73 20 6F 66 74 65 6E 20 20 62 65 74 74 65 72 20    s often  better 
009190:  74 6F 62 65 20 73 61 66 65 20 61 6E 64 20 69 18    tobe safe and i.
0091A0:  D3 6E 63 6C 75 64 65 20 69 74 2C 20 20 74 68 61    .nclude it,  tha
0091B0:  6E 20 20 6C 6F 6F 6B 20 20 66 6F 72 74 68 65 20    n  look  forthe 
0091C0:  72 61 6E 64 6F 6D 6C 79 20 6F 63 63 75 72 72 69    randomly occurri
0091D0:  6E 67 20 66 61 75 6C 74 20 74 68 61 74 20 69 74    ng fault that it
0091E0:  20 63 61 6E 67 65 6E 65 72 61 74 65 2E A3 20 4C     cangenerate.£ L
0091F0:  44 20 48 4C 2C 28 4E 55 4D 31 4C 29 A0 20 20 4C    D HL,(NUM1L).  L
009200:  44 20 44 45 2C 28 4E 55 4D 32 4C 29 A0 20 20 53    D DE,(NUM2L).  S
009210:  42 43 20 48 4C 2C 44 45 A0 20 20 4C 44 20 28 41    BC HL,DE.  LD (A
009220:  4E 53 4C 29 2C 48 4C A0 20 20 4C 44 20 48 4C 2C    NSL),HL.  LD HL,
009230:  28 4E 55 4D 31 48 29 A0 20 20 4C 44 20 44 45 2C    (NUM1H).  LD DE,
009240:  30 A0 20 20 53 42 43 20 48 4C 2C 44 45 A0 20 20    0.  SBC HL,DE.  
009250:  4C 44 20 28 41 4E 53 48 29 2C 48 4C A0 20 20 52    LD (ANSH),HL.  R
009260:  45 54 A0 20 20 A0 20 4E 55 4D 31 4C 20 44 45 46    ET.  . NUM1L DEF
009270:  57 20 30 A0 20 4E 55 4D 31 48 20 44 45 46 57 20    W 0. NUM1H DEFW 
009280:  31 20 2A 36 35 35 33 36 A0 20 4E 55 4D 32 4C 20    1 *65536. NUM2L 
009290:  44 45 46 57 20 31 35 33 36 A0 20 41 4E 53 4C 20    DEFW 1536. ANSL 
0092A0:  20 B9 84 44 45 46 57 20 30 A0 20 41 4E 53 48 20     ..DEFW 0. ANSH 
0092B0:  20 44 45 46 57 20 30 A0 20 20 A0 20 20 20 20 45     DEFW 0.  .    E
0092C0:  58 41 4D 50 4C 45 20 4F 46 20 49 4E 43 52 45 4D    XAMPLE OF INCREM
0092D0:  45 4E 54 20 41 4E 44 20 44 45 43 52 45 4D 45 4E    ENT AND DECREMEN
0092E0:  54 A0 A0 20 41 74 20 20 70 72 65 73 65 6E 74 20    T.. At  present 
0092F0:  20 74 68 65 20 20 70 72 6F 67 72 61 6D 73 20 74     the  programs t
009300:  68 61 74 20 63 61 6E 20 20 62 65 77 72 69 74 74    hat can  bewritt
009310:  65 6E 20 61 72 65 20 73 6F 6D 65 77 68 61 74 20    en are somewhat 
009320:  6C 69 6D 69 74 65 64 2E A0 20 49 4E 43 20 20 61    limited.. INC  a
009330:  6E 64 20 20 44 45 43 20 72 65 61 6C 6C 79 20 6F    nd  DEC really o
009340:  6E 6C 79 20 62 65 63 6F 6D 65 20 75 73 65 66 75    nly become usefu
009350:  6C 69 6E 20 63 6F 6E 6A 75 6E 63 74 69 6F 6E 20    lin conjunction 
009360:  77 69 74 68 20 69 6E 73 74 72 75 63 74 69 6F 6E    with instruction
009370:  73 20 20 74 6F 20 20 62 65 69 6E 74 72 6F 64 75    s  to  beintrodu
009380:  63 65 64 20 73 68 6F 72 74 6C 79 2E A3 20 4C 44    ced shortly.£ LD
009390:  20 43 2C 35 A0 20 20 4C 44 20 48 4C 2C 53 54 4F     C,5.  LD HL,STO
0093A0:  52 45 A0 B4 A6 20 20 4C 44 20 28 48 4C 29 2C 43    RE...  LD (HL),C
0093B0:  A0 20 20 49 4E 43 20 43 A0 20 20 49 4E 43 20 48    .  INC C.  INC H
0093C0:  4C A0 20 20 4C 44 20 28 48 4C 29 2C 43 A0 20 20    L.  LD (HL),C.  
0093D0:  44 45 43 20 43 A0 20 20 49 4E 43 20 4C A0 20 20    DEC C.  INC L.  
0093E0:  4C 44 20 28 48 4C 29 2C 43 A0 20 20 49 4E 43 20    LD (HL),C.  INC 
0093F0:  48 A0 20 20 52 45 54 A0 20 20 A0 20 53 54 4F 52    H.  RET.  . STOR
009400:  45 20 44 45 46 42 20 30 A0 20 20 44 45 46 42 20    E DEFB 0.  DEFB 
009410:  30 A0 20 20 44 45 46 42 20 30 A0 20 20 A0 20 20    0.  DEFB 0.  .  
009420:  20 20 20 20 20 20 20 45 58 41 4D 50 4C 45 53 20           EXAMPLES 
009430:  4F 46 20 5A 45 52 4F 20 46 4C 41 47 A0 A0 20 57    OF ZERO FLAG.. W
009440:  68 69 6C 65 20 20 20 72 75 6E 6E 69 6E 67 20 20    hile   running  
009450:  74 68 69 73 20 20 65 78 61 6D 70 6C 65 20 20 74    this  example  t
009460:  72 79 20 20 74 6F 70 72 65 64 69 63 74 20 74 68    ry  topredict th
009470:  65 20 73 74 61 74 65 20 6F 66 20 74 68 65 20 5A    e state of the Z
009480:  65 72 6F 20 66 6C 61 67 20 61 66 74 65 72 74 68    ero flag afterth
009490:  65 20 69 6E 73 74 72 75 63 74 69 6F 6E 20 68 61    e instruction ha
0094A0:  73 20 62 65 65 C5 1C 6E 20 70 65 72 66 6F 72 6D    s bee..n perform
0094B0:  65 64 2E A3 20 4C 44 20 48 4C 2C 32 35 37 A0 20    ed.£ LD HL,257. 
0094C0:  20 44 45 43 20 4C A0 20 20 4C 44 20 41 2C 32 33     DEC L.  LD A,23
0094D0:  A0 20 20 53 55 42 20 32 33 A0 20 20 4C 44 20 44    .  SUB 23.  LD D
0094E0:  45 2C 32 35 36 A0 20 20 49 4E 43 20 41 A0 20 20    E,256.  INC A.  
0094F0:  53 42 43 20 48 4C 2C 44 45 A0 20 20 49 4E 43 20    SBC HL,DE.  INC 
009500:  48 A0 20 20 53 55 42 20 32 A0 20 20 53 42 43 20    H.  SUB 2.  SBC 
009510:  48 4C 2C 44 45 A0 20 20 4C 44 20 48 4C 2C 31 A0    HL,DE.  LD HL,1.
009520:  20 20 44 45 43 20 48 4C A0 20 20 52 45 54 A0 20      DEC HL.  RET. 
009530:  20 A0 20 20 A0 20 20 20 A0 20 20 20 20 20 20 20     .  .   .       
009540:  20 20 20 20 20 20 20 20 43 4F 4D 50 41 52 45 A0            COMPARE.
009550:  A0 20 20 53 6F 20 20 66 61 72 20 20 20 61 6C 6C    .  So  far   all
009560:  20 20 69 6E 73 74 72 75 63 74 69 6F 6E 73 20 20      instructions  
009570:  77 65 20 20 20 68 61 76 65 64 69 73 63 75 73 73    we   havediscuss
009580:  65 64 20 20 74 68 61 74 20 20 61 66 66 65 63 74    ed  that  affect
009590:  20 20 74 68 65 20 20 43 61 72 72 79 20 20 20 6F      the  Carry   o
0095A0:  72 5A 65 72 6F 20 66 50 AF 6C 61 67 73 20 20 61    rZero fP.lags  a
0095B0:  6C 73 6F 20 20 61 66 66 65 63 74 20 20 74 68 65    lso  affect  the
0095C0:  20 20 20 72 65 67 69 73 74 65 72 63 6F 6E 63 65       registerconce
0095D0:  72 6E 65 64 2E 20 54 68 65 72 65 20 61 72 65 20    rned. There are 
0095E0:  61 20 6E 75 6D 62 65 72 20 20 6F 66 20 75 73 65    a number  of use
0095F0:  66 75 6C 69 6E 73 74 72 75 63 74 69 6F 6E 73 20    fulinstructions 
009600:  74 68 61 74 20 6F 6E 6C 79 20 61 66 66 65 63 74    that only affect
009610:  20 66 6C 61 67 73 2E 20 54 68 65 63 6F 6D 70 61     flags. Thecompa
009620:  72 65 20 6F 72 20 20 43 50 20 20 69 6E 73 74 72    re or  CP  instr
009630:  75 63 74 69 6F 6E 20 20 69 73 20 20 6F 6E 65 20    uction  is  one 
009640:  20 6F 66 74 68 65 73 65 2E A0 A0 20 43 50 20 20     ofthese... CP  
009650:  20 63 6F 6D 70 61 72 65 73 20 20 74 68 65 20 20     compares  the  
009660:  63 6F 6E 74 65 6E 74 73 20 20 6F 66 20 74 68 65    contents  of the
009670:  20 20 41 72 65 67 69 73 74 65 72 20 77 69 74 68      Aregister with
009680:  20 20 61 20 6E 75 6D 62 65 72 20 20 28 43 50 20      a number  (CP 
009690:  6E 29 2C 20 61 6E 6F 74 68 65 72 72 65 67 69 73    n), anotherregis
0096A0:  74 65 72 20 20 28 43 50 20 82 88 72 29 2C 20 6F    ter  (CP ..r), o
0096B0:  72 20 61 6E 79 20 6D 65 6D 6F 72 79 20 6C 6F 63    r any memory loc
0096C0:  61 74 69 6F 6E 69 6E 64 69 72 65 63 74 6C 79 20    ationindirectly 
0096D0:  20 61 64 64 72 65 73 73 65 64 20 20 74 68 72 6F     addressed  thro
0096E0:  75 67 68 20 20 74 68 65 20 20 20 48 4C 72 65 67    ugh  the   HLreg
0096F0:  69 73 74 65 72 20 20 70 61 69 72 20 20 28 20 43    ister  pair  ( C
009700:  50 20 28 48 4C 29 20 29 2E 20 54 68 65 20 63 6F    P (HL) ). The co
009710:  6D 70 61 72 65 69 6E 73 74 72 75 63 74 69 6F 6E    mpareinstruction
009720:  20 69 73 20 65 66 66 65 63 74 69 76 65 6C 79 20     is effectively 
009730:  20 53 55 42 20 20 62 75 74 20 74 68 65 72 65 73     SUB  but theres
009740:  75 6C 74 20 20 64 6F 65 73 20 6E 6F 74 20 61 66    ult  does not af
009750:  66 65 63 74 20 20 74 68 65 20 63 6F 6E 74 65 6E    fect  the conten
009760:  74 73 20 6F 66 74 68 65 20 41 20 72 65 67 69 73    ts ofthe A regis
009770:  74 65 72 2E A3 20 49 66 20 20 6E 20 20 69 73 20    ter.£ If  n  is 
009780:  20 74 68 65 20 20 6E 75 6D 62 65 72 20 20 77 69     the  number  wi
009790:  74 68 20 77 68 69 63 68 20 41 20 69 73 63 6F 6D    th which A iscom
0097A0:  70 61 72 65 64 2C 20 74 68 65 6E 3D E0 20 74 68    pared, then=. th
0097B0:  65 20 66 6F 6C 6C 6F 77 69 6E 67 20 72 65 73 75    e following resu
0097C0:  6C 74 73 20 3A 2D 20 A0 20 20 20 20 20 20 20 20    lts :- .        
0097D0:  20 20 20 20 20 20 20 20 20 20 20 20 43 61 72 72                Carr
0097E0:  79 20 20 20 20 20 20 5A 65 72 6F A0 20 20 41 20    y      Zero.  A 
0097F0:  3E 20 6E 20 20 20 20 20 20 20 20 20 20 20 20 20    > n             
009800:  20 20 30 20 20 20 20 20 20 20 20 20 20 30 A0 20      0          0. 
009810:  20 41 20 3D 20 6E 20 20 20 20 20 20 20 20 20 20     A = n          
009820:  20 20 20 20 20 30 20 20 20 20 20 20 20 20 20 20         0          
009830:  31 A0 20 20 41 20 3C 20 6E 20 20 20 20 20 20 20    1.  A < n       
009840:  20 20 20 20 20 20 20 20 31 20 20 20 20 20 20 20            1       
009850:  20 20 20 30 A3 20 53 75 6D 6D 61 72 79 20 2D 20       0£ Summary - 
009860:  63 6F 6D 70 61 72 69 73 6F 6E 73 A0 A0 43 50 20    comparisons..CP 
009870:  6E 20 20 20 20 20 43 6F 6D 70 61 72 65 73 20 41    n     Compares A
009880:  20 77 69 74 68 20 6E 20 28 20 30 20 2D 20 32 35     with n ( 0 - 25
009890:  35 29 A0 A0 43 50 20 72 20 20 20 20 20 43 6F 6D    5)..CP r     Com
0098A0:  70 61 72 65 73 20 41 20 77 69 74 68 20 3F D4 72    pares A with ?.r
0098B0:  65 67 69 73 74 65 72 20 72 A0 A0 43 50 20 28 48    egister r..CP (H
0098C0:  4C 29 20 20 43 6F 6D 70 61 72 65 73 20 41 20 77    L)  Compares A w
0098D0:  69 74 68 20 6D 65 6D 6F 72 79 20 6C 6F 63 61 74    ith memory locat
0098E0:  69 6F 6E 20 20 20 20 20 20 20 20 20 20 20 20 20    ion             
0098F0:  20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20                    
009900:  20 20 20 20 20 20 20 28 48 4C 29 A3 20 20 20 20           (HL)£    
009910:  20 20 20 20 20 20 45 58 41 4D 50 4C 45 53 20 4F          EXAMPLES O
009920:  46 20 43 4F 4D 50 41 52 45 A0 A0 20 54 72 79 20    F COMPARE.. Try 
009930:  20 74 6F 20 20 70 72 65 64 69 63 74 20 20 74 68     to  predict  th
009940:  65 20 73 74 61 74 65 20 6F 66 20 74 68 65 20 5A    e state of the Z
009950:  65 72 6F 61 6E 64 20 43 61 72 72 79 20 20 66 6C    eroand Carry  fl
009960:  61 67 73 20 62 65 66 6F 72 65 20 20 70 65 72 66    ags before  perf
009970:  6F 72 6D 69 6E 67 20 20 74 68 65 63 6F 6D 70 61    orming  thecompa
009980:  72 69 73 6F 6E 2E 20 20 49 6E 20 74 68 65 20 6E    rison.  In the n
009990:  65 78 74 20 6C 65 73 73 6F 6E 73 20 77 65 20 77    ext lessons we w
0099A0:  69 6C 6C 62 65 20 20 75 73 69 6E 67 20 20 74 57    illbe  using  tW
0099B0:  35 68 65 73 65 20 20 66 6C 61 67 73 20 20 65 78    5hese  flags  ex
0099C0:  74 65 6E 73 69 76 65 6C 79 2C 20 74 6F 70 72 6F    tensively, topro
0099D0:  64 75 63 65 20 6D 6F 72 65 20 69 6E 74 65 72 65    duce more intere
0099E0:  73 74 69 6E 67 20 65 78 61 6D 70 6C 65 73 2E A3    sting examples.£
0099F0:  20 4C 44 20 41 2C 35 A0 20 20 43 50 20 34 A0 20     LD A,5.  CP 4. 
009A00:  20 43 50 20 35 A0 20 20 43 50 20 36 A0 20 20 4C     CP 5.  CP 6.  L
009A10:  44 20 42 2C 33 A0 20 20 43 50 20 42 A0 20 20 4C    D B,3.  CP B.  L
009A20:  44 20 48 4C 2C 53 54 4F 52 45 A0 20 20 43 50 20    D HL,STORE.  CP 
009A30:  28 48 4C 29 A0 20 20 44 45 43 20 28 48 4C 29 A0    (HL).  DEC (HL).
009A40:  20 20 43 50 20 28 48 4C 29 A0 20 20 41 44 44 20      CP (HL).  ADD 
009A50:  41 2C 32 33 30 A0 20 20 43 50 20 28 48 4C 29 A0    A,230.  CP (HL).
009A60:  20 20 52 45 54 A0 20 20 A0 20 53 54 4F 52 45 20      RET.  . STORE 
009A70:  44 45 46 42 20 36 A0 20 20 A0 20 00 00 00 00 00    DEFB 6.  . .....
009A80:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
009A90:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
009AA0:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
009AB0:  00 B9 E1 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
009AC0:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
009AD0:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
009AE0:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
009AF0:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
009B00:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
009B10:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
009B20:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
009B30:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
009B40:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
009B50:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
009B60:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
009B70:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
009B80:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
009B90:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
009BA0:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
009BB0:  00 00 00 BE 17 00 00 00 00 00 00 00 00 00 00 00    ................
009BC0:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
009BD0:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
009BE0:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
009BF0:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
009C00:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
009C10:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
009C20:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
009C30:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
009C40:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
009C50:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
009C60:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
009C70:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
009C80:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
009C90:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
009CA0:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
009CB0:  00 00 00 00 00 BE 17 00 00 00 00 00 00 00 00 00    ................
009CC0:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
009CD0:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
009CE0:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
009CF0:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
009D00:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
009D10:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
009D20:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
009D30:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
009D40:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
009D50:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
009D60:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
009D70:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
009D80:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
009D90:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
009DA0:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
009DB0:  00 00 00 00 00 00 00 BE 17 00 00 00 00 00 00 00    ................
009DC0:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
009DD0:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
009DE0:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
009DF0:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
009E00:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
009E10:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
009E20:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
009E30:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
009E40:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
009E50:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
009E60:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
009E70:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
009E80:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
009E90:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
009EA0:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
009EB0:  00 00 00 00 00 00 00 00 00 BE 17 00 00 00 00 00    ................
009EC0:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
009ED0:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
009EE0:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
009EF0:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
009F00:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
009F10:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
009F20:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
009F30:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
009F40:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
009F50:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
009F60:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
009F70:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
009F80:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
009F90:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
009FA0:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
009FB0:  00 00 00 00 00 00 00 00 00 00 00 BE 17 00 00 00    ................
009FC0:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
009FD0:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
009FE0:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
009FF0:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
00A000:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
00A010:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
00A020:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
00A030:  00 00 00 00 00 00 00 00 00 00 00 00 00 18 3C 7E    ..............<~
00A040:  FF 18 18 18 18 18 18 18 18 FF 7E 3C 18 10 30 70    ..........~<..0p
00A050:  FF FF 70 30 10 08 0C 0E FF FF 0E 0C 08 00 00 18    ..p0............
00A060:  3C 7E FF FF 00 00 00 FF FF 7E 3C 18 00 80 E0 F8    <~.......~<.....
00A070:  FE F8 E0 80 00 02 0E 3E FE 3E 0E 02 00 38 38 92    .......>.>...88.
00A080:  7C 10 28 28 28 38 38 10 FE 10 28 44 82 38 38 12    |.(((88...(D.88.
00A090:  7C 90 28 24 22 38 38 90 7C 12 28 48 88 00 3C 18    |.($"88.|.(H..<.
00A0A0:  3C 3C 3C 18 00 3C FF FF 18 0C 18 30 18 18 3C 7E    <<<..<.....0..<~
00A0B0:  18 18 7E 3C 18 00 24 66 FF 66 24 00 00 9E 32 00    ..~<..$f.f$...2.
00A0C0:  C9 C9 C9 C9 C9 C9 C9 C9 C9 C9 C9 C9 C9 C9 C9 C9    ................
00A0D0:  C9 C9 C9 C9 C9 C9 C9 C9 C9 C9 C9 00 FF 00 00 FF    ................
00A0E0:  00 00 00 84 FF FF 00 00 00 3F 88 80 03 00 00 FF    .........?......
00A0F0:  FF 00 00 00 00 00 00 FF FF 00 08 79 C8 FD 00 FF    ...........y....
00A100:  FF 00 00 FF FF 00 08 79 C8 FD 00 FF FF 00 00 FF    .......y........
00A110:  FF 00 08 79 C8 FD 00 FF FF 00 00 FF FF 00 00 FF    ...y............
00A120:  FF 00 00 00 02 79 C8 FD FF 00 00 FF FF 00 00 FF    .....y..........
00A130:  FF 00 00 FF FF 00 04 79 C8 FD 00 FF FF 00 00 FF    .......y........
00A140:  FF 00 00 FF DF 00 00 00 08 79 C8 FD FF 00 00 FF    .........y......
00A150:  FF 00 00 FF FF 00 00 FF FF 00 10 79 C8 FD 00 FF    ...........y....
00A160:  FF 00 00 30 00 76 65 20 22 54 45 58 54 30 22 2C    ...0.ve "TEXT0",
00A170:  42 2C 26 35 38 30 30 2C 26 35 35 30 30 00 30 00    B,&5800,&5500.0.
00A180:  54 45 52 22 00 61 00 64 00 30 30 31 00 00 37 39    TER".a.d.001..79
00A190:  2C 26 65 64 2C 26 37 38 2C 26 63 62 2C 26 34 37    ,&ed,&78,&cb,&47
00A1A0:  00 26 31 62 2C 26 37 61 2C 26 42 33 20 00 66 2C    .&1b,&7a,&B3 .f,
00A1B0:  26 30 00 FF FF 00 00 FF FF 00 00 FF FF 00 00 8B    &0..............
00A1C0:  51 FF FF FF FF                                     Q....
RESULT OF SEARCH :
PRO=25   CHEA=0   COD=6   MUSI=0   COP=10   GRA=17   WRIT=4   198=1   199=0   STARTER=0   KBI=0   CAAV=0   L.TOURNIER=0  
 !FW',M/C TUTORooy&1!!£FH2# 8!6or!#!!c!c!Cl"# N# wg ''O(#   New Generation Softw
are  1985BCv%'iV 78BC%&2 pp87P#"Cl q!Q8QQsYH!!0!"(!(!(! $!XU0 2P!(!2Q!FH2# 8  Do
 you wish to enter lessons   Y/N£       Loading has been stopped£4E       Please
 start tape recorder£          Loading lessons 1-9£         Loading lessons 10-1
7£         Loading lessons 18-25£         Loading lessons 26-35£            Load
ing error£sYU3!2jE(fT R(B(Y2v*S1r8!2F r0S(E(#(50!2s3!K2*Pw#  ! 1!() # ""Po#  ,2!
2! "nf"1!"1!E"!"B121!3j! E!1"1!!1*AE (# v#+2!22 E ! 2nf22!22! 2nf2!/2 # ####&38A
DDRESS MACHINE CODE    SOURCE CODE     ASSEMBLED CODE   LABELS  INSTRUCTIONS Cur
sor keys, delete, and auto-repeat areas standard. ESC returns you to menu.  C cl
ears all ENTE tabs to next lineA assembles  SPAC tabs in label are Program has s
uccessfully assembled.    Press Run, Edit, or ESC to exit.        Program counte
r has jumped to non-validaddress. EDIT or reRUN program.         You are trying 
to r0un code in allocatedstorage area. RET missing Please EDIT  Press R to run e
xample, E to  edit,and ESC to return to menu.              Program stopped. You 
may re-RUN, EDIT  or press ESC to return to menu.         FLAGS    Registers and
 Contents    STAC C  Z PV  S                                        zn!2CB(Y*C  
64 5(N(GK((9C(kA 88 a80 C  04 68y w0wx(6656566 666!EF6 oO!E(Gq!C!E2##!Cn,,go#og#
g!1V(o&)))%)r( (eoOw#wwwwwww999999w3w"3q33ww3ww3w333w33wwwwwwww3w3w333"33wwwwww3
3333wwwfww33333x(33www33333wwwwwwww3ww3w3w33ww33"""33w333333333w33wwwwwww33333ww
www3333333w3w33"333"333w33333w3ww333"U33333333Uwwww33 3w333"333ww3333ww33w3w3333
33333w33333D333333333333333ww33wwwww333w3wwwwww3U3""3"w33"33333333"w3333333w3""3
33w3333w2!1(0V   (!" "!!80( ! !!(T(((j(  !!! !!" "!! !!!""0!!#"!!#"!!/#"!(v(r(t(
9(!!/#"(((" !# " "!" ""8  E nf "!" "g" E(8(t(r(H(J(2(!" "(v(!/#"!" "!" "!" "(".E
!z8 E ,ON#fi1o(21 E#((E   #  (+  # E &8!3$8!13addressthe contents ofmemory locat
ionthe numbertoF)))*r&&&&&&'W*p****-++'C'+++5,,,p','''(2(c(,-.-b-(£(--.'.....6/F
////0F0v0(000121d11+)4))#######$$$($3$#1$T$$y$$$$$$$$$%%%E%S%a%g%%%%%%%&&&$&)&.&
3&8&&B&H&N&T&Z&&f&l&accumulatorthe numberHL registerlocation (HL)DE registerB re
gisterC registerif Carry flag iGs set,D registerE registerH registerL registerBC
 registerif Zero flag is set,NOT DEFINEDif Zero flag is not set,if Carry flag is
 not set,IX registerIY registerlocation (IX+offset)location (IY+offset)location 
(BC)location (DE)AF registersalternative AF registersStack Pointerif Sign flag i
s 0, ie Positive,location (IX)location (IY)stackif Sign flag is 1, ie Minus,if P
/V flag is nOt set,if P/V flag is sEt,Interrupt vector registerRefresh registerp
ort whose number is in Cport with above numberFlag register0 of1 of2 of3 of4 of5
 of6 of7 of0000H0008H0010H0018H0020H0028H0030H0038His loaded withhas added to it
has added to it carry andThe Accumulator has subtracted from ithas taken from it
 carry andis INCremented by 1is DECremented by 1is PUSHed onto stack and SP decr
emented by 2is POPped from stack and SP incremented by 2Accumulator is logically
 ORed withAccumulator is logically ANDed withBC, DE, HL registers are all EXchan
ged with the alternative setis EXchanqged withAccumulator is NEGated, ie made ne
gativecarry flag is inverted, ie Compliment Carry Flagcarry flag is set, ie Set 
Carry Flagdecimal Adjust AccumulatorNo OPeration is performed, inspite of this i
t takes .000001 secs to do itcomputer is HALTed until an interrupt comes to awak
e it againtest BITSET bitRESet bitblock transfer (BC) bytes starting at (HL) to 
(DE) incrementingtransfer (HL) to (DE), increment HL and DE, dec BC, reset PV fl
ag if BC0block transfer (BC) bytes starting at (HL) to (DE) decrementingtransfer
 (HL) to (DE), decrement HL, DE, and BC, reset PV flag if BC0perform relative ju
mp todecrement B, if zero continue, if Not Zero perform relative jump topush the
 return address to stack and CALLperform jump toRETurn from Non-maDRskable inter
rupt NOT PERFORMED BY SIMULATORRETurn from Interrupt NOT PERFORMED BY SIMULATORR
ETurn address is POPped from the stacksearch from (HL) Incrementing BC bytes for
 data in Accumulatorcompare (HL) with A, increment HL, decrement BCsearch froom 
(HL) Decrementing BC bytes for data in Accumulatorcompare (HL) with A, decrement
 HL, and BCinvert all bits in A register, ie ComPLimentaccumulator is ComPared w
ithcontents of Accumulator is eXclusively ORed withrotate Accumulator Left shift
ing bit 7 into Carryrotate Accumulator and carry Leftrotate Accumulator Right, s
hifting bit 0 into Carryrotate accumulator and carry Rightrotate Left Decimal co
ntents of (HL) with low nibble of Accumulatorrotate Right Decimal contents of (H
L) with low nibble oLf Accumulatorchange Interrupt Mode toreSTart at addressiNpu
t from port (C), into block from (HL) Incrementing HL for B bytesiNput into (HL)
 from port (C) increment HL, decrement BiNput from port (C), into block from (HL
) Decrementing HL for B bytesiN%put into (HL) from port (C) Decrement HL, decrem
ent Binput data fromoutput from (HL) to port (C) increment HL, decrement BouTput
 from (HL) to port (C) block from (HL) Incrementing for B bytesoUTput from (HL) 
to port (C) Decrement HL, decrement BouTput3 to port (C), from block from (HL) D
ecrementing HL for B bytesoUTputdisable Interrupts. NOT PERFORMED BY SIMULATOR.e
nable Interrupts. NOT PERFORMED BY SIMULATOR.is Rotated Left shifting bit 7 into
 Carryand Carry are rotated Leftis Rotated Right, shifting bit 0 into Carryand C
arry are Rotated Rightis Shifted Left Arithmetically, 0 enters at bit 0is Shifte
d Right Arithmetically, sign bit unchangedis Shifted Right Logically, 0 is shift
ed into bit 7X!1v(.nf!  S2 E0!EV(!hF"M2L22 E2,E2!Eo0$#fo( 2!123)E*( !1N(23 213(J
 (E2  (E2r(t nf2v (E2)E*o$!EON#fi E#E 3 3oo08E1G(n&3HE1G #3+#fo!3)0'z'Wy'O###S32
3!3o3o3+ 0E0Eh'cH $V(d2ERRORd9!6!"!s"! !4cD! W56*1utA6 (9 !7!*1ut 5!1113!E".988 
 (!97!hF".9 8!97q ((62w (,!762ww22wN!EV(!hF".9-9(4####4!5!5!c7(Jq6# #w (#w0(yN*1
15 1s91*1F(9N(9V(9(9 9, (90(9(9f(9"1S1*"wf(#w+1H3#3!E".9NT(V(V/ '80EF N 7wh(wy2 
7h!7wy2 (,(y((B*(8 9y8(&($( &6666 7h!- +w!!( !(S12!2K(()(! (E,(Aa708&0"Q Q(s (,(
!7A8G8H Sx!N7y x!a A  787e8Ah(PJP( 8r1((8)(/t12186) v2y##"!7*ut (,()(w#!m71  w#2
1 w#Y(8o&!8(NF8 ##"!7!6Y(a(8g(!8g(#68g(8g(gg0 -9£ (7# ( y2!Eo0$#fo*K1+#q#p#"!4w3
#! !6!6n!7nfG(!7# ( (#VGut srnf##RuSpace missingInstr. ,1unknownMissing space or
 ,Error after inst.Offset too bigCan only ADD IX/INumber missingBracket missingL
abel too longNumber too largeLabel not foundNo DEFB, or DEFWOffset missing Error
  found  during  assembly.  Pleasecorrect before running program.         d's Ea
Q2)c)!B6!CB! (B(##6#6#6#6#   2!5D2!"B!B6#N#Fx#8 0xG#w#r#6#6x!EN#fi22))!CB(V(133!
BF %v V  A0(E E*N!DV(!DN#fi!N!CB-,.I(Y*ekQAA*B(*B8( *B(nf"1*AQAA*1("1*AMB2MB2BAQ
AA*B+w+w"Bnf"1*AQAA*BZB(*BN#F#"BC1*A!C27nfk!CBnfknfAk!CBnFfGk*Bk*Bk!CBnFfGNFAk!C
BnFfGFANBk!CBnfN  k!CBnfN  Bk!  ,8',0!CB(r0!EC!B272 C!CBfnwutwfxnvuxtv!CB!BN qw 
#!6#"*nfO(q#!CBF NV!Bnf"n(*B"B*BsBBsBB"B*B"B!CBwwqp pAqq wdrrGssFwjt"tu(uwqpqx*n
f"1*B82!C27 ABG("( ($ ($6($($($B($7 (7ppxxPP2! t A13 r A3vA!B2nfnf0E*BRM!0*B#y 2
!B213##  2 DFE,E.EFLAGS     Registers and Contents     STAC     You are about to
 affect memory area notallocated to you. Please edit program.  You are about to 
write to memory which will affect your program. Please edit.  The program has be
en completed. You mayEDIT or reRUN. Exit by pressing ESC.    The stack pointer i
s outside allocated memory area. Please edit program.       There are too many r
egisters called up,to display. Program will RUN as normal.qIIPkkkkPPAAkkkkkkkkkk
kF!kkkkkkkkkPPAAAAAAAAAAAAAkAPPPPPPPkyEEEEEzEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE
EEEEEEEEEEEEEEHDBNNNIIA(SPSPP(C(HL(NN(NDI(IX(IY(BC(DEAF(IX(IY0008101820283038OOO
OFHHvH9HIHFIIIIPPIIJOOOOPJBJlJJOJPP PvOOOOO*P4PPOPORPHPfPPNpPzPPPOPPPPPPJJKDKjKK
KKLML00200w060 0000&0.0!000*0K"0SC F0 p0N0q0V0r00s0 x0y0z0000 G0O0W00g0o0, 0.041
044s,0.040 A0 B0 C0 D0 E0 H0J0K0L0M0 P0Q0S0T0U0 X0Y0Z000 0a0b0c0e0 h0i0j0k0l0n0f
0t0u0DWDGFFO0  0I0R00d0m0kcAD0 0000000000)0490AD00JZ 0000004zj0SU00 0000000SB00B
R 0000004rb0DE050+0 000-0%07Z00 040IN040#0 0000$0,000430J080"00(0  0J0 00"000600
0B0DJN0CAL0"0 0006000B0RE00 00"06000B0PUS0000!0PO00000C00 0000000O00 0000000XO00
 0000000AN00 000£0000E00200RL 00000000R nt00000000RR 00 000 000R 00000000SL'0  0
!0"0#0&0%0$0SR/0 (0)0*0+0.0-0,0SR0 809000000BING0PO0RW0T0Vg0Xo0Zw0/0NF0PN0RV0T0V
f0Xn0Zv00N 0P H0R P0T X0V 0X h0Z p0 x0NA0PI0RQ0TY0Va0Xi0Zq0y0NB0PJ0RR0TZ0Vb0Xj0Z
r0z0NC0PK0RS0T0Vc0Xk0Zs00ND0PL0RT0T0Vd0Xl0Zt00NE0PM0RU0T0Ve0Xm0Zu00SEN0P0R0T0V0X
0Z00N0P0R0T0V0X0Z00N 0P 0R 0T 0V 0X 0Z 0 0N0P0R0T0V0X0Z00N0P0R0T0V0X0Z00N0P0R0T0
V0X0Z00N0P0R0T0V0X0Z00N0P0R0T0V0X0Z00REN0P0R0T0V0X0Z00N0P0R0T0V0X0Z00N 0P 0R 0T 
0V 0X 0Z 0 0N0P0R0T0V0X0Z00N0P0R0T0V0X0Z00N0P0R0T0V£0X0Z00N0P0R0T0V0X0Z00N0P0R0T
0V0X0Z00IJ0Hx H%HPHXHHhHHLHpOUJ0HyH AHQHYHaHiHIINFPVRRS00b0d0f0h0j0l0RLC0RL0RRC0
RR0EX0LDLDILDLDDCPCPICPCPDDA'0CP/0NEDCC0SC70NO0RLoRRgININIININDOUT£OTIOUTOTDD0E0
RETMRETEHALv0DEF0BI0DEF0Q!P" R3*XQ!7RQQ Q  *XKXB !RQQS*XnfF nfN Q!RQB $  V(21"AQ
Q*XKXBQ* RP" R*X##"XP!X"X!" RP2( EN#(+0!6y7n7* RPo#  2A22        Press SPACE to 
continue.        Press SPACE to select & ENTER to start Please confirm loading r
equired    Y/NW& W$ UX.X/X3X7XDXQXXeXoXvXXXXXXXXXXXXtXwNavbWcehk&loo ptsv1wzwzjM
(z £         REGISTERS and MEMORY Registers E are  like  pigeon  holes  inwhich 
 numbers  can be stored.  A singleregister can store  any  number  between0 and 
 255.  The  Z80  has   many   suchregisters.  Initially  we shall consideronly t
he more  general ones  designatedA,B,C,D,E,H and L.  The A  register ( orAccumul
ator )  is  the  most  important,since  more  instructions  involve  thisregiste
r than any other. The step by step instructions making upa program are stored in
 memory, a seriesof   similar    registers    or   memorylocations  external  to
  the  Z80  chip.65536 memory locations can be  accessed.They  are  designated  
by  their  numberbetween 0 and 65535.  It  takes  the Z80longer  to  access  mem
ory  than its owninternal registers.£       SIMPLE LOAD INSTRUCTIONS Perhaps  a 
 better ' description of loadthan the conventional one is copy, sincea load  ins
truction  copies  the  numberheld in a register  or  memory  locationinto   anot
her    register   or   memorylocation.   As   with  all  copying  theoriginal re
mains unchanged. The   Kload  instruction   is   normallyabbreviated to LD.  The
 simplest form ofload  copies data from  one  register toanother, i.e. LD A,B  .
 In  these  abbreviationed  instructions( mnemonics ), it is conventional to put
the register affected first, followed bythe register from which  the information
is  copied.   Hence  LD A,B  copies  thecontents of B into A or Accumulator.£ We
  can  also load any of the registerswith  a  number,  n, between  0  and 255dir
ectly ,   with    instructions   likeLD C,123. We  shaRll  discuss later  fromwh
ere  the number  is copied. Suffice tosay at this  stage,   that  instructionsar
e stored as  numbers.  i.e.  LD A,B isstored as  78.  Some  instructions  likeLD
 A,B are stored as one number,  otherstake up to four. The two types  of instruc
tions discussed( LD r,r' and  LD r,n )  can involve anyof the  registers conside
red.  Only  theA  register   can  be  loaded  with  thecontents  of  a  memory  
location.   Theinstructions of the form LD A,(nn) loadsor  copies  the   content
s   of   memorylocation nn  ( a  number  between  0 and65535 ) into the A regist
er.£ We can also load a memory location withthe  contents  of  the  Accumulator 
withLD (nn),A   where  nn  is  the number oraddress of the memory location. All 
 other single  regis ters  cannot beloaded  directly from a memory location.Two 
  instructions   involving   the   Aregister are required.£   Summary - Loading 
single registersLD r,r'    where r and r' are any of the           following A,B
,C,D,E,H and L.LD r,n     where n is a number 0 - 255LD A,(nn)  where nn is a nu
mber   0 to           65535LD (nn),A£            REGISTER PAIRS The fact that  a
  single  register  canonly hold  numbers  up  to 255  and  thetotal memory  ava
ilable  is up to 65535,is a limitation.  For0x  this reason thereare a  whole  s
et of instructions on theZ80  that deal with  registers in pairs.The pairs are  
BC,  DE, and  HL registerpairs. The two registers hold  different partsof a numb
er. Consider the decimal number27. We  can think of this as  X having twoparts t
he high part ( or byte) is the 2since it represents  2*10 , the low part( or  by
te )  is  the 7,   since it onlyreplesents  7*1 .  The  total  number is2*10 + 7
*1  27.  Each digit can only be0 - 9  i.e. 10  different numbers.£ A  single reg
ister can hold  0-255, 256different   numbers.   If  we   put  tworegisters side
 by side, i.e.  HL , the Hregister holding the High byte and the Lholding the  L
ow  byte, then we can holdin the register pair  H*256 + L*1 in thesame way as 27
  2*10 + 7*O1. The maximumthat can  be  held  in a  register  pairis  therefore 
  255 * 256 + 255  65535.By convention  the  high  byte is storedin  the  first 
 register in the registerpair name. We  can  load any of the register pairswith 
a number between 0 - 65535 directlyusing instructions like LD HL,nn. Just as we 
can combine two registers tohold numbers up to 65535, we can combineadjacent    
 memory     locations.    Byconvention the  Low  byte is held in thelocation wit
h the Lower address.£ We  can  therefore load a register pairwith  the  contents
 of a  pair of memorylocations,   with   instructions    likeLD DE,(nn) .    Thi
s   instruction    isequivalent to the non-valid instructionsLD E,(nn) and  LD D
,(nn+1). Similarly,  we can load the contents ofa reg$ister pair into  a pair  o
f  memorylocations,  i.e.   LD (nn),BC  which  isequivalent   to   the    two   
non-validinstructions LD (nn),C and  LD (nn+1),B. There   are  no  instructions 
 to  loadregister  pairs  with  the  contents  ofanother register pairk.  Two in
structionsthe form  LD r,r'  are  usually  used toperform such an operation. The
re  is  one  instruction  similar tothis type  EX DE,HL.  It  EXchanges theconte
nts of the  DE  register  pair withthe contents of the HL register pair.£  Summa
ry - loading register pairsLD dd,nn   where dd is any register pair           BC
, DE, and HL.            nn  is a number 0 - 65535LD dd,(nn)LD (nn),ddEX DE,HL  
  exchanges register contents£         INDIRECT ADDRESSING Up   to  now    we   
have   onFly   usedinstructions in which  memory  locationshave  been  specified
  directly  in  theinstruction. Another  useful  method  ofspecifying a memory l
ocation is to use anumber held in a register  pair,   knownas indirect addressin
g.  The instructionLD B,(HJL) for example  allows us to loador copy to the  B  r
egister the contentsof the memory location whose  address isin the HL register p
air. All  single  registers  can  be  loadedusing the HL register pair as a poin
ter. Similarly ,  memory  locations  canE  beloaded   indirectly  from   any   s
ingleregister using the contents  of  the  HLregister pair as address i.e. LD (H
L),C.£ Use of  the  BC  and  DE  registers forindirect addressing is limited to 
the  Aregister. i.e. LD (DE),A LD A,(BC) etc.£   Summaryb -  indirect addressing
LD r,(HL) where r is any single register          A,B,C,D,E,H, or L.LD (HL),rLD 
A,(BC)LD A,(DE)LD (BC),ALD (DE),A£      ADDITIONS AND THE CARRY FLAG Both single
  register and register pairaddition are possible on the Z80. All   single   reg
ister  additions  areperformed with the Accumulator. A number( i.e.  ADD A,6 ), 
 the  contents  of  aregister (i.e. ADD A,B), or the contentsof  an   indirectly
   addressed   memorylocation  using  the  HL  register  pair(i.e. ADD A,(HL) ) 
can be added  to  theAccumulator. The result  is  held in theAccumulator.  The s
ource of the additionis unaffected. Register  pair addition is performed inconju
nction  with  the HL register pair,and  can  only  involve  BC or DE ( i.e.ADD H
L,BC  or  ADD HL,DE ).   Again  thethe  result is held in  the  HL registerpair,
  and  the other  register  pair isunaffected.£ Single  and  double  register ad
ditionswill  obviously  only  give  the correctresult  if  the  answer is less t
han themaximum number the rWegister(s) can hold.If it is greater than this  a  c
arry  isgenerated.  The processor   holds   thissingle  bit  of  information or 
flag, sothat  action   can  be  taken  over  theoccurrence of the carry.   If th
ere  hasbeen  a  carry  on  the  last arithmeticoperation the carry is said to b
e set toa  "1" .  If not set  it is said to be a"0". A second form of addition i
s  availableon  the  Z80 ,   for   both  single  andmultiple registers,  known  
as  add withcarry  abbreviated  to  ADC.   They aresimila r to ADD  except that 
if the Carryflag  is  set  before  the  addition theresult is  incremented   by 
  one.   Allpreviously mentioned   ADD  instructionscan be performed as ADC.£ AD
C instructions can be strung togetherto perform  the  addition of two numbersof 
any  length,  as  the  examples  willshow.£   Summary -  additionADD A,n    wher
e n is a number 0 - 255ADD A,r    where  r  is  any   single           registerA
DD A,(HL)ADD HL,BCADD HL,DEADC A,nADC A,rADC A,(HL)ADC HL,BCADC HL,DE£    SUBTRA
CTION AND THE CARRY FLAG Single register subtraction takes placewith the Accumul
ator.  All  the forms ofADD  can  be   used  in   subtract.  Theabbreviation  or
  mnemonic SUB is alwayswritten without the A, which is implied.Hence the instru
ctionas are SUB n, SUB r,and SUB (HL).   Again the result is heldin the Accumula
tor.   The  carry flag isset to a "1"  if the  result is  outsidethe range  0 - 
255.There  are   no  double   register   SUBinstructions.All  configurations of 
 ADC instructionscan be used  with SBC or  SuBtract  withCarry  instructions.  T
he operation   issimilar to SUB,  except that the  resultis decremented  by one 
if the carry flagis set.£ Like  ADC instructions SBC instructionscan be  strung 
together to  subtract anylength number. Since  double register  subtraction cano
nly be performed with carry,  the stateof the  carry flag  prior to  SBC HL,BC,a
nd SBC HL,DE is important,  and  shouldbe "0". The carry flag can be set to a "1
" withthe instruction  SCF or Set Carry  Flag.Although   there   are    no    sp
ecificinstructions  to clear the carry flag to"0" there is an instruction to inv
ert itCCF or  Compliment Carry Flag.  We shallsee later that all logic instructi
ons doclear the carry flag.£ SUMMARY - subtract with carrySUBv n     )SUB r     
)  SUBtract from A, n, r, orSUB (HL)  )                  (HL)SBC A,n   )SBC A,r 
  )  SuBtract from A  with carrySBC A,(HL))SBC HL,BC )  SuBtract from HL with ca
rrySBC HL,DE )SCF        Set Carry FlagCCF        Compliment Carry Flag£  INCREM
ENT AND DECREMENT INSTRUCTIONS The last arithmetic instructions to  bediscussed 
can be performed on any singleor double register(s). These are INC andDEC.  INC 
increments (or  increases) thecontents  of  the  register,  or  memorylocation i
ndirectly  addressed by the HLregister pair,  by one.   DEC decrements( or  decr
eases )  the  contents  of theregister or  memory  location indirectlyaddressed 
by the  HL register  pair,  by The  carry  flag  is  not  affected  byeither of 
these instructions. These instructions  are  primarily usedwhere   counters   ar
e   required.   Theoperation  on  register  pairs  is  alsouseful  in   sequenti
al  operations   onmemory   locations  utilising   indirectaddressing.£ Summary 
- increment and decrementINC rINC (HL)INC ddDEC rDEC (HL)DEC dd£           THE Z
ERO FLAG Another  very  useful  flag included inall  processors is  the Zero fla
g.  Thisflag is set to "1"  if the result of anysingle register arithmetic opera
tion  iszero. Otherwise it is cleared nto "0". It is  only affected by double re
gisterarithmetic   operations   involving  thecarry  flag ,   i.e.  only  affect
ed  byADC HL,dd  or  SBC HL,dd. The  zero flag, like the carry flag, isunaffecte
d by any LD or EX instructions.£ Summary - zero andE carry flagsinstruction     
 Carry        Zero                r    dd      r   dd  LD            .     .    
  .    .  EX           n/v    .     n/v   .  ADD           *     *      *    .  
ADC           *     *      *    *  SUB           *    n/v     *   n/v  SBC      
     *     *      *    *  INC           .     .      *    .  DEC           .    
 .      *    .r single register   dd  double register * flag affected      . fla
g not affected     n/v    instruction not valid£            Lesso'ns 1 - 9 1.  R
egisters and Memory 2.  Simple Load Instructions         Ex - simple load instru
ctions 3.  Register Pairs         Ex - register pair loading 4.  Indirect Addres
sing         Ex - indirect addressing 5.  Addition and the Carry Flag         Ex
 - single register addition         Ex - register pair addition 6.  Subtraction 
and the Carry Flag         Ex - register subtraction         Ex - register pair 
subtraction 7.  Increment and Decrement         Ex - inc and dec instructions 8.
 , Zero Flag         Ex - zero flag 9.  Compare       Ex - comparison instructio
ns Load further lessons from tape£           INTRODUCTION The  Z80 is  the micro
processor  at theheart of your Amstrad. This program willteach   you   the   use
   of   all £  theinstructions available  on  the Z80,  ina series of simple  pr
ogressive lessons.  After  each   lesson,   step  by  stepexamples are given.  T
o further  improveyour understanding of the topic, you maythen modify or rewrite
 the examples, andrun them  pwithout  fear of  crashing thesystem. Proceed  thro
ugh  the menu by  pressingENTER to begin the highlighted lesson orexample, and  
SPACE to jump to the next.At anytime BREAK will return you  to themenu.£    INTR
ODUCTION TO RUNNING SIMULATOR All   examprjles   are   run   using  theSimulator
. At this stage the only  areasof the simulator screen to consider  arethe Sourc
e  Code ( the third column thatholds the instructions ) and the area atthe botto
m of the screen, which displaysthe contents  of  the  regisv%ters.  Otherareas  
will  be  described  as  they arerequired. The assembler, that converts  instruc
t-ions  into   machine  code, will  acceptLabels. Instead  of  putting  an addre
ssinto the program, we can give it a name.The  assembler  will   then  allocate 
 amemory  location to it. The name must becalled  up  in  the  program  with   i
tsinitial condition using  the instructionDEFB, DEFine Byte.£ DEFB is an  assemb
ler instruction not aZ80  instruction.  The allocated  memoryaddress is given in
 the first column. The simulator will display the contentsof this  memory locati
on, in decimal, inthe second column. Before each instruction is executed theinst
ruction is described in ENGLISH. Tryto work out what  should  happen  beforepres
sing  any  key   to   perform    theinstruction.£ You may go  through the exampl
e as manytimes as you like, until you  understandit. If you still find  difficul
ty, pressESC, skip  over the lessons and re-ENTERthe lesson  with which  you  ar
e  havingdifficulty. The manual however  gives anoutline of each lesson. When  y
ou  do  understand  the examplesgiven  try  modifying  them   using  theeditor. 
 Then  try  entering   your  ownprograms.  All  programs should end withRET ( or
 return ).   Don't  worry if youforget, the simulator will tell you. Remember,  
it  is   impossible  for   aprogram to destroy your computer. You'llneed a hamme
r to do that!£ LD A,34  LD B,A  LD (3867),A  LD A,(STORE)  LD (3867),A  LD A,B  
LD (STORE),A  LD C,B  LD A,(3867)  LD A,67  LD (3866),A  RET   STORE DEFB 124  D
EFB 0            REGISTER PAIR EXAMPLES The  example illustrates  each  type ofi
nstruction  that  loads register pairs.It also  demonstrates  that a  register/m
emory  pair  are  still  two individualregisters or memory locatiV0ons and can b
etreated as such. Another    assembler    instruction  isintroduced,  the  DEFW 
 instruction. Theassembler allocates  2  memory locationsto the  associated  lab
el.  The   numberafter  the   DEFW   sets   the   initialconditions. The address
 in the first  column is thelow  byte address.  The  second   columndisplays  th
e  contents  of  the pair ofmemory locations as a single number.£ LD DE,256  LD 
E,4  LD (STORE),DE  LD (LOW),DE  LD A,2  LD (HIGH),A  LD HL,(LOW)  EX DE,HL  LD 
D,0  RWET   STORE DEFW 32000 LOW   DEFB 0 HIGH  DEFB 0          EXAMPLES OF INDI
RECT ADDRESSING  These  examples  illustrate   indirectaddressing.   At   this  
 stage  it   isimpossible to  demonstrate  its  useful-ness.  It is employed ext
ensive in laterexamples£ LD HL,LOW  LD C,(HL)  LD HL,HIGH  LD B,(HL)  LD A,(BC) 
 LD DE,3860  LD (DE),A  LD (HL),0  LD BC,3862  LD (BC),A  RET   LOW   DEFB 21 HI
GH  DEFB 15  DEFB 0      EXAMPLES OF SINGLE REGISTER ADDITION The  example  adds
  together  Wg the  twonumbers  8740  and  1260   using  singleregister   additi
on  only.   The  doublelength  numbers are held in BC and DE sothat  the  result
s  can   be   displayedeasily.   This method of addition can beperformed using r
egister pair  addition,as wellD,  to add together numbers of anylength. The stat
e  of  the individual flags aredisplayed to the left of the registers.£ LD DE,87
40  LD BC,1260  LD A,E  ADD A,C  LD C,A  LD A,D  ADC A,B  LD B,A    LD HL,STORE 
 LD A,15  ADD A,(HL)  RET   STORE DEFB 25      EXAMPLE OF REGISTER PAIR ADDITION
 This  example  effectively multiplies anumber  held in the  HL register pair by
10  using   addition   to   successivelymultiply by 2.£ LD HL,(STORE)  ADD HL,HL
  ADD HL,HL  LD DE,(STORE)  ADD HL,DE h ADD HL,HL  LD (STORE),HL    LD HL,1000  
LD A,255  ADD A,1  ADC HL,HL  RET   STORE DEFW 6000    EXAMPLE OF SINGLE REGISTE
R SUBTRACTION This example subtracts  1260  from 8740using  only single register
 subtraction.The  two  numbers  are held in allocatedmemory locations this time.
 This  method   of  subtraction  can  beextended   to  any  length   number  and
register pair subtraction.£ LD HL,NUM1  LD DE,NUM2  LD A,(DE)  SUB (HL)  LD (DE)
,A  LD E,18  LD L,20  LD A,(DE)  SBC A,(HL)  LD (DE),A  RET   NUM2  DEFW 8740 NU
M1  DEFW 1260      EXAMPLE USING REGISTER PAIR SUBTRACTION This example illustra
tes subtraction ofregister pairs.  It subtracts  1536 from65536.   At  least 3 b
ytes of memory arerequired  to  hold  the  latter  number,the highest byte  repr
esenting 65536. Although  ADC and  SBC  may require theCarry  flag to  be cleare
d first, if theprevious calculation  NEVER results in acarry being  generated, t
his step may beomitted.  However it is often  better tobe safe and include it,  
than  look  forthe randomly occurring fault that it cangenerate.£ LD HL,(NUM1L) 
 LD DE,(NUM2L)  SBC HL,DE  LD (ANSL),HL  LD HL,(NUM1H)  LD DE,0  SBC HL,DE  LD (
ANSH),HL  RET   NUM1L DEFW 0 NUM1H DEFW 1 *65536 NUM2L DEFW 1536 ANSL  DEFW 0 AN
SH  DEFW 0      EXAMPLE OF INCREMENT AND DECREMENT At  present  the  programs th
at can  bewritten are somewhat limited. INC  and  DEC really only become usefuli
n conjunction with instructions  to  beintroduced shortly.£ LD C,5  LD HL,STORE 
 LD (HL),C  INC C  INC HL  LD (HL),C  DEC C  INC L  LD (HL),C  INC H  RET   STOR
E DEFB 0  DEFB 0  DEFB 0           EXAMPLES OF ZERO FLAG While   running  this  
example  try  topredict the state of the Zero flag afterthe instruction has been
 performed.£ LD HL,257  DEC L  LD A,23  SUB 23  LD DE,256  INC A  SBC HL,DE  INC
 H  SUB 2  SBC HL,DE  LD HL,1  DEC HL  RET                      COMPARE  So  far
   all  instructions  we   havediscussed  that  affect  the  Carry   orZero fPla
gs  also  affect  the   registerconcerned. There are a number  of usefulinstruct
ions that only affect flags. Thecompare or  CP  instruction  is  one  ofthese. C
P   compares  the  contents  of the  Aregister with  a number  (CP n), anotherre
gister  (CP r), or any memory locationindirectly  addressed  through  the   HLre
gister  pair  ( CP (HL) ). The compareinstruction is effectively  SUB  but there
sult  does not affect  the contents ofthe A register.£ If  n  is  the  number  w
ith which A iscompared, then the following results -                     Carry  
    Zero  A  n               0          0  A  n               0          1  A  n
               1          0£ Summary - comparisonsCP n     Compares A with n ( 0
 - 255)CP r     Compares A with register rCP (HL)  Compares A with memory locati
on                                    (HL)£          EXAMPLES OF COMPARE Try  to
  predict  the state of the Zeroand Carry  flags before  performing  thecomparis
on.  In the next lessons we willbe  using  tW5hese  flags  extensively, toproduc
e more interesting examples.£ LD A,5  CP 4  CP 5  CP 6  LD B,3  CP B  LD HL,STOR
E  CP (HL)  DEC (HL)  CP (HL)  ADD A,230  CP (HL)  RET   STORE DEFB 6   0pp088((
(88(D88($"88(H0$ff$2yyyyyyy0ve "TEXT0",B,&5800,&55000TER"ad00179,&ed,&78,&cb,&47
&1b,&7a,&B3 f,&0Q
Tous droits réservés. Reproduction sans autorisation interdite. © Kukulcan