home *** CD-ROM | disk | FTP | other *** search
/ APDL Public Domain 1 / APDL_PD1A.iso / program / assembler / tla < prev   
ArcFS Archive  |  1995-10-01  |  100.8 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: ArcFS Archive (archive/arcFS).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert ArcFS Archive (archive/arcFS) magic Supported
100% file RISC OS archive (ArcFS format) default
99% file data default
100% TrID Acorn ArcFS Archive default
100% gt2 Kopftext: 'Archive' default (weak)
100% detectItEasy Archive: ArcFS default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 41 72 63 68 69 76 65 00 | b4 00 00 00 54 03 00 00 |Archive.|....T...|
|00000010| 28 00 00 00 64 00 00 00 | 00 00 00 00 00 00 00 00 |(...d...|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000050| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000060| 82 4d 61 6e 75 61 6c 00 | 00 00 00 00 87 63 00 00 |.Manual.|.....c..|
|00000070| 44 ff ff ff 1e 18 03 e7 | 03 00 35 97 87 63 00 00 |D.......|..5..c..|
|00000080| 30 20 01 00 82 4d 61 6e | 5f 54 65 58 00 00 00 00 |0 ...Man|_TeX....|
|00000090| 25 69 00 00 43 e5 fc ff | 50 c3 8e 10 33 00 b4 2c |%i..C...|P...3..,|
|000000a0| 25 69 00 00 24 00 00 00 | 82 54 4c 41 00 00 00 00 |%i..$...|.TLA....|
|000000b0| 00 00 00 00 9f b6 00 00 | 42 f8 ff ff 28 81 4a f6 |........|B...(.J.|
|000000c0| 33 00 23 af 9f b6 00 00 | 6d 69 00 00 82 54 4c 41 |3.#.....|mi...TLA|
|000000d0| 5f 45 72 72 6f 72 73 00 | 26 0c 00 00 42 ff ff ff |_Errors.|&...B...|
|000000e0| b0 66 2e 46 33 00 bf 6e | 26 0c 00 00 db 83 01 00 |.f.F3..n|&.......|
|000000f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000100| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000120| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000200| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000210| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000230| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000260| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000270| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000280| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000290| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000300| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000320| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000350| 00 00 00 00 46 69 6c 65 | 44 61 74 61 82 4d 61 6e |....File|Data.Man|
|00000360| 5f 54 65 58 00 00 00 00 | 25 69 00 00 43 e5 fc ff |_TeX....|%i..C...|
|00000370| 50 c3 8e 10 03 00 b4 2c | 5c 69 6e 70 75 74 20 74 |P......,|\input t|
|00000380| 65 78 69 6e 66 6f 0a 0a | 40 69 67 6e 6f 72 65 0a |exinfo..|@ignore.|
|00000390| 40 69 6e 63 6c 75 64 65 | 20 61 72 63 68 69 65 69 |@include| archiei|
|000003a0| 6e 66 6f 0a 40 65 6e 64 | 20 69 67 6e 6f 72 65 0a |nfo.@end| ignore.|
|000003b0| 0a 40 63 6f 6d 6d 65 6e | 74 20 44 65 66 69 6e 65 |.@commen|t Define|
|000003c0| 20 74 68 65 20 66 6f 6c | 6c 6f 77 69 6e 67 20 6d | the fol|lowing m|
|000003d0| 61 63 72 6f 73 2c 20 61 | 73 20 6f 75 72 20 41 72 |acros, a|s our Ar|
|000003e0| 63 68 69 6d 65 64 65 73 | 20 73 70 65 63 69 61 6c |chimedes| special|
|000003f0| 73 0a 40 63 6f 6d 6d 65 | 6e 74 20 61 72 65 20 6e |s.@comme|nt are n|
|00000400| 6f 74 20 61 76 61 69 6c | 61 62 6c 65 20 65 76 65 |ot avail|able eve|
|00000410| 72 79 77 68 65 72 65 2e | 0a 0a 40 67 64 65 66 40 |rywhere.|..@gdef@|
|00000420| 4d 46 7b 4d 45 54 41 40 | 2d 46 4f 4e 54 7d 0a 40 |MF{META@|-FONT}.@|
|00000430| 67 64 65 66 40 41 72 63 | 68 69 6d 65 64 65 73 7b |gdef@Arc|himedes{|
|00000440| 41 72 63 68 69 40 2d 6d | 65 40 2d 64 65 73 7d 0a |Archi@-m|e@-des}.|
|00000450| 40 67 64 65 66 40 41 72 | 63 68 69 54 65 58 7b 41 |@gdef@Ar|chiTeX{A|
|00000460| 72 63 68 69 40 54 65 58 | 7d 0a 40 67 64 65 66 40 |rchi@TeX|}.@gdef@|
|00000470| 41 72 63 4d 46 7b 41 72 | 63 2d 40 4d 46 7d 0a 0a |ArcMF{Ar|c-@MF}..|
|00000480| 0a 40 73 65 74 74 69 74 | 6c 65 20 54 68 65 20 54 |.@settit|le The T|
|00000490| 4c 41 20 66 6f 72 20 74 | 68 65 20 41 52 4d 0a 40 |LA for t|he ARM.@|
|000004a0| 73 65 74 66 69 6c 65 6e | 61 6d 65 20 54 4c 41 2d |setfilen|ame TLA-|
|000004b0| 69 6e 66 6f 0a 0a 40 70 | 61 72 69 6e 64 65 6e 74 |info..@p|arindent|
|000004c0| 3d 30 70 74 0a 0a 40 74 | 69 74 6c 65 70 61 67 65 |=0pt..@t|itlepage|
|000004d0| 0a 40 74 69 74 6c 65 20 | 54 68 65 20 54 4c 41 20 |.@title |The TLA |
|000004e0| 66 6f 72 20 74 68 65 20 | 41 52 4d 0a 40 73 75 62 |for the |ARM.@sub|
|000004f0| 74 69 74 6c 65 20 6c 61 | 73 74 20 75 70 64 61 74 |title la|st updat|
|00000500| 65 64 20 31 32 74 68 20 | 41 70 72 69 6c 20 31 39 |ed 12th |April 19|
|00000510| 39 31 0a 40 73 75 62 74 | 69 74 6c 65 20 66 6f 72 |91.@subt|itle for|
|00000520| 20 76 65 72 73 69 6f 6e | 20 30 2e 31 66 0a 40 61 | version| 0.1f.@a|
|00000530| 75 74 68 6f 72 20 47 2e | 46 2e 41 2e 40 20 4c 61 |uthor G.|F.A.@ La|
|00000540| 6e 63 61 73 74 65 72 0a | 40 70 61 67 65 0a 40 76 |ncaster.|@page.@v|
|00000550| 73 6b 69 70 20 30 70 74 | 20 70 6c 75 73 20 31 66 |skip 0pt| plus 1f|
|00000560| 69 6c 6c 6c 0a 43 6f 70 | 79 72 69 67 68 74 20 40 |illl.Cop|yright @|
|00000570| 63 6f 70 79 72 69 67 68 | 74 7b 7d 20 31 39 38 39 |copyrigh|t{} 1989|
|00000580| 2d 2d 31 39 39 31 20 47 | 2e 46 2e 41 2e 40 20 4c |--1991 G|.F.A.@ L|
|00000590| 61 6e 63 61 73 74 65 72 | 0a 0a 50 65 72 6d 69 73 |ancaster|..Permis|
|000005a0| 73 69 6f 6e 20 69 73 20 | 67 72 61 6e 74 65 64 20 |sion is |granted |
|000005b0| 74 6f 20 6d 61 6b 65 20 | 61 6e 64 20 64 69 73 74 |to make |and dist|
|000005c0| 72 69 62 75 74 65 20 76 | 65 72 62 61 74 69 6d 20 |ribute v|erbatim |
|000005d0| 63 6f 70 69 65 73 20 6f | 66 0a 74 68 69 73 20 6d |copies o|f.this m|
|000005e0| 61 6e 75 61 6c 20 70 72 | 6f 76 69 64 65 64 20 74 |anual pr|ovided t|
|000005f0| 68 65 20 63 6f 70 79 72 | 69 67 68 74 20 6e 6f 74 |he copyr|ight not|
|00000600| 69 63 65 20 61 6e 64 20 | 74 68 69 73 20 70 65 72 |ice and |this per|
|00000610| 6d 69 73 73 69 6f 6e 20 | 6e 6f 74 69 63 65 0a 61 |mission |notice.a|
|00000620| 72 65 20 70 72 65 73 65 | 72 76 65 64 20 6f 6e 20 |re prese|rved on |
|00000630| 61 6c 6c 20 63 6f 70 69 | 65 73 2e 0a 40 65 6e 64 |all copi|es..@end|
|00000640| 20 74 69 74 6c 65 70 61 | 67 65 0a 40 70 61 67 65 | titlepa|ge.@page|
|00000650| 0a 0a 40 75 6e 6e 75 6d | 62 65 72 65 64 20 43 4f |..@unnum|bered CO|
|00000660| 50 59 49 4e 47 20 50 4f | 4c 49 43 49 45 53 0a 0a |PYING PO|LICIES..|
|00000670| 40 65 6e 75 6d 65 72 61 | 74 65 0a 40 69 74 65 6d |@enumera|te.@item|
|00000680| 0a 59 6f 75 20 6d 61 79 | 20 63 6f 70 79 20 61 6e |.You may| copy an|
|00000690| 64 20 64 69 73 74 72 69 | 62 75 74 65 20 76 65 72 |d distri|bute ver|
|000006a0| 62 61 74 69 6d 20 63 6f | 70 69 65 73 20 6f 66 20 |batim co|pies of |
|000006b0| 74 68 65 20 54 4c 41 20 | 66 6f 72 20 74 68 65 20 |the TLA |for the |
|000006c0| 41 52 4d 20 61 73 0a 79 | 6f 75 20 72 65 63 65 69 |ARM as.y|ou recei|
|000006d0| 76 65 20 69 74 2c 20 69 | 6e 20 61 6e 79 20 6d 65 |ve it, i|n any me|
|000006e0| 64 69 75 6d 2c 20 70 72 | 6f 76 69 64 65 64 20 74 |dium, pr|ovided t|
|000006f0| 68 61 74 20 79 6f 75 20 | 63 6f 6e 73 70 69 63 75 |hat you |conspicu|
|00000700| 6f 75 73 6c 79 20 61 6e | 64 0a 61 70 70 72 6f 70 |ously an|d.approp|
|00000710| 72 69 61 74 65 6c 79 20 | 70 75 62 6c 69 73 68 20 |riately |publish |
|00000720| 6f 6e 20 65 61 63 68 20 | 63 6f 70 79 20 61 20 76 |on each |copy a v|
|00000730| 61 6c 69 64 20 63 6f 70 | 79 72 69 67 68 74 20 6e |alid cop|yright n|
|00000740| 6f 74 69 63 65 0a 60 60 | 43 6f 70 79 72 69 67 68 |otice.``|Copyrigh|
|00000750| 74 20 40 63 6f 70 79 72 | 69 67 68 74 7b 7d 20 31 |t @copyr|ight{} 1|
|00000760| 39 38 39 20 47 2e 46 2e | 41 2e 40 20 4c 61 6e 63 |989 G.F.|A.@ Lanc|
|00000770| 61 73 74 65 72 27 27 20 | 28 6f 72 0a 77 69 74 68 |aster'' |(or.with|
|00000780| 20 77 68 61 74 65 76 65 | 72 20 79 65 61 72 20 69 | whateve|r year i|
|00000790| 73 20 61 70 70 72 6f 70 | 72 69 61 74 65 29 2e 0a |s approp|riate)..|
|000007a0| 0a 40 69 74 65 6d 0a 59 | 6f 75 20 6d 61 79 20 6e |.@item.Y|ou may n|
|000007b0| 6f 74 20 63 68 61 72 67 | 65 20 61 20 64 69 73 74 |ot charg|e a dist|
|000007c0| 72 69 62 75 74 69 6f 6e | 20 66 65 65 20 66 6f 72 |ribution| fee for|
|000007d0| 20 74 68 65 20 70 68 79 | 73 69 63 61 6c 20 61 63 | the phy|sical ac|
|000007e0| 74 20 6f 66 0a 74 72 61 | 6e 73 66 65 72 72 69 6e |t of.tra|nsferrin|
|000007f0| 67 20 61 20 63 6f 70 79 | 2e 0a 0a 40 69 74 65 6d |g a copy|...@item|
|00000800| 0a 59 6f 75 20 6d 61 79 | 20 6e 6f 74 20 63 6f 70 |.You may| not cop|
|00000810| 79 2c 20 73 75 62 6c 69 | 63 65 6e 73 65 2c 20 64 |y, subli|cense, d|
|00000820| 69 73 74 72 69 62 75 74 | 65 20 6f 72 20 74 72 61 |istribut|e or tra|
|00000830| 6e 73 66 65 72 20 74 68 | 65 20 54 4c 41 20 66 6f |nsfer th|e TLA fo|
|00000840| 72 20 74 68 65 20 41 52 | 4d 20 65 78 63 65 70 74 |r the AR|M except|
|00000850| 20 61 73 0a 65 78 70 72 | 65 73 73 6c 79 20 70 72 | as.expr|essly pr|
|00000860| 6f 76 69 64 65 64 20 75 | 6e 64 65 72 20 74 68 69 |ovided u|nder thi|
|00000870| 73 20 6c 69 63 65 6e 73 | 65 20 61 67 72 65 65 6d |s licens|e agreem|
|00000880| 65 6e 74 2e 20 20 41 6e | 79 20 61 74 74 65 6d 70 |ent. An|y attemp|
|00000890| 74 0a 6f 74 68 65 72 77 | 69 73 65 20 74 6f 20 63 |t.otherw|ise to c|
|000008a0| 6f 70 79 2c 20 73 75 62 | 6c 69 63 65 6e 73 65 2c |opy, sub|license,|
|000008b0| 20 64 69 73 74 72 69 62 | 75 74 65 20 6f 72 20 74 | distrib|ute or t|
|000008c0| 72 61 6e 73 66 65 72 20 | 74 68 65 20 54 4c 41 20 |ransfer |the TLA |
|000008d0| 66 6f 72 20 74 68 65 20 | 41 52 4d 20 69 73 20 76 |for the |ARM is v|
|000008e0| 6f 69 64 0a 61 6e 64 20 | 79 6f 75 72 20 72 69 67 |oid.and |your rig|
|000008f0| 68 74 73 20 74 6f 20 75 | 73 65 20 74 68 65 20 70 |hts to u|se the p|
|00000900| 72 6f 67 72 61 6d 6d 65 | 20 75 6e 64 65 72 20 74 |rogramme| under t|
|00000910| 68 69 73 20 6c 69 63 65 | 6e 73 65 20 61 67 72 65 |his lice|nse agre|
|00000920| 65 6d 65 6e 74 20 73 68 | 61 6c 6c 0a 62 65 20 61 |ement sh|all.be a|
|00000930| 75 74 6f 6d 61 74 69 63 | 61 6c 6c 79 20 74 65 72 |utomatic|ally ter|
|00000940| 6d 69 6e 61 74 65 64 2e | 20 20 48 6f 77 65 76 65 |minated.| Howeve|
|00000950| 72 2c 20 70 61 72 74 69 | 65 73 20 77 68 6f 20 68 |r, parti|es who h|
|00000960| 61 76 65 20 72 65 63 65 | 69 76 65 64 0a 63 6f 6d |ave rece|ived.com|
|00000970| 70 75 74 65 72 20 73 6f | 66 74 77 61 72 65 20 70 |puter so|ftware p|
|00000980| 72 6f 67 72 61 6d 6d 65 | 73 20 66 72 6f 6d 20 79 |rogramme|s from y|
|00000990| 6f 75 20 77 69 74 68 20 | 74 68 69 73 20 6c 69 63 |ou with |this lic|
|000009a0| 65 6e 73 65 20 61 67 72 | 65 65 6d 65 6e 74 20 77 |ense agr|eement w|
|000009b0| 69 6c 6c 0a 6e 6f 74 20 | 68 61 76 65 20 74 68 65 |ill.not |have the|
|000009c0| 69 72 20 6c 69 63 65 6e | 73 65 73 20 74 65 72 6d |ir licen|ses term|
|000009d0| 69 6e 61 74 65 64 20 73 | 6f 20 6c 6f 6e 67 20 61 |inated s|o long a|
|000009e0| 73 20 73 75 63 68 20 70 | 61 72 74 69 65 73 20 72 |s such p|arties r|
|000009f0| 65 6d 61 69 6e 20 69 6e | 0a 66 75 6c 6c 20 63 6f |emain in|.full co|
|00000a00| 6d 70 6c 69 61 6e 63 65 | 2e 0a 0a 40 65 6e 64 20 |mpliance|...@end |
|00000a10| 65 6e 75 6d 65 72 61 74 | 65 0a 0a 40 75 6e 6e 75 |enumerat|e..@unnu|
|00000a20| 6d 62 65 72 65 64 73 65 | 63 20 4e 4f 20 57 41 52 |mberedse|c NO WAR|
|00000a30| 52 41 4e 54 59 0a 0a 20 | 20 42 45 43 41 55 53 45 |RANTY.. | BECAUSE|
|00000a40| 20 54 48 45 20 54 4c 41 | 20 46 4f 52 20 54 48 45 | THE TLA| FOR THE|
|00000a50| 20 41 52 4d 20 49 53 20 | 4c 49 43 45 4e 53 45 44 | ARM IS |LICENSED|
|00000a60| 20 46 52 45 45 20 4f 46 | 20 43 48 41 52 47 45 2c | FREE OF| CHARGE,|
|00000a70| 20 49 20 50 52 4f 56 49 | 44 45 20 41 42 53 4f 4c | I PROVI|DE ABSOL|
|00000a80| 55 54 45 4c 59 20 4e 4f | 0a 57 41 52 52 41 4e 54 |UTELY NO|.WARRANT|
|00000a90| 59 2c 20 54 4f 20 54 48 | 45 20 45 58 54 45 4e 54 |Y, TO TH|E EXTENT|
|00000aa0| 20 50 45 52 4d 49 54 54 | 45 44 20 42 59 20 41 50 | PERMITT|ED BY AP|
|00000ab0| 50 4c 49 43 41 42 4c 45 | 20 53 54 41 54 45 20 4c |PLICABLE| STATE L|
|00000ac0| 41 57 2e 20 20 45 58 43 | 45 50 54 0a 57 48 45 4e |AW. EXC|EPT.WHEN|
|00000ad0| 20 4f 54 48 45 52 57 49 | 53 45 20 53 54 41 54 45 | OTHERWI|SE STATE|
|00000ae0| 44 20 49 4e 20 57 52 49 | 54 49 4e 47 0a 47 2e 46 |D IN WRI|TING.G.F|
|00000af0| 2e 41 2e 40 20 4c 41 4e | 43 41 53 54 45 52 20 41 |.A.@ LAN|CASTER A|
|00000b00| 4e 44 2f 4f 52 20 4f 54 | 48 45 52 20 50 41 52 54 |ND/OR OT|HER PART|
|00000b10| 49 45 53 20 50 52 4f 56 | 49 44 45 20 54 48 45 20 |IES PROV|IDE THE |
|00000b20| 54 4c 41 20 22 41 53 20 | 49 53 22 20 57 49 54 48 |TLA "AS |IS" WITH|
|00000b30| 4f 55 54 0a 57 41 52 52 | 41 4e 54 59 20 4f 46 20 |OUT.WARR|ANTY OF |
|00000b40| 41 4e 59 20 4b 49 4e 44 | 2c 20 45 49 54 48 45 52 |ANY KIND|, EITHER|
|00000b50| 20 45 58 50 52 45 53 53 | 45 44 20 4f 52 20 49 4d | EXPRESS|ED OR IM|
|00000b60| 50 4c 49 45 44 2c 20 49 | 4e 43 4c 55 44 49 4e 47 |PLIED, I|NCLUDING|
|00000b70| 2c 20 42 55 54 20 4e 4f | 54 0a 4c 49 4d 49 54 45 |, BUT NO|T.LIMITE|
|00000b80| 44 20 54 4f 2c 20 54 48 | 45 20 49 4d 50 4c 49 45 |D TO, TH|E IMPLIE|
|00000b90| 44 20 57 41 52 52 41 4e | 54 49 45 53 20 4f 46 20 |D WARRAN|TIES OF |
|00000ba0| 4d 45 52 43 48 41 4e 54 | 41 42 49 4c 49 54 59 20 |MERCHANT|ABILITY |
|00000bb0| 41 4e 44 20 46 49 54 4e | 45 53 53 20 46 4f 52 0a |AND FITN|ESS FOR.|
|00000bc0| 41 20 50 41 52 54 49 43 | 55 4c 41 52 20 50 55 52 |A PARTIC|ULAR PUR|
|00000bd0| 50 4f 53 45 2e 20 20 54 | 48 45 20 45 4e 54 49 52 |POSE. T|HE ENTIR|
|00000be0| 45 20 52 49 53 4b 20 41 | 53 20 54 4f 20 54 48 45 |E RISK A|S TO THE|
|00000bf0| 20 51 55 41 4c 49 54 59 | 20 41 4e 44 0a 50 45 52 | QUALITY| AND.PER|
|00000c00| 46 4f 52 4d 41 4e 43 45 | 20 4f 46 20 54 48 45 20 |FORMANCE| OF THE |
|00000c10| 53 4f 46 54 57 41 52 45 | 20 49 53 20 57 49 54 48 |SOFTWARE| IS WITH|
|00000c20| 20 59 4f 55 2e 20 20 53 | 48 4f 55 4c 44 20 54 48 | YOU. S|HOULD TH|
|00000c30| 45 20 53 4f 46 54 57 41 | 52 45 20 50 52 4f 56 45 |E SOFTWA|RE PROVE|
|00000c40| 20 44 45 46 45 43 54 49 | 56 45 2c 20 59 4f 55 0a | DEFECTI|VE, YOU.|
|00000c50| 41 53 53 55 4d 45 20 54 | 48 45 20 43 4f 53 54 20 |ASSUME T|HE COST |
|00000c60| 4f 46 20 41 4c 4c 20 4e | 45 43 45 53 53 41 52 59 |OF ALL N|ECESSARY|
|00000c70| 20 53 45 52 56 49 43 49 | 4e 47 2c 20 52 45 50 41 | SERVICI|NG, REPA|
|00000c80| 49 52 20 4f 52 20 43 4f | 52 52 45 43 54 49 4f 4e |IR OR CO|RRECTION|
|00000c90| 2e 0a 0a 20 49 4e 20 4e | 4f 20 45 56 45 4e 54 20 |... IN N|O EVENT |
|00000ca0| 55 4e 4c 45 53 53 20 52 | 45 51 55 49 52 45 44 20 |UNLESS R|EQUIRED |
|00000cb0| 42 59 20 41 50 50 4c 49 | 43 41 42 4c 45 20 4c 41 |BY APPLI|CABLE LA|
|00000cc0| 57 20 57 49 4c 4c 20 47 | 2e 46 2e 41 2e 40 20 4c |W WILL G|.F.A.@ L|
|00000cd0| 41 4e 43 41 53 54 45 52 | 0a 42 45 20 4c 49 41 42 |ANCASTER|.BE LIAB|
|00000ce0| 4c 45 20 54 4f 0a 59 4f | 55 20 46 4f 52 20 44 41 |LE TO.YO|U FOR DA|
|00000cf0| 4d 41 47 45 53 2c 20 49 | 4e 43 4c 55 44 49 4e 47 |MAGES, I|NCLUDING|
|00000d00| 20 41 4e 59 20 4c 4f 53 | 54 20 50 52 4f 46 49 54 | ANY LOS|T PROFIT|
|00000d10| 53 2c 20 4c 4f 53 54 20 | 4d 4f 4e 49 45 53 2c 20 |S, LOST |MONIES, |
|00000d20| 4f 52 20 4f 54 48 45 52 | 0a 53 50 45 43 49 41 4c |OR OTHER|.SPECIAL|
|00000d30| 2c 20 49 4e 43 49 44 45 | 4e 54 41 4c 20 4f 52 20 |, INCIDE|NTAL OR |
|00000d40| 43 4f 4e 53 45 51 55 45 | 4e 54 49 41 4c 20 44 41 |CONSEQUE|NTIAL DA|
|00000d50| 4d 41 47 45 53 20 41 52 | 49 53 49 4e 47 20 4f 55 |MAGES AR|ISING OU|
|00000d60| 54 20 4f 46 20 54 48 45 | 20 55 53 45 20 4f 52 0a |T OF THE| USE OR.|
|00000d70| 49 4e 41 42 49 4c 49 54 | 59 20 54 4f 20 55 53 45 |INABILIT|Y TO USE|
|00000d80| 20 28 49 4e 43 4c 55 44 | 49 4e 47 20 42 55 54 20 | (INCLUD|ING BUT |
|00000d90| 4e 4f 54 20 4c 49 4d 49 | 54 45 44 20 54 4f 20 4c |NOT LIMI|TED TO L|
|00000da0| 4f 53 53 20 4f 46 20 44 | 41 54 41 20 4f 52 20 44 |OSS OF D|ATA OR D|
|00000db0| 41 54 41 0a 42 45 49 4e | 47 20 52 45 4e 44 45 52 |ATA.BEIN|G RENDER|
|00000dc0| 45 44 20 49 4e 41 43 43 | 55 52 41 54 45 20 4f 52 |ED INACC|URATE OR|
|00000dd0| 20 4c 4f 53 53 45 53 20 | 53 55 53 54 41 49 4e 45 | LOSSES |SUSTAINE|
|00000de0| 44 20 42 59 20 54 48 49 | 52 44 20 50 41 52 54 49 |D BY THI|RD PARTI|
|00000df0| 45 53 20 4f 52 20 41 0a | 46 41 49 4c 55 52 45 20 |ES OR A.|FAILURE |
|00000e00| 4f 46 20 54 48 45 20 50 | 52 4f 47 52 41 4d 4d 45 |OF THE P|ROGRAMME|
|00000e10| 20 54 4f 20 4f 50 45 52 | 41 54 45 20 57 49 54 48 | TO OPER|ATE WITH|
|00000e20| 20 41 4e 59 20 4f 54 48 | 45 52 20 50 52 4f 47 52 | ANY OTH|ER PROGR|
|00000e30| 41 4d 4d 45 53 29 20 54 | 48 45 20 54 4c 41 2c 20 |AMMES) T|HE TLA, |
|00000e40| 45 56 45 4e 0a 49 46 20 | 59 4f 55 20 48 41 56 45 |EVEN.IF |YOU HAVE|
|00000e50| 20 42 45 45 4e 20 41 44 | 56 49 53 45 44 20 4f 46 | BEEN AD|VISED OF|
|00000e60| 20 54 48 45 20 50 4f 53 | 53 49 42 49 4c 49 54 59 | THE POS|SIBILITY|
|00000e70| 20 4f 46 20 53 55 43 48 | 20 44 41 4d 41 47 45 53 | OF SUCH| DAMAGES|
|00000e80| 2c 20 4f 52 20 46 4f 52 | 0a 41 4e 59 20 43 4c 41 |, OR FOR|.ANY CLA|
|00000e90| 49 4d 20 42 59 20 41 4e | 59 20 4f 54 48 45 52 20 |IM BY AN|Y OTHER |
|00000ea0| 50 41 52 54 59 2e 0a 0a | 40 75 6e 6e 75 6d 62 65 |PARTY...|@unnumbe|
|00000eb0| 72 65 64 20 41 63 6b 6e | 6f 77 6c 65 64 67 65 6d |red Ackn|owledgem|
|00000ec0| 65 6e 74 73 0a 0a 45 6c | 65 63 74 72 6f 6e 69 63 |ents..El|ectronic|
|00000ed0| 20 74 68 61 6e 6b 2d 79 | 6f 75 27 73 20 67 6f 20 | thank-y|ou's go |
|00000ee0| 74 6f 20 74 68 65 20 66 | 6f 6c 6c 6f 77 69 6e 67 |to the f|ollowing|
|00000ef0| 20 70 65 72 73 6f 6e 61 | 3a 0a 0a 40 69 74 65 6d | persona|:..@item|
|00000f00| 69 7a 65 20 40 62 75 6c | 6c 65 74 0a 40 69 74 65 |ize @bul|let.@ite|
|00000f10| 6d 0a 54 68 65 20 69 64 | 65 61 20 6f 66 20 75 73 |m.The id|ea of us|
|00000f20| 69 6e 67 20 74 68 65 20 | 54 4c 41 20 66 6f 72 20 |ing the |TLA for |
|00000f30| 74 68 65 20 41 72 63 68 | 69 6d 65 64 65 73 20 63 |the Arch|imedes c|
|00000f40| 61 6d 65 20 66 72 6f 6d | 0a 45 64 67 61 72 20 46 |ame from|.Edgar F|
|00000f50| 75 40 73 73 40 20 77 68 | 6f 20 69 73 20 61 6e 20 |u@ss@ wh|o is an |
|00000f60| 6f 6c 64 20 55 43 53 44 | 20 50 61 73 63 61 6c 20 |old UCSD| Pascal |
|00000f70| 66 61 6e 61 74 69 63 20 | 6a 75 73 74 20 6c 69 6b |fanatic |just lik|
|00000f80| 65 20 6d 65 2e 0a 0a 40 | 69 74 65 6d 0a 54 68 65 |e me...@|item.The|
|00000f90| 20 6f 72 69 67 69 6e 61 | 6c 20 54 4c 41 20 76 65 | origina|l TLA ve|
|00000fa0| 72 73 69 6f 6e 20 28 66 | 6f 72 20 74 68 65 20 36 |rsion (f|or the 6|
|00000fb0| 35 30 30 30 29 20 77 61 | 73 20 77 72 69 74 74 65 |5000) wa|s writte|
|00000fc0| 6e 20 62 79 0a 4a 65 6e | 73 2d 45 72 69 6b 20 52 |n by.Jen|s-Erik R|
|00000fd0| 69 65 64 65 6c 2e 0a 0a | 40 69 74 65 6d 0a 45 64 |iedel...|@item.Ed|
|00000fe0| 67 61 72 20 46 75 40 73 | 73 40 20 61 6e 61 6c 79 |gar Fu@s|s@ analy|
|00000ff0| 73 65 64 20 74 68 65 20 | 41 4f 46 20 66 6f 72 6d |sed the |AOF form|
|00001000| 61 74 20 61 6e 64 20 74 | 72 69 65 64 20 74 6f 20 |at and t|ried to |
|00001010| 65 78 70 6c 61 69 6e 20 | 69 74 20 74 6f 20 6d 65 |explain |it to me|
|00001020| 2e 0a 48 65 20 61 6c 73 | 6f 20 69 6d 70 6c 65 6d |..He als|o implem|
|00001030| 65 6e 74 65 64 0a 40 54 | 65 58 40 20 6f 6e 20 74 |ented.@T|eX@ on t|
|00001040| 68 65 20 40 41 72 63 68 | 69 6d 65 64 65 73 2c 20 |he @Arch|imedes, |
|00001050| 73 6f 20 49 20 63 6f 75 | 6c 64 20 77 72 69 74 65 |so I cou|ld write|
|00001060| 20 74 68 65 20 6d 61 6e | 75 61 6c 20 69 6e 20 74 | the man|ual in t|
|00001070| 65 78 69 6e 66 6f 21 0a | 0a 40 69 74 65 6d 0a 48 |exinfo!.|.@item.H|
|00001080| 20 26 20 48 20 73 75 70 | 70 6c 69 65 64 20 61 20 | & H sup|plied a |
|00001090| 6c 6f 74 20 6f 66 20 74 | 6f 6f 6c 73 20 69 6e 63 |lot of t|ools inc|
|000010a0| 6c 75 64 69 6e 67 20 6d | 79 20 40 41 72 63 68 69 |luding m|y @Archi|
|000010b0| 6d 65 64 65 73 40 20 28 | 74 68 6f 73 65 20 77 65 |medes@ (|those we|
|000010c0| 72 65 20 74 68 65 20 64 | 61 79 73 40 64 6f 74 73 |re the d|ays@dots|
|000010d0| 29 2e 0a 0a 40 69 74 65 | 6d 0a 54 6f 6f 6c 73 20 |)...@ite|m.Tools |
|000010e0| 47 6d 62 48 2c 20 42 6f | 6e 6e 2e 20 40 41 72 63 |GmbH, Bo|nn. @Arc|
|000010f0| 68 69 54 65 58 40 20 61 | 6e 64 20 40 41 72 63 4d |hiTeX@ a|nd @ArcM|
|00001100| 46 40 20 61 72 65 20 61 | 76 61 69 61 62 6c 65 20 |F@ are a|vaiable |
|00001110| 66 72 6f 6d 20 54 6f 6f | 4c 73 20 47 6d 62 48 2c |from Too|Ls GmbH,|
|00001120| 20 4b 65 73 40 2d 73 65 | 6e 69 63 68 65 72 0a 53 | Kes@-se|nicher.S|
|00001130| 74 72 61 40 73 73 7b 7d | 65 20 31 30 38 2c 20 44 |tra@ss{}|e 108, D|
|00001140| 2d 35 33 30 30 20 42 6f | 6e 6e 20 31 2c 20 47 65 |-5300 Bo|nn 1, Ge|
|00001150| 72 6d 61 6e 79 2e 0a 0a | 40 65 6e 64 20 69 74 65 |rmany...|@end ite|
|00001160| 6d 69 7a 65 0a 0a 40 63 | 68 61 70 74 65 72 20 49 |mize..@c|hapter I|
|00001170| 6e 74 72 6f 64 75 63 74 | 69 6f 6e 0a 4d 6f 73 74 |ntroduct|ion.Most|
|00001180| 20 75 73 65 72 73 20 6f | 66 20 74 68 65 20 40 41 | users o|f the @A|
|00001190| 72 63 68 69 6d 65 64 65 | 73 40 20 64 6f 20 6e 6f |rchimede|s@ do no|
|000011a0| 74 20 72 65 71 75 69 72 | 65 20 61 6e 79 20 6f 74 |t requir|e any ot|
|000011b0| 68 65 72 20 61 73 73 65 | 6d 62 6c 65 72 20 74 68 |her asse|mbler th|
|000011c0| 61 6e 20 74 68 65 0a 42 | 42 43 20 42 41 53 49 43 |an the.B|BC BASIC|
|000011d0| 20 56 20 61 73 73 65 6d | 62 6c 65 72 2e 20 42 75 | V assem|bler. Bu|
|000011e0| 74 20 69 66 20 79 6f 75 | 20 61 72 65 20 75 73 69 |t if you| are usi|
|000011f0| 6e 67 20 61 20 70 72 6f | 67 72 61 6d 6d 69 6e 67 |ng a pro|gramming|
|00001200| 20 6c 61 6e 67 75 61 67 | 65 20 6c 69 6b 65 0a 50 | languag|e like.P|
|00001210| 61 73 63 61 6c 20 6f 72 | 20 43 2c 20 74 68 65 20 |ascal or| C, the |
|00001220| 42 41 53 49 43 20 61 73 | 73 65 6d 62 6c 65 72 20 |BASIC as|sembler |
|00001230| 69 73 20 69 6e 61 64 65 | 71 75 61 74 65 20 61 73 |is inade|quate as|
|00001240| 20 69 74 20 69 73 20 75 | 6e 61 62 6c 65 0a 74 6f | it is u|nable.to|
|00001250| 20 67 65 6e 65 72 61 74 | 65 64 20 41 4f 46 20 66 | generat|ed AOF f|
|00001260| 69 6c 65 73 20 77 68 69 | 63 68 20 74 68 65 20 6c |iles whi|ch the l|
|00001270| 69 6e 6b 65 72 20 72 65 | 71 75 69 72 65 73 2e 0a |inker re|quires..|
|00001280| 54 68 69 73 20 61 73 73 | 65 6d 62 6c 65 72 20 69 |This ass|embler i|
|00001290| 73 20 73 75 70 70 6f 73 | 65 64 20 74 6f 20 66 69 |s suppos|ed to fi|
|000012a0| 6c 6c 20 74 68 61 74 20 | 68 6f 6c 65 2e 0a 0a 54 |ll that |hole...T|
|000012b0| 68 65 20 6d 61 69 6e 20 | 72 65 61 73 6f 6e 20 49 |he main |reason I|
|000012c0| 20 74 6f 6f 6b 0a 74 68 | 65 20 74 69 6d 65 20 74 | took.th|e time t|
|000012d0| 6f 20 77 72 69 74 65 20 | 61 6e 20 61 73 73 65 6d |o write |an assem|
|000012e0| 62 6c 65 72 20 6d 79 73 | 65 6c 66 20 77 61 73 20 |bler mys|elf was |
|000012f0| 74 68 61 74 20 74 68 65 | 20 70 72 69 63 65 20 66 |that the| price f|
|00001300| 6f 72 0a 63 6f 6d 6d 65 | 72 69 61 6c 20 41 4f 46 |or.comme|rial AOF|
|00001310| 20 67 65 6e 65 72 61 74 | 69 6e 67 20 61 73 73 65 | generat|ing asse|
|00001320| 6d 62 6c 65 72 73 20 69 | 73 20 69 6e 20 6d 79 20 |mblers i|s in my |
|00001330| 6f 70 69 6e 69 6f 6e 20 | 66 61 72 20 74 6f 6f 20 |opinion |far too |
|00001340| 68 69 67 68 20 61 6e 64 | 0a 49 20 6e 65 65 64 65 |high and|.I neede|
|00001350| 64 20 6f 6e 65 20 74 6f | 20 69 6d 70 6c 65 6d 65 |d one to| impleme|
|00001360| 6e 74 20 40 4d 46 40 20 | 66 6f 72 20 74 68 65 20 |nt @MF@ |for the |
|00001370| 40 41 72 63 68 69 6d 65 | 64 65 73 2e 0a 0a 54 68 |@Archime|des...Th|
|00001380| 69 73 20 61 73 73 65 6d | 62 6c 65 72 20 77 61 73 |is assem|bler was|
|00001390| 20 6d 6f 64 65 6c 65 64 | 20 61 66 74 65 72 20 74 | modeled| after t|
|000013a0| 68 65 20 54 68 65 20 4c | 61 73 74 20 41 73 73 65 |he The L|ast Asse|
|000013b0| 6d 62 6c 65 72 20 28 54 | 4c 41 29 20 64 65 76 65 |mbler (T|LA) deve|
|000013c0| 6c 6f 70 65 64 20 61 74 | 0a 74 68 65 20 55 6e 69 |loped at|.the Uni|
|000013d0| 76 65 72 73 69 74 79 20 | 6f 66 20 57 61 74 65 72 |versity |of Water|
|000013e0| 6c 6f 6f 2e 20 54 68 65 | 20 61 63 74 75 61 6c 20 |loo. The| actual |
|000013f0| 69 6d 70 6c 65 6d 65 6e | 74 61 74 69 6f 6e 20 69 |implemen|tation i|
|00001400| 74 20 69 73 20 62 61 73 | 65 64 20 6f 6e 20 77 61 |t is bas|ed on wa|
|00001410| 73 0a 74 68 65 20 36 35 | 30 30 30 20 61 73 73 65 |s.the 65|000 asse|
|00001420| 6d 62 6c 65 72 20 62 79 | 20 4a 65 6e 73 2d 45 72 |mbler by| Jens-Er|
|00001430| 69 6b 20 52 69 65 64 65 | 6c 20 66 6f 72 20 74 68 |ik Riede|l for th|
|00001440| 65 20 41 70 70 6c 65 20 | 49 49 2e 20 54 68 65 20 |e Apple |II. The |
|00001450| 62 61 73 69 63 0a 63 6f | 6e 63 65 70 74 20 62 65 |basic.co|ncept be|
|00001460| 68 69 6e 64 20 74 68 65 | 20 54 4c 41 20 69 73 20 |hind the| TLA is |
|00001470| 74 68 65 20 75 73 65 20 | 6f 66 20 61 20 63 65 6e |the use |of a cen|
|00001480| 74 72 61 6c 20 6d 61 63 | 68 69 6e 65 2d 69 6e 64 |tral mac|hine-ind|
|00001490| 65 70 65 6e 64 65 6e 74 | 0a 63 6f 72 65 20 74 68 |ependent|.core th|
|000014a0| 61 74 20 69 73 20 63 6f | 6d 6d 6f 6e 20 74 6f 20 |at is co|mmon to |
|000014b0| 61 6c 6c 20 76 65 72 73 | 69 6f 6e 73 20 6f 66 20 |all vers|ions of |
|000014c0| 74 68 65 20 61 73 73 65 | 6d 62 6c 65 72 2e 20 54 |the asse|mbler. T|
|000014d0| 68 65 20 63 65 6e 74 72 | 61 6c 20 63 6f 72 65 20 |he centr|al core |
|000014e0| 69 73 0a 61 75 67 6d 65 | 6e 74 65 64 20 77 69 74 |is.augme|nted wit|
|000014f0| 68 20 6d 61 63 68 69 6e | 65 2d 73 70 65 63 69 66 |h machin|e-specif|
|00001500| 69 63 20 63 6f 64 65 20 | 74 6f 20 68 61 6e 64 6c |ic code |to handl|
|00001510| 65 20 74 68 65 20 70 65 | 63 75 6c 61 72 69 74 69 |e the pe|culariti|
|00001520| 65 73 20 6f 66 20 65 61 | 63 68 0a 69 6e 64 69 76 |es of ea|ch.indiv|
|00001530| 69 64 75 61 6c 20 6d 61 | 63 68 69 6e 65 2e 0a 0a |idual ma|chine...|
|00001540| 4f 6e 65 20 61 64 76 61 | 6e 74 61 67 65 20 6f 76 |One adva|ntage ov|
|00001550| 65 72 20 6d 6f 73 74 20 | 6f 74 68 65 72 20 6d 61 |er most |other ma|
|00001560| 63 72 6f 20 61 73 73 65 | 6d 62 6c 65 72 73 20 69 |cro asse|mblers i|
|00001570| 73 20 74 68 61 74 20 74 | 68 65 20 54 4c 41 20 69 |s that t|he TLA i|
|00001580| 73 20 61 20 6f 6e 65 20 | 70 61 73 73 0a 61 73 73 |s a one |pass.ass|
|00001590| 65 6d 62 6c 65 72 2e 20 | 54 68 65 72 65 20 61 72 |embler. |There ar|
|000015a0| 65 20 73 6f 6d 65 20 72 | 65 73 74 72 69 63 74 69 |e some r|estricti|
|000015b0| 6f 6e 73 20 64 75 65 20 | 74 6f 20 74 68 69 73 20 |ons due |to this |
|000015c0| 62 75 74 20 61 73 73 65 | 6d 62 6c 79 20 69 73 20 |but asse|mbly is |
|000015d0| 66 61 73 74 65 72 0a 74 | 68 61 6e 20 77 69 74 68 |faster.t|han with|
|000015e0| 20 61 20 6d 75 6c 74 69 | 2d 70 61 73 73 20 61 73 | a multi|-pass as|
|000015f0| 73 65 6d 62 6c 65 72 2e | 0a 0a 54 68 69 73 20 6d |sembler.|..This m|
|00001600| 61 6e 75 61 6c 20 69 73 | 20 69 6e 74 65 6e 64 65 |anual is| intende|
|00001610| 64 20 66 6f 72 20 72 65 | 61 64 65 72 73 20 66 61 |d for re|aders fa|
|00001620| 6d 69 6c 69 61 72 20 77 | 69 74 68 20 74 68 65 20 |miliar w|ith the |
|00001630| 42 41 53 49 43 20 61 73 | 73 65 6d 62 6c 65 72 20 |BASIC as|sembler |
|00001640| 6f 72 0a 61 6e 79 20 6f | 74 68 65 72 20 61 73 73 |or.any o|ther ass|
|00001650| 65 6d 62 6c 65 72 20 66 | 6f 72 20 74 68 65 20 40 |embler f|or the @|
|00001660| 41 72 63 68 69 6d 65 64 | 65 73 2e 20 49 74 20 64 |Archimed|es. It d|
|00001670| 6f 65 73 20 6e 6f 74 20 | 65 78 70 6c 61 69 6e 20 |oes not |explain |
|00001680| 74 68 65 0a 41 52 4d 20 | 61 73 73 65 6d 62 6c 79 |the.ARM |assembly|
|00001690| 20 6c 61 6e 67 75 61 67 | 65 2e 0a 0a 40 63 68 61 | languag|e...@cha|
|000016a0| 70 74 65 72 20 41 73 73 | 65 6d 62 6c 65 72 20 49 |pter Ass|embler I|
|000016b0| 6e 70 75 74 20 46 69 6c | 65 20 53 74 72 75 63 74 |nput Fil|e Struct|
|000016c0| 75 72 65 0a 54 68 65 20 | 6f 76 65 72 61 6c 6c 20 |ure.The |overall |
|000016d0| 73 74 72 75 63 74 75 72 | 65 20 6f 66 20 69 6e 70 |structur|e of inp|
|000016e0| 75 74 20 66 69 6c 65 73 | 20 69 73 20 70 72 6f 63 |ut files| is proc|
|000016f0| 65 64 75 72 65 20 6f 72 | 69 65 6e 74 61 74 65 64 |edure or|ientated|
|00001700| 2e 20 54 68 69 73 20 63 | 6f 6e 63 65 70 74 20 69 |. This c|oncept i|
|00001710| 73 0a 73 6f 6d 65 77 68 | 61 74 20 64 69 66 66 65 |s.somewh|at diffe|
|00001720| 72 65 6e 74 20 66 72 6f | 6d 20 74 68 65 20 73 74 |rent fro|m the st|
|00001730| 72 75 63 74 75 72 65 20 | 6f 66 20 55 6e 69 78 20 |ructure |of Unix |
|00001740| 6f 72 20 73 69 6d 69 6c | 61 72 20 61 73 73 65 6d |or simil|ar assem|
|00001750| 62 6c 65 72 73 2e 0a 41 | 63 74 75 61 6c 20 63 6f |blers..A|ctual co|
|00001760| 64 65 20 63 61 6e 20 6f | 6e 6c 79 20 62 65 20 64 |de can o|nly be d|
|00001770| 65 63 6c 61 72 65 64 20 | 69 6e 20 61 20 70 72 6f |eclared |in a pro|
|00001780| 63 65 64 75 72 65 20 62 | 6c 6f 63 6b 2e 20 45 61 |cedure b|lock. Ea|
|00001790| 63 68 20 70 72 6f 63 65 | 64 75 72 65 0a 62 6c 6f |ch proce|dure.blo|
|000017a0| 63 6b 20 73 68 61 72 65 | 73 20 67 6c 6f 62 61 6c |ck share|s global|
|000017b0| 20 64 65 66 69 6e 69 74 | 69 6f 6e 73 20 74 68 61 | definit|ions tha|
|000017c0| 74 20 61 72 65 20 67 69 | 76 65 6e 20 61 74 20 74 |t are gi|ven at t|
|000017d0| 68 65 20 62 65 67 69 6e | 6e 69 6e 67 20 6f 66 20 |he begin|ning of |
|000017e0| 74 68 65 20 69 6e 70 75 | 74 20 66 69 6c 65 0a 77 |the inpu|t file.w|
|000017f0| 69 74 68 20 61 6c 6c 20 | 6f 74 68 65 72 20 70 72 |ith all |other pr|
|00001800| 6f 63 65 64 75 72 65 73 | 2e 20 47 6c 6f 62 61 6c |ocedures|. Global|
|00001810| 20 64 65 66 69 6e 69 74 | 69 6f 6e 73 20 61 72 65 | definit|ions are|
|00001820| 20 6e 6f 6e 2d 63 6f 64 | 65 20 67 65 6e 65 72 61 | non-cod|e genera|
|00001830| 74 69 6e 67 20 6f 70 65 | 72 61 74 69 6f 6e 73 2e |ting ope|rations.|
|00001840| 0a 54 68 65 79 20 64 65 | 66 69 6e 65 20 67 6c 6f |.They de|fine glo|
|00001850| 62 61 6c 20 63 6f 6e 73 | 74 61 6e 74 73 2c 20 72 |bal cons|tants, r|
|00001860| 65 67 69 73 74 65 72 20 | 69 64 65 6e 74 69 66 69 |egister |identifi|
|00001870| 65 72 73 2c 20 6d 61 63 | 72 6f 73 20 65 74 63 2e |ers, mac|ros etc.|
|00001880| 0a 41 6e 79 20 69 64 65 | 6e 74 69 66 69 65 72 20 |.Any ide|ntifier |
|00001890| 64 65 63 6c 61 72 65 64 | 20 69 6e 73 69 64 65 20 |declared| inside |
|000018a0| 61 20 70 72 6f 63 65 64 | 75 72 65 20 69 73 20 6c |a proced|ure is l|
|000018b0| 6f 63 61 6c 20 74 6f 20 | 74 68 61 74 20 70 72 6f |ocal to |that pro|
|000018c0| 63 65 64 75 72 65 20 65 | 78 63 65 70 74 20 77 68 |cedure e|xcept wh|
|000018d0| 65 6e 0a 65 78 70 6f 72 | 74 65 64 2e 0a 0a 40 65 |en.expor|ted...@e|
|000018e0| 78 61 6d 70 6c 65 0a 20 | 20 20 20 20 20 20 20 20 |xample. | |
|000018f0| 20 20 20 20 20 20 20 2e | 54 49 54 4c 45 20 20 22 | .|TITLE "|
|00001900| 54 4c 41 20 65 78 61 6d | 70 6c 65 20 66 69 6c 65 |TLA exam|ple file|
|00001910| 22 20 3b 20 64 65 66 69 | 6e 65 20 61 20 74 69 74 |" ; defi|ne a tit|
|00001920| 6c 65 0a 0a 73 70 20 20 | 20 20 20 20 20 20 20 20 |le..sp | |
|00001930| 20 20 20 20 2e 45 51 55 | 20 20 20 20 52 31 32 20 | .EQU| R12 |
|00001940| 20 20 20 20 3b 20 73 70 | 20 69 73 20 52 31 32 0a | ; sp| is R12.|
|00001950| 6c 69 6e 6b 20 20 20 20 | 20 20 20 20 20 20 20 20 |link | |
|00001960| 2e 45 51 55 20 20 20 20 | 52 31 34 20 20 20 20 20 |.EQU |R14 |
|00001970| 3b 20 6c 69 6e 6b 20 69 | 73 20 52 31 34 0a 0a 0a |; link i|s R14...|
|00001980| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001990| 2e 50 52 4f 43 20 20 20 | 65 72 6e 69 65 0a 0a 20 |.PROC |ernie.. |
|000019a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 53 | | S|
|000019b0| 54 4d 46 44 20 20 20 53 | 50 21 2c 7b 52 30 2d 52 |TMFD S|P!,{R0-R|
|000019c0| 33 2c 6c 69 6e 6b 7d 0a | 20 20 20 20 20 20 20 20 |3,link}.| |
|000019d0| 20 20 20 20 20 20 20 20 | 53 57 49 20 20 20 20 20 | |SWI |
|000019e0| 4f 53 5f 57 72 69 74 65 | 53 0a 20 20 20 20 20 20 |OS_Write|S. |
|000019f0| 20 20 20 20 20 20 20 20 | 20 20 2e 53 54 52 49 4e | | .STRIN|
|00001a00| 47 20 22 48 65 6c 6c 6f | 20 74 68 65 72 65 21 22 |G "Hello| there!"|
|00001a10| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00001a20| 20 4c 44 52 20 20 20 20 | 20 52 30 2c 4d 79 53 74 | LDR | R0,MySt|
|00001a30| 72 69 6e 67 0a 20 20 20 | 20 20 20 20 20 20 20 20 |ring. | |
|00001a40| 20 20 20 20 20 53 57 49 | 20 20 20 20 20 4f 53 5f | SWI| OS_|
|00001a50| 57 72 69 74 65 30 0a 20 | 20 20 20 20 20 20 20 20 |Write0. | |
|00001a60| 20 20 20 20 20 20 20 4c | 44 4d 46 44 20 20 20 53 | L|DMFD S|
|00001a70| 50 21 2c 7b 52 30 2d 52 | 33 2c 50 43 7d 0a 0a 4d |P!,{R0-R|3,PC}..M|
|00001a80| 79 53 74 72 69 6e 67 20 | 20 20 20 20 20 20 20 2e |yString | .|
|00001a90| 53 54 52 49 4e 47 20 22 | 44 61 74 61 20 73 74 72 |STRING "|Data str|
|00001aa0| 69 6e 67 22 0a 0a 0a 20 | 20 20 20 20 20 20 20 20 |ing"... | |
|00001ab0| 20 20 20 20 20 20 20 2e | 50 52 4f 43 20 20 20 62 | .|PROC b|
|00001ac0| 65 72 74 0a 0a 20 20 20 | 20 20 20 20 20 20 20 20 |ert.. | |
|00001ad0| 20 20 20 20 20 54 45 51 | 20 20 20 20 20 52 30 2c | TEQ| R0,|
|00001ae0| 23 30 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |#0. | |
|00001af0| 20 20 20 4d 4f 56 45 51 | 53 20 20 50 43 2c 6c 69 | MOVEQ|S PC,li|
|00001b00| 6e 6b 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |nk. | |
|00001b10| 20 20 20 4c 44 52 20 20 | 20 20 20 52 30 2c 44 61 | LDR | R0,Da|
|00001b20| 74 61 57 6f 72 64 0a 0a | 44 61 74 61 57 6f 72 64 |taWord..|DataWord|
|00001b30| 20 20 20 20 20 20 20 20 | 2e 57 4f 52 44 20 20 20 | |.WORD |
|00001b40| 30 46 46 46 46 0a 0a 0a | 20 20 20 20 20 20 20 20 |0FFFF...| |
|00001b50| 20 20 20 20 20 20 20 20 | 2e 45 4e 44 0a 40 65 6e | |.END.@en|
|00001b60| 64 20 65 78 61 6d 70 6c | 65 0a 0a 49 6e 20 74 68 |d exampl|e..In th|
|00001b70| 65 20 61 62 6f 76 65 20 | 65 78 61 6d 70 6c 65 20 |e above |example |
|00001b80| 74 68 65 20 69 64 65 6e | 74 69 66 69 65 72 73 20 |the iden|tifiers |
|00001b90| 40 63 6f 64 65 7b 73 70 | 7d 20 61 6e 64 20 40 63 |@code{sp|} and @c|
|00001ba0| 6f 64 65 7b 6c 69 6e 6b | 7d 20 61 72 65 20 67 6c |ode{link|} are gl|
|00001bb0| 6f 62 61 6c 20 61 6e 64 | 20 63 61 6e 0a 62 65 20 |obal and| can.be |
|00001bc0| 75 73 65 64 20 69 6e 20 | 65 76 65 72 79 20 70 72 |used in |every pr|
|00001bd0| 6f 63 65 64 75 72 65 2e | 20 54 68 65 20 69 64 65 |ocedure.| The ide|
|00001be0| 6e 74 69 66 69 65 72 20 | 40 63 6f 64 65 7b 4d 79 |ntifier |@code{My|
|00001bf0| 53 74 72 69 6e 67 7d 20 | 69 73 20 6c 6f 63 61 6c |String} |is local|
|00001c00| 20 74 6f 20 74 68 65 20 | 70 72 6f 63 65 64 75 72 | to the |procedur|
|00001c10| 65 0a 40 63 6f 64 65 7b | 65 72 6e 69 65 7d 20 61 |e.@code{|ernie} a|
|00001c20| 73 20 40 63 6f 64 65 7b | 44 61 74 61 57 6f 72 64 |s @code{|DataWord|
|00001c30| 7d 20 69 73 20 74 6f 20 | 40 63 6f 64 65 7b 62 65 |} is to |@code{be|
|00001c40| 72 74 7d 2e 20 41 73 20 | 73 68 6f 77 6e 20 69 6e |rt}. As |shown in|
|00001c50| 20 74 68 65 20 65 78 61 | 6d 70 6c 65 2c 20 61 6c | the exa|mple, al|
|00001c60| 6c 0a 61 73 73 65 6d 62 | 6c 65 72 20 64 69 72 65 |l.assemb|ler dire|
|00001c70| 63 74 69 76 65 73 20 62 | 65 67 69 6e 20 77 69 74 |ctives b|egin wit|
|00001c80| 68 20 61 20 70 65 72 69 | 6f 64 2e 20 54 68 69 73 |h a peri|od. This|
|00001c90| 20 64 69 73 74 69 6e 67 | 75 69 73 68 65 73 20 74 | disting|uishes t|
|00001ca0| 68 65 6d 20 66 72 6f 6d | 20 6f 74 68 65 72 0a 69 |hem from| other.i|
|00001cb0| 64 65 6e 74 69 66 69 65 | 72 73 2e 0a 0a 54 68 65 |dentifie|rs...The|
|00001cc0| 20 6d 61 69 6e 20 70 75 | 72 70 6f 73 65 20 6f 66 | main pu|rpose of|
|00001cd0| 20 74 68 69 73 20 73 74 | 72 75 63 74 75 72 65 20 | this st|ructure |
|00001ce0| 69 73 20 74 6f 20 6d 61 | 6b 65 20 61 73 73 65 6d |is to ma|ke assem|
|00001cf0| 62 6c 65 72 20 66 69 6c | 65 73 20 6d 6f 72 65 20 |bler fil|es more |
|00001d00| 73 69 6d 69 6c 61 72 0a | 69 6e 20 73 74 72 75 63 |similar.|in struc|
|00001d10| 74 75 72 65 20 74 6f 20 | 68 69 67 68 20 6c 65 76 |ture to |high lev|
|00001d20| 65 6c 20 6c 61 6e 67 75 | 61 67 65 73 2c 20 73 6f |el langu|ages, so|
|00001d30| 20 74 68 61 74 20 69 74 | 20 69 73 20 65 61 73 69 | that it| is easi|
|00001d40| 65 72 20 74 6f 20 77 72 | 69 74 65 20 65 78 74 65 |er to wr|ite exte|
|00001d50| 72 6e 61 6c 0a 70 72 6f | 63 65 64 75 72 65 73 20 |rnal.pro|cedures |
|00001d60| 66 6f 72 20 74 68 65 73 | 65 20 6c 61 6e 67 75 61 |for thes|e langua|
|00001d70| 67 65 73 20 69 6e 20 61 | 73 73 65 6d 62 6c 79 20 |ges in a|ssembly |
|00001d80| 6c 61 6e 67 75 61 67 65 | 2e 0a 0a 40 63 68 61 70 |language|...@chap|
|00001d90| 74 65 72 20 53 79 6e 74 | 61 78 20 6f 66 20 41 73 |ter Synt|ax of As|
|00001da0| 73 65 6d 62 6c 79 20 53 | 74 61 74 65 6d 65 6e 74 |sembly S|tatement|
|00001db0| 73 0a 0a 40 73 65 63 74 | 69 6f 6e 20 49 64 65 6e |s..@sect|ion Iden|
|00001dc0| 74 69 66 69 65 72 73 0a | 49 64 65 6e 74 69 66 69 |tifiers.|Identifi|
|00001dd0| 65 72 73 20 61 72 65 20 | 63 68 61 72 61 63 74 65 |ers are |characte|
|00001de0| 72 20 73 74 72 69 6e 67 | 73 20 73 74 61 72 74 69 |r string|s starti|
|00001df0| 6e 67 20 77 69 74 68 20 | 61 20 6c 65 74 74 65 72 |ng with |a letter|
|00001e00| 2e 20 54 68 65 20 66 6f | 6c 6c 6f 77 69 6e 67 0a |. The fo|llowing.|
|00001e10| 63 68 61 72 61 63 74 65 | 72 73 20 6d 75 73 74 20 |characte|rs must |
|00001e20| 62 65 20 61 6c 70 68 61 | 6e 75 6d 65 72 69 63 20 |be alpha|numeric |
|00001e30| 6f 72 20 74 68 65 20 75 | 6e 64 65 72 6c 69 6e 65 |or the u|nderline|
|00001e40| 20 27 5f 27 20 6f 72 20 | 74 68 65 20 64 6f 6c 6c | '_' or |the doll|
|00001e50| 61 72 20 73 69 67 6e 20 | 27 24 27 2e 0a 54 68 65 |ar sign |'$'..The|
|00001e60| 20 6d 61 78 69 6d 75 6d | 20 69 64 65 6e 74 69 66 | maximum| identif|
|00001e70| 69 65 72 20 6c 65 6e 67 | 74 68 20 69 73 20 32 35 |ier leng|th is 25|
|00001e80| 35 2e 20 4f 6e 20 65 6e | 63 6f 75 6e 74 65 72 69 |5. On en|counteri|
|00001e90| 6e 67 20 61 6e 20 75 6e | 64 65 66 69 6e 65 64 20 |ng an un|defined |
|00001ea0| 69 64 65 6e 74 69 66 69 | 65 72 0a 69 6e 20 61 6e |identifi|er.in an|
|00001eb0| 20 65 78 70 72 65 73 73 | 69 6f 6e 20 74 68 65 20 | express|ion the |
|00001ec0| 61 73 73 65 6d 62 6c 65 | 72 20 61 73 73 75 6d 65 |assemble|r assume|
|00001ed0| 73 20 74 68 61 74 20 74 | 68 65 20 69 64 65 6e 74 |s that t|he ident|
|00001ee0| 69 66 69 65 72 20 77 69 | 6c 6c 20 65 76 65 6e 74 |ifier wi|ll event|
|00001ef0| 75 61 6c 6c 79 0a 62 65 | 20 64 65 66 69 6e 65 64 |ually.be| defined|
|00001f00| 20 61 73 20 61 20 6c 61 | 62 65 6c 2c 20 77 68 69 | as a la|bel, whi|
|00001f10| 63 68 20 69 73 20 74 68 | 65 20 6d 6f 73 74 20 70 |ch is th|e most p|
|00001f20| 72 6f 62 61 62 6c 65 20 | 63 61 73 65 2e 0a 41 6e |robable |case..An|
|00001f30| 79 20 69 64 65 6e 74 69 | 66 69 65 72 20 77 68 69 |y identi|fier whi|
|00001f40| 63 68 20 69 73 20 6e 6f | 74 20 61 20 6c 61 62 65 |ch is no|t a labe|
|00001f50| 6c 20 6d 75 73 74 20 62 | 65 20 64 65 66 69 6e 65 |l must b|e define|
|00001f60| 64 20 62 65 66 6f 72 65 | 20 69 74 20 69 73 20 75 |d before| it is u|
|00001f70| 73 65 64 2e 0a 0a 40 73 | 65 63 74 69 6f 6e 20 4c |sed...@s|ection L|
|00001f80| 61 62 65 6c 73 0a 4c 61 | 62 65 6c 73 20 61 72 65 |abels.La|bels are|
|00001f90| 20 69 64 65 6e 74 69 66 | 69 65 72 73 20 74 68 61 | identif|iers tha|
|00001fa0| 74 20 72 65 70 72 65 73 | 65 6e 74 20 61 20 70 6f |t repres|ent a po|
|00001fb0| 73 69 74 69 6f 6e 20 69 | 6e 20 74 68 65 20 63 6f |sition i|n the co|
|00001fc0| 64 65 20 74 68 61 74 20 | 69 73 20 62 65 69 6e 67 |de that |is being|
|00001fd0| 20 61 73 73 65 6d 62 6c | 65 64 2e 0a 54 68 65 20 | assembl|ed..The |
|00001fe0| 6e 75 6d 65 72 69 63 20 | 76 61 6c 75 65 20 69 73 |numeric |value is|
|00001ff0| 20 61 6e 20 61 64 64 72 | 65 73 73 20 69 6e 20 74 | an addr|ess in t|
|00002000| 68 65 20 63 6f 64 65 2e | 20 4f 6e 6c 79 20 6c 61 |he code.| Only la|
|00002010| 62 65 6c 73 20 61 6e 64 | 20 63 6f 6d 6d 65 6e 74 |bels and| comment|
|00002020| 73 20 6d 61 79 20 62 65 | 67 69 6e 20 69 6e 20 74 |s may be|gin in t|
|00002030| 68 65 0a 66 69 72 73 74 | 20 63 6f 6c 75 6d 6e 2c |he.first| column,|
|00002040| 20 77 69 74 68 20 6e 6f | 20 70 72 65 63 65 64 69 | with no| precedi|
|00002050| 6e 67 20 73 70 61 63 65 | 73 2e 20 4c 61 62 65 6c |ng space|s. Label|
|00002060| 73 20 6d 61 79 20 6f 70 | 74 69 6f 6e 61 6c 6c 79 |s may op|tionally|
|00002070| 20 62 65 20 66 6f 6c 6c | 6f 77 65 64 20 62 79 0a | be foll|owed by.|
|00002080| 61 20 63 6f 6c 6f 6e 20 | 77 68 69 63 68 20 69 73 |a colon |which is|
|00002090| 20 6e 6f 74 20 70 61 72 | 74 20 6f 66 20 74 68 65 | not par|t of the|
|000020a0| 20 6c 61 62 65 6c 20 69 | 64 65 6e 74 69 66 69 65 | label i|dentifie|
|000020b0| 72 2e 0a 0a 40 73 65 63 | 74 69 6f 6e 20 4c 6f 63 |r...@sec|tion Loc|
|000020c0| 61 6c 20 4c 61 62 65 6c | 73 0a 4c 6f 63 61 6c 20 |al Label|s.Local |
|000020d0| 6c 61 62 65 6c 73 20 6d | 75 73 74 20 68 61 76 65 |labels m|ust have|
|000020e0| 20 61 20 62 61 63 6b 73 | 6c 61 73 68 20 27 5c 27 | a backs|lash '\'|
|000020f0| 20 61 73 20 74 68 65 20 | 66 69 72 73 74 20 6e 6f | as the |first no|
|00002100| 6e 2d 73 70 61 63 65 20 | 63 68 61 72 61 63 74 65 |n-space |characte|
|00002110| 72 2e 20 54 68 69 73 20 | 69 73 0a 70 61 72 74 20 |r. This |is.part |
|00002120| 6f 66 20 74 68 65 20 6c | 61 62 65 6c 20 69 64 65 |of the l|abel ide|
|00002130| 6e 74 69 66 69 65 72 20 | 61 6e 64 20 6d 75 73 74 |ntifier |and must|
|00002140| 20 62 65 20 75 73 65 64 | 20 69 6e 20 65 61 63 68 | be used| in each|
|00002150| 20 72 65 66 65 72 65 6e | 63 65 2e 20 54 68 65 69 | referen|ce. Thei|
|00002160| 72 20 70 75 72 70 6f 73 | 65 0a 69 73 20 74 6f 20 |r purpos|e.is to |
|00002170| 63 6f 6e 73 65 72 76 65 | 20 73 79 6d 62 6f 6c 20 |conserve| symbol |
|00002180| 74 61 62 6c 65 20 73 70 | 61 63 65 20 61 6e 64 20 |table sp|ace and |
|00002190| 70 65 72 6d 69 74 20 74 | 68 65 20 75 73 65 20 6f |permit t|he use o|
|000021a0| 66 20 61 6e 20 69 64 65 | 6e 74 69 66 69 65 72 20 |f an ide|ntifier |
|000021b0| 6e 61 6d 65 20 74 77 69 | 63 65 20 69 6e 0a 61 20 |name twi|ce in.a |
|000021c0| 70 72 6f 63 65 64 75 72 | 65 2e 20 54 68 65 79 20 |procedur|e. They |
|000021d0| 61 72 65 20 6d 61 69 6e | 6c 79 20 75 73 65 64 20 |are main|ly used |
|000021e0| 74 6f 20 6a 75 6d 70 20 | 61 72 6f 75 6e 64 20 77 |to jump |around w|
|000021f0| 69 74 68 69 6e 20 61 20 | 73 6d 61 6c 6c 20 73 65 |ithin a |small se|
|00002200| 67 6d 65 6e 74 20 6f 66 | 20 63 6f 64 65 2e 0a 54 |gment of| code..T|
|00002210| 68 65 20 6c 6f 63 61 6c | 20 6c 61 62 65 6c 73 20 |he local| labels |
|00002220| 61 72 65 20 68 65 6c 64 | 20 69 6e 20 61 20 73 70 |are held| in a sp|
|00002230| 65 63 69 61 6c 20 73 74 | 61 63 6b 20 73 65 70 61 |ecial st|ack sepa|
|00002240| 72 61 74 65 20 66 72 6f | 6d 20 6f 74 68 65 72 20 |rate fro|m other |
|00002250| 69 64 65 6e 74 69 66 69 | 65 72 73 20 73 6f 20 74 |identifi|ers so t|
|00002260| 68 61 74 0a 74 68 65 79 | 20 63 61 6e 20 65 76 65 |hat.they| can eve|
|00002270| 6e 20 68 61 76 65 20 74 | 68 65 20 73 61 6d 65 20 |n have t|he same |
|00002280| 6e 61 6d 65 20 61 73 20 | 61 20 6e 6f 72 6d 61 6c |name as |a normal|
|00002290| 20 6c 61 62 65 6c 20 28 | 77 69 74 68 20 61 20 6c | label (|with a l|
|000022a0| 65 61 64 69 6e 67 20 62 | 61 63 6b 73 6c 61 73 68 |eading b|ackslash|
|000022b0| 20 27 5c 27 29 2e 0a 54 | 68 69 73 20 73 74 61 63 | '\')..T|his stac|
|000022c0| 6b 20 63 61 6e 20 68 6f | 6c 64 20 75 70 20 74 6f |k can ho|ld up to|
|000022d0| 20 35 30 20 6c 6f 63 61 | 6c 20 6c 61 62 65 6c 73 | 50 loca|l labels|
|000022e0| 2e 20 49 74 20 69 73 20 | 66 6c 75 73 68 65 64 20 |. It is |flushed |
|000022f0| 65 61 63 68 20 74 69 6d | 65 20 61 20 72 65 67 75 |each tim|e a regu|
|00002300| 6c 61 72 20 6c 61 62 65 | 6c 0a 69 73 20 65 6e 63 |lar labe|l.is enc|
|00002310| 6f 75 6e 74 65 72 20 61 | 74 20 74 68 65 20 62 65 |ounter a|t the be|
|00002320| 67 69 6e 6e 69 6e 67 20 | 6f 66 20 61 20 6c 69 6e |ginning |of a lin|
|00002330| 65 2e 0a 0a 40 65 78 61 | 6d 70 6c 65 0a 0a 43 6f |e...@exa|mple..Co|
|00002340| 70 79 53 6f 6d 65 74 68 | 69 6e 67 20 20 20 4c 44 |pySometh|ing LD|
|00002350| 52 20 20 20 20 20 52 30 | 2c 53 6f 75 72 63 65 0a |R R0|,Source.|
|00002360| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002370| 4c 44 52 20 20 20 20 20 | 52 31 2c 44 65 73 74 69 |LDR |R1,Desti|
|00002380| 6e 61 74 69 6f 6e 0a 5c | 43 6f 70 79 49 74 20 20 |nation.\|CopyIt |
|00002390| 20 20 20 20 20 20 20 4c | 44 52 20 20 20 20 20 52 | L|DR R|
|000023a0| 32 2c 5b 52 30 5d 2c 23 | 31 0a 20 20 20 20 20 20 |2,[R0],#|1. |
|000023b0| 20 20 20 20 20 20 20 20 | 20 20 54 45 51 20 20 20 | | TEQ |
|000023c0| 20 20 52 32 2c 23 30 0a | 20 20 20 20 20 20 20 20 | R2,#0.| |
|000023d0| 20 20 20 20 20 20 20 20 | 53 54 52 4e 45 20 20 20 | |STRNE |
|000023e0| 52 32 2c 5b 52 31 5d 2c | 23 31 0a 20 20 20 20 20 |R2,[R1],|#1. |
|000023f0| 20 20 20 20 20 20 20 20 | 20 20 20 42 4e 45 20 20 | | BNE |
|00002400| 20 20 20 5c 43 6f 70 79 | 49 74 0a 43 6f 70 79 41 | \Copy|It.CopyA|
|00002410| 6e 6f 74 68 65 72 20 20 | 20 20 20 4c 44 52 20 20 |nother | LDR |
|00002420| 20 20 20 52 30 2c 4e 65 | 78 74 53 6f 75 72 63 65 | R0,Ne|xtSource|
|00002430| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00002440| 20 4c 44 52 20 20 20 20 | 20 52 31 2c 4e 65 78 74 | LDR | R1,Next|
|00002450| 44 65 73 74 0a 5c 43 6f | 70 79 49 74 20 20 20 20 |Dest.\Co|pyIt |
|00002460| 20 20 20 20 20 4c 44 52 | 42 20 20 20 20 52 32 2c | LDR|B R2,|
|00002470| 5b 52 30 5d 2c 23 31 0a | 20 20 20 20 20 20 20 20 |[R0],#1.| |
|00002480| 20 20 20 20 20 20 20 20 | 54 45 51 20 20 20 20 20 | |TEQ |
|00002490| 52 32 2c 23 30 0a 20 20 | 20 20 20 20 20 20 20 20 |R2,#0. | |
|000024a0| 20 20 20 20 20 20 53 54 | 52 4e 45 42 20 20 52 32 | ST|RNEB R2|
|000024b0| 2c 5b 52 31 5d 2c 23 31 | 0a 20 20 20 20 20 20 20 |,[R1],#1|. |
|000024c0| 20 20 20 20 20 20 20 20 | 20 42 4e 45 20 20 20 20 | | BNE |
|000024d0| 20 5c 43 6f 70 79 49 74 | 0a 40 65 6e 64 20 65 78 | \CopyIt|.@end ex|
|000024e0| 61 6d 70 6c 65 0a 0a 49 | 6e 20 74 68 65 20 66 69 |ample..I|n the fi|
|000024f0| 72 73 74 20 6c 6f 6f 70 | 20 6f 66 20 74 68 65 20 |rst loop| of the |
|00002500| 65 78 61 6d 70 6c 65 20 | 61 20 77 6f 72 64 20 61 |example |a word a|
|00002510| 6c 69 67 6e 65 64 20 73 | 74 72 75 63 74 75 72 65 |ligned s|tructure|
|00002520| 20 69 73 20 63 6f 70 69 | 65 64 2e 20 54 68 65 20 | is copi|ed. The |
|00002530| 6c 61 62 65 6c 0a 61 74 | 20 74 68 65 20 62 65 67 |label.at| the beg|
|00002540| 69 6e 6e 69 6e 67 20 6f | 66 20 74 68 65 20 6c 6f |inning o|f the lo|
|00002550| 6f 70 20 69 73 20 61 20 | 6c 6f 63 61 6c 20 6c 61 |op is a |local la|
|00002560| 62 65 6c 20 63 61 6c 6c | 65 64 20 40 63 6f 64 65 |bel call|ed @code|
|00002570| 7b 43 6f 70 79 49 74 7d | 2e 20 49 6e 20 74 68 65 |{CopyIt}|. In the|
|00002580| 20 73 65 63 6f 6e 64 0a | 6c 6f 6f 70 20 61 20 62 | second.|loop a b|
|00002590| 79 74 65 20 61 6c 69 67 | 6e 65 64 20 73 74 72 75 |yte alig|ned stru|
|000025a0| 63 74 75 72 65 20 69 73 | 20 63 6f 70 69 65 64 2e |cture is| copied.|
|000025b0| 20 54 68 65 20 6c 6f 6f | 70 20 6c 61 62 65 6c 20 | The loo|p label |
|000025c0| 68 61 73 20 74 68 65 20 | 73 61 6d 65 20 6e 61 6d |has the |same nam|
|000025d0| 65 0a 61 73 20 62 65 66 | 6f 72 65 20 62 75 74 20 |e.as bef|ore but |
|000025e0| 61 73 20 61 20 72 65 67 | 75 6c 61 72 20 6c 61 62 |as a reg|ular lab|
|000025f0| 65 6c 20 6f 63 63 75 72 | 65 64 20 62 65 66 6f 72 |el occur|ed befor|
|00002600| 65 20 74 68 65 20 6c 6f | 63 61 6c 20 6c 61 62 65 |e the lo|cal labe|
|00002610| 6c 20 73 74 61 63 6b 20 | 77 61 73 0a 63 6c 65 61 |l stack |was.clea|
|00002620| 72 65 64 20 61 6e 64 20 | 61 6c 6c 20 6c 6f 63 61 |red and |all loca|
|00002630| 6c 20 6c 61 62 65 6c 73 | 20 63 61 6e 20 62 65 20 |l labels| can be |
|00002640| 6e 65 77 6c 79 20 64 65 | 66 69 6e 65 64 2e 0a 0a |newly de|fined...|
|00002650| 40 73 65 63 74 69 6f 6e | 20 4f 70 65 72 61 74 6f |@section| Operato|
|00002660| 72 73 0a 54 68 65 20 66 | 6f 6c 6c 6f 77 69 6e 67 |rs.The f|ollowing|
|00002670| 20 6f 70 65 72 61 74 6f | 72 73 20 63 61 6e 20 62 | operato|rs can b|
|00002680| 65 20 75 73 65 64 20 69 | 6e 20 65 78 70 72 65 73 |e used i|n expres|
|00002690| 73 69 6f 6e 73 20 70 72 | 6f 63 65 73 73 65 64 20 |sions pr|ocessed |
|000026a0| 62 79 20 74 68 69 73 20 | 61 73 73 65 6d 62 6c 65 |by this |assemble|
|000026b0| 72 3a 0a 0a 40 74 61 62 | 6c 65 20 40 63 6f 64 65 |r:..@tab|le @code|
|000026c0| 0a 40 69 74 65 6d 20 2b | 0a 41 73 20 61 20 75 6e |.@item +|.As a un|
|000026d0| 61 72 79 20 61 6e 64 20 | 62 69 6e 61 72 79 20 6f |ary and |binary o|
|000026e0| 70 65 72 61 74 6f 72 2e | 0a 0a 40 69 74 65 6d 20 |perator.|..@item |
|000026f0| 2d 0a 41 73 20 61 20 75 | 6e 61 72 79 20 61 6e 64 |-.As a u|nary and|
|00002700| 20 62 69 6e 61 72 79 20 | 6f 70 65 72 61 74 6f 72 | binary |operator|
|00002710| 2e 0a 0a 40 69 74 65 6d | 20 7e 0a 41 73 20 61 20 |...@item| ~.As a |
|00002720| 75 6e 61 72 79 20 6f 70 | 65 72 61 74 6f 72 2c 20 |unary op|erator, |
|00002730| 64 65 6e 6f 74 65 73 20 | 6f 6e 65 73 20 63 6f 6d |denotes |ones com|
|00002740| 70 6c 65 6d 65 6e 74 20 | 6f 66 20 74 68 65 20 66 |plement |of the f|
|00002750| 6f 6c 6c 6f 77 69 6e 67 | 20 65 78 70 72 65 73 73 |ollowing| express|
|00002760| 69 6f 6e 2e 0a 0a 40 69 | 74 65 6d 20 5e 0a 42 69 |ion...@i|tem ^.Bi|
|00002770| 6e 61 72 79 20 6f 70 65 | 72 61 74 6f 72 20 66 6f |nary ope|rator fo|
|00002780| 72 20 65 78 63 6c 75 73 | 69 76 65 20 6f 72 2e 0a |r exclus|ive or..|
|00002790| 0a 40 69 74 65 6d 20 2a | 0a 4d 75 6c 74 69 70 6c |.@item *|.Multipl|
|000027a0| 69 63 61 74 69 6f 6e 20 | 6f 70 65 72 61 74 6f 72 |ication |operator|
|000027b0| 2e 0a 0a 40 69 74 65 6d | 20 2f 0a 44 69 76 69 73 |...@item| /.Divis|
|000027c0| 69 6f 6e 20 28 44 49 56 | 29 2e 0a 0a 40 69 74 65 |ion (DIV|)...@ite|
|000027d0| 6d 20 25 0a 52 65 6d 61 | 69 6e 64 65 72 20 64 69 |m %.Rema|inder di|
|000027e0| 76 69 73 69 6f 6e 20 28 | 4d 4f 44 29 2e 0a 0a 40 |vision (|MOD)...@|
|000027f0| 69 74 65 6d 20 7c 0a 42 | 69 74 2d 77 69 73 65 20 |item |.B|it-wise |
|00002800| 4f 52 2e 0a 0a 40 69 74 | 65 6d 20 26 0a 42 69 74 |OR...@it|em &.Bit|
|00002810| 2d 77 69 73 65 20 41 4e | 44 2e 0a 0a 40 69 74 65 |-wise AN|D...@ite|
|00002820| 6d 20 3d 0a 45 71 75 61 | 6c 20 63 6f 6d 70 61 72 |m =.Equa|l compar|
|00002830| 69 73 6f 6e 2e 0a 0a 40 | 69 74 65 6d 20 3c 3e 0a |ison...@|item <>.|
|00002840| 4e 6f 74 20 65 71 75 61 | 6c 20 63 6f 6d 70 61 72 |Not equa|l compar|
|00002850| 69 73 6f 6e 2e 0a 0a 40 | 69 74 65 6d 20 3c 3c 0a |ison...@|item <<.|
|00002860| 4c 6f 67 69 63 61 6c 20 | 73 68 69 66 74 20 6c 65 |Logical |shift le|
|00002870| 66 74 2e 0a 0a 40 69 74 | 65 6d 20 3e 3e 0a 4c 6f |ft...@it|em >>.Lo|
|00002880| 67 69 63 61 6c 20 73 68 | 69 66 74 20 72 69 67 68 |gical sh|ift righ|
|00002890| 74 2e 0a 40 65 6e 64 20 | 74 61 62 6c 65 0a 0a 41 |t..@end |table..A|
|000028a0| 6c 6c 20 6f 70 65 72 61 | 74 6f 72 73 20 68 61 76 |ll opera|tors hav|
|000028b0| 65 20 74 68 65 20 73 61 | 6d 65 20 70 72 65 63 65 |e the sa|me prece|
|000028c0| 64 65 6e 63 65 2e 0a 0a | 40 73 65 63 74 69 6f 6e |dence...|@section|
|000028d0| 20 43 6f 6e 73 74 61 6e | 74 73 0a 43 6f 6e 73 74 | Constan|ts.Const|
|000028e0| 61 6e 74 73 20 61 72 65 | 20 65 69 74 68 65 72 20 |ants are| either |
|000028f0| 67 69 76 65 6e 20 61 73 | 20 61 20 6e 75 6d 65 72 |given as| a numer|
|00002900| 69 63 20 63 6f 6e 73 74 | 61 6e 74 20 6f 72 0a 61 |ic const|ant or.a|
|00002910| 73 20 61 20 63 68 61 72 | 61 63 74 65 72 20 63 6f |s a char|acter co|
|00002920| 6e 73 74 61 6e 74 2e 20 | 54 68 65 20 76 61 6c 75 |nstant. |The valu|
|00002930| 65 20 75 73 65 64 20 69 | 6e 20 61 6e 20 65 78 70 |e used i|n an exp|
|00002940| 72 65 73 73 69 6f 6e 20 | 69 73 20 61 6c 77 61 79 |ression |is alway|
|00002950| 73 20 74 68 65 0a 6e 75 | 6d 65 72 69 63 20 76 61 |s the.nu|meric va|
|00002960| 6c 75 65 20 6f 66 20 74 | 68 65 20 63 6f 6e 73 74 |lue of t|he const|
|00002970| 61 6e 74 2e 0a 0a 40 73 | 75 62 73 65 63 74 69 6f |ant...@s|ubsectio|
|00002980| 6e 20 4e 75 6d 65 72 69 | 63 20 63 6f 6e 73 74 61 |n Numeri|c consta|
|00002990| 6e 74 73 0a 4e 75 6d 65 | 72 69 63 20 63 6f 6e 73 |nts.Nume|ric cons|
|000029a0| 74 61 6e 74 73 20 62 65 | 67 69 6e 20 77 69 74 68 |tants be|gin with|
|000029b0| 20 61 20 64 69 67 69 74 | 20 28 30 40 64 6f 74 73 | a digit| (0@dots|
|000029c0| 39 29 2c 0a 74 68 65 20 | 66 6f 6c 6c 6f 77 69 6e |9),.the |followin|
|000029d0| 67 20 63 68 61 72 61 63 | 74 65 72 73 20 63 61 6e |g charac|ters can|
|000029e0| 20 62 65 20 65 69 74 68 | 65 72 20 66 75 72 74 68 | be eith|er furth|
|000029f0| 65 72 20 64 69 67 69 74 | 73 20 6f 72 20 74 68 65 |er digit|s or the|
|00002a00| 20 6c 65 74 74 65 72 73 | 20 27 41 27 2e 2e 27 46 | letters| 'A'..'F|
|00002a10| 27 0a 66 6f 72 20 68 65 | 78 61 64 65 63 69 6d 61 |'.for he|xadecima|
|00002a20| 6c 20 63 6f 6e 73 74 61 | 6e 74 73 2e 20 54 68 65 |l consta|nts. The|
|00002a30| 20 64 65 66 61 75 6c 74 | 20 72 61 64 69 78 20 69 | default| radix i|
|00002a40| 73 20 68 65 78 61 64 65 | 63 69 6d 61 6c 2c 20 62 |s hexade|cimal, b|
|00002a50| 75 74 20 79 6f 75 20 63 | 61 6e 20 73 70 65 63 69 |ut you c|an speci|
|00002a60| 66 79 0a 74 68 65 20 62 | 61 73 65 20 62 79 20 70 |fy.the b|ase by p|
|00002a70| 6c 61 63 69 6e 67 20 6f | 6e 65 20 6f 66 20 74 68 |lacing o|ne of th|
|00002a80| 65 20 66 6f 6c 6c 6f 77 | 69 6e 67 20 63 68 61 72 |e follow|ing char|
|00002a90| 61 63 74 65 72 73 20 61 | 74 20 74 68 65 20 65 6e |acters a|t the en|
|00002aa0| 64 20 6f 66 20 74 68 65 | 20 63 6f 6e 73 74 61 6e |d of the| constan|
|00002ab0| 74 3a 0a 0a 40 74 61 62 | 6c 65 20 40 63 6f 64 65 |t:..@tab|le @code|
|00002ac0| 0a 40 69 74 65 6d 20 48 | 0a 46 6f 72 20 68 65 78 |.@item H|.For hex|
|00002ad0| 61 64 65 63 69 6d 61 6c | 20 63 6f 6e 73 74 61 6e |adecimal| constan|
|00002ae0| 74 73 20 28 64 65 66 61 | 75 6c 74 2c 20 65 2e 67 |ts (defa|ult, e.g|
|00002af0| 2e 20 40 63 6f 64 65 7b | 30 46 30 48 7d 29 0a 0a |. @code{|0F0H})..|
|00002b00| 40 69 74 65 6d 20 2e 0a | 46 6f 72 20 64 65 63 69 |@item ..|For deci|
|00002b10| 6d 61 6c 20 63 6f 6e 73 | 74 61 6e 74 73 20 28 65 |mal cons|tants (e|
|00002b20| 2e 67 2e 20 40 63 6f 64 | 65 7b 31 30 2e 7d 29 0a |.g. @cod|e{10.}).|
|00002b30| 0a 40 69 74 65 6d 20 4f | 0a 46 6f 72 20 6f 63 74 |.@item O|.For oct|
|00002b40| 61 6c 20 63 6f 6e 73 74 | 61 6e 74 73 20 28 65 2e |al const|ants (e.|
|00002b50| 67 2e 20 40 63 6f 64 65 | 7b 37 35 36 4f 7d 29 0a |g. @code|{756O}).|
|00002b60| 0a 40 69 74 65 6d 20 54 | 0a 46 6f 72 20 62 69 6e |.@item T|.For bin|
|00002b70| 61 72 79 20 63 6f 6e 73 | 74 61 6e 74 73 20 28 65 |ary cons|tants (e|
|00002b80| 2e 67 2e 20 40 63 6f 64 | 65 7b 31 31 30 30 31 54 |.g. @cod|e{11001T|
|00002b90| 7d 29 0a 0a 40 65 6e 64 | 20 74 61 62 6c 65 0a 0a |})..@end| table..|
|00002ba0| 40 73 75 62 73 65 63 74 | 69 6f 6e 20 43 68 61 72 |@subsect|ion Char|
|00002bb0| 61 63 74 65 72 20 63 6f | 6e 73 74 61 6e 74 73 0a |acter co|nstants.|
|00002bc0| 43 68 61 72 61 63 74 65 | 72 20 63 6f 6e 73 74 61 |Characte|r consta|
|00002bd0| 6e 74 73 20 61 72 65 20 | 65 6e 63 6c 6f 73 65 64 |nts are |enclosed|
|00002be0| 20 69 6e 20 73 69 6e 67 | 6c 65 20 71 75 6f 74 61 | in sing|le quota|
|00002bf0| 74 69 6f 6e 20 6d 61 72 | 6b 73 2e 0a 45 2e 67 2e |tion mar|ks..E.g.|
|00002c00| 20 40 63 6f 64 65 7b 27 | 41 27 7d 2c 20 40 63 6f | @code{'|A'}, @co|
|00002c10| 64 65 7b 27 3b 27 7d 20 | 61 6e 64 20 40 63 6f 64 |de{';'} |and @cod|
|00002c20| 65 7b 27 5b 27 7d 2e 20 | 54 68 65 69 72 20 6e 75 |e{'['}. |Their nu|
|00002c30| 6d 65 72 69 63 20 76 61 | 6c 75 65 20 69 73 0a 74 |meric va|lue is.t|
|00002c40| 68 65 20 41 53 43 49 49 | 20 76 61 6c 75 65 20 6f |he ASCII| value o|
|00002c50| 66 20 74 68 65 20 63 68 | 61 72 61 63 74 65 72 2e |f the ch|aracter.|
|00002c60| 0a 0a 40 73 65 63 74 69 | 6f 6e 20 45 78 70 72 65 |..@secti|on Expre|
|00002c70| 73 73 69 6f 6e 73 0a 54 | 68 65 20 68 61 6e 64 6c |ssions.T|he handl|
|00002c80| 69 6e 67 20 6f 66 20 65 | 78 70 72 65 73 73 69 6f |ing of e|xpressio|
|00002c90| 6e 73 20 69 73 20 73 69 | 6d 70 6c 65 20 61 73 20 |ns is si|mple as |
|00002ca0| 6f 70 70 6f 73 65 64 20 | 74 6f 20 68 69 67 68 20 |opposed |to high |
|00002cb0| 6c 65 76 65 6c 20 6c 61 | 6e 67 75 61 67 65 20 63 |level la|nguage c|
|00002cc0| 6f 6d 70 69 6c 65 72 73 | 2e 0a 54 68 69 73 20 6d |ompilers|..This m|
|00002cd0| 61 79 20 62 65 20 63 68 | 61 6e 67 65 64 20 69 6e |ay be ch|anged in|
|00002ce0| 20 66 75 74 75 72 65 20 | 72 65 6c 65 61 73 65 73 | future |releases|
|00002cf0| 2e 20 54 68 65 20 61 73 | 73 65 6d 62 6c 65 72 20 |. The as|sembler |
|00002d00| 65 76 61 6c 75 61 74 65 | 73 20 65 78 70 72 65 73 |evaluate|s expres|
|00002d10| 73 69 6f 6e 73 20 66 72 | 6f 6d 0a 6c 65 66 74 20 |sions fr|om.left |
|00002d20| 74 6f 20 72 69 67 68 74 | 2c 20 61 6e 64 20 61 6c |to right|, and al|
|00002d30| 6c 20 6f 70 65 72 61 74 | 6f 72 73 20 68 61 76 65 |l operat|ors have|
|00002d40| 20 74 68 65 20 73 61 6d | 65 20 70 72 65 63 65 64 | the sam|e preced|
|00002d50| 65 6e 63 65 2e 20 50 61 | 72 65 6e 74 68 65 73 65 |ence. Pa|renthese|
|00002d60| 73 20 63 61 6e 20 62 65 | 20 75 73 65 64 0a 74 6f |s can be| used.to|
|00002d70| 20 6f 76 65 72 72 69 64 | 65 20 73 74 72 61 69 67 | overrid|e straig|
|00002d80| 68 74 20 66 6f 72 77 61 | 72 64 20 65 76 61 6c 75 |ht forwa|rd evalu|
|00002d90| 61 74 69 6f 6e 2e 0a 0a | 40 74 61 62 6c 65 20 40 |ation...|@table @|
|00002da0| 63 6f 64 65 0a 40 69 74 | 65 6d 20 33 2b 32 2a 35 |code.@it|em 3+2*5|
|00002db0| 0a 72 65 73 75 6c 74 20 | 3d 20 32 35 0a 0a 40 69 |.result |= 25..@i|
|00002dc0| 74 65 6d 20 33 2a 32 2b | 35 0a 72 65 73 75 6c 74 |tem 3*2+|5.result|
|00002dd0| 20 3d 20 31 31 0a 0a 40 | 69 74 65 6d 20 33 2b 28 | = 11..@|item 3+(|
|00002de0| 32 2a 35 29 0a 72 65 73 | 75 6c 74 20 3d 20 31 33 |2*5).res|ult = 13|
|00002df0| 0a 0a 40 65 6e 64 20 74 | 61 62 6c 65 0a 0a 40 73 |..@end t|able..@s|
|00002e00| 75 62 73 65 63 74 69 6f | 6e 20 45 78 70 72 65 73 |ubsectio|n Expres|
|00002e10| 73 69 6f 6e 20 54 79 70 | 65 73 0a 54 68 65 20 61 |sion Typ|es.The a|
|00002e20| 73 73 65 6d 62 6c 65 72 | 20 75 73 65 73 20 74 68 |ssembler| uses th|
|00002e30| 65 20 66 6f 6c 6c 6f 77 | 69 6e 67 20 65 78 70 72 |e follow|ing expr|
|00002e40| 65 73 73 69 6f 6e 20 74 | 79 70 65 73 3a 20 42 6f |ession t|ypes: Bo|
|00002e50| 6f 6c 65 61 6e 2c 20 52 | 65 67 69 73 74 65 72 2c |olean, R|egister,|
|00002e60| 20 41 62 73 6f 6c 75 74 | 65 2c 20 4c 61 62 65 6c | Absolut|e, Label|
|00002e70| 2e 0a 0a 40 74 61 62 6c | 65 20 40 76 61 72 0a 40 |...@tabl|e @var.@|
|00002e80| 69 74 65 6d 20 42 6f 6f | 6c 65 61 6e 0a 42 6f 6f |item Boo|lean.Boo|
|00002e90| 6c 65 61 6e 20 65 78 70 | 72 65 73 73 69 6f 6e 73 |lean exp|ressions|
|00002ea0| 20 68 61 76 65 20 65 69 | 74 68 65 72 20 74 68 65 | have ei|ther the|
|00002eb0| 20 76 61 6c 75 65 20 54 | 52 55 45 20 6f 72 20 46 | value T|RUE or F|
|00002ec0| 41 4c 53 45 2e 20 54 68 | 65 79 20 61 72 65 20 6d |ALSE. Th|ey are m|
|00002ed0| 61 69 6e 6c 79 20 75 73 | 65 64 20 66 6f 72 0a 63 |ainly us|ed for.c|
|00002ee0| 6f 6e 64 69 74 69 6f 6e | 61 6c 20 61 73 73 65 6d |ondition|al assem|
|00002ef0| 62 6c 79 2e 0a 0a 40 69 | 74 65 6d 20 52 65 67 69 |bly...@i|tem Regi|
|00002f00| 73 74 65 72 0a 52 65 67 | 69 73 74 65 72 20 65 78 |ster.Reg|ister ex|
|00002f10| 70 72 65 73 73 69 6f 6e | 20 73 70 65 63 69 66 69 |pression| specifi|
|00002f20| 79 20 61 6e 20 41 52 4d | 20 72 65 67 69 73 74 65 |y an ARM| registe|
|00002f30| 72 2e 20 4e 6f 20 61 72 | 69 74 68 6d 65 74 69 63 |r. No ar|ithmetic|
|00002f40| 20 69 73 20 61 6c 6c 6f | 77 65 64 20 69 6e 20 72 | is allo|wed in r|
|00002f50| 65 67 69 73 74 65 72 0a | 65 78 70 72 65 73 73 69 |egister.|expressi|
|00002f60| 6f 6e 73 2c 20 74 68 65 | 79 20 61 72 65 20 75 73 |ons, the|y are us|
|00002f70| 65 64 20 69 6e 20 61 73 | 73 69 67 6d 65 6e 74 73 |ed in as|sigments|
|00002f80| 20 28 40 63 6f 64 65 7b | 2e 45 51 55 7d 29 20 74 | (@code{|.EQU}) t|
|00002f90| 6f 20 64 65 66 69 6e 65 | 20 61 6c 74 65 72 6e 61 |o define| alterna|
|00002fa0| 74 69 76 65 20 6e 61 6d | 65 73 20 66 6f 72 0a 74 |tive nam|es for.t|
|00002fb0| 68 65 20 72 65 67 69 73 | 74 65 72 73 2e 20 50 6f |he regis|ters. Po|
|00002fc0| 73 73 69 62 6c 65 20 76 | 61 6c 75 65 73 20 61 72 |ssible v|alues ar|
|00002fd0| 65 3a 20 40 63 6f 64 65 | 7b 52 30 7d 20 2d 2d 20 |e: @code|{R0} -- |
|00002fe0| 40 63 6f 64 65 7b 52 31 | 35 7d 2c 20 40 63 6f 64 |@code{R1|5}, @cod|
|00002ff0| 65 7b 50 43 7d 2e 0a 0a | 40 69 74 65 6d 20 41 62 |e{PC}...|@item Ab|
|00003000| 73 6f 6c 75 74 65 0a 41 | 62 73 6f 6c 75 74 65 20 |solute.A|bsolute |
|00003010| 65 78 70 72 65 73 73 69 | 6f 6e 73 20 61 72 65 20 |expressi|ons are |
|00003020| 74 68 65 20 6d 6f 73 74 | 20 63 6f 6d 6d 6f 6e 20 |the most| common |
|00003030| 65 78 70 72 65 73 73 69 | 6f 6e 73 2e 20 54 68 65 |expressi|ons. The|
|00003040| 79 20 73 70 65 63 69 66 | 79 20 61 62 73 6f 6c 75 |y specif|y absolu|
|00003050| 74 65 20 6e 75 6d 65 72 | 69 63 0a 76 61 6c 75 65 |te numer|ic.value|
|00003060| 73 2e 20 59 6f 75 20 63 | 61 6e 20 75 73 65 20 61 |s. You c|an use a|
|00003070| 62 73 6f 6c 75 74 65 20 | 65 78 70 72 65 73 73 69 |bsolute |expressi|
|00003080| 6f 6e 73 20 74 6f 20 64 | 65 66 69 6e 65 20 69 6d |ons to d|efine im|
|00003090| 6d 65 64 69 61 74 65 20 | 63 6f 6e 73 74 61 6e 74 |mediate |constant|
|000030a0| 73 20 6f 72 20 63 6f 6e | 73 74 61 6e 74 73 0a 69 |s or con|stants.i|
|000030b0| 6e 20 74 68 65 20 63 6f | 64 65 20 28 40 63 6f 64 |n the co|de (@cod|
|000030c0| 65 7b 2e 57 4f 52 44 7d | 29 2e 20 54 68 65 79 20 |e{.WORD}|). They |
|000030d0| 63 61 6e 20 61 6c 73 6f | 20 62 65 20 6d 69 78 65 |can also| be mixe|
|000030e0| 64 20 77 69 74 68 20 6c | 61 62 65 6c 20 65 78 70 |d with l|abel exp|
|000030f0| 72 65 73 73 69 6f 6e 73 | 2e 0a 0a 40 69 74 65 6d |ressions|...@item|
|00003100| 20 4c 61 62 65 6c 0a 4c | 61 62 65 6c 20 65 78 70 | Label.L|abel exp|
|00003110| 72 65 73 73 69 6f 6e 73 | 20 61 72 65 20 75 73 65 |ressions| are use|
|00003120| 64 20 74 6f 20 73 70 65 | 63 69 66 79 20 6c 61 62 |d to spe|cify lab|
|00003130| 65 6c 73 2e 20 41 64 64 | 69 6e 67 20 6f 72 20 73 |els. Add|ing or s|
|00003140| 75 62 74 72 61 63 74 69 | 6e 67 20 61 62 73 6f 6c |ubtracti|ng absol|
|00003150| 75 74 65 20 76 61 6c 75 | 65 73 0a 66 72 6f 6d 20 |ute valu|es.from |
|00003160| 6c 61 62 65 6c 73 20 67 | 69 76 65 73 20 61 20 6c |labels g|ives a l|
|00003170| 61 62 65 6c 20 61 73 20 | 72 65 73 75 6c 74 2c 20 |abel as |result, |
|00003180| 62 75 74 20 6d 75 6c 74 | 69 70 6c 79 69 6e 67 20 |but mult|iplying |
|00003190| 6f 72 20 6f 74 68 65 72 | 20 6f 70 65 72 61 74 69 |or other| operati|
|000031a0| 6f 6e 73 20 67 69 76 65 | 20 61 6e 0a 61 62 73 6f |ons give| an.abso|
|000031b0| 6c 75 74 65 20 76 61 6c | 75 65 2e 0a 40 65 6e 64 |lute val|ue..@end|
|000031c0| 20 74 61 62 6c 65 0a 0a | 0a 40 63 68 61 70 74 65 | table..|.@chapte|
|000031d0| 72 20 41 73 73 65 6d 62 | 6c 65 72 20 44 69 72 65 |r Assemb|ler Dire|
|000031e0| 63 74 69 76 65 73 0a 0a | 40 73 65 63 74 69 6f 6e |ctives..|@section|
|000031f0| 20 47 6c 6f 62 61 6c 20 | 41 6e 64 20 52 6f 75 74 | Global |And Rout|
|00003200| 69 6e 65 20 44 69 72 65 | 63 74 69 76 65 73 0a 45 |ine Dire|ctives.E|
|00003210| 76 65 72 79 20 61 73 73 | 65 6d 62 6c 79 20 6d 75 |very ass|embly mu|
|00003220| 73 74 20 69 6e 63 6c 75 | 64 65 20 61 74 20 6c 65 |st inclu|de at le|
|00003230| 61 73 74 20 6f 6e 65 20 | 40 63 6f 64 65 7b 2e 50 |ast one |@code{.P|
|00003240| 52 4f 43 7d 20 61 6e 64 | 20 6f 6e 65 20 40 63 6f |ROC} and| one @co|
|00003250| 64 65 7b 2e 45 4e 44 7d | 2c 20 65 76 65 6e 20 69 |de{.END}|, even i|
|00003260| 6e 0a 74 68 65 20 63 61 | 73 65 20 6f 66 20 73 74 |n.the ca|se of st|
|00003270| 61 6e 64 2d 61 6c 6f 6e | 65 20 61 62 73 6f 6c 75 |and-alon|e absolu|
|00003280| 74 65 20 63 6f 64 65 20 | 77 68 69 63 68 20 77 69 |te code |which wi|
|00003290| 6c 6c 20 6e 6f 74 20 62 | 65 20 6c 69 6e 6b 65 64 |ll not b|e linked|
|000032a0| 2e 0a 0a 40 73 75 62 73 | 65 63 74 69 6f 6e 20 50 |...@subs|ection P|
|000032b0| 52 4f 43 0a 49 64 65 6e | 74 69 66 69 65 73 20 61 |ROC.Iden|tifies a|
|000032c0| 20 70 72 6f 63 65 64 75 | 72 65 20 6f 72 20 74 68 | procedu|re or th|
|000032d0| 61 74 20 73 68 6f 75 6c | 64 20 72 65 74 75 72 6e |at shoul|d return|
|000032e0| 20 6e 6f 20 76 61 6c 75 | 65 2e 20 41 20 40 63 6f | no valu|e. A @co|
|000032f0| 64 65 7b 2e 50 52 4f 43 | 7d 20 69 73 20 74 65 72 |de{.PROC|} is ter|
|00003300| 6d 69 6e 61 74 65 64 0a | 62 79 20 74 68 65 20 6f |minated.|by the o|
|00003310| 63 63 75 72 65 6e 63 65 | 20 6f 66 20 61 20 6e 65 |ccurence| of a ne|
|00003320| 77 20 40 63 6f 64 65 7b | 2e 50 52 4f 43 7d 20 6f |w @code{|.PROC} o|
|00003330| 72 20 40 63 6f 64 65 7b | 2e 45 4e 44 7d 2e 0a 0a |r @code{|.END}...|
|00003340| 40 73 75 62 73 65 63 74 | 69 6f 6e 20 46 55 4e 43 |@subsect|ion FUNC|
|00003350| 0a 49 73 20 65 71 75 69 | 76 61 6c 65 6e 74 20 74 |.Is equi|valent t|
|00003360| 6f 20 61 20 40 63 6f 64 | 65 7b 2e 50 52 4f 43 7d |o a @cod|e{.PROC}|
|00003370| 20 6f 6e 20 74 68 65 20 | 40 41 72 63 68 69 6d 65 | on the |@Archime|
|00003380| 64 65 73 40 20 61 73 20 | 74 68 65 20 41 4f 46 20 |des@ as |the AOF |
|00003390| 66 69 6c 65 20 64 6f 65 | 73 20 6e 6f 74 0a 64 69 |file doe|s not.di|
|000033a0| 73 74 69 6e 67 75 69 73 | 68 20 66 75 6e 63 74 69 |stinguis|h functi|
|000033b0| 6f 6e 73 20 74 68 61 74 | 20 72 65 74 75 72 6e 20 |ons that| return |
|000033c0| 76 61 6c 75 65 73 20 66 | 72 6f 6d 20 70 72 6f 63 |values f|rom proc|
|000033d0| 65 64 75 72 65 73 20 74 | 68 61 74 20 64 6f 20 6e |edures t|hat do n|
|000033e0| 6f 74 2e 0a 0a 40 73 75 | 62 73 65 63 74 69 6f 6e |ot...@su|bsection|
|000033f0| 20 45 4e 44 0a 54 68 69 | 73 20 64 69 72 65 63 74 | END.Thi|s direct|
|00003400| 69 76 65 20 69 73 20 75 | 73 65 64 20 74 6f 20 64 |ive is u|sed to d|
|00003410| 65 6e 6f 74 65 20 74 68 | 65 20 70 68 79 73 69 63 |enote th|e physic|
|00003420| 61 6c 20 65 6e 64 20 6f | 66 20 61 6e 20 61 73 73 |al end o|f an ass|
|00003430| 65 6d 62 6c 79 2e 0a 0a | 40 73 75 62 73 65 63 74 |embly...|@subsect|
|00003440| 69 6f 6e 20 41 42 53 4f | 4c 55 54 45 0a 49 66 20 |ion ABSO|LUTE.If |
|00003450| 40 63 6f 64 65 7b 2e 41 | 42 53 4f 4c 55 54 45 7d |@code{.A|BSOLUTE}|
|00003460| 20 69 73 20 73 70 65 63 | 69 66 69 65 64 20 69 6e | is spec|ified in|
|00003470| 20 61 6e 20 61 73 73 65 | 6d 62 6c 79 20 66 69 6c | an asse|mbly fil|
|00003480| 65 2c 20 74 68 65 20 61 | 73 73 65 6d 62 6c 65 72 |e, the a|ssembler|
|00003490| 20 77 69 6c 6c 20 67 65 | 6e 65 72 61 74 65 64 20 | will ge|nerated |
|000034a0| 61 6e 0a 65 78 65 63 75 | 74 61 62 6c 65 20 61 62 |an.execu|table ab|
|000034b0| 73 6f 6c 75 74 65 20 69 | 6d 61 67 65 2c 20 6e 6f |solute i|mage, no|
|000034c0| 74 20 61 20 6c 69 6e 6b | 61 62 6c 65 20 41 4f 46 |t a link|able AOF|
|000034d0| 20 66 69 6c 65 2e 20 54 | 68 65 20 64 69 72 65 63 | file. T|he direc|
|000034e0| 74 69 76 65 20 6d 75 73 | 74 20 61 70 70 65 61 72 |tive mus|t appear|
|000034f0| 20 62 65 66 6f 72 65 0a | 61 6e 79 20 70 72 6f 63 | before.|any proc|
|00003500| 65 64 75 72 65 20 69 73 | 20 64 65 66 69 6e 65 64 |edure is| defined|
|00003510| 2e 0a 0a 40 73 75 62 73 | 65 63 74 69 6f 6e 20 45 |...@subs|ection E|
|00003520| 4e 54 52 59 0a 49 64 65 | 6e 74 69 66 69 65 73 20 |NTRY.Ide|ntifies |
|00003530| 61 20 6c 61 62 65 6c 20 | 77 68 69 63 68 20 77 69 |a label |which wi|
|00003540| 6c 6c 20 62 65 20 75 73 | 65 64 20 61 73 20 74 68 |ll be us|ed as th|
|00003550| 65 20 65 6e 74 72 79 20 | 70 6f 69 6e 74 20 69 6e |e entry |point in|
|00003560| 74 6f 20 61 20 6c 69 6e | 6b 65 64 20 70 72 6f 67 |to a lin|ked prog|
|00003570| 72 61 6d 6d 65 2e 0a 40 | 65 78 61 6d 70 6c 65 0a |ramme..@|example.|
|00003580| 20 20 20 20 20 20 20 20 | 2e 45 4e 54 52 59 20 53 | |.ENTRY S|
|00003590| 74 61 72 74 75 70 0a 0a | 20 20 20 20 20 20 20 20 |tartup..| |
|000035a0| 2e 50 52 4f 43 20 6d 61 | 69 6e 0a 20 20 20 20 20 |.PROC ma|in. |
|000035b0| 20 20 20 2e 45 58 50 4f | 52 54 20 53 74 61 72 74 | .EXPO|RT Start|
|000035c0| 75 70 0a 0a 53 74 61 72 | 74 75 70 20 2e 0a 20 20 |up..Star|tup .. |
|000035d0| 20 20 20 20 20 20 2e 0a | 20 20 20 20 20 20 20 20 | ..| |
|000035e0| 2e 0a 40 65 6e 64 20 65 | 78 61 6d 70 6c 65 0a 0a |..@end e|xample..|
|000035f0| 40 73 75 62 73 65 63 74 | 69 6f 6e 20 43 4f 44 45 |@subsect|ion CODE|
|00003600| 41 52 45 41 0a 42 65 67 | 69 6e 20 63 6f 64 65 20 |AREA.Beg|in code |
|00003610| 61 72 65 61 20 28 72 65 | 61 64 2d 6f 6e 6c 79 20 |area (re|ad-only |
|00003620| 70 61 72 74 29 20 6f 66 | 20 41 4f 46 20 69 6d 61 |part) of| AOF ima|
|00003630| 67 65 2e 0a 0a 40 73 75 | 62 73 65 63 74 69 6f 6e |ge...@su|bsection|
|00003640| 20 44 41 54 41 41 52 45 | 41 0a 42 65 67 69 6e 20 | DATAARE|A.Begin |
|00003650| 64 61 74 61 20 61 72 65 | 61 20 28 72 65 61 64 2d |data are|a (read-|
|00003660| 77 72 69 74 65 20 70 61 | 72 74 29 20 6f 66 20 41 |write pa|rt) of A|
|00003670| 4f 46 20 69 6d 61 67 65 | 2e 0a 0a 0a 40 73 65 63 |OF image|....@sec|
|00003680| 74 69 6f 6e 20 4c 61 62 | 65 6c 20 44 65 66 69 6e |tion Lab|el Defin|
|00003690| 69 74 69 6f 6e 73 20 41 | 6e 64 20 53 70 61 63 65 |itions A|nd Space|
|000036a0| 2d 41 6c 6c 6f 63 61 74 | 69 6f 6e 20 44 69 72 65 |-Allocat|ion Dire|
|000036b0| 63 74 69 76 65 73 0a 0a | 40 73 75 62 73 65 63 74 |ctives..|@subsect|
|000036c0| 69 6f 6e 20 45 51 55 0a | 41 73 73 69 67 6e 73 20 |ion EQU.|Assigns |
|000036d0| 61 20 76 61 6c 75 65 20 | 74 6f 20 61 6e 20 69 64 |a value |to an id|
|000036e0| 65 6e 74 69 66 69 65 72 | 2e 20 55 73 65 64 20 74 |entifier|. Used t|
|000036f0| 6f 20 61 73 73 69 67 6e | 20 72 65 67 69 73 74 65 |o assign| registe|
|00003700| 72 20 6e 61 6d 65 73 2c | 20 62 6f 6f 6c 65 61 6e |r names,| boolean|
|00003710| 20 66 6c 61 67 73 20 61 | 6e 64 0a 76 61 6c 75 65 | flags a|nd.value|
|00003720| 73 20 74 6f 20 6c 61 62 | 65 6c 73 2e 0a 0a 52 65 |s to lab|els...Re|
|00003730| 67 69 73 74 65 72 20 69 | 64 65 6e 74 69 66 69 65 |gister i|dentifie|
|00003740| 72 73 20 63 61 6e 20 6f | 6e 6c 79 20 62 65 20 65 |rs can o|nly be e|
|00003750| 71 75 61 74 65 64 20 74 | 6f 20 6f 74 68 65 72 20 |quated t|o other |
|00003760| 72 65 67 69 73 74 65 72 | 20 69 64 65 6e 74 69 66 |register| identif|
|00003770| 69 65 72 73 2e 0a 40 65 | 78 61 6d 70 6c 65 0a 73 |iers..@e|xample.s|
|00003780| 70 20 20 20 20 20 20 2e | 45 51 55 20 52 31 33 0a |p .|EQU R13.|
|00003790| 40 65 6e 64 20 65 78 61 | 6d 70 6c 65 0a 0a 42 6f |@end exa|mple..Bo|
|000037a0| 6f 6c 65 61 6e 20 69 64 | 65 6e 74 69 66 69 65 72 |olean id|entifier|
|000037b0| 73 20 63 61 6e 20 6f 6e | 6c 79 20 62 65 20 65 71 |s can on|ly be eq|
|000037c0| 75 61 74 65 64 20 74 6f | 20 62 6f 6f 6c 65 61 6e |uated to| boolean|
|000037d0| 20 76 61 6c 75 65 73 2c | 20 6c 6f 67 69 63 61 6c | values,| logical|
|000037e0| 20 65 78 70 72 65 73 73 | 69 6f 6e 73 20 61 72 65 | express|ions are|
|000037f0| 0a 63 75 72 72 65 6e 74 | 6c 79 20 6e 6f 74 20 61 |.current|ly not a|
|00003800| 6c 6c 6f 77 65 64 2e 0a | 40 65 78 61 6d 70 6c 65 |llowed..|@example|
|00003810| 0a 44 65 62 75 67 20 20 | 20 2e 45 51 55 20 54 52 |.Debug | .EQU TR|
|00003820| 55 45 0a 40 65 6e 64 20 | 65 78 61 6d 70 6c 65 0a |UE.@end |example.|
|00003830| 0a 4c 61 62 65 6c 73 20 | 6d 61 79 20 62 65 20 65 |.Labels |may be e|
|00003840| 71 75 61 74 65 64 20 74 | 6f 20 61 6e 20 65 78 70 |quated t|o an exp|
|00003850| 72 65 73 73 69 6f 6e 20 | 63 6f 6e 74 61 69 6e 69 |ression |containi|
|00003860| 6e 67 20 6c 61 62 65 6c | 73 20 61 6e 64 2f 6f 72 |ng label|s and/or|
|00003870| 20 61 62 73 6f 6c 75 74 | 65 73 2e 20 4f 6e 65 20 | absolut|es. One |
|00003880| 6d 75 73 74 0a 64 65 66 | 69 6e 65 20 61 20 6c 61 |must.def|ine a la|
|00003890| 62 65 6c 20 62 65 66 6f | 72 65 20 69 74 20 69 73 |bel befo|re it is|
|000038a0| 20 75 73 65 64 20 75 6e | 6c 65 73 73 20 69 74 20 | used un|less it |
|000038b0| 77 69 6c 6c 20 62 65 20 | 73 69 6d 70 6c 79 20 65 |will be |simply e|
|000038c0| 71 75 61 74 65 64 20 74 | 6f 20 61 6e 6f 74 68 65 |quated t|o anothe|
|000038d0| 72 20 6c 61 62 65 6c 2e | 20 41 0a 6c 6f 63 61 6c |r label.| A.local|
|000038e0| 20 6c 61 62 65 6c 20 6d | 61 79 20 6e 6f 74 20 61 | label m|ay not a|
|000038f0| 70 70 65 61 72 20 6f 6e | 20 74 68 65 20 6c 65 66 |ppear on| the lef|
|00003900| 74 2d 68 61 6e 64 20 73 | 69 64 65 20 6f 66 20 61 |t-hand s|ide of a|
|00003910| 6e 20 40 63 6f 64 65 7b | 2e 45 51 55 7d 2e 0a 0a |n @code{|.EQU}...|
|00003920| 40 65 78 61 6d 70 6c 65 | 0a 40 76 61 72 7b 6c 61 |@example|.@var{la|
|00003930| 62 65 6c 7d 20 2e 45 51 | 55 20 40 76 61 72 7b 76 |bel} .EQ|U @var{v|
|00003940| 61 6c 75 65 7d 0a 40 65 | 6e 64 20 65 78 61 6d 70 |alue}.@e|nd examp|
|00003950| 6c 65 0a 0a 0a 40 73 75 | 62 73 65 63 74 69 6f 6e |le...@su|bsection|
|00003960| 20 4f 52 47 0a 54 61 6b | 65 73 20 74 68 65 20 6f | ORG.Tak|es the o|
|00003970| 70 65 72 61 6e 64 20 6f | 66 20 40 63 6f 64 65 7b |perand o|f @code{|
|00003980| 2e 4f 52 47 7d 20 61 73 | 20 74 68 65 20 6f 66 66 |.ORG} as| the off|
|00003990| 73 65 74 2c 20 72 65 6c | 61 74 69 76 65 20 74 6f |set, rel|ative to|
|000039a0| 20 74 68 65 20 73 74 61 | 72 74 20 6f 66 20 74 68 | the sta|rt of th|
|000039b0| 65 20 61 73 73 65 6d 62 | 6c 79 20 66 69 6c 65 2c |e assemb|ly file,|
|000039c0| 0a 77 68 65 72 65 20 74 | 68 65 20 6e 65 78 74 20 |.where t|he next |
|000039d0| 77 6f 72 64 20 6f 72 20 | 62 79 74 65 20 6f 66 20 |word or |byte of |
|000039e0| 63 6f 64 65 20 69 73 20 | 74 6f 20 67 6f 2e 20 57 |code is |to go. W|
|000039f0| 6f 72 64 73 20 6f 72 20 | 62 79 74 65 73 20 6f 66 |ords or |bytes of|
|00003a00| 20 7a 65 72 6f 73 20 61 | 72 65 20 70 72 6f 64 75 | zeros a|re produ|
|00003a10| 63 65 64 20 74 6f 0a 67 | 65 74 20 74 68 65 20 63 |ced to.g|et the c|
|00003a20| 75 72 72 65 6e 74 20 6c | 6f 63 61 74 69 6f 6e 20 |urrent l|ocation |
|00003a30| 63 6f 75 6e 74 65 72 20 | 28 4c 43 29 20 74 6f 20 |counter |(LC) to |
|00003a40| 74 68 65 20 63 6f 72 72 | 65 63 74 20 76 61 6c 75 |the corr|ect valu|
|00003a50| 65 2e 0a 0a 40 65 78 61 | 6d 70 6c 65 0a 20 20 20 |e...@exa|mple. |
|00003a60| 20 20 20 20 20 2e 4f 52 | 47 20 39 30 30 30 0a 40 | .OR|G 9000.@|
|00003a70| 65 6e 64 20 65 78 61 6d | 70 6c 65 0a 0a 40 73 75 |end exam|ple..@su|
|00003a80| 62 73 65 63 74 69 6f 6e | 20 41 4c 49 47 4e 0a 40 |bsection| ALIGN.@|
|00003a90| 63 6f 64 65 7b 2e 41 4c | 49 47 4e 7d 20 69 73 20 |code{.AL|IGN} is |
|00003aa0| 75 73 65 64 20 74 6f 20 | 61 6c 69 67 6e 20 74 68 |used to |align th|
|00003ab0| 65 20 63 6f 64 65 20 6c | 6f 63 61 74 69 6f 6e 20 |e code l|ocation |
|00003ac0| 63 6f 75 6e 74 65 72 20 | 74 6f 20 61 20 63 65 72 |counter |to a cer|
|00003ad0| 74 61 69 6e 20 62 79 74 | 65 20 62 6f 75 6e 64 61 |tain byt|e bounda|
|00003ae0| 72 79 2e 0a 49 66 20 6e | 6f 20 61 62 73 6f 6c 75 |ry..If n|o absolu|
|00003af0| 74 65 20 65 78 70 72 65 | 73 73 69 6f 6e 20 66 6f |te expre|ssion fo|
|00003b00| 6c 6c 6f 77 73 20 74 68 | 65 20 64 69 72 65 63 74 |llows th|e direct|
|00003b10| 69 76 65 20 61 20 34 20 | 62 79 74 65 20 77 6f 72 |ive a 4 |byte wor|
|00003b20| 64 20 62 6f 75 6e 64 61 | 72 79 20 69 73 20 75 73 |d bounda|ry is us|
|00003b30| 65 64 2e 0a 0a 40 73 75 | 62 73 65 63 74 69 6f 6e |ed...@su|bsection|
|00003b40| 20 57 4f 52 44 0a 41 6c | 6c 6f 63 61 74 65 73 20 | WORD.Al|locates |
|00003b50| 61 20 77 6f 72 64 20 6f | 66 20 73 70 61 63 65 20 |a word o|f space |
|00003b60| 69 6e 20 74 68 65 20 63 | 6f 64 65 20 73 74 72 65 |in the c|ode stre|
|00003b70| 61 6d 20 66 6f 72 20 65 | 61 63 68 20 76 61 6c 75 |am for e|ach valu|
|00003b80| 65 20 69 6e 20 74 68 65 | 20 76 61 6c 75 65 6c 69 |e in the| valueli|
|00003b90| 73 74 2e 0a 41 73 73 6f | 63 69 61 74 65 73 20 74 |st..Asso|ciates t|
|00003ba0| 68 65 20 28 6f 70 74 69 | 6f 6e 61 6c 29 20 64 65 |he (opti|onal) de|
|00003bb0| 63 6c 61 72 61 74 69 6f | 6e 20 6c 61 62 65 6c 20 |claratio|n label |
|00003bc0| 77 69 74 68 20 74 68 65 | 20 77 6f 72 64 20 73 70 |with the| word sp|
|00003bd0| 61 63 65 20 61 6c 6c 6f | 63 61 74 69 6f 6e 2e 0a |ace allo|cation..|
|00003be0| 40 65 78 61 6d 70 6c 65 | 0a 54 61 62 6c 65 20 20 |@example|.Table |
|00003bf0| 20 2e 57 4f 52 44 20 30 | 2c 20 32 2c 20 34 0a 40 | .WORD 0|, 2, 4.@|
|00003c00| 65 6e 64 20 65 78 61 6d | 70 6c 65 0a 0a 40 73 75 |end exam|ple..@su|
|00003c10| 62 73 65 63 74 69 6f 6e | 20 42 59 54 45 0a 41 6c |bsection| BYTE.Al|
|00003c20| 6c 6f 63 61 74 65 73 20 | 61 20 62 79 74 65 20 6f |locates |a byte o|
|00003c30| 66 20 73 70 61 63 65 20 | 69 6e 74 6f 20 74 68 65 |f space |into the|
|00003c40| 20 63 6f 64 65 20 73 74 | 72 65 61 6d 20 66 6f 72 | code st|ream for|
|00003c50| 20 65 61 63 68 20 76 61 | 6c 75 65 20 6c 69 73 74 | each va|lue list|
|00003c60| 65 64 2e 20 45 61 63 68 | 20 76 61 6c 75 65 20 61 |ed. Each| value a|
|00003c70| 63 74 75 61 6c 6c 79 0a | 73 74 6f 72 65 64 20 6d |ctually.|stored m|
|00003c80| 75 73 74 20 68 61 76 65 | 20 61 20 76 61 6c 75 65 |ust have| a value|
|00003c90| 20 62 65 74 77 65 65 6e | 20 30 20 61 6e 64 20 32 | between| 0 and 2|
|00003ca0| 35 35 2e 20 49 66 20 74 | 68 65 20 76 61 6c 75 65 |55. If t|he value|
|00003cb0| 20 69 73 20 6f 75 74 73 | 69 64 65 20 6f 66 20 74 | is outs|ide of t|
|00003cc0| 68 69 73 20 72 61 6e 67 | 65 20 61 6e 0a 65 72 72 |his rang|e an.err|
|00003cd0| 6f 72 20 77 69 6c 6c 20 | 62 65 20 66 6c 61 67 67 |or will |be flagg|
|00003ce0| 65 64 2e 20 49 66 20 61 | 20 6c 61 62 65 6c 20 69 |ed. If a| label i|
|00003cf0| 73 20 61 73 73 6f 63 69 | 61 74 65 64 20 77 69 74 |s associ|ated wit|
|00003d00| 68 20 40 63 6f 64 65 7b | 2e 42 59 54 45 7d 2c 20 |h @code{|.BYTE}, |
|00003d10| 74 68 65 20 61 64 64 72 | 65 73 73 20 61 74 20 77 |the addr|ess at w|
|00003d20| 68 69 63 68 20 74 68 65 | 0a 62 79 74 65 20 69 73 |hich the|.byte is|
|00003d30| 20 73 74 6f 72 65 64 20 | 77 69 6c 6c 20 62 65 20 | stored |will be |
|00003d40| 61 73 73 69 67 6e 65 64 | 20 74 6f 20 69 74 2e 0a |assigned| to it..|
|00003d50| 0a 40 73 75 62 73 65 63 | 74 69 6f 6e 20 42 4c 4f |.@subsec|tion BLO|
|00003d60| 43 4b 0a 41 6c 6c 6f 63 | 61 74 65 73 20 61 20 62 |CK.Alloc|ates a b|
|00003d70| 6c 6f 63 6b 20 6f 66 20 | 73 70 61 63 65 20 69 6e |lock of |space in|
|00003d80| 74 6f 20 74 68 65 20 63 | 6f 64 65 20 73 74 72 65 |to the c|ode stre|
|00003d90| 61 6d 20 66 6f 72 20 74 | 68 65 20 76 61 6c 75 65 |am for t|he value|
|00003da0| 20 6c 69 73 74 65 64 20 | 77 69 74 68 20 74 68 65 | listed |with the|
|00003db0| 20 67 69 76 65 6e 20 6c | 65 6e 67 74 68 2e 0a 0a | given l|ength...|
|00003dc0| 40 65 78 61 6d 70 6c 65 | 0a 44 61 74 61 20 20 20 |@example|.Data |
|00003dd0| 20 2e 42 4c 4f 43 4b 20 | 34 2c 36 0a 40 65 6e 64 | .BLOCK |4,6.@end|
|00003de0| 20 65 78 61 6d 70 6c 65 | 0a 0a 54 68 69 73 20 77 | example|..This w|
|00003df0| 69 6c 6c 20 61 6c 6c 6f | 63 61 74 65 20 66 6f 75 |ill allo|cate fou|
|00003e00| 72 20 62 79 74 65 73 20 | 65 61 63 68 20 77 69 74 |r bytes |each wit|
|00003e10| 68 20 76 61 6c 75 65 20 | 36 2e 0a 40 63 6f 64 65 |h value |6..@code|
|00003e20| 7b 44 61 74 61 7d 20 69 | 73 20 61 20 6c 61 62 65 |{Data} i|s a labe|
|00003e30| 6c 20 74 6f 20 74 68 65 | 20 73 74 61 72 74 20 6f |l to the| start o|
|00003e40| 66 20 74 68 65 20 62 6c | 6f 63 6b 2e 20 0a 0a 40 |f the bl|ock. ..@|
|00003e50| 73 75 62 73 65 63 74 69 | 6f 6e 20 41 53 43 49 49 |subsecti|on ASCII|
|00003e60| 0a 57 69 74 68 20 40 63 | 6f 64 65 7b 2e 41 53 43 |.With @c|ode{.ASC|
|00003e70| 49 49 7d 20 79 6f 75 20 | 63 61 6e 20 73 70 65 63 |II} you |can spec|
|00003e80| 69 66 79 20 41 53 43 49 | 49 20 64 61 74 61 20 77 |ify ASCI|I data w|
|00003e90| 68 69 63 68 20 69 73 20 | 69 6e 73 65 72 74 65 64 |hich is |inserted|
|00003ea0| 20 69 6e 74 6f 20 74 68 | 65 20 63 6f 64 65 2e 0a | into th|e code..|
|00003eb0| 41 20 73 74 72 69 6e 67 | 20 6d 75 73 74 20 66 6f |A string| must fo|
|00003ec0| 6c 6c 6f 77 20 74 68 65 | 20 64 69 72 65 63 74 69 |llow the| directi|
|00003ed0| 76 65 2e 0a 40 65 78 61 | 6d 70 6c 65 0a 20 20 20 |ve..@exa|mple. |
|00003ee0| 20 20 20 20 20 2e 41 53 | 43 49 49 20 22 53 74 72 | .AS|CII "Str|
|00003ef0| 69 6e 67 20 64 61 74 61 | 22 0a 40 65 6e 64 20 65 |ing data|".@end e|
|00003f00| 78 61 6d 70 6c 65 0a 0a | 40 73 75 62 73 65 63 74 |xample..|@subsect|
|00003f10| 69 6f 6e 20 53 54 52 49 | 4e 47 0a 44 6f 65 73 20 |ion STRI|NG.Does |
|00003f20| 74 68 65 20 73 61 6d 65 | 20 61 73 20 40 63 6f 64 |the same| as @cod|
|00003f30| 65 7b 2e 41 53 43 49 49 | 7d 2c 20 62 75 74 20 61 |e{.ASCII|}, but a|
|00003f40| 64 64 73 20 61 20 7a 65 | 72 6f 20 62 79 74 65 20 |dds a ze|ro byte |
|00003f50| 61 74 20 74 68 65 20 65 | 6e 64 20 6f 66 20 74 68 |at the e|nd of th|
|00003f60| 65 20 41 53 43 49 49 20 | 64 61 74 61 2e 0a 0a 40 |e ASCII |data...@|
|00003f70| 73 75 62 73 65 63 74 69 | 6f 6e 20 48 41 53 43 49 |subsecti|on HASCI|
|00003f80| 49 0a 53 61 6d 65 20 61 | 73 20 40 63 6f 64 65 7b |I.Same a|s @code{|
|00003f90| 2e 41 53 43 49 49 7d 20 | 62 75 74 20 65 61 63 68 |.ASCII} |but each|
|00003fa0| 20 62 79 74 65 20 61 6c | 6c 6f 63 61 74 65 64 20 | byte al|located |
|00003fb0| 68 61 73 20 74 68 65 20 | 68 69 67 68 65 73 74 20 |has the |highest |
|00003fc0| 62 69 74 20 73 65 74 2e | 0a 0a 40 73 75 62 73 65 |bit set.|..@subse|
|00003fd0| 63 74 69 6f 6e 20 48 53 | 54 52 49 4e 47 0a 53 61 |ction HS|TRING.Sa|
|00003fe0| 6d 65 20 61 73 20 40 63 | 6f 64 65 7b 2e 53 54 52 |me as @c|ode{.STR|
|00003ff0| 49 4e 47 7d 20 62 75 74 | 20 65 61 63 68 20 62 79 |ING} but| each by|
|00004000| 74 65 20 68 61 73 20 68 | 69 67 68 65 73 74 20 62 |te has h|ighest b|
|00004010| 69 74 20 73 65 74 2e 0a | 0a 40 73 75 62 73 65 63 |it set..|.@subsec|
|00004020| 74 69 6f 6e 20 48 42 59 | 54 45 0a 41 6c 6c 6f 63 |tion HBY|TE.Alloc|
|00004030| 61 74 65 73 20 61 20 62 | 79 74 65 20 6f 66 20 73 |ates a b|yte of s|
|00004040| 70 61 63 65 20 77 69 74 | 68 20 74 68 65 20 68 69 |pace wit|h the hi|
|00004050| 67 68 20 62 79 74 65 20 | 6f 66 20 74 68 65 20 67 |gh byte |of the g|
|00004060| 69 76 65 6e 20 76 61 6c | 75 65 2e 0a 40 65 78 61 |iven val|ue..@exa|
|00004070| 6d 70 6c 65 0a 20 20 20 | 20 20 20 20 20 2e 48 59 |mple. | .HY|
|00004080| 42 54 45 20 33 30 30 30 | 0a 40 65 6e 64 20 65 78 |BTE 3000|.@end ex|
|00004090| 61 6d 70 6c 65 0a 54 68 | 69 73 20 77 69 6c 6c 20 |ample.Th|is will |
|000040a0| 69 6e 73 65 72 74 20 74 | 68 65 20 68 65 78 20 62 |insert t|he hex b|
|000040b0| 79 74 65 20 33 30 20 69 | 6e 20 74 68 65 20 63 6f |yte 30 i|n the co|
|000040c0| 64 65 20 73 74 72 65 61 | 6d 2e 0a 0a 40 73 75 62 |de strea|m...@sub|
|000040d0| 73 65 63 74 69 6f 6e 20 | 4c 42 59 54 45 0a 41 6c |section |LBYTE.Al|
|000040e0| 6c 6f 63 61 74 65 73 20 | 61 20 62 79 74 65 20 6f |locates |a byte o|
|000040f0| 66 20 73 70 61 63 65 20 | 77 69 74 68 20 74 68 65 |f space |with the|
|00004100| 20 6c 6f 77 20 62 79 74 | 65 20 6f 66 20 74 68 65 | low byt|e of the|
|00004110| 20 67 69 76 65 6e 20 76 | 61 6c 75 65 2e 0a 40 65 | given v|alue..@e|
|00004120| 78 61 6d 70 6c 65 0a 20 | 20 20 20 20 20 20 20 2e |xample. | .|
|00004130| 4c 42 59 54 45 20 31 32 | 33 34 0a 40 65 6e 64 20 |LBYTE 12|34.@end |
|00004140| 65 78 61 6d 70 6c 65 0a | 54 68 69 73 20 77 69 6c |example.|This wil|
|00004150| 6c 20 69 6e 73 65 72 74 | 20 74 68 65 20 68 65 78 |l insert| the hex|
|00004160| 20 62 79 74 65 20 33 34 | 20 69 6e 20 74 68 65 20 | byte 34| in the |
|00004170| 63 6f 64 65 20 73 74 72 | 65 61 6d 2e 0a 0a 40 69 |code str|eam...@i|
|00004180| 67 6e 6f 72 65 0a 40 73 | 75 62 73 65 63 74 69 6f |gnore.@s|ubsectio|
|00004190| 6e 20 4c 53 42 0a 40 73 | 75 62 73 65 63 74 69 6f |n LSB.@s|ubsectio|
|000041a0| 6e 20 4d 53 42 0a 40 73 | 75 62 73 65 63 74 69 6f |n MSB.@s|ubsectio|
|000041b0| 6e 20 4f 52 49 47 49 4e | 0a 40 73 75 62 73 65 63 |n ORIGIN|.@subsec|
|000041c0| 74 69 6f 6e 20 4f 46 46 | 53 45 54 0a 40 65 6e 64 |tion OFF|SET.@end|
|000041d0| 20 69 67 6e 6f 72 65 0a | 0a 0a 40 73 65 63 74 69 | ignore.|..@secti|
|000041e0| 6f 6e 20 4d 61 63 72 6f | 20 46 61 63 69 6c 69 74 |on Macro| Facilit|
|000041f0| 79 20 44 69 72 65 63 74 | 69 76 65 73 0a 41 20 6d |y Direct|ives.A m|
|00004200| 61 63 72 6f 20 69 73 20 | 61 20 6e 61 6d 65 64 20 |acro is |a named |
|00004210| 73 65 63 74 69 6f 6e 20 | 6f 66 20 74 65 78 74 20 |section |of text |
|00004220| 74 68 61 74 20 63 61 6e | 20 62 65 20 64 65 66 69 |that can| be defi|
|00004230| 6e 65 64 20 6f 6e 63 65 | 20 61 6e 64 20 72 65 70 |ned once| and rep|
|00004240| 65 61 74 65 64 20 69 6e | 20 6f 74 68 65 72 0a 70 |eated in| other.p|
|00004250| 6c 61 63 65 73 20 73 69 | 6d 70 6c 79 20 62 79 20 |laces si|mply by |
|00004260| 75 73 69 6e 67 20 69 74 | 73 20 6e 61 6d 65 2e 20 |using it|s name. |
|00004270| 54 68 65 20 65 6e 74 69 | 72 65 20 6d 61 63 72 6f |The enti|re macro|
|00004280| 20 64 65 66 69 6e 69 74 | 69 6f 6e 20 6d 61 79 20 | definit|ion may |
|00004290| 70 72 65 63 65 64 65 20 | 74 68 65 20 66 69 72 73 |precede |the firs|
|000042a0| 74 0a 40 63 6f 64 65 7b | 2e 50 52 4f 43 7d 20 69 |t.@code{|.PROC} i|
|000042b0| 6e 20 74 68 65 20 61 73 | 73 65 6d 62 6c 79 20 66 |n the as|sembly f|
|000042c0| 69 6c 65 2e 0a 0a 54 68 | 65 20 74 65 78 74 20 6f |ile...Th|e text o|
|000042d0| 66 20 74 68 65 20 6d 61 | 63 72 6f 20 6d 61 79 20 |f the ma|cro may |
|000042e0| 62 65 20 70 61 72 61 6d | 65 74 65 72 69 7a 65 64 |be param|eterized|
|000042f0| 2c 20 73 6f 20 74 68 61 | 74 0a 65 61 63 68 20 69 |, so tha|t.each i|
|00004300| 6e 76 6f 63 61 74 69 6f | 6e 20 72 65 73 75 6c 74 |nvocatio|n result|
|00004310| 73 20 69 6e 20 61 20 64 | 69 66 66 65 72 65 6e 74 |s in a d|ifferent|
|00004320| 20 76 65 72 73 69 6f 6e | 20 6f 66 20 74 68 65 20 | version| of the |
|00004330| 6d 61 63 72 6f 20 63 6f | 6e 74 65 6e 74 73 2e 20 |macro co|ntents. |
|00004340| 41 74 20 74 68 65 20 69 | 6e 76 6f 63 61 74 69 6f |At the i|nvocatio|
|00004350| 6e 0a 70 6f 69 6e 74 2c | 20 74 68 65 20 6d 61 63 |n.point,| the mac|
|00004360| 72 6f 20 6e 61 6d 65 20 | 63 61 6e 20 62 65 20 66 |ro name |can be f|
|00004370| 6f 6c 6c 6f 77 65 64 20 | 62 79 20 61 20 6c 69 73 |ollowed |by a lis|
|00004380| 74 20 6f 66 20 70 61 72 | 61 6d 65 74 65 72 73 2c |t of par|ameters,|
|00004390| 20 65 61 63 68 20 74 65 | 72 6d 69 6e 61 74 65 64 | each te|rminated|
|000043a0| 20 62 79 20 61 0a 63 6f | 6d 6d 61 20 28 65 78 63 | by a.co|mma (exc|
|000043b0| 65 70 74 20 66 6f 72 20 | 74 68 65 20 6c 61 73 74 |ept for |the last|
|000043c0| 20 6f 6e 65 2c 20 77 68 | 69 63 68 20 69 73 20 74 | one, wh|ich is t|
|000043d0| 65 72 6d 69 6e 61 74 65 | 64 20 62 79 20 65 6e 64 |erminate|d by end|
|000043e0| 20 6f 66 20 6c 69 6e 65 | 20 6f 72 20 74 68 65 20 | of line| or the |
|000043f0| 63 6f 6d 6d 65 6e 74 0a | 63 68 61 72 61 63 74 65 |comment.|characte|
|00004400| 72 20 28 40 63 6f 64 65 | 7b 3b 7d 29 2e 0a 0a 54 |r (@code|{;})...T|
|00004410| 68 65 20 74 65 78 74 20 | 6f 66 20 74 68 65 20 6d |he text |of the m|
|00004420| 61 63 72 6f 20 64 65 66 | 69 6e 69 74 69 6f 6e 2c |acro def|inition,|
|00004430| 20 6d 6f 64 69 66 69 65 | 64 20 62 79 20 73 75 62 | modifie|d by sub|
|00004440| 73 74 69 74 75 74 69 6e | 67 0a 74 68 65 20 69 6e |stitutin|g.the in|
|00004450| 76 6f 63 61 74 69 6f 6e | 20 70 61 72 61 6d 65 74 |vocation| paramet|
|00004460| 65 72 73 2c 20 69 73 20 | 69 6e 73 65 72 74 65 64 |ers, is |inserted|
|00004470| 20 62 79 20 74 68 65 20 | 61 73 73 65 6d 62 6c 65 | by the |assemble|
|00004480| 72 20 61 74 20 74 68 65 | 20 69 6e 76 6f 63 61 74 |r at the| invocat|
|00004490| 69 6f 6e 20 70 6f 69 6e | 74 2e 0a 57 68 65 72 65 |ion poin|t..Where|
|000044a0| 76 65 72 20 40 63 6f 64 | 65 7b 25 40 76 61 72 7b |ver @cod|e{%@var{|
|000044b0| 6e 7d 7d 20 28 77 68 65 | 72 65 20 40 76 61 72 7b |n}} (whe|re @var{|
|000044c0| 6e 7d 20 69 73 20 61 20 | 73 69 6e 67 6c 65 20 64 |n} is a |single d|
|000044d0| 65 63 69 6d 61 6c 20 64 | 69 67 69 74 20 67 72 65 |ecimal d|igit gre|
|000044e0| 61 74 65 72 20 74 68 61 | 6e 20 7a 65 72 6f 29 0a |ater tha|n zero).|
|000044f0| 6f 63 63 75 72 73 20 69 | 6e 20 74 68 65 20 6d 61 |occurs i|n the ma|
|00004500| 63 72 6f 20 64 65 66 69 | 6e 69 74 69 6f 6e 2c 20 |cro defi|nition, |
|00004510| 74 68 65 20 74 65 78 74 | 20 6f 66 20 74 68 65 20 |the text| of the |
|00004520| 40 76 61 72 7b 6e 7d 2d | 74 68 20 69 6e 76 6f 63 |@var{n}-|th invoc|
|00004530| 61 74 69 6f 6e 20 70 61 | 72 61 6d 65 74 65 72 0a |ation pa|rameter.|
|00004540| 69 73 20 73 75 62 73 74 | 69 74 75 74 65 64 2e 20 |is subst|ituted. |
|00004550| 4c 65 61 64 69 6e 67 20 | 61 6e 64 20 74 72 61 69 |Leading |and trai|
|00004560| 6c 69 6e 67 20 62 6c 61 | 6e 6b 73 20 61 72 65 20 |ling bla|nks are |
|00004570| 73 74 72 69 70 70 65 64 | 20 66 72 6f 6d 20 74 68 |stripped| from th|
|00004580| 65 20 70 61 72 61 6d 65 | 74 65 72 20 62 65 66 6f |e parame|ter befo|
|00004590| 72 65 0a 74 68 65 20 73 | 75 62 73 74 69 74 75 74 |re.the s|ubstitut|
|000045a0| 69 6f 6e 2e 0a 0a 49 66 | 20 74 68 65 20 6d 61 63 |ion...If| the mac|
|000045b0| 72 6f 20 64 65 66 69 6e | 69 74 69 6f 6e 20 69 6e |ro defin|ition in|
|000045c0| 63 6c 75 64 65 73 20 61 | 20 72 65 66 65 72 65 6e |cludes a| referen|
|000045d0| 63 65 20 74 6f 20 61 20 | 70 61 72 61 6d 65 74 65 |ce to a |paramete|
|000045e0| 72 20 6e 6f 74 20 70 72 | 6f 76 69 64 65 64 20 69 |r not pr|ovided i|
|000045f0| 6e 20 61 0a 70 61 72 74 | 69 63 75 6c 61 72 20 69 |n a.part|icular i|
|00004600| 6e 76 6f 63 61 74 69 6f | 6e 20 28 74 6f 6f 20 66 |nvocatio|n (too f|
|00004610| 65 77 20 70 61 72 61 6d | 65 74 65 72 73 20 6f 72 |ew param|eters or|
|00004620| 20 6e 6f 20 70 61 72 61 | 6d 65 74 65 72 20 62 65 | no para|meter be|
|00004630| 66 6f 72 65 20 61 20 74 | 65 72 6d 69 6e 61 74 69 |fore a t|erminati|
|00004640| 6e 67 20 63 6f 6d 6d 61 | 29 2c 0a 61 20 6e 75 6c |ng comma|),.a nul|
|00004650| 6c 20 73 74 72 69 6e 67 | 20 69 73 20 73 75 62 73 |l string| is subs|
|00004660| 74 69 74 75 74 65 64 2e | 0a 0a 41 20 6d 61 63 72 |tituted.|..A macr|
|00004670| 6f 20 64 65 66 69 6e 69 | 74 69 6f 6e 20 6d 61 79 |o defini|tion may|
|00004680| 20 6e 6f 74 20 63 6f 6e | 74 61 69 6e 20 61 6e 6f | not con|tain ano|
|00004690| 74 68 65 72 20 6d 61 63 | 72 6f 20 64 65 66 69 6e |ther mac|ro defin|
|000046a0| 69 74 69 6f 6e 2e 20 41 | 20 64 65 66 69 6e 69 74 |ition. A| definit|
|000046b0| 69 6f 6e 20 63 61 6e 20 | 63 65 72 74 61 69 6e 6c |ion can |certainl|
|000046c0| 79 2c 0a 68 6f 77 65 76 | 65 72 2c 20 69 6e 63 6c |y,.howev|er, incl|
|000046d0| 75 64 65 20 6d 61 63 72 | 6f 20 69 6e 76 6f 63 61 |ude macr|o invoca|
|000046e0| 74 69 6f 6e 73 2e 20 54 | 68 69 73 20 60 60 6e 65 |tions. T|his ``ne|
|000046f0| 73 74 69 6e 67 27 27 20 | 6f 66 20 6d 61 63 72 6f |sting'' |of macro|
|00004700| 20 69 6e 76 6f 63 61 74 | 69 6f 6e 73 20 69 73 20 | invocat|ions is |
|00004710| 6c 69 6d 69 74 65 64 0a | 74 6f 20 66 69 76 65 20 |limited.|to five |
|00004720| 6c 65 76 65 6c 73 20 64 | 65 65 70 2e 0a 0a 40 65 |levels d|eep...@e|
|00004730| 78 61 6d 70 6c 65 0a 20 | 20 20 20 20 20 20 20 2e |xample. | .|
|00004740| 4d 41 43 52 4f 20 4d 4f | 56 45 42 59 54 45 0a 20 |MACRO MO|VEBYTE. |
|00004750| 20 20 20 20 20 20 20 4c | 44 52 42 20 20 20 25 31 | L|DRB %1|
|00004760| 2c 5b 25 32 5d 0a 20 20 | 20 20 20 20 20 20 53 54 |,[%2]. | ST|
|00004770| 52 42 20 20 20 25 31 2c | 5b 25 33 5d 0a 20 20 20 |RB %1,|[%3]. |
|00004780| 20 20 20 20 20 2e 45 4e | 44 4d 0a 40 65 6e 64 20 | .EN|DM.@end |
|00004790| 65 78 61 6d 70 6c 65 0a | 0a 40 73 75 62 73 65 63 |example.|.@subsec|
|000047a0| 74 69 6f 6e 20 4d 41 43 | 52 4f 0a 49 6e 64 69 63 |tion MAC|RO.Indic|
|000047b0| 61 74 65 73 20 74 68 65 | 20 73 74 61 72 74 20 6f |ates the| start o|
|000047c0| 66 20 61 20 6d 61 63 72 | 6f 20 64 65 66 69 6e 69 |f a macr|o defini|
|000047d0| 74 69 6f 6e 20 61 6e 64 | 20 67 69 76 65 73 20 74 |tion and| gives t|
|000047e0| 68 65 20 6d 61 63 72 6f | 20 61 6e 20 69 64 65 6e |he macro| an iden|
|000047f0| 74 69 66 69 65 72 2e 0a | 40 64 69 73 70 6c 61 79 |tifier..|@display|
|00004800| 0a 20 20 20 20 20 20 20 | 20 40 63 6f 64 65 7b 2e |. | @code{.|
|00004810| 4d 41 43 52 4f 7d 20 40 | 76 61 72 7b 69 64 65 6e |MACRO} @|var{iden|
|00004820| 74 69 66 69 65 72 7d 0a | 40 65 6e 64 20 64 69 73 |tifier}.|@end dis|
|00004830| 70 6c 61 79 0a 0a 40 73 | 75 62 73 65 63 74 69 6f |play..@s|ubsectio|
|00004840| 6e 20 45 4e 44 4d 0a 49 | 6e 64 69 63 61 74 65 73 |n ENDM.I|ndicates|
|00004850| 20 74 68 65 20 65 6e 64 | 20 70 6f 69 6e 74 20 6f | the end| point o|
|00004860| 66 20 61 20 6d 61 63 72 | 6f 20 64 65 66 69 6e 69 |f a macr|o defini|
|00004870| 74 69 6f 6e 2e 0a 0a 40 | 73 65 63 74 69 6f 6e 20 |tion...@|section |
|00004880| 43 6f 6e 64 69 74 69 6f | 6e 61 6c 20 41 73 73 65 |Conditio|nal Asse|
|00004890| 6d 62 6c 79 20 44 69 72 | 65 63 74 69 76 65 73 0a |mbly Dir|ectives.|
|000048a0| 43 6f 6e 64 69 74 69 6f | 6e 61 6c 73 20 61 72 65 |Conditio|nals are|
|000048b0| 20 75 73 65 64 20 74 6f | 20 73 65 6c 65 63 74 69 | used to| selecti|
|000048c0| 76 65 6c 79 20 65 78 63 | 6c 75 64 65 20 6f 72 20 |vely exc|lude or |
|000048d0| 69 6e 63 6c 75 64 65 20 | 73 65 63 74 69 6f 6e 73 |include |sections|
|000048e0| 20 6f 66 20 63 6f 64 65 | 20 61 74 20 61 73 73 65 | of code| at asse|
|000048f0| 6d 62 6c 79 0a 74 69 6d | 65 2e 20 57 68 65 6e 20 |mbly.tim|e. When |
|00004900| 74 68 65 20 61 73 73 65 | 6d 62 6c 65 72 20 65 6e |the asse|mbler en|
|00004910| 63 6f 75 6e 74 65 72 73 | 20 61 20 40 63 6f 64 65 |counters| a @code|
|00004920| 7b 2e 49 46 7d 20 64 69 | 72 65 63 74 69 76 65 2c |{.IF} di|rective,|
|00004930| 20 69 74 20 65 76 61 6c | 75 61 74 65 73 20 74 68 | it eval|uates th|
|00004940| 65 20 61 73 73 6f 63 69 | 61 74 65 64 0a 42 6f 6f |e associ|ated.Boo|
|00004950| 6c 65 61 6e 20 65 78 70 | 72 65 73 73 69 6f 6e 2e |lean exp|ression.|
|00004960| 20 49 6e 20 74 68 65 20 | 73 69 6d 70 6c 65 73 74 | In the |simplest|
|00004970| 20 63 61 73 65 2c 20 69 | 66 20 74 68 65 20 65 78 | case, i|f the ex|
|00004980| 70 72 65 73 73 69 6f 6e | 20 69 73 20 40 63 6f 64 |pression| is @cod|
|00004990| 65 7b 46 41 4c 53 45 7d | 2c 20 74 68 65 0a 61 73 |e{FALSE}|, the.as|
|000049a0| 73 65 6d 62 6c 65 72 20 | 73 69 6d 70 6c 79 20 64 |sembler |simply d|
|000049b0| 69 73 63 61 72 64 73 20 | 74 68 65 20 74 65 78 74 |iscards |the text|
|000049c0| 20 75 6e 74 69 6c 20 61 | 20 40 63 6f 64 65 7b 2e | until a| @code{.|
|000049d0| 45 4e 44 43 7d 20 69 73 | 20 72 65 61 63 68 65 64 |ENDC} is| reached|
|000049e0| 2e 20 49 66 20 74 68 65 | 72 65 20 69 73 20 61 0a |. If the|re is a.|
|000049f0| 40 63 6f 64 65 7b 2e 45 | 4c 53 45 7d 20 64 69 72 |@code{.E|LSE} dir|
|00004a00| 65 63 74 69 76 65 20 62 | 65 74 77 65 65 6e 20 74 |ective b|etween t|
|00004a10| 68 65 20 40 63 6f 64 65 | 7b 2e 49 46 7d 20 61 6e |he @code|{.IF} an|
|00004a20| 64 20 40 63 6f 64 65 7b | 2e 45 4e 44 43 7d 20 64 |d @code{|.ENDC} d|
|00004a30| 69 72 65 63 74 69 76 65 | 2c 20 74 68 65 20 74 65 |irective|, the te|
|00004a40| 78 74 0a 62 65 66 6f 72 | 65 20 74 68 65 20 40 63 |xt.befor|e the @c|
|00004a50| 6f 64 65 7b 2e 45 4c 53 | 45 7d 20 69 73 20 73 65 |ode{.ELS|E} is se|
|00004a60| 6c 65 63 74 65 64 20 69 | 66 20 74 68 65 20 65 78 |lected i|f the ex|
|00004a70| 70 72 65 73 73 69 6f 6e | 20 69 73 20 40 63 6f 64 |pression| is @cod|
|00004a80| 65 7b 54 52 55 45 7d 2c | 20 61 6e 64 20 74 68 65 |e{TRUE},| and the|
|00004a90| 20 74 65 78 74 0a 61 66 | 74 65 72 20 74 68 65 20 | text.af|ter the |
|00004aa0| 40 63 6f 64 65 7b 2e 45 | 4c 53 45 7d 20 69 66 20 |@code{.E|LSE} if |
|00004ab0| 74 68 65 20 63 6f 6e 64 | 69 74 69 6f 6e 20 6f 73 |the cond|ition os|
|00004ac0| 20 40 63 6f 64 65 7b 46 | 41 4c 53 45 7d 2e 20 54 | @code{F|ALSE}. T|
|00004ad0| 68 65 20 75 6e 61 73 73 | 65 6d 62 6c 65 64 20 70 |he unass|embled p|
|00004ae0| 61 72 74 20 6f 66 20 74 | 68 65 0a 63 6f 6e 64 69 |art of t|he.condi|
|00004af0| 74 69 6f 6e 61 6c 20 77 | 69 6c 6c 20 6e 6f 74 20 |tional w|ill not |
|00004b00| 62 65 20 69 6e 63 6c 75 | 64 65 64 20 69 6e 20 61 |be inclu|ded in a|
|00004b10| 6e 79 20 6c 69 73 74 69 | 6e 67 2e 20 43 6f 6e 64 |ny listi|ng. Cond|
|00004b20| 69 74 69 6f 6e 61 6c 73 | 20 6d 61 79 20 62 65 20 |itionals| may be |
|00004b30| 6e 65 73 74 65 64 2e 0a | 0a 40 73 75 62 73 65 63 |nested..|.@subsec|
|00004b40| 74 69 6f 6e 20 49 46 0a | 49 64 65 6e 74 69 66 69 |tion IF.|Identifi|
|00004b50| 65 73 20 74 68 65 20 62 | 65 67 69 6e 6e 69 6e 67 |es the b|eginning|
|00004b60| 20 6f 66 20 61 6e 20 63 | 6f 6e 64 69 74 69 6f 6e | of an c|ondition|
|00004b70| 61 6c 2e 0a 0a 40 73 75 | 62 73 65 63 74 69 6f 6e |al...@su|bsection|
|00004b80| 20 45 4c 53 45 0a 49 64 | 65 6e 74 69 66 69 65 73 | ELSE.Id|entifies|
|00004b90| 20 74 68 65 20 61 6c 74 | 65 72 6e 61 74 65 20 74 | the alt|ernate t|
|00004ba0| 6f 20 61 20 40 63 6f 64 | 65 7b 2e 49 46 7d 2e 20 |o a @cod|e{.IF}. |
|00004bb0| 49 66 20 74 68 65 20 63 | 6f 6e 64 69 74 69 6f 6e |If the c|ondition|
|00004bc0| 61 6c 20 65 78 70 72 65 | 73 73 69 6f 6e 20 69 73 |al expre|ssion is|
|00004bd0| 20 40 63 6f 64 65 7b 46 | 41 4c 53 45 7d 0a 74 68 | @code{F|ALSE}.th|
|00004be0| 65 6e 20 74 68 65 20 65 | 6c 73 65 20 70 6f 72 74 |en the e|lse port|
|00004bf0| 69 6f 6e 20 69 73 20 75 | 73 65 64 2e 0a 0a 40 73 |ion is u|sed...@s|
|00004c00| 75 62 73 65 63 74 69 6f | 6e 20 45 4e 44 43 0a 49 |ubsectio|n ENDC.I|
|00004c10| 64 65 6e 74 69 66 69 65 | 73 20 74 68 65 20 65 6e |dentifie|s the en|
|00004c20| 64 20 6f 66 20 61 20 63 | 6f 6e 64 69 74 69 6f 6e |d of a c|ondition|
|00004c30| 61 6c 2e 0a 0a 0a 40 73 | 65 63 74 69 6f 6e 20 45 |al....@s|ection E|
|00004c40| 78 74 65 72 6e 61 6c 20 | 43 6f 6d 6d 75 6e 69 63 |xternal |Communic|
|00004c50| 61 74 69 6f 6e 20 44 69 | 72 65 63 74 69 76 65 73 |ation Di|rectives|
|00004c60| 0a 53 65 70 61 72 61 74 | 65 20 72 6f 75 74 69 6e |.Separat|e routin|
|00004c70| 65 73 20 6d 61 79 20 73 | 68 61 72 65 20 64 61 74 |es may s|hare dat|
|00004c80| 61 20 73 74 72 75 63 74 | 75 72 65 73 20 61 6e 64 |a struct|ures and|
|00004c90| 20 73 75 62 72 6f 75 74 | 69 6e 65 73 20 62 79 20 | subrout|ines by |
|00004ca0| 6c 69 6e 6b 61 67 65 20 | 66 72 6f 6d 20 6f 6e 65 |linkage |from one|
|00004cb0| 0a 61 73 73 65 6d 62 6c | 79 20 72 6f 75 74 69 6e |.assembl|y routin|
|00004cc0| 65 20 74 6f 20 61 6e 6f | 74 68 65 72 20 61 73 73 |e to ano|ther ass|
|00004cd0| 65 6d 62 6c 79 20 72 6f | 75 74 69 6e 65 2e 20 54 |embly ro|utine. T|
|00004ce0| 68 69 73 20 69 73 20 6d | 61 64 65 20 70 6f 73 73 |his is m|ade poss|
|00004cf0| 69 62 6c 65 20 74 68 72 | 6f 75 67 68 20 74 68 65 |ible thr|ough the|
|00004d00| 20 75 73 65 0a 6f 66 20 | 40 63 6f 64 65 7b 2e 44 | use.of |@code{.D|
|00004d10| 45 46 7d 20 61 6e 64 20 | 40 63 6f 64 65 7b 2e 52 |EF} and |@code{.R|
|00004d20| 45 46 7d 2e 20 54 68 65 | 73 65 20 64 69 72 65 63 |EF}. The|se direc|
|00004d30| 74 69 76 65 73 20 63 61 | 75 73 65 20 74 68 65 20 |tives ca|use the |
|00004d40| 61 73 73 65 6d 62 6c 65 | 72 20 74 6f 20 67 65 6e |assemble|r to gen|
|00004d50| 65 72 61 74 65 0a 6c 69 | 6e 6b 20 69 6e 66 6f 72 |erate.li|nk infor|
|00004d60| 6d 61 74 69 6f 6e 20 74 | 68 61 74 20 61 6c 6c 6f |mation t|hat allo|
|00004d70| 77 73 20 73 65 70 61 72 | 61 74 65 6c 79 20 61 73 |ws separ|ately as|
|00004d80| 73 65 6d 62 6c 65 64 20 | 72 6f 75 74 69 6e 65 73 |sembled |routines|
|00004d90| 20 74 6f 20 62 65 20 6c | 69 6e 6b 65 64 20 74 6f | to be l|inked to|
|00004da0| 67 65 74 68 65 72 2e 0a | 42 79 20 75 73 69 6e 67 |gether..|By using|
|00004db0| 20 40 63 6f 64 65 7b 2e | 44 45 46 7d 20 61 6e 64 | @code{.|DEF} and|
|00004dc0| 20 40 63 6f 64 65 7b 2e | 52 45 46 7d 2c 20 6f 6e | @code{.|REF}, on|
|00004dd0| 65 20 61 73 73 65 6d 62 | 6c 79 20 72 6f 75 74 69 |e assemb|ly routi|
|00004de0| 6e 65 73 20 6d 61 79 20 | 63 61 6c 6c 20 73 75 62 |nes may |call sub|
|00004df0| 72 6f 75 74 69 6e 65 73 | 0a 66 6f 75 6e 64 20 69 |routines|.found i|
|00004e00| 6e 20 61 6e 6f 74 68 65 | 72 20 61 73 73 65 6d 62 |n anothe|r assemb|
|00004e10| 6c 79 20 72 6f 75 74 69 | 6e 65 2e 0a 0a 54 68 65 |ly routi|ne...The|
|00004e20| 20 75 73 65 20 6f 66 20 | 40 63 6f 64 65 7b 2e 52 | use of |@code{.R|
|00004e30| 45 46 7d 20 61 6e 64 20 | 40 63 6f 64 65 7b 2e 44 |EF} and |@code{.D|
|00004e40| 45 46 7d 20 69 73 20 6e | 6f 74 20 6c 69 6d 69 74 |EF} is n|ot limit|
|00004e50| 65 64 20 74 6f 20 73 75 | 62 72 6f 75 74 69 6e 65 |ed to su|broutine|
|00004e60| 73 20 61 6e 64 20 64 61 | 74 61 20 64 65 66 69 6e |s and da|ta defin|
|00004e70| 65 64 0a 69 6e 20 6f 74 | 68 65 72 20 61 73 73 65 |ed.in ot|her asse|
|00004e80| 6d 62 6c 79 20 66 69 6c | 65 73 2e 20 59 6f 75 20 |mbly fil|es. You |
|00004e90| 63 61 6e 20 72 65 66 65 | 72 65 6e 63 65 20 61 6e |can refe|rence an|
|00004ea0| 79 20 73 79 6d 62 6f 6c | 20 64 65 66 69 6e 65 64 |y symbol| defined|
|00004eb0| 20 69 6e 20 61 20 41 4f | 46 20 66 69 6c 65 2c 20 | in a AO|F file, |
|00004ec0| 65 2e 67 2e 0a 61 20 43 | 20 6f 72 20 50 61 73 63 |e.g..a C| or Pasc|
|00004ed0| 61 6c 20 72 6f 75 74 69 | 6e 65 20 6f 72 20 64 61 |al routi|ne or da|
|00004ee0| 74 61 2e 0a 0a 40 73 75 | 62 73 65 63 74 69 6f 6e |ta...@su|bsection|
|00004ef0| 20 44 45 46 0a 49 64 65 | 6e 74 69 66 69 65 73 20 | DEF.Ide|ntifies |
|00004f00| 61 20 6c 61 62 65 6c 20 | 74 68 61 74 20 69 73 20 |a label |that is |
|00004f10| 64 65 66 69 6e 65 64 20 | 69 6e 20 74 68 65 20 63 |defined |in the c|
|00004f20| 75 72 72 65 6e 74 20 72 | 6f 75 74 69 6e 65 20 61 |urrent r|outine a|
|00004f30| 73 20 62 65 69 6e 67 20 | 61 76 61 69 6c 61 62 6c |s being |availabl|
|00004f40| 65 20 66 6f 72 0a 75 73 | 65 20 69 6e 20 6f 74 68 |e for.us|e in oth|
|00004f50| 65 72 20 41 4f 46 20 66 | 69 6c 65 73 2e 0a 0a 40 |er AOF f|iles...@|
|00004f60| 73 75 62 73 65 63 74 69 | 6f 6e 20 52 45 46 0a 49 |subsecti|on REF.I|
|00004f70| 64 65 6e 74 69 66 69 65 | 73 20 61 20 6c 61 62 65 |dentifie|s a labe|
|00004f80| 6c 20 75 73 65 64 20 69 | 6e 20 74 68 65 20 63 75 |l used i|n the cu|
|00004f90| 72 72 65 6d 74 20 72 6f | 75 74 69 6e 65 20 77 68 |rremt ro|utine wh|
|00004fa0| 69 63 68 20 72 65 66 65 | 72 73 20 74 6f 20 61 20 |ich refe|rs to a |
|00004fb0| 73 79 6d 62 6f 6c 20 64 | 65 63 6c 61 72 65 64 20 |symbol d|eclared |
|00004fc0| 69 6e 0a 61 6e 20 6f 74 | 68 65 72 20 41 4f 46 20 |in.an ot|her AOF |
|00004fd0| 66 69 6c 65 2e 0a 0a 40 | 73 75 62 73 65 63 74 69 |file...@|subsecti|
|00004fe0| 6f 6e 20 45 58 50 4f 52 | 54 0a 49 73 20 65 71 75 |on EXPOR|T.Is equ|
|00004ff0| 69 76 61 6c 65 6e 74 20 | 74 6f 20 40 63 6f 64 65 |ivalent |to @code|
|00005000| 7b 2e 44 45 46 7d 2e 0a | 0a 40 73 75 62 73 65 63 |{.DEF}..|.@subsec|
|00005010| 74 69 6f 6e 20 49 4d 50 | 4f 52 54 0a 49 73 20 65 |tion IMP|ORT.Is e|
|00005020| 71 75 69 76 61 6c 65 6e | 74 20 74 6f 20 40 63 6f |quivalen|t to @co|
|00005030| 64 65 7b 2e 52 45 46 7d | 2e 0a 0a 0a 40 73 65 63 |de{.REF}|....@sec|
|00005040| 74 69 6f 6e 20 4c 69 73 | 74 69 6e 67 20 43 6f 6e |tion Lis|ting Con|
|00005050| 74 72 6f 6c 20 44 69 72 | 65 63 74 69 76 65 73 0a |trol Dir|ectives.|
|00005060| 40 73 75 62 73 65 63 74 | 69 6f 6e 20 4c 49 53 54 |@subsect|ion LIST|
|00005070| 0a 45 6e 61 62 6c 65 20 | 6f 72 20 64 69 73 61 62 |.Enable |or disab|
|00005080| 6c 65 20 6c 69 73 74 69 | 6e 67 2e 20 4c 69 73 74 |le listi|ng. List|
|00005090| 69 6e 67 20 63 61 6e 20 | 62 65 20 74 6f 67 67 6c |ing can |be toggl|
|000050a0| 65 64 20 61 6e 79 77 68 | 65 72 65 20 69 6e 20 61 |ed anywh|ere in a|
|000050b0| 6e 20 61 73 73 65 6d 62 | 6c 79 2e 0a 0a 40 73 75 |n assemb|ly...@su|
|000050c0| 62 73 65 63 74 69 6f 6e | 20 50 41 47 45 0a 4f 75 |bsection| PAGE.Ou|
|000050d0| 74 70 75 74 20 61 20 66 | 6f 72 6d 20 66 65 65 64 |tput a f|orm feed|
|000050e0| 20 6f 6e 74 6f 20 74 68 | 65 20 6c 69 73 74 20 66 | onto th|e list f|
|000050f0| 69 6c 65 2e 0a 0a 40 73 | 75 62 73 65 63 74 69 6f |ile...@s|ubsectio|
|00005100| 6e 20 54 49 54 4c 45 0a | 53 65 74 20 61 20 74 69 |n TITLE.|Set a ti|
|00005110| 74 6c 65 20 66 6f 72 20 | 74 68 65 20 6e 6f 72 6d |tle for |the norm|
|00005120| 61 6c 20 70 61 67 65 73 | 20 6f 66 20 61 20 6c 69 |al pages| of a li|
|00005130| 73 74 69 6e 67 2e 0a 40 | 65 78 61 6d 70 6c 65 0a |sting..@|example.|
|00005140| 20 20 20 20 20 20 20 20 | 2e 54 49 54 4c 45 20 22 | |.TITLE "|
|00005150| 50 2d 43 6f 64 65 20 49 | 6e 74 65 72 70 72 65 74 |P-Code I|nterpret|
|00005160| 65 72 20 31 2e 31 61 22 | 0a 40 65 6e 64 20 65 78 |er 1.1a"|.@end ex|
|00005170| 61 6d 70 6c 65 0a 0a 40 | 73 75 62 73 65 63 74 69 |ample..@|subsecti|
|00005180| 6f 6e 20 47 54 49 54 4c | 45 0a 53 65 74 20 61 20 |on GTITL|E.Set a |
|00005190| 67 6c 6f 62 61 6c 20 74 | 69 74 6c 65 20 66 6f 72 |global t|itle for|
|000051a0| 20 74 68 65 20 70 61 67 | 65 73 20 6f 66 20 61 20 | the pag|es of a |
|000051b0| 6c 69 73 74 69 6e 67 2e | 20 54 68 69 73 20 74 69 |listing.| This ti|
|000051c0| 74 6c 65 20 77 69 6c 6c | 20 61 6c 77 61 79 73 20 |tle will| always |
|000051d0| 61 70 70 65 61 72 2e 0a | 40 65 78 61 6d 70 6c 65 |appear..|@example|
|000051e0| 0a 20 20 20 20 20 20 20 | 20 2e 54 49 54 4c 45 20 |. | .TITLE |
|000051f0| 22 54 68 69 73 20 66 69 | 6c 65 20 69 73 20 28 43 |"This fi|le is (C|
|00005200| 29 20 41 72 74 68 75 72 | 20 44 65 6e 74 20 31 39 |) Arthur| Dent 19|
|00005210| 39 30 2e 22 0a 40 65 6e | 64 20 65 78 61 6d 70 6c |90.".@en|d exampl|
|00005220| 65 0a 0a 40 73 75 62 73 | 65 63 74 69 6f 6e 20 43 |e..@subs|ection C|
|00005230| 4f 4e 44 4c 49 53 54 0a | 45 6e 61 62 6c 65 20 6f |ONDLIST.|Enable o|
|00005240| 72 20 64 69 73 61 62 6c | 65 20 63 6f 6e 64 69 74 |r disabl|e condit|
|00005250| 69 6f 6e 61 6c 20 6c 69 | 73 74 69 6e 67 2e 0a 40 |ional li|sting..@|
|00005260| 65 78 61 6d 70 6c 65 0a | 20 20 20 20 20 20 20 20 |example.| |
|00005270| 2e 43 4f 4e 44 4c 49 53 | 54 20 4f 46 46 0a 40 65 |.CONDLIS|T OFF.@e|
|00005280| 6e 64 20 65 78 61 6d 70 | 6c 65 0a 0a 40 73 75 62 |nd examp|le..@sub|
|00005290| 73 65 63 74 69 6f 6e 20 | 4d 41 43 52 4f 4c 49 53 |section |MACROLIS|
|000052a0| 54 0a 45 6e 61 62 6c 65 | 20 6f 72 20 64 69 73 61 |T.Enable| or disa|
|000052b0| 62 6c 65 20 6d 61 63 72 | 6f 20 65 78 70 61 6e 73 |ble macr|o expans|
|000052c0| 69 6f 6e 20 6c 69 73 74 | 69 6e 67 2e 0a 0a 40 73 |ion list|ing...@s|
|000052d0| 75 62 73 65 63 74 69 6f | 6e 20 50 41 54 43 48 4c |ubsectio|n PATCHL|
|000052e0| 49 53 54 0a 45 6e 61 62 | 6c 65 20 6f 72 20 64 69 |IST.Enab|le or di|
|000052f0| 73 61 62 6c 65 20 62 61 | 63 6b 70 61 74 63 68 20 |sable ba|ckpatch |
|00005300| 6c 69 73 74 69 6e 67 2e | 0a 0a 40 73 75 62 73 65 |listing.|..@subse|
|00005310| 63 74 69 6f 6e 20 4e 4f | 4c 49 53 54 0a 44 69 73 |ction NO|LIST.Dis|
|00005320| 61 62 6c 65 20 6c 69 73 | 74 69 6e 67 2e 0a 0a 40 |able lis|ting...@|
|00005330| 73 75 62 73 65 63 74 69 | 6f 6e 20 4e 4f 4d 41 43 |subsecti|on NOMAC|
|00005340| 52 4f 4c 49 53 54 0a 44 | 69 73 61 62 6c 65 20 6d |ROLIST.D|isable m|
|00005350| 61 63 72 6f 20 65 78 70 | 61 6e 73 69 6f 6e 20 6c |acro exp|ansion l|
|00005360| 69 73 74 69 6e 67 2e 0a | 0a 40 73 75 62 73 65 63 |isting..|.@subsec|
|00005370| 74 69 6f 6e 20 4e 4f 50 | 41 54 43 48 4c 49 53 54 |tion NOP|ATCHLIST|
|00005380| 0a 44 69 73 61 62 6c 65 | 20 62 61 63 6b 70 61 74 |.Disable| backpat|
|00005390| 63 68 20 6c 69 73 74 69 | 6e 67 2e 0a 0a 0a 40 73 |ch listi|ng....@s|
|000053a0| 65 63 74 69 6f 6e 20 46 | 69 6c 65 20 44 69 72 65 |ection F|ile Dire|
|000053b0| 63 74 69 76 65 73 0a 0a | 40 73 75 62 73 65 63 74 |ctives..|@subsect|
|000053c0| 69 6f 6e 20 49 4e 43 4c | 55 44 45 0a 49 6e 63 6c |ion INCL|UDE.Incl|
|000053d0| 75 64 65 20 74 68 65 20 | 73 70 65 63 69 66 69 65 |ude the |specifie|
|000053e0| 64 20 66 69 6c 65 20 69 | 6e 74 6f 20 61 73 73 65 |d file i|nto asse|
|000053f0| 6d 62 6c 79 2e 20 4e 65 | 73 74 69 6e 67 20 69 73 |mbly. Ne|sting is|
|00005400| 20 61 6c 6c 6f 77 65 64 | 2e 0a 40 65 78 61 6d 70 | allowed|..@examp|
|00005410| 6c 65 0a 20 20 20 20 20 | 20 20 20 2e 49 4e 43 4c |le. | .INCL|
|00005420| 55 44 45 20 22 73 2e 52 | 65 67 44 65 66 73 22 0a |UDE "s.R|egDefs".|
|00005430| 40 65 6e 64 20 65 78 61 | 6d 70 6c 65 0a 54 68 69 |@end exa|mple.Thi|
|00005440| 73 20 77 69 6c 6c 20 69 | 6e 63 6c 75 64 65 20 74 |s will i|nclude t|
|00005450| 68 65 20 66 69 6c 65 20 | 40 66 69 6c 65 7b 73 2e |he file |@file{s.|
|00005460| 52 65 67 44 65 66 73 7d | 2e 0a 0a 0a 40 73 65 63 |RegDefs}|....@sec|
|00005470| 74 69 6f 6e 20 43 6f 6e | 66 69 67 75 72 61 74 69 |tion Con|figurati|
|00005480| 6f 6e 20 44 69 72 65 63 | 74 69 76 65 73 0a 40 73 |on Direc|tives.@s|
|00005490| 75 62 73 65 63 74 69 6f | 6e 20 50 41 47 49 4e 47 |ubsectio|n PAGING|
|000054a0| 0a 54 75 72 6e 20 70 61 | 67 69 6e 67 20 6f 6e 20 |.Turn pa|ging on |
|000054b0| 6c 69 73 74 20 66 69 6c | 65 20 40 63 6f 64 65 7b |list fil|e @code{|
|000054c0| 4f 4e 7d 20 6f 72 20 40 | 63 6f 64 65 7b 4f 46 46 |ON} or @|code{OFF|
|000054d0| 7d 2e 20 57 69 74 68 20 | 6e 6f 20 70 61 72 61 6d |}. With |no param|
|000054e0| 65 74 65 72 0a 40 63 6f | 64 65 7b 2e 50 41 47 49 |eter.@co|de{.PAGI|
|000054f0| 4e 47 7d 20 64 65 66 61 | 75 6c 74 73 20 74 6f 20 |NG} defa|ults to |
|00005500| 40 63 6f 64 65 7b 4f 4e | 7d 2e 0a 40 65 78 61 6d |@code{ON|}..@exam|
|00005510| 70 6c 65 0a 20 20 20 20 | 20 20 20 20 2e 50 41 47 |ple. | .PAG|
|00005520| 49 4e 47 20 4f 46 46 0a | 40 65 6e 64 20 65 78 61 |ING OFF.|@end exa|
|00005530| 6d 70 6c 65 0a 0a 40 73 | 75 62 73 65 63 74 69 6f |mple..@s|ubsectio|
|00005540| 6e 20 50 41 47 45 53 49 | 5a 45 0a 53 70 65 63 69 |n PAGESI|ZE.Speci|
|00005550| 66 79 20 73 69 7a 65 20 | 6f 66 20 70 61 67 65 20 |fy size |of page |
|00005560| 61 73 20 6e 75 6d 62 65 | 72 20 6f 66 20 6c 69 6e |as numbe|r of lin|
|00005570| 65 73 20 6f 6e 20 61 20 | 70 61 67 65 2e 0a 40 65 |es on a |page..@e|
|00005580| 78 61 6d 70 6c 65 0a 20 | 20 20 20 20 20 20 20 2e |xample. | .|
|00005590| 50 41 47 45 53 49 5a 45 | 20 35 30 2e 0a 40 65 6e |PAGESIZE| 50..@en|
|000055a0| 64 20 65 78 61 6d 70 6c | 65 0a 0a 40 73 75 62 73 |d exampl|e..@subs|
|000055b0| 65 63 74 69 6f 6e 20 43 | 41 53 45 53 45 4e 53 45 |ection C|ASESENSE|
|000055c0| 0a 45 6e 61 62 6c 65 20 | 63 61 73 65 2d 73 65 6e |.Enable |case-sen|
|000055d0| 73 69 74 69 76 65 20 6f | 72 20 63 61 73 65 2d 69 |sitive o|r case-i|
|000055e0| 6e 73 65 6e 73 69 74 69 | 76 65 20 6d 6f 64 65 2e |nsensiti|ve mode.|
|000055f0| 0a 0a 40 73 75 62 73 65 | 63 74 69 6f 6e 20 53 59 |..@subse|ction SY|
|00005600| 4d 42 4f 4c 54 41 42 4c | 45 44 55 4d 50 0a 45 6e |MBOLTABL|EDUMP.En|
|00005610| 61 62 6c 65 20 6f 72 20 | 64 69 73 61 62 6c 65 20 |able or |disable |
|00005620| 73 79 6d 62 6f 6c 20 74 | 61 62 6c 65 20 64 75 6d |symbol t|able dum|
|00005630| 70 20 61 74 20 65 6e 64 | 20 6f 66 20 61 73 73 65 |p at end| of asse|
|00005640| 6d 62 6c 79 2e 20 44 65 | 66 61 75 6c 74 20 69 73 |mbly. De|fault is|
|00005650| 20 40 63 6f 64 65 7b 4f | 4e 7d 2e 0a 0a 40 73 75 | @code{O|N}...@su|
|00005660| 62 73 65 63 74 69 6f 6e | 20 53 49 47 4e 45 44 41 |bsection| SIGNEDA|
|00005670| 52 49 54 48 4d 45 54 49 | 43 0a 45 6e 61 62 6c 65 |RITHMETI|C.Enable|
|00005680| 20 6f 72 20 64 69 73 61 | 62 6c 65 20 73 69 67 6e | or disa|ble sign|
|00005690| 65 64 20 61 72 69 74 68 | 6d 65 74 69 63 2e 0a 0a |ed arith|metic...|
|000056a0| 0a 40 73 65 63 74 69 6f | 6e 20 4f 62 73 63 75 72 |.@sectio|n Obscur|
|000056b0| 65 20 44 69 72 65 63 74 | 69 76 65 73 0a 54 68 65 |e Direct|ives.The|
|000056c0| 73 65 20 61 72 65 20 73 | 70 65 63 69 61 6c 20 68 |se are s|pecial h|
|000056d0| 61 63 6b 73 20 61 6e 64 | 20 63 61 6e 20 6f 6e 6c |acks and| can onl|
|000056e0| 79 20 62 65 20 75 73 65 | 64 20 62 79 20 54 4c 41 |y be use|d by TLA|
|000056f0| 20 77 69 7a 61 72 64 73 | 2e 0a 0a 40 73 75 62 73 | wizards|...@subs|
|00005700| 65 63 74 69 6f 6e 20 41 | 53 45 43 54 0a 40 73 75 |ection A|SECT.@su|
|00005710| 62 73 65 63 74 69 6f 6e | 20 50 53 45 43 54 0a 40 |bsection| PSECT.@|
|00005720| 73 75 62 73 65 63 74 69 | 6f 6e 20 50 4f 52 47 0a |subsecti|on PORG.|
|00005730| 40 73 75 62 73 65 63 74 | 69 6f 6e 20 45 52 52 4f |@subsect|ion ERRO|
|00005740| 52 0a 40 69 67 6e 6f 72 | 65 0a 40 73 75 62 73 65 |R.@ignor|e.@subse|
|00005750| 63 74 69 6f 6e 20 53 57 | 49 0a 40 65 6e 64 20 69 |ction SW|I.@end i|
|00005760| 67 6e 6f 72 65 0a 0a 0a | 40 63 68 61 70 74 65 72 |gnore...|@chapter|
|00005770| 20 43 6f 6d 6d 61 6e 64 | 20 4c 69 6e 65 20 41 72 | Command| Line Ar|
|00005780| 67 75 6d 65 6e 74 73 0a | 54 68 65 20 54 4c 41 20 |guments.|The TLA |
|00005790| 69 73 20 65 78 65 63 75 | 74 65 64 20 66 72 6f 6d |is execu|ted from|
|000057a0| 20 74 68 65 20 63 6f 6d | 6d 61 6e 64 20 6c 69 6e | the com|mand lin|
|000057b0| 65 2c 20 69 74 20 63 61 | 6e 20 74 61 6b 65 20 74 |e, it ca|n take t|
|000057c0| 68 65 20 66 6f 6c 6c 6f | 77 69 6e 67 20 66 6f 72 |he follo|wing for|
|000057d0| 6d 3a 0a 0a 40 64 69 73 | 70 6c 61 79 0a 40 63 6f |m:..@dis|play.@co|
|000057e0| 64 65 7b 74 6c 61 7d 20 | 5b 40 63 6f 64 65 7b 2d |de{tla} |[@code{-|
|000057f0| 62 63 68 76 56 77 7d 5d | 20 5b 40 63 6f 64 65 7b |bchvVw}]| [@code{|
|00005800| 2d 6c 7d 20 40 76 61 72 | 7b 6c 69 73 74 7d 5d 20 |-l} @var|{list}] |
|00005810| 40 76 61 72 7b 69 6e 70 | 75 74 7d 20 5b 40 76 61 |@var{inp|ut} [@va|
|00005820| 72 7b 6f 75 74 70 75 74 | 7d 5d 0a 40 65 6e 64 20 |r{output|}].@end |
|00005830| 64 69 73 70 6c 61 79 0a | 0a 54 68 65 20 69 6e 70 |display.|.The inp|
|00005840| 75 74 20 66 69 6c 65 20 | 69 73 20 73 65 61 72 63 |ut file |is searc|
|00005850| 68 65 64 20 66 6f 72 20 | 77 69 74 68 20 74 68 65 |hed for |with the|
|00005860| 20 64 69 72 65 63 74 6f | 72 79 20 70 72 65 66 69 | directo|ry prefi|
|00005870| 78 20 40 66 69 6c 65 7b | 73 2e 7d 2e 20 49 66 20 |x @file{|s.}. If |
|00005880| 6e 6f 0a 6f 75 74 70 75 | 74 20 66 69 6c 65 20 69 |no.outpu|t file i|
|00005890| 73 20 73 70 65 63 69 66 | 69 65 64 20 74 68 65 20 |s specif|ied the |
|000058a0| 64 65 66 61 75 6c 74 20 | 40 66 69 6c 65 7b 6f 2e |default |@file{o.|
|000058b0| 40 76 61 72 7b 69 6e 70 | 75 74 7d 7d 20 69 73 20 |@var{inp|ut}} is |
|000058c0| 75 73 65 64 2e 20 4f 74 | 68 65 72 77 69 73 65 0a |used. Ot|herwise.|
|000058d0| 74 68 65 20 66 69 6c 65 | 20 6e 61 6d 65 20 61 73 |the file| name as|
|000058e0| 20 73 70 65 63 69 66 69 | 65 64 2e 0a 0a 40 73 65 | specifi|ed...@se|
|000058f0| 63 74 69 6f 6e 20 43 6f | 6d 6d 61 6e 64 20 4c 69 |ction Co|mmand Li|
|00005900| 6e 65 20 4f 70 74 69 6f | 6e 73 0a 40 74 61 62 6c |ne Optio|ns.@tabl|
|00005910| 65 20 40 63 6f 64 65 0a | 40 69 74 65 6d 20 2d 62 |e @code.|@item -b|
|00005920| 0a 45 6e 61 62 6c 65 20 | 62 61 74 63 68 6d 6f 64 |.Enable |batchmod|
|00005930| 65 2e 20 45 78 65 63 75 | 74 69 6f 6e 20 77 69 6c |e. Execu|tion wil|
|00005940| 6c 20 6e 6f 74 20 73 74 | 6f 70 20 77 68 65 6e 20 |l not st|op when |
|00005950| 61 6e 20 65 72 72 6f 72 | 20 69 73 20 66 6c 61 67 |an error| is flag|
|00005960| 67 65 64 2e 0a 0a 40 69 | 74 65 6d 20 2d 63 0a 50 |ged...@i|tem -c.P|
|00005970| 61 72 73 69 6e 67 20 77 | 69 6c 6c 20 62 65 20 63 |arsing w|ill be c|
|00005980| 61 73 65 2d 69 6e 73 65 | 6e 73 69 74 69 76 65 2e |ase-inse|nsitive.|
|00005990| 0a 0a 40 69 74 65 6d 20 | 2d 68 0a 44 69 73 70 6c |..@item |-h.Displ|
|000059a0| 61 79 20 63 6f 6d 6d 61 | 6e 64 20 6c 69 6e 65 20 |ay comma|nd line |
|000059b0| 75 73 61 67 65 2e 0a 0a | 40 69 74 65 6d 20 2d 6c |usage...|@item -l|
|000059c0| 20 40 76 61 72 7b 6c 69 | 73 74 7d 0a 47 65 6e 65 | @var{li|st}.Gene|
|000059d0| 72 61 74 65 20 61 20 6c | 69 73 74 69 6e 67 20 69 |rate a l|isting i|
|000059e0| 6e 20 66 69 6c 65 20 40 | 76 61 72 7b 6c 69 73 74 |n file @|var{list|
|000059f0| 7d 2e 0a 0a 40 69 74 65 | 6d 20 2d 76 0a 44 69 73 |}...@ite|m -v.Dis|
|00005a00| 70 6c 61 79 20 76 65 72 | 73 69 6f 6e 20 6e 75 6d |play ver|sion num|
|00005a10| 62 65 72 20 61 74 20 62 | 65 67 69 6e 6e 69 6e 67 |ber at b|eginning|
|00005a20| 20 6f 66 20 61 73 73 65 | 6d 62 6c 79 2e 0a 0a 40 | of asse|mbly...@|
|00005a30| 69 74 65 6d 20 2d 56 0a | 45 6e 61 62 6c 65 20 76 |item -V.|Enable v|
|00005a40| 65 72 62 6f 73 65 20 6d | 6f 64 65 2e 20 4f 75 74 |erbose m|ode. Out|
|00005a50| 70 75 74 20 6f 6e 20 56 | 44 55 20 69 73 20 6c 69 |put on V|DU is li|
|00005a60| 6b 65 20 6f 72 69 67 69 | 6e 61 6c 20 54 4c 41 2e |ke origi|nal TLA.|
|00005a70| 0a 40 65 6e 64 20 74 61 | 62 6c 65 0a 0a 40 73 65 |.@end ta|ble..@se|
|00005a80| 63 74 69 6f 6e 20 53 79 | 6e 74 61 78 20 45 72 72 |ction Sy|ntax Err|
|00005a90| 6f 72 20 46 69 6c 65 0a | 54 68 65 20 73 79 6e 74 |or File.|The synt|
|00005aa0| 61 78 20 65 72 72 6f 72 | 20 6d 65 73 73 61 67 65 |ax error| message|
|00005ab0| 73 20 75 73 65 64 20 62 | 79 20 74 68 65 20 54 4c |s used b|y the TL|
|00005ac0| 41 20 61 72 65 20 6b 65 | 70 74 20 69 6e 20 74 68 |A are ke|pt in th|
|00005ad0| 65 20 66 69 6c 65 20 40 | 66 69 6c 65 7b 54 4c 41 |e file @|file{TLA|
|00005ae0| 5f 45 72 72 6f 72 73 7d | 2e 0a 54 68 69 73 20 66 |_Errors}|..This f|
|00005af0| 69 6c 65 20 69 73 20 73 | 65 61 72 63 68 65 64 20 |ile is s|earched |
|00005b00| 66 6f 72 20 77 69 74 68 | 20 74 68 65 20 70 61 74 |for with| the pat|
|00005b10| 68 20 76 61 72 69 61 62 | 6c 65 20 40 66 69 6c 65 |h variab|le @file|
|00005b20| 7b 54 4c 41 24 50 61 74 | 68 7d 20 61 6e 64 20 77 |{TLA$Pat|h} and w|
|00005b30| 69 74 68 0a 74 68 65 20 | 64 65 66 61 75 6c 74 20 |ith.the |default |
|00005b40| 73 79 73 74 65 6d 20 76 | 61 72 69 61 62 6c 65 20 |system v|ariable |
|00005b50| 40 66 69 6c 65 7b 46 69 | 6c 65 24 50 61 74 68 7d |@file{Fi|le$Path}|
|00005b60| 2e 0a 0a 40 63 68 61 70 | 74 65 72 20 41 73 73 65 |...@chap|ter Asse|
|00005b70| 6d 62 6c 79 20 45 78 61 | 6d 70 6c 65 73 0a 41 20 |mbly Exa|mples.A |
|00005b80| 66 69 6c 65 74 79 70 65 | 20 73 65 74 20 72 6f 75 |filetype| set rou|
|00005b90| 74 69 6e 65 3a 0a 40 65 | 78 61 6d 70 6c 65 0a 53 |tine:.@e|xample.S|
|00005ba0| 50 20 20 20 20 20 20 2e | 45 51 55 20 20 20 20 52 |P .|EQU R|
|00005bb0| 31 33 0a 0a 20 20 20 20 | 20 20 20 20 2e 50 52 4f |13.. | .PRO|
|00005bc0| 43 20 20 20 53 65 74 46 | 69 6c 65 54 79 70 65 0a |C SetF|ileType.|
|00005bd0| 0a 20 20 20 20 20 20 20 | 20 53 54 4d 46 44 20 20 |. | STMFD |
|00005be0| 20 53 50 21 2c 7b 52 30 | 2c 52 31 2c 52 32 2c 52 | SP!,{R0|,R1,R2,R|
|00005bf0| 31 34 7d 0a 20 20 20 20 | 20 20 20 20 4d 4f 56 20 |14}. | MOV |
|00005c00| 20 20 20 20 52 32 2c 52 | 31 0a 20 20 20 20 20 20 | R2,R|1. |
|00005c10| 20 20 4d 4f 56 20 20 20 | 20 20 52 31 2c 52 30 0a | MOV | R1,R0.|
|00005c20| 20 20 20 20 20 20 20 20 | 4d 4f 56 20 20 20 20 20 | |MOV |
|00005c30| 52 30 2c 23 31 38 2e 0a | 20 20 20 20 20 20 20 20 |R0,#18..| |
|00005c40| 53 57 49 20 20 20 20 20 | 58 4f 53 5f 46 69 6c 65 |SWI |XOS_File|
|00005c50| 0a 20 20 20 20 20 20 20 | 20 4c 44 4d 46 44 20 20 |. | LDMFD |
|00005c60| 20 53 50 21 2c 7b 52 30 | 2c 52 31 2c 52 32 2c 50 | SP!,{R0|,R1,R2,P|
|00005c70| 43 7d 5e 0a 0a 20 20 20 | 20 20 20 20 20 2e 45 4e |C}^.. | .EN|
|00005c80| 44 0a 40 65 6e 64 20 65 | 78 61 6d 70 6c 65 0a 0a |D.@end e|xample..|
|00005c90| 54 68 65 20 63 6f 64 65 | 20 66 65 74 63 68 20 6d |The code| fetch m|
|00005ca0| 61 63 72 6f 20 6f 66 20 | 6d 79 20 49 6e 66 6f 63 |acro of |my Infoc|
|00005cb0| 6f 6d 20 41 64 76 65 6e | 74 75 72 65 20 5a 2d 43 |om Adven|ture Z-C|
|00005cc0| 6f 64 65 20 69 6e 74 65 | 72 70 72 65 74 65 72 0a |ode inte|rpreter.|
|00005cd0| 28 61 20 70 61 72 61 6d | 65 74 65 72 6c 65 73 73 |(a param|eterless|
|00005ce0| 20 6d 61 63 72 6f 29 2e | 0a 40 65 78 61 6d 70 6c | macro).|.@exampl|
|00005cf0| 65 0a 20 20 20 20 20 20 | 20 20 2e 4d 41 43 52 4f |e. | .MACRO|
|00005d00| 20 20 5a 49 50 46 45 54 | 43 48 0a 20 20 20 20 20 | ZIPFET|CH. |
|00005d10| 20 20 20 4c 44 52 42 20 | 20 20 20 4f 70 43 6f 64 | LDRB | OpCod|
|00005d20| 65 2c 5b 49 50 43 5d 2c | 23 31 0a 20 20 20 20 20 |e,[IPC],|#1. |
|00005d30| 20 20 20 2e 49 46 20 20 | 20 20 20 53 74 61 74 69 | .IF | Stati|
|00005d40| 73 74 69 63 73 0a 20 20 | 20 20 20 20 20 20 42 4c |stics. | BL|
|00005d50| 20 20 20 20 20 20 43 6f | 75 6e 74 53 74 61 74 69 | Co|untStati|
|00005d60| 73 74 69 63 73 0a 20 20 | 20 20 20 20 20 20 2e 45 |stics. | .E|
|00005d70| 4e 44 43 0a 20 20 20 20 | 20 20 20 20 2e 49 46 20 |NDC. | .IF |
|00005d80| 20 20 20 20 44 65 62 75 | 67 0a 20 20 20 20 20 20 | Debu|g. |
|00005d90| 20 20 42 4c 20 20 20 20 | 20 20 44 65 62 75 67 43 | BL | DebugC|
|00005da0| 6f 64 65 0a 20 20 20 20 | 20 20 20 20 2e 45 4e 44 |ode. | .END|
|00005db0| 43 0a 20 20 20 20 20 20 | 20 20 4c 44 52 20 20 20 |C. | LDR |
|00005dc0| 20 20 50 43 2c 5b 50 74 | 72 4a 6d 70 54 61 62 6c | PC,[Pt|rJmpTabl|
|00005dd0| 65 2c 4f 70 43 6f 64 65 | 2c 4c 53 4c 20 23 32 5d |e,OpCode|,LSL #2]|
|00005de0| 0a 20 20 20 20 20 20 20 | 20 2e 45 4e 44 4d 0a 40 |. | .ENDM.@|
|00005df0| 65 6e 64 20 65 78 61 6d | 70 6c 65 0a 40 70 61 67 |end exam|ple.@pag|
|00005e00| 65 0a 0a 4d 61 63 72 6f | 73 20 66 6f 72 20 56 49 |e..Macro|s for VI|
|00005e10| 44 43 20 70 72 6f 67 72 | 61 6d 6d 69 6e 67 3a 0a |DC progr|amming:.|
|00005e20| 40 65 78 61 6d 70 6c 65 | 0a 20 20 20 20 20 20 20 |@example|. |
|00005e30| 20 2e 4d 41 43 52 4f 20 | 20 56 49 44 43 0a 20 20 | .MACRO | VIDC. |
|00005e40| 20 20 20 20 20 20 2e 57 | 4f 52 44 20 20 20 28 25 | .W|ORD (%|
|00005e50| 31 20 3c 3c 20 32 34 2e | 29 20 7c 20 28 25 32 20 |1 << 24.|) | (%2 |
|00005e60| 3c 3c 20 31 34 2e 29 0a | 20 20 20 20 20 20 20 20 |<< 14.).| |
|00005e70| 2e 45 4e 44 4d 0a 0a 20 | 20 20 20 20 20 20 20 2e |.ENDM.. | .|
|00005e80| 4d 41 43 52 4f 20 20 56 | 49 44 43 31 0a 20 20 20 |MACRO V|IDC1. |
|00005e90| 20 20 20 20 20 56 49 44 | 43 20 20 20 20 25 31 2c | VID|C %1,|
|00005ea0| 28 25 32 2d 31 29 0a 20 | 20 20 20 20 20 20 20 2e |(%2-1). | .|
|00005eb0| 45 4e 44 4d 0a 0a 20 20 | 20 20 20 20 20 20 2e 4d |ENDM.. | .M|
|00005ec0| 41 43 52 4f 20 20 56 49 | 44 43 32 0a 20 20 20 20 |ACRO VI|DC2. |
|00005ed0| 20 20 20 20 56 49 44 43 | 20 20 20 20 25 31 2c 28 | VIDC| %1,(|
|00005ee0| 28 25 32 2d 25 33 29 2f | 32 29 0a 20 20 20 20 20 |(%2-%3)/|2). |
|00005ef0| 20 20 20 2e 45 4e 44 4d | 0a 0a 20 20 20 20 20 20 | .ENDM|.. |
|00005f00| 20 20 2e 4d 41 43 52 4f | 20 20 4d 6f 64 65 56 49 | .MACRO| ModeVI|
|00005f10| 44 43 0a 3b 20 25 31 20 | 3d 20 58 52 65 73 2c 20 |DC.; %1 |= XRes, |
|00005f20| 20 20 20 20 20 20 20 20 | 20 20 25 32 20 3d 20 59 | | %2 = Y|
|00005f30| 52 65 73 0a 3b 20 25 33 | 20 3d 20 48 6f 72 42 6f |Res.; %3| = HorBo|
|00005f40| 72 64 65 72 53 74 61 72 | 74 2c 20 25 34 20 3d 20 |rderStar|t, %4 = |
|00005f50| 48 6f 72 42 6f 72 64 65 | 72 57 69 64 74 68 0a 3b |HorBorde|rWidth.;|
|00005f60| 20 25 35 20 3d 20 56 65 | 72 42 6f 72 64 65 72 53 | %5 = Ve|rBorderS|
|00005f70| 74 61 72 74 2c 20 25 36 | 20 3d 20 56 65 72 42 6f |tart, %6| = VerBo|
|00005f80| 72 64 65 72 57 69 64 74 | 68 0a 3b 20 25 37 20 3d |rderWidt|h.; %7 =|
|00005f90| 20 48 6f 72 53 79 6e 63 | 57 69 64 74 68 2c 20 20 | HorSync|Width, |
|00005fa0| 20 25 38 20 3d 20 56 65 | 72 53 79 6e 63 57 69 64 | %8 = Ve|rSyncWid|
|00005fb0| 74 68 0a 3b 20 25 39 20 | 3d 20 41 64 6a 75 73 74 |th.; %9 |= Adjust|
|00005fc0| 0a 20 20 20 20 20 20 20 | 20 56 49 44 43 32 20 20 |. | VIDC2 |
|00005fd0| 20 48 6f 72 43 79 63 6c | 65 2c 25 31 2b 25 33 2b | HorCycl|e,%1+%3+|
|00005fe0| 28 32 2a 25 34 29 2b 31 | 2c 32 0a 20 20 20 20 20 |(2*%4)+1|,2. |
|00005ff0| 20 20 20 56 49 44 43 32 | 20 20 20 48 6f 72 53 79 | VIDC2| HorSy|
|00006000| 6e 63 57 69 64 74 68 2c | 25 37 2c 32 0a 20 20 20 |ncWidth,|%7,2. |
|00006010| 20 20 20 20 20 56 49 44 | 43 32 20 20 20 48 6f 72 | VID|C2 Hor|
|00006020| 42 6f 72 64 65 72 53 74 | 61 72 74 2c 25 33 2c 31 |BorderSt|art,%3,1|
|00006030| 0a 20 20 20 20 20 20 20 | 20 56 49 44 43 32 20 20 |. | VIDC2 |
|00006040| 20 48 6f 72 44 69 73 70 | 6c 61 79 53 74 61 72 74 | HorDisp|layStart|
|00006050| 2c 25 33 2b 25 34 2c 25 | 39 0a 20 20 20 20 20 20 |,%3+%4,%|9. |
|00006060| 20 20 56 49 44 43 32 20 | 20 20 48 6f 72 44 69 73 | VIDC2 | HorDis|
|00006070| 70 6c 61 79 45 6e 64 2c | 25 31 2b 25 33 2b 25 34 |playEnd,|%1+%3+%4|
|00006080| 2c 25 39 0a 20 20 20 20 | 20 20 20 20 56 49 44 43 |,%9. | VIDC|
|00006090| 32 20 20 20 48 6f 72 42 | 6f 72 64 65 72 45 6e 64 |2 HorB|orderEnd|
|000060a0| 2c 25 31 2b 25 33 2b 28 | 32 2a 25 34 29 2c 31 0a |,%1+%3+(|2*%4),1.|
|000060b0| 20 20 20 20 20 20 20 20 | 56 49 44 43 31 20 20 20 | |VIDC1 |
|000060c0| 56 65 72 43 79 63 6c 65 | 2c 25 32 2b 25 35 2b 28 |VerCycle|,%2+%5+(|
|000060d0| 32 2a 25 36 29 0a 20 20 | 20 20 20 20 20 20 56 49 |2*%6). | VI|
|000060e0| 44 43 31 20 20 20 56 65 | 72 53 79 6e 63 57 69 64 |DC1 Ve|rSyncWid|
|000060f0| 74 68 2c 25 38 0a 20 20 | 20 20 20 20 20 20 56 49 |th,%8. | VI|
|00006100| 44 43 31 20 20 20 56 65 | 72 42 6f 72 64 65 72 53 |DC1 Ve|rBorderS|
|00006110| 74 61 72 74 2c 25 35 0a | 20 20 20 20 20 20 20 20 |tart,%5.| |
|00006120| 56 49 44 43 31 20 20 20 | 56 65 72 44 69 73 70 6c |VIDC1 |VerDispl|
|00006130| 61 79 53 74 61 72 74 2c | 25 35 2b 25 36 0a 20 20 |ayStart,|%5+%6. |
|00006140| 20 20 20 20 20 20 56 49 | 44 43 31 20 20 20 56 65 | VI|DC1 Ve|
|00006150| 72 44 69 73 70 6c 61 79 | 45 6e 64 2c 25 32 2b 25 |rDisplay|End,%2+%|
|00006160| 35 2b 25 36 0a 20 20 20 | 20 20 20 20 20 56 49 44 |5+%6. | VID|
|00006170| 43 31 20 20 20 56 65 72 | 42 6f 72 64 65 72 45 6e |C1 Ver|BorderEn|
|00006180| 64 2c 25 32 2b 25 35 2b | 28 32 2a 25 36 29 0a 20 |d,%2+%5+|(2*%6). |
|00006190| 20 20 20 20 20 20 20 2e | 57 4f 52 44 20 20 20 2d | .|WORD -|
|000061a0| 31 0a 20 20 20 20 20 20 | 20 20 2e 45 4e 44 4d 0a |1. | .ENDM.|
|000061b0| 0a 4d 6f 64 65 32 30 56 | 49 44 43 0a 20 20 20 20 |.Mode20V|IDC. |
|000061c0| 20 20 20 20 2e 57 4f 52 | 44 20 20 20 30 0a 20 20 | .WOR|D 0. |
|000061d0| 20 20 20 20 20 20 2e 57 | 4f 52 44 20 20 20 32 30 | .W|ORD 20|
|000061e0| 2e 0a 20 20 20 20 20 20 | 20 20 20 4d 6f 64 65 56 |.. | ModeV|
|000061f0| 49 44 43 20 36 34 30 2e | 2c 20 35 31 32 2e 2c 20 |IDC 640.|, 512., |
|00006200| 31 33 31 2e 2c 20 34 2c | 20 31 38 2e 2c 20 32 2c |131., 4,| 18., 2,|
|00006210| 20 33 36 2e 2c 20 31 2c | 20 37 0a 0a 20 20 20 20 | 36., 1,| 7.. |
|00006220| 20 20 20 20 2e 45 4e 44 | 0a 40 65 6e 64 20 65 78 | .END|.@end ex|
|00006230| 61 6d 70 6c 65 0a 0a 0a | 40 70 61 67 65 0a 52 65 |ample...|@page.Re|
|00006240| 66 65 72 65 6e 63 69 6e | 67 20 65 78 74 65 72 6e |ferencin|g extern|
|00006250| 61 6c 20 76 61 72 69 61 | 62 6c 65 73 20 69 6e 20 |al varia|bles in |
|00006260| 61 73 73 65 6d 62 6c 65 | 72 3a 0a 0a 43 2d 50 72 |assemble|r:..C-Pr|
|00006270| 6f 67 72 61 6d 6d 65 3a | 0a 40 65 78 61 6d 70 6c |ogramme:|.@exampl|
|00006280| 65 0a 0a 69 6e 74 20 4c | 69 74 74 6c 65 49 6e 74 |e..int L|ittleInt|
|00006290| 3b 0a 63 68 61 72 20 42 | 65 61 75 74 69 66 75 6c |;.char B|eautiful|
|000062a0| 43 68 61 72 73 5b 32 30 | 5d 3b 0a 0a 69 6e 74 20 |Chars[20|];..int |
|000062b0| 6d 61 69 6e 28 76 6f 69 | 64 29 20 7b 0a 20 20 41 |main(voi|d) {. A|
|000062c0| 73 73 50 72 6f 63 28 29 | 3b 0a 20 20 2e 2e 2e 0a |ssProc()|;. ....|
|000062d0| 7d 0a 40 65 6e 64 20 65 | 78 61 6d 70 6c 65 0a 0a |}.@end e|xample..|
|000062e0| 41 73 73 65 6d 62 6c 65 | 72 20 50 72 63 6f 65 64 |Assemble|r Prcoed|
|000062f0| 75 72 65 3a 0a 40 65 78 | 61 6d 70 6c 65 0a 20 20 |ure:.@ex|ample. |
|00006300| 20 20 20 20 20 20 2e 50 | 52 4f 43 20 41 73 73 50 | .P|ROC AssP|
|00006310| 72 6f 63 0a 0a 20 20 20 | 20 20 20 20 20 2e 49 4d |roc.. | .IM|
|00006320| 50 4f 52 54 20 4c 69 74 | 74 6c 65 49 6e 74 0a 20 |PORT Lit|tleInt. |
|00006330| 20 20 20 20 20 20 20 2e | 49 4d 50 4f 52 54 20 42 | .|IMPORT B|
|00006340| 65 61 75 74 69 66 75 6c | 43 68 61 72 73 0a 0a 20 |eautiful|Chars.. |
|00006350| 20 20 20 20 20 20 20 4c | 44 52 20 20 20 20 20 52 | L|DR R|
|00006360| 31 2c 20 49 6e 74 41 64 | 72 73 0a 20 20 20 20 20 |1, IntAd|rs. |
|00006370| 20 20 20 4d 4f 56 20 20 | 20 20 20 52 30 2c 20 23 | MOV | R0, #|
|00006380| 30 0a 20 20 20 20 20 20 | 20 20 53 54 52 20 20 20 |0. | STR |
|00006390| 20 20 52 30 2c 20 5b 52 | 31 5d 20 20 20 20 20 20 | R0, [R|1] |
|000063a0| 20 3b 20 73 65 74 20 4c | 69 74 74 6c 65 49 6e 74 | ; set L|ittleInt|
|000063b0| 20 74 6f 20 30 0a 20 20 | 20 20 20 20 20 20 4c 44 | to 0. | LD|
|000063c0| 52 20 20 20 20 20 52 32 | 2c 20 43 68 73 41 64 72 |R R2|, ChsAdr|
|000063d0| 73 0a 20 20 20 20 20 20 | 20 20 53 54 52 42 20 20 |s. | STRB |
|000063e0| 20 20 52 30 2c 20 5b 52 | 32 5d 20 20 20 20 20 20 | R0, [R|2] |
|000063f0| 20 3b 20 73 65 74 20 42 | 65 61 75 74 69 66 75 6c | ; set B|eautiful|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.