home *** CD-ROM | disk | FTP | other *** search
Unknown | 1995-07-02 | 1.7 MB |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was not able to be converted.
This format is not currently supported by dexvert.
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| file
| data
| default
| |
100%
| gt2
| Kopftext: 'HELP('
| default (weak)
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 48 45 4c 50 28 00 00 00 | c9 00 00 00 90 4a 11 00 |HELP(...|.....J..|
|00000010| c8 d6 11 00 00 fd ff ff | 00 00 00 00 40 20 00 00 |........|....@ ..|
|00000020| 00 01 00 00 00 00 00 00 | 24 00 00 00 46 52 45 45 |........|$...FREE|
|00000030| 54 00 00 00 ff ff ff ff | 80 00 00 00 46 ff ff ff |T.......|....F...|
|00000040| 3b 69 e8 2a 36 07 00 00 | 13 00 00 00 00 00 00 00 |;i.*6...|........|
|00000050| 21 52 6f 6f 74 00 00 00 | b8 07 00 00 46 ff ff ff |!Root...|....F...|
|00000060| 91 1d e9 2a 0b 1a 00 00 | 13 00 00 00 00 00 00 00 |...*....|........|
|00000070| 41 63 63 65 73 73 6f 72 | 73 00 00 00 02 ec 8e e3 |Accessor|s.......|
|00000080| 44 41 54 41 36 07 00 00 | 54 6f 70 0a 4e 65 78 74 |DATA6...|Top.Next|
|00000090| 3a 20 3c 43 6f 70 79 69 | 6e 67 3d 3e 43 6f 70 79 |: <Copyi|ng=>Copy|
|000000a0| 69 6e 67 3e 20 2a 20 55 | 70 3a 20 3c 28 44 49 52 |ing> * U|p: <(DIR|
|000000b0| 29 3d 3e 44 49 52 3e 0a | 0a 23 57 72 61 70 20 6f |)=>DIR>.|.#Wrap o|
|000000c0| 6e 0a 7b 66 48 31 7d 49 | 6e 74 72 6f 64 75 63 74 |n.{fH1}I|ntroduct|
|000000d0| 69 6f 6e 7b 66 7d 0a 0a | 54 68 69 73 20 6d 61 6e |ion{f}..|This man|
|000000e0| 75 61 6c 20 64 6f 63 75 | 6d 65 6e 74 73 20 68 6f |ual docu|ments ho|
|000000f0| 77 20 74 6f 20 72 75 6e | 2c 20 69 6e 73 74 61 6c |w to run|, instal|
|00000100| 6c 20 61 6e 64 20 70 6f | 72 74 20 74 68 65 20 47 |l and po|rt the G|
|00000110| 4e 55 0a 63 6f 6d 70 69 | 6c 65 72 2c 20 61 73 20 |NU.compi|ler, as |
|00000120| 77 65 6c 6c 20 61 73 20 | 69 74 73 20 6e 65 77 20 |well as |its new |
|00000130| 66 65 61 74 75 72 65 73 | 20 61 6e 64 20 69 6e 63 |features| and inc|
|00000140| 6f 6d 70 61 74 69 62 69 | 6c 69 74 69 65 73 2c 20 |ompatibi|lities, |
|00000150| 61 6e 64 20 68 6f 77 20 | 74 6f 0a 72 65 70 6f 72 |and how |to.repor|
|00000160| 74 20 62 75 67 73 2e 20 | 20 49 74 20 63 6f 72 72 |t bugs. | It corr|
|00000170| 65 73 70 6f 6e 64 73 20 | 74 6f 20 47 4e 55 20 43 |esponds |to GNU C|
|00000180| 43 20 76 65 72 73 69 6f | 6e 20 32 2e 36 2e 0a 0a |C versio|n 2.6...|
|00000190| 0a 23 57 72 61 70 20 6f | 66 66 0a 3c 43 6f 70 79 |.#Wrap o|ff.<Copy|
|000001a0| 69 6e 67 3d 3e 43 6f 70 | 79 69 6e 67 3e 3a 20 20 |ing=>Cop|ying>: |
|000001b0| 20 20 20 20 20 20 20 47 | 4e 55 20 47 65 6e 65 72 | G|NU Gener|
|000001c0| 61 6c 20 50 75 62 6c 69 | 63 20 4c 69 63 65 6e 73 |al Publi|c Licens|
|000001d0| 65 20 73 61 79 73 0a 20 | 20 20 20 20 20 20 20 20 |e says. | |
|000001e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 68 6f 77 20 | | how |
|000001f0| 79 6f 75 20 63 61 6e 20 | 63 6f 70 79 20 61 6e 64 |you can |copy and|
|00000200| 20 73 68 61 72 65 20 47 | 4e 55 20 43 43 2e 0a 3c | share G|NU CC..<|
|00000210| 43 6f 6e 74 72 69 62 75 | 74 6f 72 73 3d 3e 43 6f |Contribu|tors=>Co|
|00000220| 6e 74 72 69 62 75 74 6f | 3e 3a 20 20 20 20 50 65 |ntributo|>: Pe|
|00000230| 6f 70 6c 65 20 77 68 6f | 20 68 61 76 65 20 63 6f |ople who| have co|
|00000240| 6e 74 72 69 62 75 74 65 | 64 20 74 6f 20 47 4e 55 |ntribute|d to GNU|
|00000250| 20 43 43 2e 0a 3c 46 75 | 6e 64 69 6e 67 3d 3e 46 | CC..<Fu|nding=>F|
|00000260| 75 6e 64 69 6e 67 3e 3a | 20 20 20 20 20 20 20 20 |unding>:| |
|00000270| 20 48 6f 77 20 74 6f 20 | 68 65 6c 70 20 61 73 73 | How to |help ass|
|00000280| 75 72 65 20 66 75 6e 64 | 69 6e 67 20 66 6f 72 20 |ure fund|ing for |
|00000290| 66 72 65 65 20 73 6f 66 | 74 77 61 72 65 2e 0a 3c |free sof|tware..<|
|000002a0| 4c 6f 6f 6b 20 61 6e 64 | 20 46 65 65 6c 3d 3e 4c |Look and| Feel=>L|
|000002b0| 6f 6f 6b 61 6e 64 46 65 | 65 3e 3a 20 20 20 50 72 |ookandFe|e>: Pr|
|000002c0| 6f 74 65 63 74 20 79 6f | 75 72 20 66 72 65 65 64 |otect yo|ur freed|
|000002d0| 6f 6d 2d 2d 2d 66 69 67 | 68 74 20 60 60 6c 6f 6f |om---fig|ht ``loo|
|000002e0| 6b 20 61 6e 64 20 66 65 | 65 6c 27 27 2e 0a 3c 47 |k and fe|el''..<G|
|000002f0| 2b 2b 20 61 6e 64 20 47 | 43 43 3d 3e 47 61 6e 64 |++ and G|CC=>Gand|
|00000300| 47 43 43 3e 3a 20 20 20 | 20 20 59 6f 75 20 63 61 |GCC>: | You ca|
|00000310| 6e 20 63 6f 6d 70 69 6c | 65 20 43 20 6f 72 20 43 |n compil|e C or C|
|00000320| 2b 2b 20 70 72 6f 67 72 | 61 6d 73 2e 0a 3c 49 6e |++ progr|ams..<In|
|00000330| 76 6f 6b 69 6e 67 20 47 | 43 43 3d 3e 49 6e 76 6f |voking G|CC=>Invo|
|00000340| 6b 69 6e 67 47 43 3e 3a | 20 20 20 20 43 6f 6d 6d |kingGC>:| Comm|
|00000350| 61 6e 64 20 6f 70 74 69 | 6f 6e 73 20 73 75 70 70 |and opti|ons supp|
|00000360| 6f 72 74 65 64 20 62 79 | 20 7b 66 45 6d 70 68 61 |orted by| {fEmpha|
|00000370| 73 69 73 7d 67 63 63 7b | 66 7d 2e 0a 3c 49 6e 73 |sis}gcc{|f}..<Ins|
|00000380| 74 61 6c 6c 61 74 69 6f | 6e 3d 3e 49 6e 73 74 61 |tallatio|n=>Insta|
|00000390| 6c 6c 61 74 69 3e 3a 20 | 20 20 20 48 6f 77 20 74 |llati>: | How t|
|000003a0| 6f 20 63 6f 6e 66 69 67 | 75 72 65 2c 20 63 6f 6d |o config|ure, com|
|000003b0| 70 69 6c 65 20 61 6e 64 | 20 69 6e 73 74 61 6c 6c |pile and| install|
|000003c0| 20 47 4e 55 20 43 43 2e | 0a 3c 43 20 45 78 74 65 | GNU CC.|.<C Exte|
|000003d0| 6e 73 69 6f 6e 73 3d 3e | 43 45 78 74 65 6e 73 69 |nsions=>|CExtensi|
|000003e0| 6f 6e 3e 3a 20 20 20 20 | 47 4e 55 20 65 78 74 65 |on>: |GNU exte|
|000003f0| 6e 73 69 6f 6e 73 20 74 | 6f 20 74 68 65 20 43 20 |nsions t|o the C |
|00000400| 6c 61 6e 67 75 61 67 65 | 20 66 61 6d 69 6c 79 2e |language| family.|
|00000410| 0a 3c 43 2b 2b 20 45 78 | 74 65 6e 73 69 6f 6e 73 |.<C++ Ex|tensions|
|00000420| 3d 3e 43 45 78 74 65 6e | 73 69 6f 6f 3e 3a 20 20 |=>CExten|sioo>: |
|00000430| 47 4e 55 20 65 78 74 65 | 6e 73 69 6f 6e 73 20 74 |GNU exte|nsions t|
|00000440| 6f 20 74 68 65 20 43 2b | 2b 20 6c 61 6e 67 75 61 |o the C+|+ langua|
|00000450| 67 65 2e 0a 3c 54 72 6f | 75 62 6c 65 3d 3e 54 72 |ge..<Tro|uble=>Tr|
|00000460| 6f 75 62 6c 65 3e 3a 20 | 20 20 20 20 20 20 20 20 |ouble>: | |
|00000470| 49 66 20 79 6f 75 20 68 | 61 76 65 20 74 72 6f 75 |If you h|ave trou|
|00000480| 62 6c 65 20 69 6e 73 74 | 61 6c 6c 69 6e 67 20 47 |ble inst|alling G|
|00000490| 4e 55 20 43 43 2e 0a 3c | 42 75 67 73 3d 3e 42 75 |NU CC..<|Bugs=>Bu|
|000004a0| 67 73 3e 3a 20 20 20 20 | 20 20 20 20 20 20 20 20 |gs>: | |
|000004b0| 48 6f 77 2c 20 77 68 79 | 20 61 6e 64 20 77 68 65 |How, why| and whe|
|000004c0| 72 65 20 74 6f 20 72 65 | 70 6f 72 74 20 62 75 67 |re to re|port bug|
|000004d0| 73 2e 0a 3c 53 65 72 76 | 69 63 65 3d 3e 53 65 72 |s..<Serv|ice=>Ser|
|000004e0| 76 69 63 65 3e 3a 20 20 | 20 20 20 20 20 20 20 48 |vice>: | H|
|000004f0| 6f 77 20 74 6f 20 66 69 | 6e 64 20 73 75 70 70 6c |ow to fi|nd suppl|
|00000500| 69 65 72 73 20 6f 66 20 | 73 75 70 70 6f 72 74 20 |iers of |support |
|00000510| 66 6f 72 20 47 4e 55 20 | 43 43 2e 0a 3c 56 4d 53 |for GNU |CC..<VMS|
|00000520| 3d 3e 56 4d 53 3e 3a 20 | 20 20 20 20 20 20 20 20 |=>VMS>: | |
|00000530| 20 20 20 20 55 73 69 6e | 67 20 47 4e 55 20 43 43 | Usin|g GNU CC|
|00000540| 20 6f 6e 20 56 4d 53 2e | 0a 3c 50 6f 72 74 61 62 | on VMS.|.<Portab|
|00000550| 69 6c 69 74 79 3d 3e 50 | 6f 72 74 61 62 69 6c 69 |ility=>P|ortabili|
|00000560| 74 3e 3a 20 20 20 20 20 | 47 6f 61 6c 73 20 6f 66 |t>: |Goals of|
|00000570| 20 47 4e 55 20 43 43 27 | 73 20 70 6f 72 74 61 62 | GNU CC'|s portab|
|00000580| 69 6c 69 74 79 20 66 65 | 61 74 75 72 65 73 2e 0a |ility fe|atures..|
|00000590| 3c 49 6e 74 65 72 66 61 | 63 65 3d 3e 49 6e 74 65 |<Interfa|ce=>Inte|
|000005a0| 72 66 61 63 65 3e 3a 20 | 20 20 20 20 20 20 46 75 |rface>: | Fu|
|000005b0| 6e 63 74 69 6f 6e 2d 63 | 61 6c 6c 20 69 6e 74 65 |nction-c|all inte|
|000005c0| 72 66 61 63 65 20 6f 66 | 20 47 4e 55 20 43 43 20 |rface of| GNU CC |
|000005d0| 6f 75 74 70 75 74 2e 0a | 3c 50 61 73 73 65 73 3d |output..|<Passes=|
|000005e0| 3e 50 61 73 73 65 73 3e | 3a 20 20 20 20 20 20 20 |>Passes>|: |
|000005f0| 20 20 20 4f 72 64 65 72 | 20 6f 66 20 70 61 73 73 | Order| of pass|
|00000600| 65 73 2c 20 77 68 61 74 | 20 74 68 65 79 20 64 6f |es, what| they do|
|00000610| 2c 20 61 6e 64 20 77 68 | 61 74 20 65 61 63 68 20 |, and wh|at each |
|00000620| 66 69 6c 65 20 69 73 20 | 66 6f 72 2e 0a 3c 52 54 |file is |for..<RT|
|00000630| 4c 3d 3e 52 54 4c 3e 3a | 20 20 20 20 20 20 20 20 |L=>RTL>:| |
|00000640| 20 20 20 20 20 54 68 65 | 20 69 6e 74 65 72 6d 65 | The| interme|
|00000650| 64 69 61 74 65 20 72 65 | 70 72 65 73 65 6e 74 61 |diate re|presenta|
|00000660| 74 69 6f 6e 20 74 68 61 | 74 20 6d 6f 73 74 20 70 |tion tha|t most p|
|00000670| 61 73 73 65 73 20 77 6f | 72 6b 20 6f 6e 2e 0a 3c |asses wo|rk on..<|
|00000680| 4d 61 63 68 69 6e 65 20 | 44 65 73 63 3d 3e 4d 61 |Machine |Desc=>Ma|
|00000690| 63 68 69 6e 65 44 65 73 | 3e 3a 20 20 20 20 48 6f |chineDes|>: Ho|
|000006a0| 77 20 74 6f 20 77 72 69 | 74 65 20 6d 61 63 68 69 |w to wri|te machi|
|000006b0| 6e 65 20 64 65 73 63 72 | 69 70 74 69 6f 6e 20 69 |ne descr|iption i|
|000006c0| 6e 73 74 72 75 63 74 69 | 6f 6e 20 70 61 74 74 65 |nstructi|on patte|
|000006d0| 72 6e 73 2e 0a 3c 54 61 | 72 67 65 74 20 4d 61 63 |rns..<Ta|rget Mac|
|000006e0| 72 6f 73 3d 3e 54 61 72 | 67 65 74 4d 61 63 72 3e |ros=>Tar|getMacr>|
|000006f0| 3a 20 20 20 48 6f 77 20 | 74 6f 20 77 72 69 74 65 |: How |to write|
|00000700| 20 74 68 65 20 6d 61 63 | 68 69 6e 65 20 64 65 73 | the mac|hine des|
|00000710| 63 72 69 70 74 69 6f 6e | 20 43 20 6d 61 63 72 6f |cription| C macro|
|00000720| 73 2e 0a 3c 43 6f 6e 66 | 69 67 3d 3e 43 6f 6e 66 |s..<Conf|ig=>Conf|
|00000730| 69 67 3e 3a 20 20 20 20 | 20 20 20 20 20 20 57 72 |ig>: | Wr|
|00000740| 69 74 69 6e 67 20 74 68 | 65 20 7b 66 43 69 74 65 |iting th|e {fCite|
|00000750| 7d 78 6d 2d 7b 66 53 74 | 72 6f 6e 67 7d 6d 61 63 |}xm-{fSt|rong}mac|
|00000760| 68 69 6e 65 7b 66 7d 2e | 68 7b 66 7d 20 66 69 6c |hine{f}.|h{f} fil|
|00000770| 65 2e 0a 0a 3c 49 6e 64 | 65 78 3d 3e 49 6e 64 65 |e...<Ind|ex=>Inde|
|00000780| 78 3e 3a 09 20 20 20 20 | 49 6e 64 65 78 20 6f 66 |x>:. |Index of|
|00000790| 20 63 6f 6e 63 65 70 74 | 73 20 61 6e 64 20 73 79 | concept|s and sy|
|000007a0| 6d 62 6f 6c 20 6e 61 6d | 65 73 2e 0a 23 57 72 61 |mbol nam|es..#Wra|
|000007b0| 70 20 6f 6e 0a 0a 00 00 | 44 41 54 41 0b 1a 00 00 |p on....|DATA....|
|000007c0| 41 63 63 65 73 73 6f 72 | 73 0a 50 72 65 76 69 6f |Accessor|s.Previo|
|000007d0| 75 73 3a 20 3c 52 54 4c | 20 4f 62 6a 65 63 74 73 |us: <RTL| Objects|
|000007e0| 3d 3e 52 54 4c 4f 62 6a | 65 63 74 73 3e 20 2a 20 |=>RTLObj|ects> * |
|000007f0| 4e 65 78 74 3a 20 3c 46 | 6c 61 67 73 3d 3e 46 6c |Next: <F|lags=>Fl|
|00000800| 61 67 73 3e 20 2a 20 55 | 70 3a 20 3c 52 54 4c 3d |ags> * U|p: <RTL=|
|00000810| 3e 52 54 4c 3e 0a 0a 23 | 57 72 61 70 20 6f 6e 0a |>RTL>..#|Wrap on.|
|00000820| 7b 66 48 33 7d 41 63 63 | 65 73 73 20 74 6f 20 4f |{fH3}Acc|ess to O|
|00000830| 70 65 72 61 6e 64 73 7b | 66 7d 0a 0a 46 6f 72 20 |perands{|f}..For |
|00000840| 65 61 63 68 20 65 78 70 | 72 65 73 73 69 6f 6e 20 |each exp|ression |
|00000850| 74 79 70 65 20 7b 66 43 | 69 74 65 7d 72 74 6c 2e |type {fC|ite}rtl.|
|00000860| 64 65 66 7b 66 7d 20 73 | 70 65 63 69 66 69 65 73 |def{f} s|pecifies|
|00000870| 20 74 68 65 20 6e 75 6d | 62 65 72 20 6f 66 0a 63 | the num|ber of.c|
|00000880| 6f 6e 74 61 69 6e 65 64 | 20 6f 62 6a 65 63 74 73 |ontained| objects|
|00000890| 20 61 6e 64 20 74 68 65 | 69 72 20 6b 69 6e 64 73 | and the|ir kinds|
|000008a0| 2c 20 77 69 74 68 20 66 | 6f 75 72 20 70 6f 73 73 |, with f|our poss|
|000008b0| 69 62 69 6c 69 74 69 65 | 73 3a 20 7b 66 45 6d 70 |ibilitie|s: {fEmp|
|000008c0| 68 61 73 69 73 7d 65 7b | 66 7d 20 66 6f 72 0a 65 |hasis}e{|f} for.e|
|000008d0| 78 70 72 65 73 73 69 6f | 6e 20 28 61 63 74 75 61 |xpressio|n (actua|
|000008e0| 6c 6c 79 20 61 20 70 6f | 69 6e 74 65 72 20 74 6f |lly a po|inter to|
|000008f0| 20 61 6e 20 65 78 70 72 | 65 73 73 69 6f 6e 29 2c | an expr|ession),|
|00000900| 20 7b 66 45 6d 70 68 61 | 73 69 73 7d 69 7b 66 7d | {fEmpha|sis}i{f}|
|00000910| 20 66 6f 72 20 69 6e 74 | 65 67 65 72 2c 0a 7b 66 | for int|eger,.{f|
|00000920| 45 6d 70 68 61 73 69 73 | 7d 77 7b 66 7d 20 66 6f |Emphasis|}w{f} fo|
|00000930| 72 20 77 69 64 65 20 69 | 6e 74 65 67 65 72 2c 20 |r wide i|nteger, |
|00000940| 7b 66 45 6d 70 68 61 73 | 69 73 7d 73 7b 66 7d 20 |{fEmphas|is}s{f} |
|00000950| 66 6f 72 20 73 74 72 69 | 6e 67 2c 20 61 6e 64 20 |for stri|ng, and |
|00000960| 7b 66 45 6d 70 68 61 73 | 69 73 7d 45 7b 66 7d 20 |{fEmphas|is}E{f} |
|00000970| 66 6f 72 20 76 65 63 74 | 6f 72 0a 6f 66 20 65 78 |for vect|or.of ex|
|00000980| 70 72 65 73 73 69 6f 6e | 73 2e 20 20 54 68 65 20 |pression|s. The |
|00000990| 73 65 71 75 65 6e 63 65 | 20 6f 66 20 6c 65 74 74 |sequence| of lett|
|000009a0| 65 72 73 20 66 6f 72 20 | 61 6e 20 65 78 70 72 65 |ers for |an expre|
|000009b0| 73 73 69 6f 6e 20 63 6f | 64 65 20 69 73 0a 63 61 |ssion co|de is.ca|
|000009c0| 6c 6c 65 64 20 69 74 73 | 20 7b 66 55 6e 64 65 72 |lled its| {fUnder|
|000009d0| 6c 69 6e 65 7d 66 6f 72 | 6d 61 74 7b 66 7d 2e 20 |line}for|mat{f}. |
|000009e0| 20 54 68 75 73 2c 20 74 | 68 65 20 66 6f 72 6d 61 | Thus, t|he forma|
|000009f0| 74 20 6f 66 20 7b 66 43 | 6f 64 65 7d 73 75 62 72 |t of {fC|ode}subr|
|00000a00| 65 67 7b 66 7d 20 69 73 | 0a 7b 66 45 6d 70 68 61 |eg{f} is|.{fEmpha|
|00000a10| 73 69 73 7d 65 69 7b 66 | 7d 2e 0a 0a 41 20 66 65 |sis}ei{f|}...A fe|
|00000a20| 77 20 6f 74 68 65 72 20 | 66 6f 72 6d 61 74 20 63 |w other |format c|
|00000a30| 68 61 72 61 63 74 65 72 | 73 20 61 72 65 20 75 73 |haracter|s are us|
|00000a40| 65 64 20 6f 63 63 61 73 | 69 6f 6e 61 6c 6c 79 3a |ed occas|ionally:|
|00000a50| 0a 0a 23 49 6e 64 65 6e | 74 20 2b 34 0a 23 49 6e |..#Inden|t +4.#In|
|00000a60| 64 65 6e 74 0a 7b 66 43 | 6f 64 65 7d 75 7b 66 7d |dent.{fC|ode}u{f}|
|00000a70| 0a 23 49 6e 64 65 6e 74 | 20 2b 34 0a 7b 66 45 6d |.#Indent| +4.{fEm|
|00000a80| 70 68 61 73 69 73 7d 75 | 7b 66 7d 20 69 73 20 65 |phasis}u|{f} is e|
|00000a90| 71 75 69 76 61 6c 65 6e | 74 20 74 6f 20 7b 66 45 |quivalen|t to {fE|
|00000aa0| 6d 70 68 61 73 69 73 7d | 65 7b 66 7d 20 65 78 63 |mphasis}|e{f} exc|
|00000ab0| 65 70 74 20 74 68 61 74 | 20 69 74 20 69 73 20 70 |ept that| it is p|
|00000ac0| 72 69 6e 74 65 64 20 64 | 69 66 66 65 72 65 6e 74 |rinted d|ifferent|
|00000ad0| 6c 79 0a 69 6e 20 64 65 | 62 75 67 67 69 6e 67 20 |ly.in de|bugging |
|00000ae0| 64 75 6d 70 73 2e 20 20 | 49 74 20 69 73 20 75 73 |dumps. |It is us|
|00000af0| 65 64 20 66 6f 72 20 70 | 6f 69 6e 74 65 72 73 20 |ed for p|ointers |
|00000b00| 74 6f 20 69 6e 73 6e 73 | 2e 0a 0a 23 49 6e 64 65 |to insns|...#Inde|
|00000b10| 6e 74 0a 7b 66 43 6f 64 | 65 7d 6e 7b 66 7d 0a 23 |nt.{fCod|e}n{f}.#|
|00000b20| 49 6e 64 65 6e 74 20 2b | 34 0a 7b 66 45 6d 70 68 |Indent +|4.{fEmph|
|00000b30| 61 73 69 73 7d 6e 7b 66 | 7d 20 69 73 20 65 71 75 |asis}n{f|} is equ|
|00000b40| 69 76 61 6c 65 6e 74 20 | 74 6f 20 7b 66 45 6d 70 |ivalent |to {fEmp|
|00000b50| 68 61 73 69 73 7d 69 7b | 66 7d 20 65 78 63 65 70 |hasis}i{|f} excep|
|00000b60| 74 20 74 68 61 74 20 69 | 74 20 69 73 20 70 72 69 |t that i|t is pri|
|00000b70| 6e 74 65 64 20 64 69 66 | 66 65 72 65 6e 74 6c 79 |nted dif|ferently|
|00000b80| 0a 69 6e 20 64 65 62 75 | 67 67 69 6e 67 20 64 75 |.in debu|gging du|
|00000b90| 6d 70 73 2e 20 20 49 74 | 20 69 73 20 75 73 65 64 |mps. It| is used|
|00000ba0| 20 66 6f 72 20 74 68 65 | 20 6c 69 6e 65 20 6e 75 | for the| line nu|
|00000bb0| 6d 62 65 72 20 6f 72 20 | 63 6f 64 65 20 6e 75 6d |mber or |code num|
|00000bc0| 62 65 72 20 6f 66 20 61 | 0a 7b 66 43 6f 64 65 7d |ber of a|.{fCode}|
|00000bd0| 6e 6f 74 65 7b 66 7d 20 | 69 6e 73 6e 2e 0a 0a 23 |note{f} |insn...#|
|00000be0| 49 6e 64 65 6e 74 0a 7b | 66 43 6f 64 65 7d 53 7b |Indent.{|fCode}S{|
|00000bf0| 66 7d 0a 23 49 6e 64 65 | 6e 74 20 2b 34 0a 7b 66 |f}.#Inde|nt +4.{f|
|00000c00| 45 6d 70 68 61 73 69 73 | 7d 53 7b 66 7d 20 69 6e |Emphasis|}S{f} in|
|00000c10| 64 69 63 61 74 65 73 20 | 61 20 73 74 72 69 6e 67 |dicates |a string|
|00000c20| 20 77 68 69 63 68 20 69 | 73 20 6f 70 74 69 6f 6e | which i|s option|
|00000c30| 61 6c 2e 20 20 49 6e 20 | 74 68 65 20 52 54 4c 20 |al. In |the RTL |
|00000c40| 6f 62 6a 65 63 74 73 20 | 69 6e 0a 63 6f 72 65 2c |objects |in.core,|
|00000c50| 20 7b 66 45 6d 70 68 61 | 73 69 73 7d 53 7b 66 7d | {fEmpha|sis}S{f}|
|00000c60| 20 69 73 20 65 71 75 69 | 76 61 6c 65 6e 74 20 74 | is equi|valent t|
|00000c70| 6f 20 7b 66 45 6d 70 68 | 61 73 69 73 7d 73 7b 66 |o {fEmph|asis}s{f|
|00000c80| 7d 2c 20 62 75 74 20 77 | 68 65 6e 20 74 68 65 20 |}, but w|hen the |
|00000c90| 6f 62 6a 65 63 74 20 69 | 73 20 72 65 61 64 2c 0a |object i|s read,.|
|00000ca0| 66 72 6f 6d 20 61 6e 20 | 7b 66 45 6d 70 68 61 73 |from an |{fEmphas|
|00000cb0| 69 73 7d 6d 64 7b 66 7d | 20 66 69 6c 65 2c 20 74 |is}md{f}| file, t|
|00000cc0| 68 65 20 73 74 72 69 6e | 67 20 76 61 6c 75 65 20 |he strin|g value |
|00000cd0| 6f 66 20 74 68 69 73 20 | 6f 70 65 72 61 6e 64 20 |of this |operand |
|00000ce0| 6d 61 79 20 62 65 20 6f | 6d 69 74 74 65 64 2e 0a |may be o|mitted..|
|00000cf0| 41 6e 20 6f 6d 69 74 74 | 65 64 20 73 74 72 69 6e |An omitt|ed strin|
|00000d00| 67 20 69 73 20 74 61 6b | 65 6e 20 74 6f 20 62 65 |g is tak|en to be|
|00000d10| 20 74 68 65 20 6e 75 6c | 6c 20 73 74 72 69 6e 67 | the nul|l string|
|00000d20| 2e 0a 0a 23 49 6e 64 65 | 6e 74 0a 7b 66 43 6f 64 |...#Inde|nt.{fCod|
|00000d30| 65 7d 56 7b 66 7d 0a 23 | 49 6e 64 65 6e 74 20 2b |e}V{f}.#|Indent +|
|00000d40| 34 0a 7b 66 45 6d 70 68 | 61 73 69 73 7d 56 7b 66 |4.{fEmph|asis}V{f|
|00000d50| 7d 20 69 6e 64 69 63 61 | 74 65 73 20 61 20 76 65 |} indica|tes a ve|
|00000d60| 63 74 6f 72 20 77 68 69 | 63 68 20 69 73 20 6f 70 |ctor whi|ch is op|
|00000d70| 74 69 6f 6e 61 6c 2e 20 | 20 49 6e 20 74 68 65 20 |tional. | In the |
|00000d80| 52 54 4c 20 6f 62 6a 65 | 63 74 73 20 69 6e 0a 63 |RTL obje|cts in.c|
|00000d90| 6f 72 65 2c 20 7b 66 45 | 6d 70 68 61 73 69 73 7d |ore, {fE|mphasis}|
|00000da0| 56 7b 66 7d 20 69 73 20 | 65 71 75 69 76 61 6c 65 |V{f} is |equivale|
|00000db0| 6e 74 20 74 6f 20 7b 66 | 45 6d 70 68 61 73 69 73 |nt to {f|Emphasis|
|00000dc0| 7d 45 7b 66 7d 2c 20 62 | 75 74 20 77 68 65 6e 20 |}E{f}, b|ut when |
|00000dd0| 74 68 65 20 6f 62 6a 65 | 63 74 20 69 73 20 72 65 |the obje|ct is re|
|00000de0| 61 64 0a 66 72 6f 6d 20 | 61 6e 20 7b 66 45 6d 70 |ad.from |an {fEmp|
|00000df0| 68 61 73 69 73 7d 6d 64 | 7b 66 7d 20 66 69 6c 65 |hasis}md|{f} file|
|00000e00| 2c 20 74 68 65 20 76 65 | 63 74 6f 72 20 76 61 6c |, the ve|ctor val|
|00000e10| 75 65 20 6f 66 20 74 68 | 69 73 20 6f 70 65 72 61 |ue of th|is opera|
|00000e20| 6e 64 20 6d 61 79 20 62 | 65 20 6f 6d 69 74 74 65 |nd may b|e omitte|
|00000e30| 64 2e 0a 41 6e 20 6f 6d | 69 74 74 65 64 20 76 65 |d..An om|itted ve|
|00000e40| 63 74 6f 72 20 69 73 20 | 65 66 66 65 63 74 69 76 |ctor is |effectiv|
|00000e50| 65 6c 79 20 74 68 65 20 | 73 61 6d 65 20 61 73 20 |ely the |same as |
|00000e60| 61 20 76 65 63 74 6f 72 | 20 6f 66 20 6e 6f 20 65 |a vector| of no e|
|00000e70| 6c 65 6d 65 6e 74 73 2e | 0a 0a 23 49 6e 64 65 6e |lements.|..#Inden|
|00000e80| 74 0a 7b 66 43 6f 64 65 | 7d 30 7b 66 7d 0a 23 49 |t.{fCode|}0{f}.#I|
|00000e90| 6e 64 65 6e 74 20 2b 34 | 0a 7b 66 45 6d 70 68 61 |ndent +4|.{fEmpha|
|00000ea0| 73 69 73 7d 30 7b 66 7d | 20 6d 65 61 6e 73 20 61 |sis}0{f}| means a|
|00000eb0| 20 73 6c 6f 74 20 77 68 | 6f 73 65 20 63 6f 6e 74 | slot wh|ose cont|
|00000ec0| 65 6e 74 73 20 64 6f 20 | 6e 6f 74 20 66 69 74 20 |ents do |not fit |
|00000ed0| 61 6e 79 20 6e 6f 72 6d | 61 6c 20 63 61 74 65 67 |any norm|al categ|
|00000ee0| 6f 72 79 2e 0a 7b 66 45 | 6d 70 68 61 73 69 73 7d |ory..{fE|mphasis}|
|00000ef0| 30 7b 66 7d 20 73 6c 6f | 74 73 20 61 72 65 20 6e |0{f} slo|ts are n|
|00000f00| 6f 74 20 70 72 69 6e 74 | 65 64 20 61 74 20 61 6c |ot print|ed at al|
|00000f10| 6c 20 69 6e 20 64 75 6d | 70 73 2c 20 61 6e 64 20 |l in dum|ps, and |
|00000f20| 61 72 65 20 6f 66 74 65 | 6e 20 75 73 65 64 20 69 |are ofte|n used i|
|00000f30| 6e 0a 73 70 65 63 69 61 | 6c 20 77 61 79 73 20 62 |n.specia|l ways b|
|00000f40| 79 20 73 6d 61 6c 6c 20 | 70 61 72 74 73 20 6f 66 |y small |parts of|
|00000f50| 20 74 68 65 20 63 6f 6d | 70 69 6c 65 72 2e 0a 0a | the com|piler...|
|00000f60| 23 49 6e 64 65 6e 74 0a | 0a 54 68 65 72 65 20 61 |#Indent.|.There a|
|00000f70| 72 65 20 6d 61 63 72 6f | 73 20 74 6f 20 67 65 74 |re macro|s to get|
|00000f80| 20 74 68 65 20 6e 75 6d | 62 65 72 20 6f 66 20 6f | the num|ber of o|
|00000f90| 70 65 72 61 6e 64 73 2c | 20 74 68 65 20 66 6f 72 |perands,| the for|
|00000fa0| 6d 61 74 2c 20 61 6e 64 | 20 74 68 65 0a 63 6c 61 |mat, and| the.cla|
|00000fb0| 73 73 20 6f 66 20 61 6e | 20 65 78 70 72 65 73 73 |ss of an| express|
|00000fc0| 69 6f 6e 20 63 6f 64 65 | 3a 0a 0a 23 49 6e 64 65 |ion code|:..#Inde|
|00000fd0| 6e 74 20 2b 34 0a 23 49 | 6e 64 65 6e 74 0a 7b 66 |nt +4.#I|ndent.{f|
|00000fe0| 43 6f 64 65 7d 47 45 54 | 5c 5f 52 54 58 5c 5f 4c |Code}GET|\_RTX\_L|
|00000ff0| 45 4e 47 54 48 20 28 7b | 66 53 74 72 6f 6e 67 7d |ENGTH ({|fStrong}|
|00001000| 63 6f 64 65 7b 66 7d 29 | 7b 66 7d 0a 23 49 6e 64 |code{f})|{f}.#Ind|
|00001010| 65 6e 74 20 2b 34 0a 4e | 75 6d 62 65 72 20 6f 66 |ent +4.N|umber of|
|00001020| 20 6f 70 65 72 61 6e 64 | 73 20 6f 66 20 61 6e 20 | operand|s of an |
|00001030| 52 54 58 20 6f 66 20 63 | 6f 64 65 20 7b 66 53 74 |RTX of c|ode {fSt|
|00001040| 72 6f 6e 67 7d 63 6f 64 | 65 7b 66 7d 2e 0a 0a 23 |rong}cod|e{f}...#|
|00001050| 49 6e 64 65 6e 74 0a 7b | 66 43 6f 64 65 7d 47 45 |Indent.{|fCode}GE|
|00001060| 54 5c 5f 52 54 58 5c 5f | 46 4f 52 4d 41 54 20 28 |T\_RTX\_|FORMAT (|
|00001070| 7b 66 53 74 72 6f 6e 67 | 7d 63 6f 64 65 7b 66 7d |{fStrong|}code{f}|
|00001080| 29 7b 66 7d 0a 23 49 6e | 64 65 6e 74 20 2b 34 0a |){f}.#In|dent +4.|
|00001090| 54 68 65 20 66 6f 72 6d | 61 74 20 6f 66 20 61 6e |The form|at of an|
|000010a0| 20 52 54 58 20 6f 66 20 | 63 6f 64 65 20 7b 66 53 | RTX of |code {fS|
|000010b0| 74 72 6f 6e 67 7d 63 6f | 64 65 7b 66 7d 2c 20 61 |trong}co|de{f}, a|
|000010c0| 73 20 61 20 43 20 73 74 | 72 69 6e 67 2e 0a 0a 23 |s a C st|ring...#|
|000010d0| 49 6e 64 65 6e 74 0a 7b | 66 43 6f 64 65 7d 47 45 |Indent.{|fCode}GE|
|000010e0| 54 5c 5f 52 54 58 5c 5f | 43 4c 41 53 53 20 28 7b |T\_RTX\_|CLASS ({|
|000010f0| 66 53 74 72 6f 6e 67 7d | 63 6f 64 65 7b 66 7d 29 |fStrong}|code{f})|
|00001100| 7b 66 7d 0a 23 49 6e 64 | 65 6e 74 20 2b 34 0a 41 |{f}.#Ind|ent +4.A|
|00001110| 20 73 69 6e 67 6c 65 20 | 63 68 61 72 61 63 74 65 | single |characte|
|00001120| 72 20 72 65 70 72 65 73 | 65 6e 74 69 6e 67 20 74 |r repres|enting t|
|00001130| 68 65 20 74 79 70 65 20 | 6f 66 20 52 54 58 20 6f |he type |of RTX o|
|00001140| 70 65 72 61 74 69 6f 6e | 20 74 68 61 74 20 63 6f |peration| that co|
|00001150| 64 65 0a 7b 66 53 74 72 | 6f 6e 67 7d 63 6f 64 65 |de.{fStr|ong}code|
|00001160| 7b 66 7d 20 70 65 72 66 | 6f 72 6d 73 2e 0a 0a 54 |{f} perf|orms...T|
|00001170| 68 65 20 66 6f 6c 6c 6f | 77 69 6e 67 20 63 6c 61 |he follo|wing cla|
|00001180| 73 73 65 73 20 61 72 65 | 20 64 65 66 69 6e 65 64 |sses are| defined|
|00001190| 3a 0a 0a 23 49 6e 64 65 | 6e 74 20 2b 34 0a 23 49 |:..#Inde|nt +4.#I|
|000011a0| 6e 64 65 6e 74 0a 7b 66 | 43 6f 64 65 7d 6f 7b 66 |ndent.{f|Code}o{f|
|000011b0| 7d 0a 23 49 6e 64 65 6e | 74 20 2b 34 0a 41 6e 20 |}.#Inden|t +4.An |
|000011c0| 52 54 58 20 63 6f 64 65 | 20 74 68 61 74 20 72 65 |RTX code| that re|
|000011d0| 70 72 65 73 65 6e 74 73 | 20 61 6e 20 61 63 74 75 |presents| an actu|
|000011e0| 61 6c 20 6f 62 6a 65 63 | 74 2c 20 73 75 63 68 20 |al objec|t, such |
|000011f0| 61 73 20 7b 66 43 6f 64 | 65 7d 72 65 67 7b 66 7d |as {fCod|e}reg{f}|
|00001200| 20 6f 72 0a 7b 66 43 6f | 64 65 7d 6d 65 6d 7b 66 | or.{fCo|de}mem{f|
|00001210| 7d 2e 20 20 7b 66 43 6f | 64 65 7d 73 75 62 72 65 |}. {fCo|de}subre|
|00001220| 67 7b 66 7d 20 69 73 20 | 6e 6f 74 20 69 6e 20 74 |g{f} is |not in t|
|00001230| 68 69 73 20 63 6c 61 73 | 73 2e 0a 0a 23 49 6e 64 |his clas|s...#Ind|
|00001240| 65 6e 74 0a 7b 66 43 6f | 64 65 7d 5c 3c 7b 66 7d |ent.{fCo|de}\<{f}|
|00001250| 0a 23 49 6e 64 65 6e 74 | 20 2b 34 0a 41 6e 20 52 |.#Indent| +4.An R|
|00001260| 54 58 20 63 6f 64 65 20 | 66 6f 72 20 61 20 63 6f |TX code |for a co|
|00001270| 6d 70 61 72 69 73 6f 6e | 2e 20 20 54 68 65 20 63 |mparison|. The c|
|00001280| 6f 64 65 73 20 69 6e 20 | 74 68 69 73 20 63 6c 61 |odes in |this cla|
|00001290| 73 73 20 61 72 65 0a 7b | 66 43 6f 64 65 7d 4e 45 |ss are.{|fCode}NE|
|000012a0| 7b 66 7d 2c 20 7b 66 43 | 6f 64 65 7d 45 51 7b 66 |{f}, {fC|ode}EQ{f|
|000012b0| 7d 2c 20 7b 66 43 6f 64 | 65 7d 4c 45 7b 66 7d 2c |}, {fCod|e}LE{f},|
|000012c0| 20 7b 66 43 6f 64 65 7d | 4c 54 7b 66 7d 2c 20 7b | {fCode}|LT{f}, {|
|000012d0| 66 43 6f 64 65 7d 47 45 | 7b 66 7d 2c 20 7b 66 43 |fCode}GE|{f}, {fC|
|000012e0| 6f 64 65 7d 47 54 7b 66 | 7d 2c 0a 7b 66 43 6f 64 |ode}GT{f|},.{fCod|
|000012f0| 65 7d 4c 45 55 7b 66 7d | 2c 20 7b 66 43 6f 64 65 |e}LEU{f}|, {fCode|
|00001300| 7d 4c 54 55 7b 66 7d 2c | 20 7b 66 43 6f 64 65 7d |}LTU{f},| {fCode}|
|00001310| 47 45 55 7b 66 7d 2c 20 | 7b 66 43 6f 64 65 7d 47 |GEU{f}, |{fCode}G|
|00001320| 54 55 7b 66 7d 2e 0a 0a | 23 49 6e 64 65 6e 74 0a |TU{f}...|#Indent.|
|00001330| 7b 66 43 6f 64 65 7d 31 | 7b 66 7d 0a 23 49 6e 64 |{fCode}1|{f}.#Ind|
|00001340| 65 6e 74 20 2b 34 0a 41 | 6e 20 52 54 58 20 63 6f |ent +4.A|n RTX co|
|00001350| 64 65 20 66 6f 72 20 61 | 20 75 6e 61 72 79 20 61 |de for a| unary a|
|00001360| 72 69 74 68 6d 65 74 69 | 63 20 6f 70 65 72 61 74 |rithmeti|c operat|
|00001370| 69 6f 6e 2c 20 73 75 63 | 68 20 61 73 20 7b 66 43 |ion, suc|h as {fC|
|00001380| 6f 64 65 7d 6e 65 67 7b | 66 7d 2e 0a 0a 23 49 6e |ode}neg{|f}...#In|
|00001390| 64 65 6e 74 0a 7b 66 43 | 6f 64 65 7d 63 7b 66 7d |dent.{fC|ode}c{f}|
|000013a0| 0a 23 49 6e 64 65 6e 74 | 20 2b 34 0a 41 6e 20 52 |.#Indent| +4.An R|
|000013b0| 54 58 20 63 6f 64 65 20 | 66 6f 72 20 61 20 63 6f |TX code |for a co|
|000013c0| 6d 6d 75 74 61 74 69 76 | 65 20 62 69 6e 61 72 79 |mmutativ|e binary|
|000013d0| 20 6f 70 65 72 61 74 69 | 6f 6e 2c 20 6f 74 68 65 | operati|on, othe|
|000013e0| 72 20 74 68 61 6e 20 7b | 66 43 6f 64 65 7d 4e 45 |r than {|fCode}NE|
|000013f0| 7b 66 7d 0a 61 6e 64 20 | 7b 66 43 6f 64 65 7d 45 |{f}.and |{fCode}E|
|00001400| 51 7b 66 7d 20 28 77 68 | 69 63 68 20 68 61 76 65 |Q{f} (wh|ich have|
|00001410| 20 63 6c 61 73 73 20 7b | 66 45 6d 70 68 61 73 69 | class {|fEmphasi|
|00001420| 73 7d 5c 3c 7b 66 7d 29 | 2e 0a 0a 23 49 6e 64 65 |s}\<{f})|...#Inde|
|00001430| 6e 74 0a 7b 66 43 6f 64 | 65 7d 32 7b 66 7d 0a 23 |nt.{fCod|e}2{f}.#|
|00001440| 49 6e 64 65 6e 74 20 2b | 34 0a 41 6e 20 52 54 58 |Indent +|4.An RTX|
|00001450| 20 63 6f 64 65 20 66 6f | 72 20 61 20 6e 6f 6e 63 | code fo|r a nonc|
|00001460| 6f 6d 6d 75 74 61 74 69 | 76 65 20 62 69 6e 61 72 |ommutati|ve binar|
|00001470| 79 20 6f 70 65 72 61 74 | 69 6f 6e 2c 20 73 75 63 |y operat|ion, suc|
|00001480| 68 20 61 73 20 7b 66 43 | 6f 64 65 7d 4d 49 4e 55 |h as {fC|ode}MINU|
|00001490| 53 7b 66 7d 2e 0a 0a 23 | 49 6e 64 65 6e 74 0a 7b |S{f}...#|Indent.{|
|000014a0| 66 43 6f 64 65 7d 62 7b | 66 7d 0a 23 49 6e 64 65 |fCode}b{|f}.#Inde|
|000014b0| 6e 74 20 2b 34 0a 41 6e | 20 52 54 58 20 63 6f 64 |nt +4.An| RTX cod|
|000014c0| 65 20 66 6f 72 20 61 20 | 62 69 74 66 69 65 6c 64 |e for a |bitfield|
|000014d0| 20 6f 70 65 72 61 74 69 | 6f 6e 2c 20 65 69 74 68 | operati|on, eith|
|000014e0| 65 72 20 7b 66 43 6f 64 | 65 7d 5a 45 52 4f 5c 5f |er {fCod|e}ZERO\_|
|000014f0| 45 58 54 52 41 43 54 7b | 66 7d 20 6f 72 0a 7b 66 |EXTRACT{|f} or.{f|
|00001500| 43 6f 64 65 7d 53 49 47 | 4e 5c 5f 45 58 54 52 41 |Code}SIG|N\_EXTRA|
|00001510| 43 54 7b 66 7d 2e 0a 0a | 23 49 6e 64 65 6e 74 0a |CT{f}...|#Indent.|
|00001520| 7b 66 43 6f 64 65 7d 33 | 7b 66 7d 0a 23 49 6e 64 |{fCode}3|{f}.#Ind|
|00001530| 65 6e 74 20 2b 34 0a 41 | 6e 20 52 54 58 20 63 6f |ent +4.A|n RTX co|
|00001540| 64 65 20 66 6f 72 20 6f | 74 68 65 72 20 74 68 72 |de for o|ther thr|
|00001550| 65 65 20 69 6e 70 75 74 | 20 6f 70 65 72 61 74 69 |ee input| operati|
|00001560| 6f 6e 73 2c 20 73 75 63 | 68 20 61 73 20 7b 66 43 |ons, suc|h as {fC|
|00001570| 6f 64 65 7d 49 46 5c 5f | 54 48 45 4e 5c 5f 45 4c |ode}IF\_|THEN\_EL|
|00001580| 53 45 7b 66 7d 2e 0a 0a | 23 49 6e 64 65 6e 74 0a |SE{f}...|#Indent.|
|00001590| 7b 66 43 6f 64 65 7d 69 | 7b 66 7d 0a 23 49 6e 64 |{fCode}i|{f}.#Ind|
|000015a0| 65 6e 74 20 2b 34 0a 41 | 6e 20 52 54 58 20 63 6f |ent +4.A|n RTX co|
|000015b0| 64 65 20 66 6f 72 20 61 | 20 6d 61 63 68 69 6e 65 |de for a| machine|
|000015c0| 20 69 6e 73 6e 20 28 7b | 66 43 6f 64 65 7d 49 4e | insn ({|fCode}IN|
|000015d0| 53 4e 7b 66 7d 2c 20 7b | 66 43 6f 64 65 7d 4a 55 |SN{f}, {|fCode}JU|
|000015e0| 4d 50 5c 5f 49 4e 53 4e | 7b 66 7d 2c 20 61 6e 64 |MP\_INSN|{f}, and|
|000015f0| 0a 7b 66 43 6f 64 65 7d | 43 41 4c 4c 5c 5f 49 4e |.{fCode}|CALL\_IN|
|00001600| 53 4e 7b 66 7d 29 2e 0a | 0a 23 49 6e 64 65 6e 74 |SN{f})..|.#Indent|
|00001610| 0a 7b 66 43 6f 64 65 7d | 6d 7b 66 7d 0a 23 49 6e |.{fCode}|m{f}.#In|
|00001620| 64 65 6e 74 20 2b 34 0a | 41 6e 20 52 54 58 20 63 |dent +4.|An RTX c|
|00001630| 6f 64 65 20 66 6f 72 20 | 73 6f 6d 65 74 68 69 6e |ode for |somethin|
|00001640| 67 20 74 68 61 74 20 6d | 61 74 63 68 65 73 20 69 |g that m|atches i|
|00001650| 6e 20 69 6e 73 6e 73 2c | 20 73 75 63 68 20 61 73 |n insns,| such as|
|00001660| 20 7b 66 43 6f 64 65 7d | 4d 41 54 43 48 5c 5f 44 | {fCode}|MATCH\_D|
|00001670| 55 50 7b 66 7d 2e 0a 0a | 23 49 6e 64 65 6e 74 0a |UP{f}...|#Indent.|
|00001680| 7b 66 43 6f 64 65 7d 78 | 7b 66 7d 0a 23 49 6e 64 |{fCode}x|{f}.#Ind|
|00001690| 65 6e 74 20 2b 34 0a 41 | 6c 6c 20 6f 74 68 65 72 |ent +4.A|ll other|
|000016a0| 20 52 54 58 20 63 6f 64 | 65 73 2e 0a 0a 23 49 6e | RTX cod|es...#In|
|000016b0| 64 65 6e 74 0a 0a 23 49 | 6e 64 65 6e 74 0a 0a 4f |dent..#I|ndent..O|
|000016c0| 70 65 72 61 6e 64 73 20 | 6f 66 20 65 78 70 72 65 |perands |of expre|
|000016d0| 73 73 69 6f 6e 73 20 61 | 72 65 20 61 63 63 65 73 |ssions a|re acces|
|000016e0| 73 65 64 20 75 73 69 6e | 67 20 74 68 65 20 6d 61 |sed usin|g the ma|
|000016f0| 63 72 6f 73 20 7b 66 43 | 6f 64 65 7d 58 45 58 50 |cros {fC|ode}XEXP|
|00001700| 7b 66 7d 2c 0a 7b 66 43 | 6f 64 65 7d 58 49 4e 54 |{f},.{fC|ode}XINT|
|00001710| 7b 66 7d 2c 20 7b 66 43 | 6f 64 65 7d 58 57 49 4e |{f}, {fC|ode}XWIN|
|00001720| 54 7b 66 7d 20 61 6e 64 | 20 7b 66 43 6f 64 65 7d |T{f} and| {fCode}|
|00001730| 58 53 54 52 7b 66 7d 2e | 20 20 45 61 63 68 20 6f |XSTR{f}.| Each o|
|00001740| 66 20 74 68 65 73 65 20 | 6d 61 63 72 6f 73 20 74 |f these |macros t|
|00001750| 61 6b 65 73 0a 74 77 6f | 20 61 72 67 75 6d 65 6e |akes.two| argumen|
|00001760| 74 73 3a 20 61 6e 20 65 | 78 70 72 65 73 73 69 6f |ts: an e|xpressio|
|00001770| 6e 2d 70 6f 69 6e 74 65 | 72 20 28 52 54 58 29 20 |n-pointe|r (RTX) |
|00001780| 61 6e 64 20 61 6e 20 6f | 70 65 72 61 6e 64 20 6e |and an o|perand n|
|00001790| 75 6d 62 65 72 0a 28 63 | 6f 75 6e 74 69 6e 67 20 |umber.(c|ounting |
|000017a0| 66 72 6f 6d 20 7a 65 72 | 6f 29 2e 20 20 54 68 75 |from zer|o). Thu|
|000017b0| 73 2c 0a 0a 23 57 72 61 | 70 20 6f 66 66 0a 23 66 |s,..#Wra|p off.#f|
|000017c0| 43 6f 64 65 0a 58 45 58 | 50 20 28 7b 66 53 74 72 |Code.XEX|P ({fStr|
|000017d0| 6f 6e 67 7d 78 7b 66 7d | 2c 20 32 29 0a 23 66 0a |ong}x{f}|, 2).#f.|
|000017e0| 23 57 72 61 70 20 6f 6e | 0a 0a 61 63 63 65 73 73 |#Wrap on|..access|
|000017f0| 65 73 20 6f 70 65 72 61 | 6e 64 20 32 20 6f 66 20 |es opera|nd 2 of |
|00001800| 65 78 70 72 65 73 73 69 | 6f 6e 20 7b 66 53 74 72 |expressi|on {fStr|
|00001810| 6f 6e 67 7d 78 7b 66 7d | 2c 20 61 73 20 61 6e 20 |ong}x{f}|, as an |
|00001820| 65 78 70 72 65 73 73 69 | 6f 6e 2e 0a 0a 23 57 72 |expressi|on...#Wr|
|00001830| 61 70 20 6f 66 66 0a 23 | 66 43 6f 64 65 0a 58 49 |ap off.#|fCode.XI|
|00001840| 4e 54 20 28 7b 66 53 74 | 72 6f 6e 67 7d 78 7b 66 |NT ({fSt|rong}x{f|
|00001850| 7d 2c 20 32 29 0a 23 66 | 0a 23 57 72 61 70 20 6f |}, 2).#f|.#Wrap o|
|00001860| 6e 0a 0a 61 63 63 65 73 | 73 65 73 20 74 68 65 20 |n..acces|ses the |
|00001870| 73 61 6d 65 20 6f 70 65 | 72 61 6e 64 20 61 73 20 |same ope|rand as |
|00001880| 61 6e 20 69 6e 74 65 67 | 65 72 2e 20 20 7b 66 43 |an integ|er. {fC|
|00001890| 6f 64 65 7d 58 53 54 52 | 7b 66 7d 2c 20 75 73 65 |ode}XSTR|{f}, use|
|000018a0| 64 20 69 6e 20 74 68 65 | 20 73 61 6d 65 0a 66 61 |d in the| same.fa|
|000018b0| 73 68 69 6f 6e 2c 20 77 | 6f 75 6c 64 20 61 63 63 |shion, w|ould acc|
|000018c0| 65 73 73 20 69 74 20 61 | 73 20 61 20 73 74 72 69 |ess it a|s a stri|
|000018d0| 6e 67 2e 0a 0a 41 6e 79 | 20 6f 70 65 72 61 6e 64 |ng...Any| operand|
|000018e0| 20 63 61 6e 20 62 65 20 | 61 63 63 65 73 73 65 64 | can be |accessed|
|000018f0| 20 61 73 20 61 6e 20 69 | 6e 74 65 67 65 72 2c 20 | as an i|nteger, |
|00001900| 61 73 20 61 6e 20 65 78 | 70 72 65 73 73 69 6f 6e |as an ex|pression|
|00001910| 20 6f 72 20 61 73 20 61 | 20 73 74 72 69 6e 67 2e | or as a| string.|
|00001920| 0a 59 6f 75 20 6d 75 73 | 74 20 63 68 6f 6f 73 65 |.You mus|t choose|
|00001930| 20 74 68 65 20 63 6f 72 | 72 65 63 74 20 6d 65 74 | the cor|rect met|
|00001940| 68 6f 64 20 6f 66 20 61 | 63 63 65 73 73 20 66 6f |hod of a|ccess fo|
|00001950| 72 20 74 68 65 20 6b 69 | 6e 64 20 6f 66 20 76 61 |r the ki|nd of va|
|00001960| 6c 75 65 20 61 63 74 75 | 61 6c 6c 79 0a 73 74 6f |lue actu|ally.sto|
|00001970| 72 65 64 20 69 6e 20 74 | 68 65 20 6f 70 65 72 61 |red in t|he opera|
|00001980| 6e 64 2e 20 20 59 6f 75 | 20 77 6f 75 6c 64 20 64 |nd. You| would d|
|00001990| 6f 20 74 68 69 73 20 62 | 61 73 65 64 20 6f 6e 20 |o this b|ased on |
|000019a0| 74 68 65 20 65 78 70 72 | 65 73 73 69 6f 6e 20 63 |the expr|ession c|
|000019b0| 6f 64 65 20 6f 66 0a 74 | 68 65 20 63 6f 6e 74 61 |ode of.t|he conta|
|000019c0| 69 6e 69 6e 67 20 65 78 | 70 72 65 73 73 69 6f 6e |ining ex|pression|
|000019d0| 2e 20 20 54 68 61 74 20 | 69 73 20 61 6c 73 6f 20 |. That |is also |
|000019e0| 68 6f 77 20 79 6f 75 20 | 77 6f 75 6c 64 20 6b 6e |how you |would kn|
|000019f0| 6f 77 20 68 6f 77 20 6d | 61 6e 79 0a 6f 70 65 72 |ow how m|any.oper|
|00001a00| 61 6e 64 73 20 74 68 65 | 72 65 20 61 72 65 2e 0a |ands the|re are..|
|00001a10| 0a 46 6f 72 20 65 78 61 | 6d 70 6c 65 2c 20 69 66 |.For exa|mple, if|
|00001a20| 20 7b 66 53 74 72 6f 6e | 67 7d 78 7b 66 7d 20 69 | {fStron|g}x{f} i|
|00001a30| 73 20 61 20 7b 66 43 6f | 64 65 7d 73 75 62 72 65 |s a {fCo|de}subre|
|00001a40| 67 7b 66 7d 20 65 78 70 | 72 65 73 73 69 6f 6e 2c |g{f} exp|ression,|
|00001a50| 20 79 6f 75 20 6b 6e 6f | 77 20 74 68 61 74 20 69 | you kno|w that i|
|00001a60| 74 20 68 61 73 0a 74 77 | 6f 20 6f 70 65 72 61 6e |t has.tw|o operan|
|00001a70| 64 73 20 77 68 69 63 68 | 20 63 61 6e 20 62 65 20 |ds which| can be |
|00001a80| 63 6f 72 72 65 63 74 6c | 79 20 61 63 63 65 73 73 |correctl|y access|
|00001a90| 65 64 20 61 73 20 7b 66 | 43 6f 64 65 7d 58 45 58 |ed as {f|Code}XEX|
|00001aa0| 50 20 28 7b 66 53 74 72 | 6f 6e 67 7d 78 7b 66 7d |P ({fStr|ong}x{f}|
|00001ab0| 2c 20 30 29 7b 66 7d 0a | 61 6e 64 20 7b 66 43 6f |, 0){f}.|and {fCo|
|00001ac0| 64 65 7d 58 49 4e 54 20 | 28 7b 66 53 74 72 6f 6e |de}XINT |({fStron|
|00001ad0| 67 7d 78 7b 66 7d 2c 20 | 31 29 7b 66 7d 2e 20 20 |g}x{f}, |1){f}. |
|00001ae0| 49 66 20 79 6f 75 20 64 | 69 64 20 7b 66 43 6f 64 |If you d|id {fCod|
|00001af0| 65 7d 58 49 4e 54 20 28 | 7b 66 53 74 72 6f 6e 67 |e}XINT (|{fStrong|
|00001b00| 7d 78 7b 66 7d 2c 20 30 | 29 7b 66 7d 2c 20 79 6f |}x{f}, 0|){f}, yo|
|00001b10| 75 0a 77 6f 75 6c 64 20 | 67 65 74 20 74 68 65 20 |u.would |get the |
|00001b20| 61 64 64 72 65 73 73 20 | 6f 66 20 74 68 65 20 65 |address |of the e|
|00001b30| 78 70 72 65 73 73 69 6f | 6e 20 6f 70 65 72 61 6e |xpressio|n operan|
|00001b40| 64 20 62 75 74 20 63 61 | 73 74 20 61 73 20 61 6e |d but ca|st as an|
|00001b50| 20 69 6e 74 65 67 65 72 | 3b 0a 74 68 61 74 20 6d | integer|;.that m|
|00001b60| 69 67 68 74 20 6f 63 63 | 61 73 69 6f 6e 61 6c 6c |ight occ|asionall|
|00001b70| 79 20 62 65 20 75 73 65 | 66 75 6c 2c 20 62 75 74 |y be use|ful, but|
|00001b80| 20 69 74 20 77 6f 75 6c | 64 20 62 65 20 63 6c 65 | it woul|d be cle|
|00001b90| 61 6e 65 72 20 74 6f 20 | 77 72 69 74 65 0a 7b 66 |aner to |write.{f|
|00001ba0| 43 6f 64 65 7d 28 69 6e | 74 29 20 58 45 58 50 20 |Code}(in|t) XEXP |
|00001bb0| 28 7b 66 53 74 72 6f 6e | 67 7d 78 7b 66 7d 2c 20 |({fStron|g}x{f}, |
|00001bc0| 30 29 7b 66 7d 2e 20 20 | 7b 66 43 6f 64 65 7d 58 |0){f}. |{fCode}X|
|00001bd0| 45 58 50 20 28 7b 66 53 | 74 72 6f 6e 67 7d 78 7b |EXP ({fS|trong}x{|
|00001be0| 66 7d 2c 20 31 29 7b 66 | 7d 20 77 6f 75 6c 64 20 |f}, 1){f|} would |
|00001bf0| 61 6c 73 6f 0a 63 6f 6d | 70 69 6c 65 20 77 69 74 |also.com|pile wit|
|00001c00| 68 6f 75 74 20 65 72 72 | 6f 72 2c 20 61 6e 64 20 |hout err|or, and |
|00001c10| 77 6f 75 6c 64 20 72 65 | 74 75 72 6e 20 74 68 65 |would re|turn the|
|00001c20| 20 73 65 63 6f 6e 64 2c | 20 69 6e 74 65 67 65 72 | second,| integer|
|00001c30| 20 6f 70 65 72 61 6e 64 | 20 63 61 73 74 20 61 73 | operand| cast as|
|00001c40| 0a 61 6e 20 65 78 70 72 | 65 73 73 69 6f 6e 20 70 |.an expr|ession p|
|00001c50| 6f 69 6e 74 65 72 2c 20 | 77 68 69 63 68 20 77 6f |ointer, |which wo|
|00001c60| 75 6c 64 20 70 72 6f 62 | 61 62 6c 79 20 72 65 73 |uld prob|ably res|
|00001c70| 75 6c 74 20 69 6e 20 61 | 20 63 72 61 73 68 20 77 |ult in a| crash w|
|00001c80| 68 65 6e 0a 61 63 63 65 | 73 73 65 64 2e 20 20 4e |hen.acce|ssed. N|
|00001c90| 6f 74 68 69 6e 67 20 73 | 74 6f 70 73 20 79 6f 75 |othing s|tops you|
|00001ca0| 20 66 72 6f 6d 20 77 72 | 69 74 69 6e 67 20 7b 66 | from wr|iting {f|
|00001cb0| 43 6f 64 65 7d 58 45 58 | 50 20 28 7b 66 53 74 72 |Code}XEX|P ({fStr|
|00001cc0| 6f 6e 67 7d 78 7b 66 7d | 2c 20 32 38 29 7b 66 7d |ong}x{f}|, 28){f}|
|00001cd0| 20 65 69 74 68 65 72 2c | 0a 62 75 74 20 74 68 69 | either,|.but thi|
|00001ce0| 73 20 77 69 6c 6c 20 61 | 63 63 65 73 73 20 6d 65 |s will a|ccess me|
|00001cf0| 6d 6f 72 79 20 70 61 73 | 74 20 74 68 65 20 65 6e |mory pas|t the en|
|00001d00| 64 20 6f 66 20 74 68 65 | 20 65 78 70 72 65 73 73 |d of the| express|
|00001d10| 69 6f 6e 20 77 69 74 68 | 0a 75 6e 70 72 65 64 69 |ion with|.unpredi|
|00001d20| 63 74 61 62 6c 65 20 72 | 65 73 75 6c 74 73 2e 0a |ctable r|esults..|
|00001d30| 0a 41 63 63 65 73 73 20 | 74 6f 20 6f 70 65 72 61 |.Access |to opera|
|00001d40| 6e 64 73 20 77 68 69 63 | 68 20 61 72 65 20 76 65 |nds whic|h are ve|
|00001d50| 63 74 6f 72 73 20 69 73 | 20 6d 6f 72 65 20 63 6f |ctors is| more co|
|00001d60| 6d 70 6c 69 63 61 74 65 | 64 2e 20 20 59 6f 75 20 |mplicate|d. You |
|00001d70| 63 61 6e 20 75 73 65 20 | 74 68 65 0a 6d 61 63 72 |can use |the.macr|
|00001d80| 6f 20 7b 66 43 6f 64 65 | 7d 58 56 45 43 7b 66 7d |o {fCode|}XVEC{f}|
|00001d90| 20 74 6f 20 67 65 74 20 | 74 68 65 20 76 65 63 74 | to get |the vect|
|00001da0| 6f 72 2d 70 6f 69 6e 74 | 65 72 20 69 74 73 65 6c |or-point|er itsel|
|00001db0| 66 2c 20 6f 72 20 74 68 | 65 20 6d 61 63 72 6f 73 |f, or th|e macros|
|00001dc0| 0a 7b 66 43 6f 64 65 7d | 58 56 45 43 45 58 50 7b |.{fCode}|XVECEXP{|
|00001dd0| 66 7d 20 61 6e 64 20 7b | 66 43 6f 64 65 7d 58 56 |f} and {|fCode}XV|
|00001de0| 45 43 4c 45 4e 7b 66 7d | 20 74 6f 20 61 63 63 65 |ECLEN{f}| to acce|
|00001df0| 73 73 20 74 68 65 20 65 | 6c 65 6d 65 6e 74 73 20 |ss the e|lements |
|00001e00| 61 6e 64 20 6c 65 6e 67 | 74 68 20 6f 66 20 61 0a |and leng|th of a.|
|00001e10| 76 65 63 74 6f 72 2e 0a | 0a 23 49 6e 64 65 6e 74 |vector..|.#Indent|
|00001e20| 20 2b 34 0a 23 49 6e 64 | 65 6e 74 0a 7b 66 43 6f | +4.#Ind|ent.{fCo|
|00001e30| 64 65 7d 58 56 45 43 20 | 28 7b 66 53 74 72 6f 6e |de}XVEC |({fStron|
|00001e40| 67 7d 65 78 70 7b 66 7d | 2c 20 7b 66 53 74 72 6f |g}exp{f}|, {fStro|
|00001e50| 6e 67 7d 69 64 78 7b 66 | 7d 29 7b 66 7d 0a 23 49 |ng}idx{f|}){f}.#I|
|00001e60| 6e 64 65 6e 74 20 2b 34 | 0a 41 63 63 65 73 73 20 |ndent +4|.Access |
|00001e70| 74 68 65 20 76 65 63 74 | 6f 72 2d 70 6f 69 6e 74 |the vect|or-point|
|00001e80| 65 72 20 77 68 69 63 68 | 20 69 73 20 6f 70 65 72 |er which| is oper|
|00001e90| 61 6e 64 20 6e 75 6d 62 | 65 72 20 7b 66 53 74 72 |and numb|er {fStr|
|00001ea0| 6f 6e 67 7d 69 64 78 7b | 66 7d 20 69 6e 20 7b 66 |ong}idx{|f} in {f|
|00001eb0| 53 74 72 6f 6e 67 7d 65 | 78 70 7b 66 7d 2e 0a 0a |Strong}e|xp{f}...|
|00001ec0| 23 49 6e 64 65 6e 74 0a | 7b 66 43 6f 64 65 7d 58 |#Indent.|{fCode}X|
|00001ed0| 56 45 43 4c 45 4e 20 28 | 7b 66 53 74 72 6f 6e 67 |VECLEN (|{fStrong|
|00001ee0| 7d 65 78 70 7b 66 7d 2c | 20 7b 66 53 74 72 6f 6e |}exp{f},| {fStron|
|00001ef0| 67 7d 69 64 78 7b 66 7d | 29 7b 66 7d 0a 23 49 6e |g}idx{f}|){f}.#In|
|00001f00| 64 65 6e 74 20 2b 34 0a | 41 63 63 65 73 73 20 74 |dent +4.|Access t|
|00001f10| 68 65 20 6c 65 6e 67 74 | 68 20 28 6e 75 6d 62 65 |he lengt|h (numbe|
|00001f20| 72 20 6f 66 20 65 6c 65 | 6d 65 6e 74 73 29 20 69 |r of ele|ments) i|
|00001f30| 6e 20 74 68 65 20 76 65 | 63 74 6f 72 20 77 68 69 |n the ve|ctor whi|
|00001f40| 63 68 20 69 73 0a 69 6e | 20 6f 70 65 72 61 6e 64 |ch is.in| operand|
|00001f50| 20 6e 75 6d 62 65 72 20 | 7b 66 53 74 72 6f 6e 67 | number |{fStrong|
|00001f60| 7d 69 64 78 7b 66 7d 20 | 69 6e 20 7b 66 53 74 72 |}idx{f} |in {fStr|
|00001f70| 6f 6e 67 7d 65 78 70 7b | 66 7d 2e 20 20 54 68 69 |ong}exp{|f}. Thi|
|00001f80| 73 20 76 61 6c 75 65 20 | 69 73 20 61 6e 20 7b 66 |s value |is an {f|
|00001f90| 43 6f 64 65 7d 69 6e 74 | 7b 66 7d 2e 0a 0a 23 49 |Code}int|{f}...#I|
|00001fa0| 6e 64 65 6e 74 0a 7b 66 | 43 6f 64 65 7d 58 56 45 |ndent.{f|Code}XVE|
|00001fb0| 43 45 58 50 20 28 7b 66 | 53 74 72 6f 6e 67 7d 65 |CEXP ({f|Strong}e|
|00001fc0| 78 70 7b 66 7d 2c 20 7b | 66 53 74 72 6f 6e 67 7d |xp{f}, {|fStrong}|
|00001fd0| 69 64 78 7b 66 7d 2c 20 | 7b 66 53 74 72 6f 6e 67 |idx{f}, |{fStrong|
|00001fe0| 7d 65 6c 74 6e 75 6d 7b | 66 7d 29 7b 66 7d 0a 23 |}eltnum{|f}){f}.#|
|00001ff0| 49 6e 64 65 6e 74 20 2b | 34 0a 41 63 63 65 73 73 |Indent +|4.Access|
|00002000| 20 65 6c 65 6d 65 6e 74 | 20 6e 75 6d 62 65 72 20 | element| number |
|00002010| 7b 66 53 74 72 6f 6e 67 | 7d 65 6c 74 6e 75 6d 7b |{fStrong|}eltnum{|
|00002020| 66 7d 20 69 6e 20 74 68 | 65 20 76 65 63 74 6f 72 |f} in th|e vector|
|00002030| 20 77 68 69 63 68 20 69 | 73 0a 69 6e 20 6f 70 65 | which i|s.in ope|
|00002040| 72 61 6e 64 20 6e 75 6d | 62 65 72 20 7b 66 53 74 |rand num|ber {fSt|
|00002050| 72 6f 6e 67 7d 69 64 78 | 7b 66 7d 20 69 6e 20 7b |rong}idx|{f} in {|
|00002060| 66 53 74 72 6f 6e 67 7d | 65 78 70 7b 66 7d 2e 20 |fStrong}|exp{f}. |
|00002070| 20 54 68 69 73 20 76 61 | 6c 75 65 20 69 73 20 61 | This va|lue is a|
|00002080| 6e 20 52 54 58 2e 0a 0a | 49 74 20 69 73 20 75 70 |n RTX...|It is up|
|00002090| 20 74 6f 20 79 6f 75 20 | 74 6f 20 6d 61 6b 65 20 | to you |to make |
|000020a0| 73 75 72 65 20 74 68 61 | 74 20 7b 66 53 74 72 6f |sure tha|t {fStro|
|000020b0| 6e 67 7d 65 6c 74 6e 75 | 6d 7b 66 7d 20 69 73 20 |ng}eltnu|m{f} is |
|000020c0| 6e 6f 74 20 6e 65 67 61 | 74 69 76 65 0a 61 6e 64 |not nega|tive.and|
|000020d0| 20 69 73 20 6c 65 73 73 | 20 74 68 61 6e 20 7b 66 | is less| than {f|
|000020e0| 43 6f 64 65 7d 58 56 45 | 43 4c 45 4e 20 28 7b 66 |Code}XVE|CLEN ({f|
|000020f0| 53 74 72 6f 6e 67 7d 65 | 78 70 7b 66 7d 2c 20 7b |Strong}e|xp{f}, {|
|00002100| 66 53 74 72 6f 6e 67 7d | 69 64 78 7b 66 7d 29 7b |fStrong}|idx{f}){|
|00002110| 66 7d 2e 0a 0a 23 49 6e | 64 65 6e 74 0a 0a 41 6c |f}...#In|dent..Al|
|00002120| 6c 20 74 68 65 20 6d 61 | 63 72 6f 73 20 64 65 66 |l the ma|cros def|
|00002130| 69 6e 65 64 20 69 6e 20 | 74 68 69 73 20 73 65 63 |ined in |this sec|
|00002140| 74 69 6f 6e 20 65 78 70 | 61 6e 64 20 69 6e 74 6f |tion exp|and into|
|00002150| 20 6c 76 61 6c 75 65 73 | 20 61 6e 64 20 74 68 65 | lvalues| and the|
|00002160| 72 65 66 6f 72 65 0a 63 | 61 6e 20 62 65 20 75 73 |refore.c|an be us|
|00002170| 65 64 20 74 6f 20 61 73 | 73 69 67 6e 20 74 68 65 |ed to as|sign the|
|00002180| 20 6f 70 65 72 61 6e 64 | 73 2c 20 6c 65 6e 67 74 | operand|s, lengt|
|00002190| 68 73 20 61 6e 64 20 76 | 65 63 74 6f 72 20 65 6c |hs and v|ector el|
|000021a0| 65 6d 65 6e 74 73 20 61 | 73 20 77 65 6c 6c 20 61 |ements a|s well a|
|000021b0| 73 0a 74 6f 20 61 63 63 | 65 73 73 20 74 68 65 6d |s.to acc|ess them|
|000021c0| 2e 0a 0a 00 46 52 45 45 | 60 01 00 00 2c 00 00 00 |....FREE|`...,...|
|000021d0| 80 00 00 00 46 ff ff ff | 3b 69 e8 2a 36 07 00 00 |....F...|;i.*6...|
|000021e0| 33 00 00 00 00 00 00 00 | 21 52 6f 6f 74 00 00 00 |3.......|!Root...|
|000021f0| b8 07 00 00 46 ff ff ff | 91 1d e9 2a 0b 1a 00 00 |....F...|...*....|
|00002200| 33 00 00 00 00 00 00 00 | 41 63 63 65 73 73 6f 72 |3.......|Accessor|
|00002210| 73 00 00 00 24 23 00 00 | 46 ff ff ff a4 f2 e8 2a |s...$#..|F......*|
|00002220| 12 05 00 00 13 00 00 00 | 00 00 00 00 41 63 74 75 |........|....Actu|
|00002230| 61 6c 42 75 67 73 00 00 | 38 28 00 00 46 ff ff ff |alBugs..|8(..F...|
|00002240| 2b ba e9 2a 5d 20 00 00 | 13 00 00 00 00 00 00 00 |+..*] ..|........|
|00002250| 41 64 64 72 65 73 73 69 | 6e 67 00 00 98 48 00 00 |Addressi|ng...H..|
|00002260| 46 ff ff ff a6 ab e9 2a | 3c 0f 00 00 13 00 00 00 |F......*|<.......|
|00002270| 00 00 00 00 41 67 67 72 | 65 67 61 74 65 52 00 00 |....Aggr|egateR..|
|00002280| d4 57 00 00 46 ff ff ff | 8c de e8 2a 69 06 00 00 |.W..F...|...*i...|
|00002290| 13 00 00 00 00 00 00 00 | 41 6c 69 67 6e 6d 65 6e |........|Alignmen|
|000022a0| 74 00 00 00 40 5e 00 00 | 46 ff ff ff e0 d2 e9 2a |t...@^..|F......*|
|000022b0| cb 07 00 00 13 00 00 00 | 00 00 00 00 41 6c 69 67 |........|....Alig|
|000022c0| 6e 6d 65 6e 74 4f 00 00 | 0c 66 00 00 46 ff ff ff |nmentO..|.f..F...|
|000022d0| b5 d4 e9 2a 79 0a 00 00 | 13 00 00 00 00 00 00 00 |...*y...|........|
|000022e0| 41 6c 6c 44 65 62 75 67 | 67 65 00 00 88 70 00 00 |AllDebug|ge...p..|
|000022f0| 46 ff ff ff ea 95 e9 2a | a0 05 00 00 13 00 00 00 |F......*|........|
|00002300| 00 00 00 00 41 6c 6c 6f | 63 61 74 69 6f 6e 00 00 |....Allo|cation..|
|00002310| ff ff ff ff ff ff ff ff | ff ff ff ff ff ff ff ff |........|........|
|00002320| ff ff ff ff 44 41 54 41 | 12 05 00 00 41 63 74 75 |....DATA|....Actu|
|00002330| 61 6c 20 42 75 67 73 0a | 50 72 65 76 69 6f 75 73 |al Bugs.|Previous|
|00002340| 3a 20 3c 54 72 6f 75 62 | 6c 65 3d 3e 54 72 6f 75 |: <Troub|le=>Trou|
|00002350| 62 6c 65 3e 20 2a 20 4e | 65 78 74 3a 20 3c 49 6e |ble> * N|ext: <In|
|00002360| 73 74 61 6c 6c 61 74 69 | 6f 6e 20 50 72 6f 62 6c |stallati|on Probl|
|00002370| 65 6d 73 3d 3e 49 6e 73 | 74 61 6c 6c 61 74 6a 3e |ems=>Ins|tallatj>|
|00002380| 20 2a 20 55 70 3a 20 3c | 54 72 6f 75 62 6c 65 3d | * Up: <|Trouble=|
|00002390| 3e 54 72 6f 75 62 6c 65 | 3e 0a 0a 23 57 72 61 70 |>Trouble|>..#Wrap|
|000023a0| 20 6f 6e 0a 7b 66 48 33 | 7d 41 63 74 75 61 6c 20 | on.{fH3|}Actual |
|000023b0| 42 75 67 73 20 57 65 20 | 48 61 76 65 6e 27 74 20 |Bugs We |Haven't |
|000023c0| 46 69 78 65 64 20 59 65 | 74 7b 66 7d 0a 0a 23 49 |Fixed Ye|t{f}..#I|
|000023d0| 6e 64 65 6e 74 20 2b 34 | 0a 0a 20 8f 20 54 68 65 |ndent +4|.. . The|
|000023e0| 20 7b 66 43 6f 64 65 7d | 66 69 78 69 6e 63 6c 75 | {fCode}|fixinclu|
|000023f0| 64 65 73 7b 66 7d 20 73 | 63 72 69 70 74 20 69 6e |des{f} s|cript in|
|00002400| 74 65 72 61 63 74 73 20 | 62 61 64 6c 79 20 77 69 |teracts |badly wi|
|00002410| 74 68 20 61 75 74 6f 6d | 6f 75 6e 74 65 72 73 3b |th autom|ounters;|
|00002420| 20 69 66 20 74 68 65 0a | 64 69 72 65 63 74 6f 72 | if the.|director|
|00002430| 79 20 6f 66 20 73 79 73 | 74 65 6d 20 68 65 61 64 |y of sys|tem head|
|00002440| 65 72 20 66 69 6c 65 73 | 20 69 73 20 61 75 74 6f |er files| is auto|
|00002450| 6d 6f 75 6e 74 65 64 2c | 20 69 74 20 74 65 6e 64 |mounted,| it tend|
|00002460| 73 20 74 6f 20 62 65 0a | 75 6e 6d 6f 75 6e 74 65 |s to be.|unmounte|
|00002470| 64 20 77 68 69 6c 65 20 | 7b 66 43 6f 64 65 7d 66 |d while |{fCode}f|
|00002480| 69 78 69 6e 63 6c 75 64 | 65 73 7b 66 7d 20 69 73 |ixinclud|es{f} is|
|00002490| 20 72 75 6e 6e 69 6e 67 | 2e 20 20 54 68 69 73 20 | running|. This |
|000024a0| 77 6f 75 6c 64 20 73 65 | 65 6d 20 74 6f 20 62 65 |would se|em to be|
|000024b0| 20 61 0a 62 75 67 20 69 | 6e 20 74 68 65 20 61 75 | a.bug i|n the au|
|000024c0| 74 6f 6d 6f 75 6e 74 65 | 72 2e 20 20 57 65 20 64 |tomounte|r. We d|
|000024d0| 6f 6e 27 74 20 6b 6e 6f | 77 20 61 6e 79 20 67 6f |on't kno|w any go|
|000024e0| 6f 64 20 77 61 79 20 74 | 6f 20 77 6f 72 6b 20 61 |od way t|o work a|
|000024f0| 72 6f 75 6e 64 20 69 74 | 2e 0a 0a 0a 20 8f 20 54 |round it|.... . T|
|00002500| 68 65 20 7b 66 43 6f 64 | 65 7d 66 69 78 70 72 6f |he {fCod|e}fixpro|
|00002510| 74 6f 7b 66 7d 20 73 63 | 72 69 70 74 20 77 69 6c |to{f} sc|ript wil|
|00002520| 6c 20 73 6f 6d 65 74 69 | 6d 65 73 20 61 64 64 20 |l someti|mes add |
|00002530| 70 72 6f 74 6f 74 79 70 | 65 73 20 66 6f 72 20 74 |prototyp|es for t|
|00002540| 68 65 0a 7b 66 43 6f 64 | 65 7d 73 69 67 73 65 74 |he.{fCod|e}sigset|
|00002550| 6a 6d 70 7b 66 7d 20 61 | 6e 64 20 7b 66 43 6f 64 |jmp{f} a|nd {fCod|
|00002560| 65 7d 73 69 67 6c 6f 6e | 67 6a 6d 70 7b 66 7d 20 |e}siglon|gjmp{f} |
|00002570| 66 75 6e 63 74 69 6f 6e | 73 20 74 68 61 74 20 72 |function|s that r|
|00002580| 65 66 65 72 65 6e 63 65 | 20 74 68 65 0a 7b 66 43 |eference| the.{fC|
|00002590| 6f 64 65 7d 6a 6d 70 5c | 5f 62 75 66 7b 66 7d 20 |ode}jmp\|_buf{f} |
|000025a0| 74 79 70 65 20 62 65 66 | 6f 72 65 20 74 68 61 74 |type bef|ore that|
|000025b0| 20 74 79 70 65 20 69 73 | 20 64 65 66 69 6e 65 64 | type is| defined|
|000025c0| 2e 20 20 54 6f 20 77 6f | 72 6b 20 61 72 6f 75 6e |. To wo|rk aroun|
|000025d0| 64 20 74 68 69 73 2c 0a | 65 64 69 74 20 74 68 65 |d this,.|edit the|
|000025e0| 20 6f 66 66 65 6e 64 69 | 6e 67 20 66 69 6c 65 20 | offendi|ng file |
|000025f0| 61 6e 64 20 70 6c 61 63 | 65 20 74 68 65 20 74 79 |and plac|e the ty|
|00002600| 70 65 64 65 66 20 69 6e | 20 66 72 6f 6e 74 20 6f |pedef in| front o|
|00002610| 66 20 74 68 65 0a 70 72 | 6f 74 6f 74 79 70 65 73 |f the.pr|ototypes|
|00002620| 2e 0a 0a 0a 20 8f 20 54 | 68 65 72 65 20 61 72 65 |.... . T|here are|
|00002630| 20 73 65 76 65 72 61 6c | 20 6f 62 73 63 75 72 65 | several| obscure|
|00002640| 20 63 61 73 65 20 6f 66 | 20 6d 69 73 2d 75 73 69 | case of| mis-usi|
|00002650| 6e 67 20 73 74 72 75 63 | 74 2c 20 75 6e 69 6f 6e |ng struc|t, union|
|00002660| 2c 20 61 6e 64 20 0a 65 | 6e 75 6d 20 74 61 67 73 |, and .e|num tags|
|00002670| 20 74 68 61 74 20 61 72 | 65 20 6e 6f 74 20 64 65 | that ar|e not de|
|00002680| 74 65 63 74 65 64 20 61 | 73 20 65 72 72 6f 72 73 |tected a|s errors|
|00002690| 20 62 79 20 74 68 65 20 | 63 6f 6d 70 69 6c 65 72 | by the |compiler|
|000026a0| 2e 0a 0a 0a 20 8f 20 57 | 68 65 6e 20 7b 66 45 6d |.... . W|hen {fEm|
|000026b0| 70 68 61 73 69 73 7d 2d | 70 65 64 61 6e 74 69 63 |phasis}-|pedantic|
|000026c0| 2d 65 72 72 6f 72 73 7b | 66 7d 20 69 73 20 73 70 |-errors{|f} is sp|
|000026d0| 65 63 69 66 69 65 64 2c | 20 47 4e 55 20 43 20 77 |ecified,| GNU C w|
|000026e0| 69 6c 6c 20 69 6e 63 6f | 72 72 65 63 74 6c 79 20 |ill inco|rrectly |
|000026f0| 67 69 76 65 0a 61 6e 20 | 65 72 72 6f 72 20 6d 65 |give.an |error me|
|00002700| 73 73 61 67 65 20 77 68 | 65 6e 20 61 20 66 75 6e |ssage wh|en a fun|
|00002710| 63 74 69 6f 6e 20 6e 61 | 6d 65 20 69 73 20 73 70 |ction na|me is sp|
|00002720| 65 63 69 66 69 65 64 20 | 69 6e 20 61 6e 20 65 78 |ecified |in an ex|
|00002730| 70 72 65 73 73 69 6f 6e | 0a 69 6e 76 6f 6c 76 69 |pression|.involvi|
|00002740| 6e 67 20 74 68 65 20 63 | 6f 6d 6d 61 20 6f 70 65 |ng the c|omma ope|
|00002750| 72 61 74 6f 72 2e 0a 0a | 0a 20 8f 20 4c 6f 6f 70 |rator...|. . Loop|
|00002760| 20 75 6e 72 6f 6c 6c 69 | 6e 67 20 64 6f 65 73 6e | unrolli|ng doesn|
|00002770| 27 74 20 77 6f 72 6b 20 | 70 72 6f 70 65 72 6c 79 |'t work |properly|
|00002780| 20 66 6f 72 20 63 65 72 | 74 61 69 6e 20 43 2b 2b | for cer|tain C++|
|00002790| 20 70 72 6f 67 72 61 6d | 73 2e 20 20 54 68 69 73 | program|s. This|
|000027a0| 20 69 73 0a 61 20 62 75 | 67 20 69 6e 20 74 68 65 | is.a bu|g in the|
|000027b0| 20 43 2b 2b 20 66 72 6f | 6e 74 20 65 6e 64 2e 20 | C++ fro|nt end. |
|000027c0| 20 49 74 20 73 6f 6d 65 | 74 69 6d 65 73 20 65 6d | It some|times em|
|000027d0| 69 74 73 20 69 6e 63 6f | 72 72 65 63 74 20 64 65 |its inco|rrect de|
|000027e0| 62 75 67 20 69 6e 66 6f | 2c 20 61 6e 64 0a 74 68 |bug info|, and.th|
|000027f0| 65 20 6c 6f 6f 70 20 75 | 6e 72 6f 6c 6c 69 6e 67 |e loop u|nrolling|
|00002800| 20 63 6f 64 65 20 69 73 | 20 75 6e 61 62 6c 65 20 | code is| unable |
|00002810| 74 6f 20 72 65 63 6f 76 | 65 72 20 66 72 6f 6d 20 |to recov|er from |
|00002820| 74 68 69 73 20 65 72 72 | 6f 72 2e 0a 0a 23 49 6e |this err|or...#In|
|00002830| 64 65 6e 74 0a 0a 00 00 | 44 41 54 41 5d 20 00 00 |dent....|DATA] ..|
|00002840| 41 64 64 72 65 73 73 69 | 6e 67 20 4d 6f 64 65 73 |Addressi|ng Modes|
|00002850| 0a 50 72 65 76 69 6f 75 | 73 3a 20 3c 4c 69 62 72 |.Previou|s: <Libr|
|00002860| 61 72 79 20 43 61 6c 6c | 73 3d 3e 4c 69 62 72 61 |ary Call|s=>Libra|
|00002870| 72 79 43 61 6c 3e 20 2a | 20 4e 65 78 74 3a 20 3c |ryCal> *| Next: <|
|00002880| 43 6f 6e 64 69 74 69 6f | 6e 20 43 6f 64 65 3d 3e |Conditio|n Code=>|
|00002890| 43 6f 6e 64 69 74 69 6f | 6e 43 3e 20 2a 20 55 70 |Conditio|nC> * Up|
|000028a0| 3a 20 3c 54 61 72 67 65 | 74 20 4d 61 63 72 6f 73 |: <Targe|t Macros|
|000028b0| 3d 3e 54 61 72 67 65 74 | 4d 61 63 72 3e 0a 0a 23 |=>Target|Macr>..#|
|000028c0| 57 72 61 70 20 6f 6e 0a | 7b 66 48 33 7d 41 64 64 |Wrap on.|{fH3}Add|
|000028d0| 72 65 73 73 69 6e 67 20 | 4d 6f 64 65 73 7b 66 7d |ressing |Modes{f}|
|000028e0| 0a 0a 54 68 69 73 20 69 | 73 20 61 62 6f 75 74 20 |..This i|s about |
|000028f0| 61 64 64 72 65 73 73 69 | 6e 67 20 6d 6f 64 65 73 |addressi|ng modes|
|00002900| 2e 0a 0a 23 49 6e 64 65 | 6e 74 20 2b 34 0a 23 49 |...#Inde|nt +4.#I|
|00002910| 6e 64 65 6e 74 0a 7b 66 | 43 6f 64 65 7d 48 41 56 |ndent.{f|Code}HAV|
|00002920| 45 5c 5f 50 4f 53 54 5c | 5f 49 4e 43 52 45 4d 45 |E\_POST\|_INCREME|
|00002930| 4e 54 7b 66 7d 0a 23 49 | 6e 64 65 6e 74 20 2b 34 |NT{f}.#I|ndent +4|
|00002940| 0a 44 65 66 69 6e 65 20 | 74 68 69 73 20 6d 61 63 |.Define |this mac|
|00002950| 72 6f 20 69 66 20 74 68 | 65 20 6d 61 63 68 69 6e |ro if th|e machin|
|00002960| 65 20 73 75 70 70 6f 72 | 74 73 20 70 6f 73 74 2d |e suppor|ts post-|
|00002970| 69 6e 63 72 65 6d 65 6e | 74 20 61 64 64 72 65 73 |incremen|t addres|
|00002980| 73 69 6e 67 2e 0a 0a 23 | 49 6e 64 65 6e 74 0a 7b |sing...#|Indent.{|
|00002990| 66 43 6f 64 65 7d 48 41 | 56 45 5c 5f 50 52 45 5c |fCode}HA|VE\_PRE\|
|000029a0| 5f 49 4e 43 52 45 4d 45 | 4e 54 7b 66 7d 0a 23 49 |_INCREME|NT{f}.#I|
|000029b0| 6e 64 65 6e 74 20 2b 34 | 0a 23 49 6e 64 65 6e 74 |ndent +4|.#Indent|
|000029c0| 0a 7b 66 43 6f 64 65 7d | 48 41 56 45 5c 5f 50 4f |.{fCode}|HAVE\_PO|
|000029d0| 53 54 5c 5f 44 45 43 52 | 45 4d 45 4e 54 7b 66 7d |ST\_DECR|EMENT{f}|
|000029e0| 0a 23 49 6e 64 65 6e 74 | 20 2b 34 0a 23 49 6e 64 |.#Indent| +4.#Ind|
|000029f0| 65 6e 74 0a 7b 66 43 6f | 64 65 7d 48 41 56 45 5c |ent.{fCo|de}HAVE\|
|00002a00| 5f 50 52 45 5c 5f 44 45 | 43 52 45 4d 45 4e 54 7b |_PRE\_DE|CREMENT{|
|00002a10| 66 7d 0a 23 49 6e 64 65 | 6e 74 20 2b 34 0a 53 69 |f}.#Inde|nt +4.Si|
|00002a20| 6d 69 6c 61 72 20 66 6f | 72 20 6f 74 68 65 72 20 |milar fo|r other |
|00002a30| 6b 69 6e 64 73 20 6f 66 | 20 61 64 64 72 65 73 73 |kinds of| address|
|00002a40| 69 6e 67 2e 0a 0a 23 49 | 6e 64 65 6e 74 0a 7b 66 |ing...#I|ndent.{f|
|00002a50| 43 6f 64 65 7d 43 4f 4e | 53 54 41 4e 54 5c 5f 41 |Code}CON|STANT\_A|
|00002a60| 44 44 52 45 53 53 5c 5f | 50 20 28 7b 66 53 74 72 |DDRESS\_|P ({fStr|
|00002a70| 6f 6e 67 7d 78 7b 66 7d | 29 7b 66 7d 0a 23 49 6e |ong}x{f}|){f}.#In|
|00002a80| 64 65 6e 74 20 2b 34 0a | 41 20 43 20 65 78 70 72 |dent +4.|A C expr|
|00002a90| 65 73 73 69 6f 6e 20 74 | 68 61 74 20 69 73 20 31 |ession t|hat is 1|
|00002aa0| 20 69 66 20 74 68 65 20 | 52 54 58 20 7b 66 53 74 | if the |RTX {fSt|
|00002ab0| 72 6f 6e 67 7d 78 7b 66 | 7d 20 69 73 20 61 20 63 |rong}x{f|} is a c|
|00002ac0| 6f 6e 73 74 61 6e 74 20 | 77 68 69 63 68 0a 69 73 |onstant |which.is|
|00002ad0| 20 61 20 76 61 6c 69 64 | 20 61 64 64 72 65 73 73 | a valid| address|
|00002ae0| 2e 20 20 4f 6e 20 6d 6f | 73 74 20 6d 61 63 68 69 |. On mo|st machi|
|00002af0| 6e 65 73 2c 20 74 68 69 | 73 20 63 61 6e 20 62 65 |nes, thi|s can be|
|00002b00| 20 64 65 66 69 6e 65 64 | 20 61 73 0a 7b 66 43 6f | defined| as.{fCo|
|00002b10| 64 65 7d 43 4f 4e 53 54 | 41 4e 54 5c 5f 50 20 28 |de}CONST|ANT\_P (|
|00002b20| 7b 66 53 74 72 6f 6e 67 | 7d 78 7b 66 7d 29 7b 66 |{fStrong|}x{f}){f|
|00002b30| 7d 2c 20 62 75 74 20 61 | 20 66 65 77 20 6d 61 63 |}, but a| few mac|
|00002b40| 68 69 6e 65 73 20 61 72 | 65 20 6d 6f 72 65 20 72 |hines ar|e more r|
|00002b50| 65 73 74 72 69 63 74 69 | 76 65 0a 69 6e 20 77 68 |estricti|ve.in wh|
|00002b60| 69 63 68 20 63 6f 6e 73 | 74 61 6e 74 20 61 64 64 |ich cons|tant add|
|00002b70| 72 65 73 73 65 73 20 61 | 72 65 20 73 75 70 70 6f |resses a|re suppo|
|00002b80| 72 74 65 64 2e 0a 0a 7b | 66 43 6f 64 65 7d 43 4f |rted...{|fCode}CO|
|00002b90| 4e 53 54 41 4e 54 5c 5f | 50 7b 66 7d 20 61 63 63 |NSTANT\_|P{f} acc|
|00002ba0| 65 70 74 73 20 69 6e 74 | 65 67 65 72 2d 76 61 6c |epts int|eger-val|
|00002bb0| 75 65 73 20 65 78 70 72 | 65 73 73 69 6f 6e 73 20 |ues expr|essions |
|00002bc0| 77 68 6f 73 65 20 76 61 | 6c 75 65 73 20 61 72 65 |whose va|lues are|
|00002bd0| 0a 6e 6f 74 20 65 78 70 | 6c 69 63 69 74 6c 79 20 |.not exp|licitly |
|00002be0| 6b 6e 6f 77 6e 2c 20 73 | 75 63 68 20 61 73 20 7b |known, s|uch as {|
|00002bf0| 66 43 6f 64 65 7d 73 79 | 6d 62 6f 6c 5c 5f 72 65 |fCode}sy|mbol\_re|
|00002c00| 66 7b 66 7d 2c 20 7b 66 | 43 6f 64 65 7d 6c 61 62 |f{f}, {f|Code}lab|
|00002c10| 65 6c 5c 5f 72 65 66 7b | 66 7d 2c 20 61 6e 64 0a |el\_ref{|f}, and.|
|00002c20| 7b 66 43 6f 64 65 7d 68 | 69 67 68 7b 66 7d 20 65 |{fCode}h|igh{f} e|
|00002c30| 78 70 72 65 73 73 69 6f | 6e 73 20 61 6e 64 20 7b |xpressio|ns and {|
|00002c40| 66 43 6f 64 65 7d 63 6f | 6e 73 74 7b 66 7d 20 61 |fCode}co|nst{f} a|
|00002c50| 72 69 74 68 6d 65 74 69 | 63 20 65 78 70 72 65 73 |rithmeti|c expres|
|00002c60| 73 69 6f 6e 73 2c 20 69 | 6e 0a 61 64 64 69 74 69 |sions, i|n.additi|
|00002c70| 6f 6e 20 74 6f 20 7b 66 | 43 6f 64 65 7d 63 6f 6e |on to {f|Code}con|
|00002c80| 73 74 5c 5f 69 6e 74 7b | 66 7d 20 61 6e 64 20 7b |st\_int{|f} and {|
|00002c90| 66 43 6f 64 65 7d 63 6f | 6e 73 74 5c 5f 64 6f 75 |fCode}co|nst\_dou|
|00002ca0| 62 6c 65 7b 66 7d 20 65 | 78 70 72 65 73 73 69 6f |ble{f} e|xpressio|
|00002cb0| 6e 73 2e 0a 0a 23 49 6e | 64 65 6e 74 0a 7b 66 43 |ns...#In|dent.{fC|
|00002cc0| 6f 64 65 7d 4d 41 58 5c | 5f 52 45 47 53 5c 5f 50 |ode}MAX\|_REGS\_P|
|00002cd0| 45 52 5c 5f 41 44 44 52 | 45 53 53 7b 66 7d 0a 23 |ER\_ADDR|ESS{f}.#|
|00002ce0| 49 6e 64 65 6e 74 20 2b | 34 0a 41 20 6e 75 6d 62 |Indent +|4.A numb|
|00002cf0| 65 72 2c 20 74 68 65 20 | 6d 61 78 69 6d 75 6d 20 |er, the |maximum |
|00002d00| 6e 75 6d 62 65 72 20 6f | 66 20 72 65 67 69 73 74 |number o|f regist|
|00002d10| 65 72 73 20 74 68 61 74 | 20 63 61 6e 20 61 70 70 |ers that| can app|
|00002d20| 65 61 72 20 69 6e 20 61 | 20 76 61 6c 69 64 0a 6d |ear in a| valid.m|
|00002d30| 65 6d 6f 72 79 20 61 64 | 64 72 65 73 73 2e 20 20 |emory ad|dress. |
|00002d40| 4e 6f 74 65 20 74 68 61 | 74 20 69 74 20 69 73 20 |Note tha|t it is |
|00002d50| 75 70 20 74 6f 20 79 6f | 75 20 74 6f 20 73 70 65 |up to yo|u to spe|
|00002d60| 63 69 66 79 20 61 20 76 | 61 6c 75 65 20 65 71 75 |cify a v|alue equ|
|00002d70| 61 6c 20 74 6f 0a 74 68 | 65 20 6d 61 78 69 6d 75 |al to.th|e maximu|
|00002d80| 6d 20 6e 75 6d 62 65 72 | 20 74 68 61 74 20 7b 66 |m number| that {f|
|00002d90| 43 6f 64 65 7d 47 4f 5c | 5f 49 46 5c 5f 4c 45 47 |Code}GO\|_IF\_LEG|
|00002da0| 49 54 49 4d 41 54 45 5c | 5f 41 44 44 52 45 53 53 |ITIMATE\|_ADDRESS|
|00002db0| 7b 66 7d 20 77 6f 75 6c | 64 20 65 76 65 72 0a 61 |{f} woul|d ever.a|
|00002dc0| 63 63 65 70 74 2e 0a 0a | 23 49 6e 64 65 6e 74 0a |ccept...|#Indent.|
|00002dd0| 7b 66 43 6f 64 65 7d 47 | 4f 5c 5f 49 46 5c 5f 4c |{fCode}G|O\_IF\_L|
|00002de0| 45 47 49 54 49 4d 41 54 | 45 5c 5f 41 44 44 52 45 |EGITIMAT|E\_ADDRE|
|00002df0| 53 53 20 28 7b 66 53 74 | 72 6f 6e 67 7d 6d 6f 64 |SS ({fSt|rong}mod|
|00002e00| 65 7b 66 7d 2c 20 7b 66 | 53 74 72 6f 6e 67 7d 78 |e{f}, {f|Strong}x|
|00002e10| 7b 66 7d 2c 20 7b 66 53 | 74 72 6f 6e 67 7d 6c 61 |{f}, {fS|trong}la|
|00002e20| 62 65 6c 7b 66 7d 29 7b | 66 7d 0a 23 49 6e 64 65 |bel{f}){|f}.#Inde|
|00002e30| 6e 74 20 2b 34 0a 41 20 | 43 20 63 6f 6d 70 6f 75 |nt +4.A |C compou|
|00002e40| 6e 64 20 73 74 61 74 65 | 6d 65 6e 74 20 77 69 74 |nd state|ment wit|
|00002e50| 68 20 61 20 63 6f 6e 64 | 69 74 69 6f 6e 61 6c 20 |h a cond|itional |
|00002e60| 7b 66 43 6f 64 65 7d 67 | 6f 74 6f 20 7b 66 53 74 |{fCode}g|oto {fSt|
|00002e70| 72 6f 6e 67 7d 6c 61 62 | 65 6c 7b 66 7d 3b 7b 66 |rong}lab|el{f};{f|
|00002e80| 7d 0a 65 78 65 63 75 74 | 65 64 20 69 66 20 7b 66 |}.execut|ed if {f|
|00002e90| 53 74 72 6f 6e 67 7d 78 | 7b 66 7d 20 28 61 6e 20 |Strong}x|{f} (an |
|00002ea0| 52 54 58 29 20 69 73 20 | 61 20 6c 65 67 69 74 69 |RTX) is |a legiti|
|00002eb0| 6d 61 74 65 20 6d 65 6d | 6f 72 79 20 61 64 64 72 |mate mem|ory addr|
|00002ec0| 65 73 73 20 6f 6e 20 74 | 68 65 0a 74 61 72 67 65 |ess on t|he.targe|
|00002ed0| 74 20 6d 61 63 68 69 6e | 65 20 66 6f 72 20 61 20 |t machin|e for a |
|00002ee0| 6d 65 6d 6f 72 79 20 6f | 70 65 72 61 6e 64 20 6f |memory o|perand o|
|00002ef0| 66 20 6d 6f 64 65 20 7b | 66 53 74 72 6f 6e 67 7d |f mode {|fStrong}|
|00002f00| 6d 6f 64 65 7b 66 7d 2e | 0a 0a 49 74 20 75 73 75 |mode{f}.|..It usu|
|00002f10| 61 6c 6c 79 20 70 61 79 | 73 20 74 6f 20 64 65 66 |ally pay|s to def|
|00002f20| 69 6e 65 20 73 65 76 65 | 72 61 6c 20 73 69 6d 70 |ine seve|ral simp|
|00002f30| 6c 65 72 20 6d 61 63 72 | 6f 73 20 74 6f 20 73 65 |ler macr|os to se|
|00002f40| 72 76 65 20 61 73 0a 73 | 75 62 72 6f 75 74 69 6e |rve as.s|ubroutin|
|00002f50| 65 73 20 66 6f 72 20 74 | 68 69 73 20 6f 6e 65 2e |es for t|his one.|
|00002f60| 20 20 4f 74 68 65 72 77 | 69 73 65 20 69 74 20 6d | Otherw|ise it m|
|00002f70| 61 79 20 62 65 20 74 6f | 6f 20 63 6f 6d 70 6c 69 |ay be to|o compli|
|00002f80| 63 61 74 65 64 20 74 6f | 0a 75 6e 64 65 72 73 74 |cated to|.underst|
|00002f90| 61 6e 64 2e 0a 0a 54 68 | 69 73 20 6d 61 63 72 6f |and...Th|is macro|
|00002fa0| 20 6d 75 73 74 20 65 78 | 69 73 74 20 69 6e 20 74 | must ex|ist in t|
|00002fb0| 77 6f 20 76 61 72 69 61 | 6e 74 73 3a 20 61 20 73 |wo varia|nts: a s|
|00002fc0| 74 72 69 63 74 20 76 61 | 72 69 61 6e 74 20 61 6e |trict va|riant an|
|00002fd0| 64 20 61 0a 6e 6f 6e 2d | 73 74 72 69 63 74 20 6f |d a.non-|strict o|
|00002fe0| 6e 65 2e 20 20 54 68 65 | 20 73 74 72 69 63 74 20 |ne. The| strict |
|00002ff0| 76 61 72 69 61 6e 74 20 | 69 73 20 75 73 65 64 20 |variant |is used |
|00003000| 69 6e 20 74 68 65 20 72 | 65 6c 6f 61 64 20 70 61 |in the r|eload pa|
|00003010| 73 73 2e 20 20 49 74 0a | 6d 75 73 74 20 62 65 20 |ss. It.|must be |
|00003020| 64 65 66 69 6e 65 64 20 | 73 6f 20 74 68 61 74 20 |defined |so that |
|00003030| 61 6e 79 20 70 73 65 75 | 64 6f 2d 72 65 67 69 73 |any pseu|do-regis|
|00003040| 74 65 72 20 74 68 61 74 | 20 68 61 73 20 6e 6f 74 |ter that| has not|
|00003050| 20 62 65 65 6e 0a 61 6c | 6c 6f 63 61 74 65 64 20 | been.al|located |
|00003060| 61 20 68 61 72 64 20 72 | 65 67 69 73 74 65 72 20 |a hard r|egister |
|00003070| 69 73 20 63 6f 6e 73 69 | 64 65 72 65 64 20 61 20 |is consi|dered a |
|00003080| 6d 65 6d 6f 72 79 20 72 | 65 66 65 72 65 6e 63 65 |memory r|eference|
|00003090| 2e 20 20 49 6e 0a 63 6f | 6e 74 65 78 74 73 20 77 |. In.co|ntexts w|
|000030a0| 68 65 72 65 20 73 6f 6d | 65 20 6b 69 6e 64 20 6f |here som|e kind o|
|000030b0| 66 20 72 65 67 69 73 74 | 65 72 20 69 73 20 72 65 |f regist|er is re|
|000030c0| 71 75 69 72 65 64 2c 20 | 61 20 70 73 65 75 64 6f |quired, |a pseudo|
|000030d0| 2d 72 65 67 69 73 74 65 | 72 0a 77 69 74 68 20 6e |-registe|r.with n|
|000030e0| 6f 20 68 61 72 64 20 72 | 65 67 69 73 74 65 72 20 |o hard r|egister |
|000030f0| 6d 75 73 74 20 62 65 20 | 72 65 6a 65 63 74 65 64 |must be |rejected|
|00003100| 2e 0a 0a 54 68 65 20 6e | 6f 6e 2d 73 74 72 69 63 |...The n|on-stric|
|00003110| 74 20 76 61 72 69 61 6e | 74 20 69 73 20 75 73 65 |t varian|t is use|
|00003120| 64 20 69 6e 20 6f 74 68 | 65 72 20 70 61 73 73 65 |d in oth|er passe|
|00003130| 73 2e 20 20 49 74 20 6d | 75 73 74 20 62 65 20 64 |s. It m|ust be d|
|00003140| 65 66 69 6e 65 64 20 74 | 6f 0a 61 63 63 65 70 74 |efined t|o.accept|
|00003150| 20 61 6c 6c 20 70 73 65 | 75 64 6f 2d 72 65 67 69 | all pse|udo-regi|
|00003160| 73 74 65 72 73 20 69 6e | 20 65 76 65 72 79 20 63 |sters in| every c|
|00003170| 6f 6e 74 65 78 74 20 77 | 68 65 72 65 20 73 6f 6d |ontext w|here som|
|00003180| 65 20 6b 69 6e 64 20 6f | 66 0a 72 65 67 69 73 74 |e kind o|f.regist|
|00003190| 65 72 20 69 73 20 72 65 | 71 75 69 72 65 64 2e 0a |er is re|quired..|
|000031a0| 0a 43 6f 6d 70 69 6c 65 | 72 20 73 6f 75 72 63 65 |.Compile|r source|
|000031b0| 20 66 69 6c 65 73 20 74 | 68 61 74 20 77 61 6e 74 | files t|hat want|
|000031c0| 20 74 6f 20 75 73 65 20 | 74 68 65 20 73 74 72 69 | to use |the stri|
|000031d0| 63 74 20 76 61 72 69 61 | 6e 74 20 6f 66 20 74 68 |ct varia|nt of th|
|000031e0| 69 73 0a 6d 61 63 72 6f | 20 64 65 66 69 6e 65 20 |is.macro| define |
|000031f0| 74 68 65 20 6d 61 63 72 | 6f 20 7b 66 43 6f 64 65 |the macr|o {fCode|
|00003200| 7d 52 45 47 5c 5f 4f 4b | 5c 5f 53 54 52 49 43 54 |}REG\_OK|\_STRICT|
|00003210| 7b 66 7d 2e 20 20 59 6f | 75 20 73 68 6f 75 6c 64 |{f}. Yo|u should|
|00003220| 20 75 73 65 20 61 6e 0a | 7b 66 43 6f 64 65 7d 5c | use an.|{fCode}\|
|00003230| 23 69 66 64 65 66 20 52 | 45 47 5c 5f 4f 4b 5c 5f |#ifdef R|EG\_OK\_|
|00003240| 53 54 52 49 43 54 7b 66 | 7d 20 63 6f 6e 64 69 74 |STRICT{f|} condit|
|00003250| 69 6f 6e 61 6c 20 74 6f | 20 64 65 66 69 6e 65 20 |ional to| define |
|00003260| 74 68 65 20 73 74 72 69 | 63 74 20 76 61 72 69 61 |the stri|ct varia|
|00003270| 6e 74 0a 69 6e 20 74 68 | 61 74 20 63 61 73 65 20 |nt.in th|at case |
|00003280| 61 6e 64 20 74 68 65 20 | 6e 6f 6e 2d 73 74 72 69 |and the |non-stri|
|00003290| 63 74 20 76 61 72 69 61 | 6e 74 20 6f 74 68 65 72 |ct varia|nt other|
|000032a0| 77 69 73 65 2e 0a 0a 53 | 75 62 72 6f 75 74 69 6e |wise...S|ubroutin|
|000032b0| 65 73 20 74 6f 20 63 68 | 65 63 6b 20 66 6f 72 20 |es to ch|eck for |
|000032c0| 61 63 63 65 70 74 61 62 | 6c 65 20 72 65 67 69 73 |acceptab|le regis|
|000032d0| 74 65 72 73 20 66 6f 72 | 20 76 61 72 69 6f 75 73 |ters for| various|
|000032e0| 20 70 75 72 70 6f 73 65 | 73 20 28 6f 6e 65 0a 66 | purpose|s (one.f|
|000032f0| 6f 72 20 62 61 73 65 20 | 72 65 67 69 73 74 65 72 |or base |register|
|00003300| 73 2c 20 6f 6e 65 20 66 | 6f 72 20 69 6e 64 65 78 |s, one f|or index|
|00003310| 20 72 65 67 69 73 74 65 | 72 73 2c 20 61 6e 64 20 | registe|rs, and |
|00003320| 73 6f 20 6f 6e 29 20 61 | 72 65 20 74 79 70 69 63 |so on) a|re typic|
|00003330| 61 6c 6c 79 0a 61 6d 6f | 6e 67 20 74 68 65 20 73 |ally.amo|ng the s|
|00003340| 75 62 72 6f 75 74 69 6e | 65 73 20 75 73 65 64 20 |ubroutin|es used |
|00003350| 74 6f 20 64 65 66 69 6e | 65 20 7b 66 43 6f 64 65 |to defin|e {fCode|
|00003360| 7d 47 4f 5c 5f 49 46 5c | 5f 4c 45 47 49 54 49 4d |}GO\_IF\|_LEGITIM|
|00003370| 41 54 45 5c 5f 41 44 44 | 52 45 53 53 7b 66 7d 2e |ATE\_ADD|RESS{f}.|
|00003380| 0a 54 68 65 6e 20 6f 6e | 6c 79 20 74 68 65 73 65 |.Then on|ly these|
|00003390| 20 73 75 62 72 6f 75 74 | 69 6e 65 20 6d 61 63 72 | subrout|ine macr|
|000033a0| 6f 73 20 6e 65 65 64 20 | 68 61 76 65 20 74 77 6f |os need |have two|
|000033b0| 20 76 61 72 69 61 6e 74 | 73 3b 20 74 68 65 20 68 | variant|s; the h|
|000033c0| 69 67 68 65 72 0a 6c 65 | 76 65 6c 73 20 6f 66 20 |igher.le|vels of |
|000033d0| 6d 61 63 72 6f 73 20 6d | 61 79 20 62 65 20 74 68 |macros m|ay be th|
|000033e0| 65 20 73 61 6d 65 20 77 | 68 65 74 68 65 72 20 73 |e same w|hether s|
|000033f0| 74 72 69 63 74 20 6f 72 | 20 6e 6f 74 2e 0a 0a 4e |trict or| not...N|
|00003400| 6f 72 6d 61 6c 6c 79 2c | 20 63 6f 6e 73 74 61 6e |ormally,| constan|
|00003410| 74 20 61 64 64 72 65 73 | 73 65 73 20 77 68 69 63 |t addres|ses whic|
|00003420| 68 20 61 72 65 20 74 68 | 65 20 73 75 6d 20 6f 66 |h are th|e sum of|
|00003430| 20 61 20 7b 66 43 6f 64 | 65 7d 73 79 6d 62 6f 6c | a {fCod|e}symbol|
|00003440| 5c 5f 72 65 66 7b 66 7d | 0a 61 6e 64 20 61 6e 20 |\_ref{f}|.and an |
|00003450| 69 6e 74 65 67 65 72 20 | 61 72 65 20 73 74 6f 72 |integer |are stor|
|00003460| 65 64 20 69 6e 73 69 64 | 65 20 61 20 7b 66 43 6f |ed insid|e a {fCo|
|00003470| 64 65 7d 63 6f 6e 73 74 | 7b 66 7d 20 52 54 58 20 |de}const|{f} RTX |
|00003480| 74 6f 20 6d 61 72 6b 20 | 74 68 65 6d 20 61 73 0a |to mark |them as.|
|00003490| 63 6f 6e 73 74 61 6e 74 | 2e 20 20 54 68 65 72 65 |constant|. There|
|000034a0| 66 6f 72 65 2c 20 74 68 | 65 72 65 20 69 73 20 6e |fore, th|ere is n|
|000034b0| 6f 20 6e 65 65 64 20 74 | 6f 20 72 65 63 6f 67 6e |o need t|o recogn|
|000034c0| 69 7a 65 20 73 75 63 68 | 20 73 75 6d 73 0a 73 70 |ize such| sums.sp|
|000034d0| 65 63 69 66 69 63 61 6c | 6c 79 20 61 73 20 6c 65 |ecifical|ly as le|
|000034e0| 67 69 74 69 6d 61 74 65 | 20 61 64 64 72 65 73 73 |gitimate| address|
|000034f0| 65 73 2e 20 20 4e 6f 72 | 6d 61 6c 6c 79 20 79 6f |es. Nor|mally yo|
|00003500| 75 20 77 6f 75 6c 64 20 | 73 69 6d 70 6c 79 0a 72 |u would |simply.r|
|00003510| 65 63 6f 67 6e 69 7a 65 | 20 61 6e 79 20 7b 66 43 |ecognize| any {fC|
|00003520| 6f 64 65 7d 63 6f 6e 73 | 74 7b 66 7d 20 61 73 20 |ode}cons|t{f} as |
|00003530| 6c 65 67 69 74 69 6d 61 | 74 65 2e 0a 0a 55 73 75 |legitima|te...Usu|
|00003540| 61 6c 6c 79 20 7b 66 43 | 6f 64 65 7d 50 52 49 4e |ally {fC|ode}PRIN|
|00003550| 54 5c 5f 4f 50 45 52 41 | 4e 44 5c 5f 41 44 44 52 |T\_OPERA|ND\_ADDR|
|00003560| 45 53 53 7b 66 7d 20 69 | 73 20 6e 6f 74 20 70 72 |ESS{f} i|s not pr|
|00003570| 65 70 61 72 65 64 20 74 | 6f 20 68 61 6e 64 6c 65 |epared t|o handle|
|00003580| 20 63 6f 6e 73 74 61 6e | 74 0a 73 75 6d 73 20 74 | constan|t.sums t|
|00003590| 68 61 74 20 61 72 65 20 | 6e 6f 74 20 6d 61 72 6b |hat are |not mark|
|000035a0| 65 64 20 77 69 74 68 20 | 20 7b 66 43 6f 64 65 7d |ed with | {fCode}|
|000035b0| 63 6f 6e 73 74 7b 66 7d | 2e 20 20 49 74 20 61 73 |const{f}|. It as|
|000035c0| 73 75 6d 65 73 20 74 68 | 61 74 20 61 20 6e 61 6b |sumes th|at a nak|
|000035d0| 65 64 0a 7b 66 43 6f 64 | 65 7d 70 6c 75 73 7b 66 |ed.{fCod|e}plus{f|
|000035e0| 7d 20 69 6e 64 69 63 61 | 74 65 73 20 69 6e 64 65 |} indica|tes inde|
|000035f0| 78 69 6e 67 2e 20 20 49 | 66 20 73 6f 2c 20 74 68 |xing. I|f so, th|
|00003600| 65 6e 20 79 6f 75 20 7b | 66 45 6d 70 68 61 73 69 |en you {|fEmphasi|
|00003610| 73 7d 6d 75 73 74 7b 66 | 7d 20 72 65 6a 65 63 74 |s}must{f|} reject|
|00003620| 20 73 75 63 68 0a 6e 61 | 6b 65 64 20 63 6f 6e 73 | such.na|ked cons|
|00003630| 74 61 6e 74 20 73 75 6d | 73 20 61 73 20 69 6c 6c |tant sum|s as ill|
|00003640| 65 67 69 74 69 6d 61 74 | 65 20 61 64 64 72 65 73 |egitimat|e addres|
|00003650| 73 65 73 2c 20 73 6f 20 | 74 68 61 74 20 6e 6f 6e |ses, so |that non|
|00003660| 65 20 6f 66 20 74 68 65 | 6d 20 77 69 6c 6c 0a 62 |e of the|m will.b|
|00003670| 65 20 67 69 76 65 6e 20 | 74 6f 20 7b 66 43 6f 64 |e given |to {fCod|
|00003680| 65 7d 50 52 49 4e 54 5c | 5f 4f 50 45 52 41 4e 44 |e}PRINT\|_OPERAND|
|00003690| 5c 5f 41 44 44 52 45 53 | 53 7b 66 7d 2e 0a 0a 4f |\_ADDRES|S{f}...O|
|000036a0| 6e 20 73 6f 6d 65 20 6d | 61 63 68 69 6e 65 73 2c |n some m|achines,|
|000036b0| 20 77 68 65 74 68 65 72 | 20 61 20 73 79 6d 62 6f | whether| a symbo|
|000036c0| 6c 69 63 20 61 64 64 72 | 65 73 73 20 69 73 20 6c |lic addr|ess is l|
|000036d0| 65 67 69 74 69 6d 61 74 | 65 20 64 65 70 65 6e 64 |egitimat|e depend|
|000036e0| 73 20 6f 6e 0a 74 68 65 | 20 73 65 63 74 69 6f 6e |s on.the| section|
|000036f0| 20 74 68 61 74 20 74 68 | 65 20 61 64 64 72 65 73 | that th|e addres|
|00003700| 73 20 72 65 66 65 72 73 | 20 74 6f 2e 20 20 4f 6e |s refers| to. On|
|00003710| 20 74 68 65 73 65 20 6d | 61 63 68 69 6e 65 73 2c | these m|achines,|
|00003720| 20 64 65 66 69 6e 65 20 | 74 68 65 0a 6d 61 63 72 | define |the.macr|
|00003730| 6f 20 7b 66 43 6f 64 65 | 7d 45 4e 43 4f 44 45 5c |o {fCode|}ENCODE\|
|00003740| 5f 53 45 43 54 49 4f 4e | 5c 5f 49 4e 46 4f 7b 66 |_SECTION|\_INFO{f|
|00003750| 7d 20 74 6f 20 73 74 6f | 72 65 20 74 68 65 20 69 |} to sto|re the i|
|00003760| 6e 66 6f 72 6d 61 74 69 | 6f 6e 20 69 6e 74 6f 20 |nformati|on into |
|00003770| 74 68 65 0a 7b 66 43 6f | 64 65 7d 73 79 6d 62 6f |the.{fCo|de}symbo|
|00003780| 6c 5c 5f 72 65 66 7b 66 | 7d 2c 20 61 6e 64 20 74 |l\_ref{f|}, and t|
|00003790| 68 65 6e 20 63 68 65 63 | 6b 20 66 6f 72 20 69 74 |hen chec|k for it|
|000037a0| 20 68 65 72 65 2e 20 20 | 57 68 65 6e 20 79 6f 75 | here. |When you|
|000037b0| 20 73 65 65 20 61 0a 7b | 66 43 6f 64 65 7d 63 6f | see a.{|fCode}co|
|000037c0| 6e 73 74 7b 66 7d 2c 20 | 79 6f 75 20 77 69 6c 6c |nst{f}, |you will|
|000037d0| 20 68 61 76 65 20 74 6f | 20 6c 6f 6f 6b 20 69 6e | have to| look in|
|000037e0| 73 69 64 65 20 69 74 20 | 74 6f 20 66 69 6e 64 20 |side it |to find |
|000037f0| 74 68 65 0a 7b 66 43 6f | 64 65 7d 73 79 6d 62 6f |the.{fCo|de}symbo|
|00003800| 6c 5c 5f 72 65 66 7b 66 | 7d 20 69 6e 20 6f 72 64 |l\_ref{f|} in ord|
|00003810| 65 72 20 74 6f 20 64 65 | 74 65 72 6d 69 6e 65 20 |er to de|termine |
|00003820| 74 68 65 20 73 65 63 74 | 69 6f 6e 2e 20 20 5c 2a |the sect|ion. \*|
|00003830| 4e 6f 74 65 20 3c 41 73 | 73 65 6d 62 6c 65 72 20 |Note <As|sembler |
|00003840| 46 6f 72 6d 61 74 3d 3e | 41 73 73 65 6d 62 6c 65 |Format=>|Assemble|
|00003850| 72 46 3e 2e 0a 0a 54 68 | 65 20 62 65 73 74 20 77 |rF>...Th|e best w|
|00003860| 61 79 20 74 6f 20 6d 6f | 64 69 66 79 20 74 68 65 |ay to mo|dify the|
|00003870| 20 6e 61 6d 65 20 73 74 | 72 69 6e 67 20 69 73 20 | name st|ring is |
|00003880| 62 79 20 61 64 64 69 6e | 67 20 74 65 78 74 20 74 |by addin|g text t|
|00003890| 6f 20 74 68 65 0a 62 65 | 67 69 6e 6e 69 6e 67 2c |o the.be|ginning,|
|000038a0| 20 77 69 74 68 20 73 75 | 69 74 61 62 6c 65 20 70 | with su|itable p|
|000038b0| 75 6e 63 74 75 61 74 69 | 6f 6e 20 74 6f 20 70 72 |unctuati|on to pr|
|000038c0| 65 76 65 6e 74 20 61 6e | 79 20 61 6d 62 69 67 75 |event an|y ambigu|
|000038d0| 69 74 79 2e 20 20 41 6c | 6c 6f 63 61 74 65 0a 74 |ity. Al|locate.t|
|000038e0| 68 65 20 6e 65 77 20 6e | 61 6d 65 20 69 6e 20 7b |he new n|ame in {|
|000038f0| 66 43 6f 64 65 7d 73 61 | 76 65 61 62 6c 65 5c 5f |fCode}sa|veable\_|
|00003900| 6f 62 73 74 61 63 6b 7b | 66 7d 2e 20 20 59 6f 75 |obstack{|f}. You|
|00003910| 20 77 69 6c 6c 20 68 61 | 76 65 20 74 6f 20 6d 6f | will ha|ve to mo|
|00003920| 64 69 66 79 0a 7b 66 43 | 6f 64 65 7d 41 53 4d 5c |dify.{fC|ode}ASM\|
|00003930| 5f 4f 55 54 50 55 54 5c | 5f 4c 41 42 45 4c 52 45 |_OUTPUT\|_LABELRE|
|00003940| 46 7b 66 7d 20 74 6f 20 | 72 65 6d 6f 76 65 20 61 |F{f} to |remove a|
|00003950| 6e 64 20 64 65 63 6f 64 | 65 20 74 68 65 20 61 64 |nd decod|e the ad|
|00003960| 64 65 64 20 74 65 78 74 | 20 61 6e 64 0a 6f 75 74 |ded text| and.out|
|00003970| 70 75 74 20 74 68 65 20 | 6e 61 6d 65 20 61 63 63 |put the |name acc|
|00003980| 6f 72 64 69 6e 67 6c 79 | 2c 20 61 6e 64 20 64 65 |ordingly|, and de|
|00003990| 66 69 6e 65 20 7b 66 43 | 6f 64 65 7d 53 54 52 49 |fine {fC|ode}STRI|
|000039a0| 50 5c 5f 4e 41 4d 45 5c | 5f 45 4e 43 4f 44 49 4e |P\_NAME\|_ENCODIN|
|000039b0| 47 7b 66 7d 20 74 6f 0a | 61 63 63 65 73 73 20 74 |G{f} to.|access t|
|000039c0| 68 65 20 6f 72 69 67 69 | 6e 61 6c 20 6e 61 6d 65 |he origi|nal name|
|000039d0| 20 73 74 72 69 6e 67 2e | 0a 0a 59 6f 75 20 63 61 | string.|..You ca|
|000039e0| 6e 20 63 68 65 63 6b 20 | 74 68 65 20 69 6e 66 6f |n check |the info|
|000039f0| 72 6d 61 74 69 6f 6e 20 | 73 74 6f 72 65 64 20 68 |rmation |stored h|
|00003a00| 65 72 65 20 69 6e 74 6f | 20 74 68 65 20 7b 66 43 |ere into| the {fC|
|00003a10| 6f 64 65 7d 73 79 6d 62 | 6f 6c 5c 5f 72 65 66 7b |ode}symb|ol\_ref{|
|00003a20| 66 7d 20 69 6e 0a 74 68 | 65 20 64 65 66 69 6e 69 |f} in.th|e defini|
|00003a30| 74 69 6f 6e 73 20 6f 66 | 20 74 68 65 20 6d 61 63 |tions of| the mac|
|00003a40| 72 6f 73 20 7b 66 43 6f | 64 65 7d 47 4f 5c 5f 49 |ros {fCo|de}GO\_I|
|00003a50| 46 5c 5f 4c 45 47 49 54 | 49 4d 41 54 45 5c 5f 41 |F\_LEGIT|IMATE\_A|
|00003a60| 44 44 52 45 53 53 7b 66 | 7d 20 61 6e 64 0a 7b 66 |DDRESS{f|} and.{f|
|00003a70| 43 6f 64 65 7d 50 52 49 | 4e 54 5c 5f 4f 50 45 52 |Code}PRI|NT\_OPER|
|00003a80| 41 4e 44 5c 5f 41 44 44 | 52 45 53 53 7b 66 7d 2e |AND\_ADD|RESS{f}.|
|00003a90| 0a 0a 23 49 6e 64 65 6e | 74 0a 7b 66 43 6f 64 65 |..#Inden|t.{fCode|
|00003aa0| 7d 52 45 47 5c 5f 4f 4b | 5c 5f 46 4f 52 5c 5f 42 |}REG\_OK|\_FOR\_B|
|00003ab0| 41 53 45 5c 5f 50 20 28 | 7b 66 53 74 72 6f 6e 67 |ASE\_P (|{fStrong|
|00003ac0| 7d 78 7b 66 7d 29 7b 66 | 7d 0a 23 49 6e 64 65 6e |}x{f}){f|}.#Inden|
|00003ad0| 74 20 2b 34 0a 41 20 43 | 20 65 78 70 72 65 73 73 |t +4.A C| express|
|00003ae0| 69 6f 6e 20 74 68 61 74 | 20 69 73 20 6e 6f 6e 7a |ion that| is nonz|
|00003af0| 65 72 6f 20 69 66 20 7b | 66 53 74 72 6f 6e 67 7d |ero if {|fStrong}|
|00003b00| 78 7b 66 7d 20 28 61 73 | 73 75 6d 65 64 20 74 6f |x{f} (as|sumed to|
|00003b10| 20 62 65 20 61 20 7b 66 | 43 6f 64 65 7d 72 65 67 | be a {f|Code}reg|
|00003b20| 7b 66 7d 0a 52 54 58 29 | 20 69 73 20 76 61 6c 69 |{f}.RTX)| is vali|
|00003b30| 64 20 66 6f 72 20 75 73 | 65 20 61 73 20 61 20 62 |d for us|e as a b|
|00003b40| 61 73 65 20 72 65 67 69 | 73 74 65 72 2e 20 20 46 |ase regi|ster. F|
|00003b50| 6f 72 20 68 61 72 64 20 | 72 65 67 69 73 74 65 72 |or hard |register|
|00003b60| 73 2c 20 69 74 0a 73 68 | 6f 75 6c 64 20 61 6c 77 |s, it.sh|ould alw|
|00003b70| 61 79 73 20 61 63 63 65 | 70 74 20 74 68 6f 73 65 |ays acce|pt those|
|00003b80| 20 77 68 69 63 68 20 74 | 68 65 20 68 61 72 64 77 | which t|he hardw|
|00003b90| 61 72 65 20 70 65 72 6d | 69 74 73 20 61 6e 64 20 |are perm|its and |
|00003ba0| 72 65 6a 65 63 74 20 74 | 68 65 0a 6f 74 68 65 72 |reject t|he.other|
|00003bb0| 73 2e 20 20 57 68 65 74 | 68 65 72 20 74 68 65 20 |s. Whet|her the |
|00003bc0| 6d 61 63 72 6f 20 61 63 | 63 65 70 74 73 20 6f 72 |macro ac|cepts or|
|00003bd0| 20 72 65 6a 65 63 74 73 | 20 70 73 65 75 64 6f 20 | rejects| pseudo |
|00003be0| 72 65 67 69 73 74 65 72 | 73 20 6d 75 73 74 20 62 |register|s must b|
|00003bf0| 65 0a 63 6f 6e 74 72 6f | 6c 6c 65 64 20 62 79 20 |e.contro|lled by |
|00003c00| 7b 66 43 6f 64 65 7d 52 | 45 47 5c 5f 4f 4b 5c 5f |{fCode}R|EG\_OK\_|
|00003c10| 53 54 52 49 43 54 7b 66 | 7d 20 61 73 20 64 65 73 |STRICT{f|} as des|
|00003c20| 63 72 69 62 65 64 20 61 | 62 6f 76 65 2e 20 20 54 |cribed a|bove. T|
|00003c30| 68 69 73 20 75 73 75 61 | 6c 6c 79 0a 72 65 71 75 |his usua|lly.requ|
|00003c40| 69 72 65 73 20 74 77 6f | 20 76 61 72 69 61 6e 74 |ires two| variant|
|00003c50| 20 64 65 66 69 6e 69 74 | 69 6f 6e 73 2c 20 6f 66 | definit|ions, of|
|00003c60| 20 77 68 69 63 68 20 7b | 66 43 6f 64 65 7d 52 45 | which {|fCode}RE|
|00003c70| 47 5c 5f 4f 4b 5c 5f 53 | 54 52 49 43 54 7b 66 7d |G\_OK\_S|TRICT{f}|
|00003c80| 0a 63 6f 6e 74 72 6f 6c | 73 20 74 68 65 20 6f 6e |.control|s the on|
|00003c90| 65 20 61 63 74 75 61 6c | 6c 79 20 75 73 65 64 2e |e actual|ly used.|
|00003ca0| 0a 0a 23 49 6e 64 65 6e | 74 0a 7b 66 43 6f 64 65 |..#Inden|t.{fCode|
|00003cb0| 7d 52 45 47 5c 5f 4f 4b | 5c 5f 46 4f 52 5c 5f 49 |}REG\_OK|\_FOR\_I|
|00003cc0| 4e 44 45 58 5c 5f 50 20 | 28 7b 66 53 74 72 6f 6e |NDEX\_P |({fStron|
|00003cd0| 67 7d 78 7b 66 7d 29 7b | 66 7d 0a 23 49 6e 64 65 |g}x{f}){|f}.#Inde|
|00003ce0| 6e 74 20 2b 34 0a 41 20 | 43 20 65 78 70 72 65 73 |nt +4.A |C expres|
|00003cf0| 73 69 6f 6e 20 74 68 61 | 74 20 69 73 20 6e 6f 6e |sion tha|t is non|
|00003d00| 7a 65 72 6f 20 69 66 20 | 7b 66 53 74 72 6f 6e 67 |zero if |{fStrong|
|00003d10| 7d 78 7b 66 7d 20 28 61 | 73 73 75 6d 65 64 20 74 |}x{f} (a|ssumed t|
|00003d20| 6f 20 62 65 20 61 20 7b | 66 43 6f 64 65 7d 72 65 |o be a {|fCode}re|
|00003d30| 67 7b 66 7d 0a 52 54 58 | 29 20 69 73 20 76 61 6c |g{f}.RTX|) is val|
|00003d40| 69 64 20 66 6f 72 20 75 | 73 65 20 61 73 20 61 6e |id for u|se as an|
|00003d50| 20 69 6e 64 65 78 20 72 | 65 67 69 73 74 65 72 2e | index r|egister.|
|00003d60| 0a 0a 54 68 65 20 64 69 | 66 66 65 72 65 6e 63 65 |..The di|fference|
|00003d70| 20 62 65 74 77 65 65 6e | 20 61 6e 20 69 6e 64 65 | between| an inde|
|00003d80| 78 20 72 65 67 69 73 74 | 65 72 20 61 6e 64 20 61 |x regist|er and a|
|00003d90| 20 62 61 73 65 20 72 65 | 67 69 73 74 65 72 20 69 | base re|gister i|
|00003da0| 73 20 74 68 61 74 0a 74 | 68 65 20 69 6e 64 65 78 |s that.t|he index|
|00003db0| 20 72 65 67 69 73 74 65 | 72 20 6d 61 79 20 62 65 | registe|r may be|
|00003dc0| 20 73 63 61 6c 65 64 2e | 20 20 49 66 20 61 6e 20 | scaled.| If an |
|00003dd0| 61 64 64 72 65 73 73 20 | 69 6e 76 6f 6c 76 65 73 |address |involves|
|00003de0| 20 74 68 65 20 73 75 6d | 20 6f 66 0a 74 77 6f 20 | the sum| of.two |
|00003df0| 72 65 67 69 73 74 65 72 | 73 2c 20 6e 65 69 74 68 |register|s, neith|
|00003e00| 65 72 20 6f 6e 65 20 6f | 66 20 74 68 65 6d 20 73 |er one o|f them s|
|00003e10| 63 61 6c 65 64 2c 20 74 | 68 65 6e 20 65 69 74 68 |caled, t|hen eith|
|00003e20| 65 72 20 6f 6e 65 20 6d | 61 79 20 62 65 0a 6c 61 |er one m|ay be.la|
|00003e30| 62 65 6c 65 64 20 74 68 | 65 20 60 60 62 61 73 65 |beled th|e ``base|
|00003e40| 27 27 20 61 6e 64 20 74 | 68 65 20 6f 74 68 65 72 |'' and t|he other|
|00003e50| 20 74 68 65 20 60 60 69 | 6e 64 65 78 27 27 3b 20 | the ``i|ndex''; |
|00003e60| 62 75 74 20 77 68 69 63 | 68 65 76 65 72 0a 6c 61 |but whic|hever.la|
|00003e70| 62 65 6c 69 6e 67 20 69 | 73 20 75 73 65 64 20 6d |beling i|s used m|
|00003e80| 75 73 74 20 66 69 74 20 | 74 68 65 20 6d 61 63 68 |ust fit |the mach|
|00003e90| 69 6e 65 27 73 20 63 6f | 6e 73 74 72 61 69 6e 74 |ine's co|nstraint|
|00003ea0| 73 20 6f 66 20 77 68 69 | 63 68 20 72 65 67 69 73 |s of whi|ch regis|
|00003eb0| 74 65 72 73 0a 6d 61 79 | 20 73 65 72 76 65 20 69 |ters.may| serve i|
|00003ec0| 6e 20 65 61 63 68 20 63 | 61 70 61 63 69 74 79 2e |n each c|apacity.|
|00003ed0| 20 20 54 68 65 20 63 6f | 6d 70 69 6c 65 72 20 77 | The co|mpiler w|
|00003ee0| 69 6c 6c 20 74 72 79 20 | 62 6f 74 68 20 6c 61 62 |ill try |both lab|
|00003ef0| 65 6c 69 6e 67 73 2c 0a | 6c 6f 6f 6b 69 6e 67 20 |elings,.|looking |
|00003f00| 66 6f 72 20 6f 6e 65 20 | 74 68 61 74 20 69 73 20 |for one |that is |
|00003f10| 76 61 6c 69 64 2c 20 61 | 6e 64 20 77 69 6c 6c 20 |valid, a|nd will |
|00003f20| 72 65 6c 6f 61 64 20 6f | 6e 65 20 6f 72 20 62 6f |reload o|ne or bo|
|00003f30| 74 68 20 72 65 67 69 73 | 74 65 72 73 0a 6f 6e 6c |th regis|ters.onl|
|00003f40| 79 20 69 66 20 6e 65 69 | 74 68 65 72 20 6c 61 62 |y if nei|ther lab|
|00003f50| 65 6c 69 6e 67 20 77 6f | 72 6b 73 2e 0a 0a 23 49 |eling wo|rks...#I|
|00003f60| 6e 64 65 6e 74 0a 7b 66 | 43 6f 64 65 7d 4c 45 47 |ndent.{f|Code}LEG|
|00003f70| 49 54 49 4d 49 5a 45 5c | 5f 41 44 44 52 45 53 53 |ITIMIZE\|_ADDRESS|
|00003f80| 20 28 7b 66 53 74 72 6f | 6e 67 7d 78 7b 66 7d 2c | ({fStro|ng}x{f},|
|00003f90| 20 7b 66 53 74 72 6f 6e | 67 7d 6f 6c 64 78 7b 66 | {fStron|g}oldx{f|
|00003fa0| 7d 2c 20 7b 66 53 74 72 | 6f 6e 67 7d 6d 6f 64 65 |}, {fStr|ong}mode|
|00003fb0| 7b 66 7d 2c 20 7b 66 53 | 74 72 6f 6e 67 7d 77 69 |{f}, {fS|trong}wi|
|00003fc0| 6e 7b 66 7d 29 7b 66 7d | 0a 23 49 6e 64 65 6e 74 |n{f}){f}|.#Indent|
|00003fd0| 20 2b 34 0a 41 20 43 20 | 63 6f 6d 70 6f 75 6e 64 | +4.A C |compound|
|00003fe0| 20 73 74 61 74 65 6d 65 | 6e 74 20 74 68 61 74 20 | stateme|nt that |
|00003ff0| 61 74 74 65 6d 70 74 73 | 20 74 6f 20 72 65 70 6c |attempts| to repl|
|00004000| 61 63 65 20 7b 66 53 74 | 72 6f 6e 67 7d 78 7b 66 |ace {fSt|rong}x{f|
|00004010| 7d 20 77 69 74 68 20 61 | 20 76 61 6c 69 64 0a 6d |} with a| valid.m|
|00004020| 65 6d 6f 72 79 20 61 64 | 64 72 65 73 73 20 66 6f |emory ad|dress fo|
|00004030| 72 20 61 6e 20 6f 70 65 | 72 61 6e 64 20 6f 66 20 |r an ope|rand of |
|00004040| 6d 6f 64 65 20 7b 66 53 | 74 72 6f 6e 67 7d 6d 6f |mode {fS|trong}mo|
|00004050| 64 65 7b 66 7d 2e 20 20 | 7b 66 53 74 72 6f 6e 67 |de{f}. |{fStrong|
|00004060| 7d 77 69 6e 7b 66 7d 20 | 77 69 6c 6c 20 62 65 20 |}win{f} |will be |
|00004070| 61 0a 43 20 73 74 61 74 | 65 6d 65 6e 74 20 6c 61 |a.C stat|ement la|
|00004080| 62 65 6c 20 65 6c 73 65 | 77 68 65 72 65 20 69 6e |bel else|where in|
|00004090| 20 74 68 65 20 63 6f 64 | 65 3b 20 74 68 65 20 6d | the cod|e; the m|
|000040a0| 61 63 72 6f 20 64 65 66 | 69 6e 69 74 69 6f 6e 20 |acro def|inition |
|000040b0| 6d 61 79 20 75 73 65 0a | 0a 23 57 72 61 70 20 6f |may use.|.#Wrap o|
|000040c0| 66 66 0a 23 66 43 6f 64 | 65 0a 47 4f 5c 5f 49 46 |ff.#fCod|e.GO\_IF|
|000040d0| 5c 5f 4c 45 47 49 54 49 | 4d 41 54 45 5c 5f 41 44 |\_LEGITI|MATE\_AD|
|000040e0| 44 52 45 53 53 20 28 7b | 66 53 74 72 6f 6e 67 7d |DRESS ({|fStrong}|
|000040f0| 6d 6f 64 65 7b 66 7d 2c | 20 7b 66 53 74 72 6f 6e |mode{f},| {fStron|
|00004100| 67 7d 78 7b 66 7d 2c 20 | 7b 66 53 74 72 6f 6e 67 |g}x{f}, |{fStrong|
|00004110| 7d 77 69 6e 7b 66 7d 29 | 3b 0a 23 66 0a 23 57 72 |}win{f})|;.#f.#Wr|
|00004120| 61 70 20 6f 6e 0a 0a 74 | 6f 20 61 76 6f 69 64 20 |ap on..t|o avoid |
|00004130| 66 75 72 74 68 65 72 20 | 70 72 6f 63 65 73 73 69 |further |processi|
|00004140| 6e 67 20 69 66 20 74 68 | 65 20 61 64 64 72 65 73 |ng if th|e addres|
|00004150| 73 20 68 61 73 20 62 65 | 63 6f 6d 65 20 6c 65 67 |s has be|come leg|
|00004160| 69 74 69 6d 61 74 65 2e | 0a 0a 7b 66 53 74 72 6f |itimate.|..{fStro|
|00004170| 6e 67 7d 78 7b 66 7d 20 | 77 69 6c 6c 20 61 6c 77 |ng}x{f} |will alw|
|00004180| 61 79 73 20 62 65 20 74 | 68 65 20 72 65 73 75 6c |ays be t|he resul|
|00004190| 74 20 6f 66 20 61 20 63 | 61 6c 6c 20 74 6f 20 7b |t of a c|all to {|
|000041a0| 66 43 6f 64 65 7d 62 72 | 65 61 6b 5c 5f 6f 75 74 |fCode}br|eak\_out|
|000041b0| 5c 5f 6d 65 6d 6f 72 79 | 5c 5f 72 65 66 73 7b 66 |\_memory|\_refs{f|
|000041c0| 7d 2c 0a 61 6e 64 20 7b | 66 53 74 72 6f 6e 67 7d |},.and {|fStrong}|
|000041d0| 6f 6c 64 78 7b 66 7d 20 | 77 69 6c 6c 20 62 65 20 |oldx{f} |will be |
|000041e0| 74 68 65 20 6f 70 65 72 | 61 6e 64 20 74 68 61 74 |the oper|and that|
|000041f0| 20 77 61 73 20 67 69 76 | 65 6e 20 74 6f 20 74 68 | was giv|en to th|
|00004200| 61 74 20 66 75 6e 63 74 | 69 6f 6e 20 74 6f 20 70 |at funct|ion to p|
|00004210| 72 6f 64 75 63 65 0a 7b | 66 53 74 72 6f 6e 67 7d |roduce.{|fStrong}|
|00004220| 78 7b 66 7d 2e 0a 0a 54 | 68 65 20 63 6f 64 65 20 |x{f}...T|he code |
|00004230| 67 65 6e 65 72 61 74 65 | 64 20 62 79 20 74 68 69 |generate|d by thi|
|00004240| 73 20 6d 61 63 72 6f 20 | 73 68 6f 75 6c 64 20 6e |s macro |should n|
|00004250| 6f 74 20 61 6c 74 65 72 | 20 74 68 65 20 73 75 62 |ot alter| the sub|
|00004260| 73 74 72 75 63 74 75 72 | 65 20 6f 66 0a 7b 66 53 |structur|e of.{fS|
|00004270| 74 72 6f 6e 67 7d 78 7b | 66 7d 2e 20 20 49 66 20 |trong}x{|f}. If |
|00004280| 69 74 20 74 72 61 6e 73 | 66 6f 72 6d 73 20 7b 66 |it trans|forms {f|
|00004290| 53 74 72 6f 6e 67 7d 78 | 7b 66 7d 20 69 6e 74 6f |Strong}x|{f} into|
|000042a0| 20 61 20 6d 6f 72 65 20 | 6c 65 67 69 74 69 6d 61 | a more |legitima|
|000042b0| 74 65 20 66 6f 72 6d 2c | 20 69 74 0a 73 68 6f 75 |te form,| it.shou|
|000042c0| 6c 64 20 61 73 73 69 67 | 6e 20 7b 66 53 74 72 6f |ld assig|n {fStro|
|000042d0| 6e 67 7d 78 7b 66 7d 20 | 28 77 68 69 63 68 20 77 |ng}x{f} |(which w|
|000042e0| 69 6c 6c 20 61 6c 77 61 | 79 73 20 62 65 20 61 20 |ill alwa|ys be a |
|000042f0| 43 20 76 61 72 69 61 62 | 6c 65 29 20 61 20 6e 65 |C variab|le) a ne|
|00004300| 77 20 76 61 6c 75 65 2e | 0a 0a 49 74 20 69 73 20 |w value.|..It is |
|00004310| 6e 6f 74 20 6e 65 63 65 | 73 73 61 72 79 20 66 6f |not nece|ssary fo|
|00004320| 72 20 74 68 69 73 20 6d | 61 63 72 6f 20 74 6f 20 |r this m|acro to |
|00004330| 63 6f 6d 65 20 75 70 20 | 77 69 74 68 20 61 20 6c |come up |with a l|
|00004340| 65 67 69 74 69 6d 61 74 | 65 0a 61 64 64 72 65 73 |egitimat|e.addres|
|00004350| 73 2e 20 20 54 68 65 20 | 63 6f 6d 70 69 6c 65 72 |s. The |compiler|
|00004360| 20 68 61 73 20 73 74 61 | 6e 64 61 72 64 20 77 61 | has sta|ndard wa|
|00004370| 79 73 20 6f 66 20 64 6f | 69 6e 67 20 73 6f 20 69 |ys of do|ing so i|
|00004380| 6e 20 61 6c 6c 20 63 61 | 73 65 73 2e 20 20 49 6e |n all ca|ses. In|
|00004390| 0a 66 61 63 74 2c 20 69 | 74 20 69 73 20 73 61 66 |.fact, i|t is saf|
|000043a0| 65 20 66 6f 72 20 74 68 | 69 73 20 6d 61 63 72 6f |e for th|is macro|
|000043b0| 20 74 6f 20 64 6f 20 6e | 6f 74 68 69 6e 67 2e 20 | to do n|othing. |
|000043c0| 20 42 75 74 20 6f 66 74 | 65 6e 20 61 0a 6d 61 63 | But oft|en a.mac|
|000043d0| 68 69 6e 65 2d 64 65 70 | 65 6e 64 65 6e 74 20 73 |hine-dep|endent s|
|000043e0| 74 72 61 74 65 67 79 20 | 63 61 6e 20 67 65 6e 65 |trategy |can gene|
|000043f0| 72 61 74 65 20 62 65 74 | 74 65 72 20 63 6f 64 65 |rate bet|ter code|
|00004400| 2e 0a 0a 23 49 6e 64 65 | 6e 74 0a 7b 66 43 6f 64 |...#Inde|nt.{fCod|
|00004410| 65 7d 47 4f 5c 5f 49 46 | 5c 5f 4d 4f 44 45 5c 5f |e}GO\_IF|\_MODE\_|
|00004420| 44 45 50 45 4e 44 45 4e | 54 5c 5f 41 44 44 52 45 |DEPENDEN|T\_ADDRE|
|00004430| 53 53 20 28 7b 66 53 74 | 72 6f 6e 67 7d 61 64 64 |SS ({fSt|rong}add|
|00004440| 72 7b 66 7d 2c 20 7b 66 | 53 74 72 6f 6e 67 7d 6c |r{f}, {f|Strong}l|
|00004450| 61 62 65 6c 7b 66 7d 29 | 7b 66 7d 0a 23 49 6e 64 |abel{f})|{f}.#Ind|
|00004460| 65 6e 74 20 2b 34 0a 41 | 20 43 20 73 74 61 74 65 |ent +4.A| C state|
|00004470| 6d 65 6e 74 20 6f 72 20 | 63 6f 6d 70 6f 75 6e 64 |ment or |compound|
|00004480| 20 73 74 61 74 65 6d 65 | 6e 74 20 77 69 74 68 20 | stateme|nt with |
|00004490| 61 20 63 6f 6e 64 69 74 | 69 6f 6e 61 6c 20 7b 66 |a condit|ional {f|
|000044a0| 43 6f 64 65 7d 67 6f 74 | 6f 0a 7b 66 53 74 72 6f |Code}got|o.{fStro|
|000044b0| 6e 67 7d 6c 61 62 65 6c | 7b 66 7d 3b 7b 66 7d 20 |ng}label|{f};{f} |
|000044c0| 65 78 65 63 75 74 65 64 | 20 69 66 20 6d 65 6d 6f |executed| if memo|
|000044d0| 72 79 20 61 64 64 72 65 | 73 73 20 7b 66 53 74 72 |ry addre|ss {fStr|
|000044e0| 6f 6e 67 7d 78 7b 66 7d | 20 28 61 6e 20 52 54 58 |ong}x{f}| (an RTX|
|000044f0| 29 20 63 61 6e 20 68 61 | 76 65 0a 64 69 66 66 65 |) can ha|ve.diffe|
|00004500| 72 65 6e 74 20 6d 65 61 | 6e 69 6e 67 73 20 64 65 |rent mea|nings de|
|00004510| 70 65 6e 64 69 6e 67 20 | 6f 6e 20 74 68 65 20 6d |pending |on the m|
|00004520| 61 63 68 69 6e 65 20 6d | 6f 64 65 20 6f 66 20 74 |achine m|ode of t|
|00004530| 68 65 20 6d 65 6d 6f 72 | 79 0a 72 65 66 65 72 65 |he memor|y.refere|
|00004540| 6e 63 65 20 69 74 20 69 | 73 20 75 73 65 64 20 66 |nce it i|s used f|
|00004550| 6f 72 20 6f 72 20 69 66 | 20 74 68 65 20 61 64 64 |or or if| the add|
|00004560| 72 65 73 73 20 69 73 20 | 76 61 6c 69 64 20 66 6f |ress is |valid fo|
|00004570| 72 20 73 6f 6d 65 20 6d | 6f 64 65 73 0a 62 75 74 |r some m|odes.but|
|00004580| 20 6e 6f 74 20 6f 74 68 | 65 72 73 2e 0a 0a 41 75 | not oth|ers...Au|
|00004590| 74 6f 69 6e 63 72 65 6d | 65 6e 74 20 61 6e 64 20 |toincrem|ent and |
|000045a0| 61 75 74 6f 64 65 63 72 | 65 6d 65 6e 74 20 61 64 |autodecr|ement ad|
|000045b0| 64 72 65 73 73 65 73 20 | 74 79 70 69 63 61 6c 6c |dresses |typicall|
|000045c0| 79 20 68 61 76 65 20 6d | 6f 64 65 2d 64 65 70 65 |y have m|ode-depe|
|000045d0| 6e 64 65 6e 74 0a 65 66 | 66 65 63 74 73 20 62 65 |ndent.ef|fects be|
|000045e0| 63 61 75 73 65 20 74 68 | 65 20 61 6d 6f 75 6e 74 |cause th|e amount|
|000045f0| 20 6f 66 20 74 68 65 20 | 69 6e 63 72 65 6d 65 6e | of the |incremen|
|00004600| 74 20 6f 72 20 64 65 63 | 72 65 6d 65 6e 74 20 69 |t or dec|rement i|
|00004610| 73 20 74 68 65 20 73 69 | 7a 65 0a 6f 66 20 74 68 |s the si|ze.of th|
|00004620| 65 20 6f 70 65 72 61 6e | 64 20 62 65 69 6e 67 20 |e operan|d being |
|00004630| 61 64 64 72 65 73 73 65 | 64 2e 20 20 53 6f 6d 65 |addresse|d. Some|
|00004640| 20 6d 61 63 68 69 6e 65 | 73 20 68 61 76 65 20 6f | machine|s have o|
|00004650| 74 68 65 72 20 6d 6f 64 | 65 2d 64 65 70 65 6e 64 |ther mod|e-depend|
|00004660| 65 6e 74 0a 61 64 64 72 | 65 73 73 65 73 2e 20 20 |ent.addr|esses. |
|00004670| 4d 61 6e 79 20 52 49 53 | 43 20 6d 61 63 68 69 6e |Many RIS|C machin|
|00004680| 65 73 20 68 61 76 65 20 | 6e 6f 20 6d 6f 64 65 2d |es have |no mode-|
|00004690| 64 65 70 65 6e 64 65 6e | 74 20 61 64 64 72 65 73 |dependen|t addres|
|000046a0| 73 65 73 2e 0a 0a 59 6f | 75 20 6d 61 79 20 61 73 |ses...Yo|u may as|
|000046b0| 73 75 6d 65 20 74 68 61 | 74 20 7b 66 53 74 72 6f |sume tha|t {fStro|
|000046c0| 6e 67 7d 61 64 64 72 7b | 66 7d 20 69 73 20 61 20 |ng}addr{|f} is a |
|000046d0| 76 61 6c 69 64 20 61 64 | 64 72 65 73 73 20 66 6f |valid ad|dress fo|
|000046e0| 72 20 74 68 65 20 6d 61 | 63 68 69 6e 65 2e 0a 0a |r the ma|chine...|
|000046f0| 23 49 6e 64 65 6e 74 0a | 7b 66 43 6f 64 65 7d 4c |#Indent.|{fCode}L|
|00004700| 45 47 49 54 49 4d 41 54 | 45 5c 5f 43 4f 4e 53 54 |EGITIMAT|E\_CONST|
|00004710| 41 4e 54 5c 5f 50 20 28 | 7b 66 53 74 72 6f 6e 67 |ANT\_P (|{fStrong|
|00004720| 7d 78 7b 66 7d 29 7b 66 | 7d 0a 23 49 6e 64 65 6e |}x{f}){f|}.#Inden|
|00004730| 74 20 2b 34 0a 41 20 43 | 20 65 78 70 72 65 73 73 |t +4.A C| express|
|00004740| 69 6f 6e 20 74 68 61 74 | 20 69 73 20 6e 6f 6e 7a |ion that| is nonz|
|00004750| 65 72 6f 20 69 66 20 7b | 66 53 74 72 6f 6e 67 7d |ero if {|fStrong}|
|00004760| 78 7b 66 7d 20 69 73 20 | 61 20 6c 65 67 69 74 69 |x{f} is |a legiti|
|00004770| 6d 61 74 65 20 63 6f 6e | 73 74 61 6e 74 20 66 6f |mate con|stant fo|
|00004780| 72 0a 61 6e 20 69 6d 6d | 65 64 69 61 74 65 20 6f |r.an imm|ediate o|
|00004790| 70 65 72 61 6e 64 20 6f | 6e 20 74 68 65 20 74 61 |perand o|n the ta|
|000047a0| 72 67 65 74 20 6d 61 63 | 68 69 6e 65 2e 20 20 59 |rget mac|hine. Y|
|000047b0| 6f 75 20 63 61 6e 20 61 | 73 73 75 6d 65 20 74 68 |ou can a|ssume th|
|000047c0| 61 74 0a 7b 66 53 74 72 | 6f 6e 67 7d 78 7b 66 7d |at.{fStr|ong}x{f}|
|000047d0| 20 73 61 74 69 73 66 69 | 65 73 20 7b 66 43 6f 64 | satisfi|es {fCod|
|000047e0| 65 7d 43 4f 4e 53 54 41 | 4e 54 5c 5f 50 7b 66 7d |e}CONSTA|NT\_P{f}|
|000047f0| 2c 20 73 6f 20 79 6f 75 | 20 6e 65 65 64 20 6e 6f |, so you| need no|
|00004800| 74 20 63 68 65 63 6b 20 | 74 68 69 73 2e 20 20 49 |t check |this. I|
|00004810| 6e 20 66 61 63 74 2c 0a | 7b 66 45 6d 70 68 61 73 |n fact,.|{fEmphas|
|00004820| 69 73 7d 31 7b 66 7d 20 | 69 73 20 61 20 73 75 69 |is}1{f} |is a sui|
|00004830| 74 61 62 6c 65 20 64 65 | 66 69 6e 69 74 69 6f 6e |table de|finition|
|00004840| 20 66 6f 72 20 74 68 69 | 73 20 6d 61 63 72 6f 20 | for thi|s macro |
|00004850| 6f 6e 20 6d 61 63 68 69 | 6e 65 73 20 77 68 65 72 |on machi|nes wher|
|00004860| 65 0a 61 6e 79 74 68 69 | 6e 67 20 7b 66 43 6f 64 |e.anythi|ng {fCod|
|00004870| 65 7d 43 4f 4e 53 54 41 | 4e 54 5c 5f 50 7b 66 7d |e}CONSTA|NT\_P{f}|
|00004880| 20 69 73 20 76 61 6c 69 | 64 2e 0a 0a 23 49 6e 64 | is vali|d...#Ind|
|00004890| 65 6e 74 0a 0a 00 00 00 | 44 41 54 41 3c 0f 00 00 |ent.....|DATA<...|
|000048a0| 41 67 67 72 65 67 61 74 | 65 20 52 65 74 75 72 6e |Aggregat|e Return|
|000048b0| 0a 50 72 65 76 69 6f 75 | 73 3a 20 3c 53 63 61 6c |.Previou|s: <Scal|
|000048c0| 61 72 20 52 65 74 75 72 | 6e 3d 3e 53 63 61 6c 61 |ar Retur|n=>Scala|
|000048d0| 72 52 65 74 75 3e 20 2a | 20 4e 65 78 74 3a 20 3c |rRetu> *| Next: <|
|000048e0| 43 61 6c 6c 65 72 20 53 | 61 76 65 73 3d 3e 43 61 |Caller S|aves=>Ca|
|000048f0| 6c 6c 65 72 53 61 76 65 | 3e 20 2a 20 55 70 3a 20 |llerSave|> * Up: |
|00004900| 3c 53 74 61 63 6b 20 61 | 6e 64 20 43 61 6c 6c 69 |<Stack a|nd Calli|
|00004910| 6e 67 3d 3e 53 74 61 63 | 6b 61 6e 64 43 61 3e 0a |ng=>Stac|kandCa>.|
|00004920| 0a 23 57 72 61 70 20 6f | 6e 0a 7b 66 48 34 7d 48 |.#Wrap o|n.{fH4}H|
|00004930| 6f 77 20 4c 61 72 67 65 | 20 56 61 6c 75 65 73 20 |ow Large| Values |
|00004940| 41 72 65 20 52 65 74 75 | 72 6e 65 64 7b 66 7d 0a |Are Retu|rned{f}.|
|00004950| 0a 57 68 65 6e 20 61 20 | 66 75 6e 63 74 69 6f 6e |.When a |function|
|00004960| 20 76 61 6c 75 65 27 73 | 20 6d 6f 64 65 20 69 73 | value's| mode is|
|00004970| 20 7b 66 43 6f 64 65 7d | 42 4c 4b 6d 6f 64 65 7b | {fCode}|BLKmode{|
|00004980| 66 7d 20 28 61 6e 64 20 | 69 6e 20 73 6f 6d 65 20 |f} (and |in some |
|00004990| 6f 74 68 65 72 0a 63 61 | 73 65 73 29 2c 20 74 68 |other.ca|ses), th|
|000049a0| 65 20 76 61 6c 75 65 20 | 69 73 20 6e 6f 74 20 72 |e value |is not r|
|000049b0| 65 74 75 72 6e 65 64 20 | 61 63 63 6f 72 64 69 6e |eturned |accordin|
|000049c0| 67 20 74 6f 20 7b 66 43 | 6f 64 65 7d 46 55 4e 43 |g to {fC|ode}FUNC|
|000049d0| 54 49 4f 4e 5c 5f 56 41 | 4c 55 45 7b 66 7d 0a 28 |TION\_VA|LUE{f}.(|
|000049e0| 5c 2a 4e 6f 74 65 20 3c | 53 63 61 6c 61 72 20 52 |\*Note <|Scalar R|
|000049f0| 65 74 75 72 6e 3d 3e 53 | 63 61 6c 61 72 52 65 74 |eturn=>S|calarRet|
|00004a00| 75 3e 29 2e 20 20 49 6e | 73 74 65 61 64 2c 20 74 |u>). In|stead, t|
|00004a10| 68 65 20 63 61 6c 6c 65 | 72 20 70 61 73 73 65 73 |he calle|r passes|
|00004a20| 20 74 68 65 20 61 64 64 | 72 65 73 73 20 6f 66 20 | the add|ress of |
|00004a30| 61 0a 62 6c 6f 63 6b 20 | 6f 66 20 6d 65 6d 6f 72 |a.block |of memor|
|00004a40| 79 20 69 6e 20 77 68 69 | 63 68 20 74 68 65 20 76 |y in whi|ch the v|
|00004a50| 61 6c 75 65 20 73 68 6f | 75 6c 64 20 62 65 20 73 |alue sho|uld be s|
|00004a60| 74 6f 72 65 64 2e 20 20 | 54 68 69 73 20 61 64 64 |tored. |This add|
|00004a70| 72 65 73 73 0a 69 73 20 | 63 61 6c 6c 65 64 20 74 |ress.is |called t|
|00004a80| 68 65 20 7b 66 55 6e 64 | 65 72 6c 69 6e 65 7d 73 |he {fUnd|erline}s|
|00004a90| 74 72 75 63 74 75 72 65 | 20 76 61 6c 75 65 20 61 |tructure| value a|
|00004aa0| 64 64 72 65 73 73 7b 66 | 7d 2e 0a 0a 54 68 69 73 |ddress{f|}...This|
|00004ab0| 20 73 65 63 74 69 6f 6e | 20 64 65 73 63 72 69 62 | section| describ|
|00004ac0| 65 73 20 68 6f 77 20 74 | 6f 20 63 6f 6e 74 72 6f |es how t|o contro|
|00004ad0| 6c 20 72 65 74 75 72 6e | 69 6e 67 20 73 74 72 75 |l return|ing stru|
|00004ae0| 63 74 75 72 65 20 76 61 | 6c 75 65 73 20 69 6e 0a |cture va|lues in.|
|00004af0| 6d 65 6d 6f 72 79 2e 0a | 0a 23 49 6e 64 65 6e 74 |memory..|.#Indent|
|00004b00| 20 2b 34 0a 23 49 6e 64 | 65 6e 74 0a 7b 66 43 6f | +4.#Ind|ent.{fCo|
|00004b10| 64 65 7d 52 45 54 55 52 | 4e 5c 5f 49 4e 5c 5f 4d |de}RETUR|N\_IN\_M|
|00004b20| 45 4d 4f 52 59 20 28 7b | 66 53 74 72 6f 6e 67 7d |EMORY ({|fStrong}|
|00004b30| 74 79 70 65 7b 66 7d 29 | 7b 66 7d 0a 23 49 6e 64 |type{f})|{f}.#Ind|
|00004b40| 65 6e 74 20 2b 34 0a 41 | 20 43 20 65 78 70 72 65 |ent +4.A| C expre|
|00004b50| 73 73 69 6f 6e 20 77 68 | 69 63 68 20 63 61 6e 20 |ssion wh|ich can |
|00004b60| 69 6e 68 69 62 69 74 20 | 74 68 65 20 72 65 74 75 |inhibit |the retu|
|00004b70| 72 6e 69 6e 67 20 6f 66 | 20 63 65 72 74 61 69 6e |rning of| certain|
|00004b80| 20 66 75 6e 63 74 69 6f | 6e 0a 76 61 6c 75 65 73 | functio|n.values|
|00004b90| 20 69 6e 20 72 65 67 69 | 73 74 65 72 73 2c 20 62 | in regi|sters, b|
|00004ba0| 61 73 65 64 20 6f 6e 20 | 74 68 65 20 74 79 70 65 |ased on |the type|
|00004bb0| 20 6f 66 20 76 61 6c 75 | 65 2e 20 20 41 20 6e 6f | of valu|e. A no|
|00004bc0| 6e 7a 65 72 6f 20 76 61 | 6c 75 65 20 73 61 79 73 |nzero va|lue says|
|00004bd0| 0a 74 6f 20 72 65 74 75 | 72 6e 20 74 68 65 20 66 |.to retu|rn the f|
|00004be0| 75 6e 63 74 69 6f 6e 20 | 76 61 6c 75 65 20 69 6e |unction |value in|
|00004bf0| 20 6d 65 6d 6f 72 79 2c | 20 6a 75 73 74 20 61 73 | memory,| just as|
|00004c00| 20 6c 61 72 67 65 20 73 | 74 72 75 63 74 75 72 65 | large s|tructure|
|00004c10| 73 20 61 72 65 0a 61 6c | 77 61 79 73 20 72 65 74 |s are.al|ways ret|
|00004c20| 75 72 6e 65 64 2e 20 20 | 48 65 72 65 20 7b 66 53 |urned. |Here {fS|
|00004c30| 74 72 6f 6e 67 7d 74 79 | 70 65 7b 66 7d 20 77 69 |trong}ty|pe{f} wi|
|00004c40| 6c 6c 20 62 65 20 61 20 | 43 20 65 78 70 72 65 73 |ll be a |C expres|
|00004c50| 73 69 6f 6e 20 6f 66 20 | 74 79 70 65 0a 7b 66 43 |sion of |type.{fC|
|00004c60| 6f 64 65 7d 74 72 65 65 | 7b 66 7d 2c 20 72 65 70 |ode}tree|{f}, rep|
|00004c70| 72 65 73 65 6e 74 69 6e | 67 20 74 68 65 20 64 61 |resentin|g the da|
|00004c80| 74 61 20 74 79 70 65 20 | 6f 66 20 74 68 65 20 76 |ta type |of the v|
|00004c90| 61 6c 75 65 2e 0a 0a 4e | 6f 74 65 20 74 68 61 74 |alue...N|ote that|
|00004ca0| 20 76 61 6c 75 65 73 20 | 6f 66 20 6d 6f 64 65 20 | values |of mode |
|00004cb0| 7b 66 43 6f 64 65 7d 42 | 4c 4b 6d 6f 64 65 7b 66 |{fCode}B|LKmode{f|
|00004cc0| 7d 20 6d 75 73 74 20 62 | 65 20 65 78 70 6c 69 63 |} must b|e explic|
|00004cd0| 69 74 6c 79 20 68 61 6e | 64 6c 65 64 0a 62 79 20 |itly han|dled.by |
|00004ce0| 74 68 69 73 20 6d 61 63 | 72 6f 2e 20 20 41 6c 73 |this mac|ro. Als|
|00004cf0| 6f 2c 20 74 68 65 20 6f | 70 74 69 6f 6e 20 7b 66 |o, the o|ption {f|
|00004d00| 45 6d 70 68 61 73 69 73 | 7d 2d 66 70 63 63 2d 73 |Emphasis|}-fpcc-s|
|00004d10| 74 72 75 63 74 2d 72 65 | 74 75 72 6e 7b 66 7d 0a |truct-re|turn{f}.|
|00004d20| 74 61 6b 65 73 20 65 66 | 66 65 63 74 20 72 65 67 |takes ef|fect reg|
|00004d30| 61 72 64 6c 65 73 73 20 | 6f 66 20 74 68 69 73 20 |ardless |of this |
|00004d40| 6d 61 63 72 6f 2e 20 20 | 4f 6e 20 6d 6f 73 74 20 |macro. |On most |
|00004d50| 73 79 73 74 65 6d 73 2c | 20 69 74 20 69 73 0a 70 |systems,| it is.p|
|00004d60| 6f 73 73 69 62 6c 65 20 | 74 6f 20 6c 65 61 76 65 |ossible |to leave|
|00004d70| 20 74 68 65 20 6d 61 63 | 72 6f 20 75 6e 64 65 66 | the mac|ro undef|
|00004d80| 69 6e 65 64 3b 20 74 68 | 69 73 20 63 61 75 73 65 |ined; th|is cause|
|00004d90| 73 20 61 20 64 65 66 61 | 75 6c 74 0a 64 65 66 69 |s a defa|ult.defi|
|00004da0| 6e 69 74 69 6f 6e 20 74 | 6f 20 62 65 20 75 73 65 |nition t|o be use|
|00004db0| 64 2c 20 77 68 6f 73 65 | 20 76 61 6c 75 65 20 69 |d, whose| value i|
|00004dc0| 73 20 74 68 65 20 63 6f | 6e 73 74 61 6e 74 20 31 |s the co|nstant 1|
|00004dd0| 20 66 6f 72 20 7b 66 43 | 6f 64 65 7d 42 4c 4b 6d | for {fC|ode}BLKm|
|00004de0| 6f 64 65 7b 66 7d 0a 76 | 61 6c 75 65 73 2c 20 61 |ode{f}.v|alues, a|
|00004df0| 6e 64 20 30 20 6f 74 68 | 65 72 77 69 73 65 2e 0a |nd 0 oth|erwise..|
|00004e00| 0a 44 6f 20 6e 6f 74 20 | 75 73 65 20 74 68 69 73 |.Do not |use this|
|00004e10| 20 6d 61 63 72 6f 20 74 | 6f 20 69 6e 64 69 63 61 | macro t|o indica|
|00004e20| 74 65 20 74 68 61 74 20 | 73 74 72 75 63 74 75 72 |te that |structur|
|00004e30| 65 73 20 61 6e 64 20 75 | 6e 69 6f 6e 73 20 73 68 |es and u|nions sh|
|00004e40| 6f 75 6c 64 20 61 6c 77 | 61 79 73 0a 62 65 20 72 |ould alw|ays.be r|
|00004e50| 65 74 75 72 6e 65 64 20 | 69 6e 20 6d 65 6d 6f 72 |eturned |in memor|
|00004e60| 79 2e 20 20 59 6f 75 20 | 73 68 6f 75 6c 64 20 69 |y. You |should i|
|00004e70| 6e 73 74 65 61 64 20 75 | 73 65 20 7b 66 43 6f 64 |nstead u|se {fCod|
|00004e80| 65 7d 44 45 46 41 55 4c | 54 5c 5f 50 43 43 5c 5f |e}DEFAUL|T\_PCC\_|
|00004e90| 53 54 52 55 43 54 5c 5f | 52 45 54 55 52 4e 7b 66 |STRUCT\_|RETURN{f|
|00004ea0| 7d 0a 74 6f 20 69 6e 64 | 69 63 61 74 65 20 74 68 |}.to ind|icate th|
|00004eb0| 69 73 2e 0a 0a 23 49 6e | 64 65 6e 74 0a 7b 66 43 |is...#In|dent.{fC|
|00004ec0| 6f 64 65 7d 44 45 46 41 | 55 4c 54 5c 5f 50 43 43 |ode}DEFA|ULT\_PCC|
|00004ed0| 5c 5f 53 54 52 55 43 54 | 5c 5f 52 45 54 55 52 4e |\_STRUCT|\_RETURN|
|00004ee0| 7b 66 7d 0a 23 49 6e 64 | 65 6e 74 20 2b 34 0a 44 |{f}.#Ind|ent +4.D|
|00004ef0| 65 66 69 6e 65 20 74 68 | 69 73 20 6d 61 63 72 6f |efine th|is macro|
|00004f00| 20 74 6f 20 62 65 20 31 | 20 69 66 20 61 6c 6c 20 | to be 1| if all |
|00004f10| 73 74 72 75 63 74 75 72 | 65 20 61 6e 64 20 75 6e |structur|e and un|
|00004f20| 69 6f 6e 20 72 65 74 75 | 72 6e 20 76 61 6c 75 65 |ion retu|rn value|
|00004f30| 73 20 6d 75 73 74 20 62 | 65 0a 69 6e 20 6d 65 6d |s must b|e.in mem|
|00004f40| 6f 72 79 2e 20 20 53 69 | 6e 63 65 20 74 68 69 73 |ory. Si|nce this|
|00004f50| 20 72 65 73 75 6c 74 73 | 20 69 6e 20 73 6c 6f 77 | results| in slow|
|00004f60| 65 72 20 63 6f 64 65 2c | 20 74 68 69 73 20 73 68 |er code,| this sh|
|00004f70| 6f 75 6c 64 20 62 65 20 | 64 65 66 69 6e 65 64 0a |ould be |defined.|
|00004f80| 6f 6e 6c 79 20 69 66 20 | 6e 65 65 64 65 64 20 66 |only if |needed f|
|00004f90| 6f 72 20 63 6f 6d 70 61 | 74 69 62 69 6c 69 74 79 |or compa|tibility|
|00004fa0| 20 77 69 74 68 20 6f 74 | 68 65 72 20 63 6f 6d 70 | with ot|her comp|
|00004fb0| 69 6c 65 72 73 20 6f 72 | 20 77 69 74 68 20 61 6e |ilers or| with an|
|00004fc0| 20 41 42 49 2e 0a 49 66 | 20 79 6f 75 20 64 65 66 | ABI..If| you def|
|00004fd0| 69 6e 65 20 74 68 69 73 | 20 6d 61 63 72 6f 20 74 |ine this| macro t|
|00004fe0| 6f 20 62 65 20 30 2c 20 | 74 68 65 6e 20 74 68 65 |o be 0, |then the|
|00004ff0| 20 63 6f 6e 76 65 6e 74 | 69 6f 6e 73 20 75 73 65 | convent|ions use|
|00005000| 64 20 66 6f 72 20 73 74 | 72 75 63 74 75 72 65 0a |d for st|ructure.|
|00005010| 61 6e 64 20 75 6e 69 6f | 6e 20 72 65 74 75 72 6e |and unio|n return|
|00005020| 20 76 61 6c 75 65 73 20 | 61 72 65 20 64 65 63 69 | values |are deci|
|00005030| 64 65 64 20 62 79 20 74 | 68 65 20 7b 66 43 6f 64 |ded by t|he {fCod|
|00005040| 65 7d 52 45 54 55 52 4e | 5c 5f 49 4e 5c 5f 4d 45 |e}RETURN|\_IN\_ME|
|00005050| 4d 4f 52 59 7b 66 7d 20 | 6d 61 63 72 6f 2e 0a 0a |MORY{f} |macro...|
|00005060| 49 66 20 6e 6f 74 20 64 | 65 66 69 6e 65 64 2c 20 |If not d|efined, |
|00005070| 74 68 69 73 20 64 65 66 | 61 75 6c 74 73 20 74 6f |this def|aults to|
|00005080| 20 74 68 65 20 76 61 6c | 75 65 20 31 2e 0a 0a 23 | the val|ue 1...#|
|00005090| 49 6e 64 65 6e 74 0a 7b | 66 43 6f 64 65 7d 53 54 |Indent.{|fCode}ST|
|000050a0| 52 55 43 54 5c 5f 56 41 | 4c 55 45 5c 5f 52 45 47 |RUCT\_VA|LUE\_REG|
|000050b0| 4e 55 4d 7b 66 7d 0a 23 | 49 6e 64 65 6e 74 20 2b |NUM{f}.#|Indent +|
|000050c0| 34 0a 49 66 20 74 68 65 | 20 73 74 72 75 63 74 75 |4.If the| structu|
|000050d0| 72 65 20 76 61 6c 75 65 | 20 61 64 64 72 65 73 73 |re value| address|
|000050e0| 20 69 73 20 70 61 73 73 | 65 64 20 69 6e 20 61 20 | is pass|ed in a |
|000050f0| 72 65 67 69 73 74 65 72 | 2c 20 74 68 65 6e 0a 7b |register|, then.{|
|00005100| 66 43 6f 64 65 7d 53 54 | 52 55 43 54 5c 5f 56 41 |fCode}ST|RUCT\_VA|
|00005110| 4c 55 45 5c 5f 52 45 47 | 4e 55 4d 7b 66 7d 20 73 |LUE\_REG|NUM{f} s|
|00005120| 68 6f 75 6c 64 20 62 65 | 20 74 68 65 20 6e 75 6d |hould be| the num|
|00005130| 62 65 72 20 6f 66 20 74 | 68 61 74 20 72 65 67 69 |ber of t|hat regi|
|00005140| 73 74 65 72 2e 0a 0a 23 | 49 6e 64 65 6e 74 0a 7b |ster...#|Indent.{|
|00005150| 66 43 6f 64 65 7d 53 54 | 52 55 43 54 5c 5f 56 41 |fCode}ST|RUCT\_VA|
|00005160| 4c 55 45 7b 66 7d 0a 23 | 49 6e 64 65 6e 74 20 2b |LUE{f}.#|Indent +|
|00005170| 34 0a 49 66 20 74 68 65 | 20 73 74 72 75 63 74 75 |4.If the| structu|
|00005180| 72 65 20 76 61 6c 75 65 | 20 61 64 64 72 65 73 73 |re value| address|
|00005190| 20 69 73 20 6e 6f 74 20 | 70 61 73 73 65 64 20 69 | is not |passed i|
|000051a0| 6e 20 61 20 72 65 67 69 | 73 74 65 72 2c 20 64 65 |n a regi|ster, de|
|000051b0| 66 69 6e 65 0a 7b 66 43 | 6f 64 65 7d 53 54 52 55 |fine.{fC|ode}STRU|
|000051c0| 43 54 5c 5f 56 41 4c 55 | 45 7b 66 7d 20 61 73 20 |CT\_VALU|E{f} as |
|000051d0| 61 6e 20 65 78 70 72 65 | 73 73 69 6f 6e 20 72 65 |an expre|ssion re|
|000051e0| 74 75 72 6e 69 6e 67 20 | 61 6e 20 52 54 58 20 66 |turning |an RTX f|
|000051f0| 6f 72 20 74 68 65 20 70 | 6c 61 63 65 0a 77 68 65 |or the p|lace.whe|
|00005200| 72 65 20 74 68 65 20 61 | 64 64 72 65 73 73 20 69 |re the a|ddress i|
|00005210| 73 20 70 61 73 73 65 64 | 2e 20 20 49 66 20 69 74 |s passed|. If it|
|00005220| 20 72 65 74 75 72 6e 73 | 20 30 2c 20 74 68 65 20 | returns| 0, the |
|00005230| 61 64 64 72 65 73 73 20 | 69 73 20 70 61 73 73 65 |address |is passe|
|00005240| 64 20 61 73 0a 61 6e 20 | 60 60 69 6e 76 69 73 69 |d as.an |``invisi|
|00005250| 62 6c 65 27 27 20 66 69 | 72 73 74 20 61 72 67 75 |ble'' fi|rst argu|
|00005260| 6d 65 6e 74 2e 0a 0a 23 | 49 6e 64 65 6e 74 0a 7b |ment...#|Indent.{|
|00005270| 66 43 6f 64 65 7d 53 54 | 52 55 43 54 5c 5f 56 41 |fCode}ST|RUCT\_VA|
|00005280| 4c 55 45 5c 5f 49 4e 43 | 4f 4d 49 4e 47 5c 5f 52 |LUE\_INC|OMING\_R|
|00005290| 45 47 4e 55 4d 7b 66 7d | 0a 23 49 6e 64 65 6e 74 |EGNUM{f}|.#Indent|
|000052a0| 20 2b 34 0a 4f 6e 20 73 | 6f 6d 65 20 61 72 63 68 | +4.On s|ome arch|
|000052b0| 69 74 65 63 74 75 72 65 | 73 20 74 68 65 20 70 6c |itecture|s the pl|
|000052c0| 61 63 65 20 77 68 65 72 | 65 20 74 68 65 20 73 74 |ace wher|e the st|
|000052d0| 72 75 63 74 75 72 65 20 | 76 61 6c 75 65 20 61 64 |ructure |value ad|
|000052e0| 64 72 65 73 73 0a 69 73 | 20 66 6f 75 6e 64 20 62 |dress.is| found b|
|000052f0| 79 20 74 68 65 20 63 61 | 6c 6c 65 64 20 66 75 6e |y the ca|lled fun|
|00005300| 63 74 69 6f 6e 20 69 73 | 20 6e 6f 74 20 74 68 65 |ction is| not the|
|00005310| 20 73 61 6d 65 20 70 6c | 61 63 65 20 74 68 61 74 | same pl|ace that|
|00005320| 20 74 68 65 0a 63 61 6c | 6c 65 72 20 70 75 74 20 | the.cal|ler put |
|00005330| 69 74 2e 20 20 54 68 69 | 73 20 63 61 6e 20 62 65 |it. Thi|s can be|
|00005340| 20 64 75 65 20 74 6f 20 | 72 65 67 69 73 74 65 72 | due to |register|
|00005350| 20 77 69 6e 64 6f 77 73 | 2c 20 6f 72 20 69 74 20 | windows|, or it |
|00005360| 63 6f 75 6c 64 0a 62 65 | 20 62 65 63 61 75 73 65 |could.be| because|
|00005370| 20 74 68 65 20 66 75 6e | 63 74 69 6f 6e 20 70 72 | the fun|ction pr|
|00005380| 6f 6c 6f 67 75 65 20 6d | 6f 76 65 73 20 69 74 20 |ologue m|oves it |
|00005390| 74 6f 20 61 20 64 69 66 | 66 65 72 65 6e 74 20 70 |to a dif|ferent p|
|000053a0| 6c 61 63 65 2e 0a 0a 49 | 66 20 74 68 65 20 69 6e |lace...I|f the in|
|000053b0| 63 6f 6d 69 6e 67 20 6c | 6f 63 61 74 69 6f 6e 20 |coming l|ocation |
|000053c0| 6f 66 20 74 68 65 20 73 | 74 72 75 63 74 75 72 65 |of the s|tructure|
|000053d0| 20 76 61 6c 75 65 20 61 | 64 64 72 65 73 73 20 69 | value a|ddress i|
|000053e0| 73 20 69 6e 20 61 0a 72 | 65 67 69 73 74 65 72 2c |s in a.r|egister,|
|000053f0| 20 64 65 66 69 6e 65 20 | 74 68 69 73 20 6d 61 63 | define |this mac|
|00005400| 72 6f 20 61 73 20 74 68 | 65 20 72 65 67 69 73 74 |ro as th|e regist|
|00005410| 65 72 20 6e 75 6d 62 65 | 72 2e 0a 0a 23 49 6e 64 |er numbe|r...#Ind|
|00005420| 65 6e 74 0a 7b 66 43 6f | 64 65 7d 53 54 52 55 43 |ent.{fCo|de}STRUC|
|00005430| 54 5c 5f 56 41 4c 55 45 | 5c 5f 49 4e 43 4f 4d 49 |T\_VALUE|\_INCOMI|
|00005440| 4e 47 7b 66 7d 0a 23 49 | 6e 64 65 6e 74 20 2b 34 |NG{f}.#I|ndent +4|
|00005450| 0a 49 66 20 74 68 65 20 | 69 6e 63 6f 6d 69 6e 67 |.If the |incoming|
|00005460| 20 6c 6f 63 61 74 69 6f | 6e 20 69 73 20 6e 6f 74 | locatio|n is not|
|00005470| 20 61 20 72 65 67 69 73 | 74 65 72 2c 20 74 68 65 | a regis|ter, the|
|00005480| 6e 20 79 6f 75 20 73 68 | 6f 75 6c 64 20 64 65 66 |n you sh|ould def|
|00005490| 69 6e 65 0a 7b 66 43 6f | 64 65 7d 53 54 52 55 43 |ine.{fCo|de}STRUC|
|000054a0| 54 5c 5f 56 41 4c 55 45 | 5c 5f 49 4e 43 4f 4d 49 |T\_VALUE|\_INCOMI|
|000054b0| 4e 47 7b 66 7d 20 61 73 | 20 61 6e 20 65 78 70 72 |NG{f} as| an expr|
|000054c0| 65 73 73 69 6f 6e 20 66 | 6f 72 20 61 6e 20 52 54 |ession f|or an RT|
|000054d0| 58 20 66 6f 72 20 77 68 | 65 72 65 20 74 68 65 0a |X for wh|ere the.|
|000054e0| 63 61 6c 6c 65 64 20 66 | 75 6e 63 74 69 6f 6e 20 |called f|unction |
|000054f0| 73 68 6f 75 6c 64 20 66 | 69 6e 64 20 74 68 65 20 |should f|ind the |
|00005500| 76 61 6c 75 65 2e 20 20 | 49 66 20 69 74 20 73 68 |value. |If it sh|
|00005510| 6f 75 6c 64 20 66 69 6e | 64 20 74 68 65 20 76 61 |ould fin|d the va|
|00005520| 6c 75 65 20 6f 6e 0a 74 | 68 65 20 73 74 61 63 6b |lue on.t|he stack|
|00005530| 2c 20 64 65 66 69 6e 65 | 20 74 68 69 73 20 74 6f |, define| this to|
|00005540| 20 63 72 65 61 74 65 20 | 61 20 7b 66 43 6f 64 65 | create |a {fCode|
|00005550| 7d 6d 65 6d 7b 66 7d 20 | 77 68 69 63 68 20 72 65 |}mem{f} |which re|
|00005560| 66 65 72 73 20 74 6f 20 | 74 68 65 20 66 72 61 6d |fers to |the fram|
|00005570| 65 0a 70 6f 69 6e 74 65 | 72 2e 20 20 41 20 64 65 |e.pointe|r. A de|
|00005580| 66 69 6e 69 74 69 6f 6e | 20 6f 66 20 30 20 6d 65 |finition| of 0 me|
|00005590| 61 6e 73 20 74 68 61 74 | 20 74 68 65 20 61 64 64 |ans that| the add|
|000055a0| 72 65 73 73 20 69 73 20 | 70 61 73 73 65 64 20 61 |ress is |passed a|
|000055b0| 73 20 61 6e 0a 60 60 69 | 6e 76 69 73 69 62 6c 65 |s an.``i|nvisible|
|000055c0| 27 27 20 66 69 72 73 74 | 20 61 72 67 75 6d 65 6e |'' first| argumen|
|000055d0| 74 2e 0a 0a 23 49 6e 64 | 65 6e 74 0a 7b 66 43 6f |t...#Ind|ent.{fCo|
|000055e0| 64 65 7d 50 43 43 5c 5f | 53 54 41 54 49 43 5c 5f |de}PCC\_|STATIC\_|
|000055f0| 53 54 52 55 43 54 5c 5f | 52 45 54 55 52 4e 7b 66 |STRUCT\_|RETURN{f|
|00005600| 7d 0a 23 49 6e 64 65 6e | 74 20 2b 34 0a 44 65 66 |}.#Inden|t +4.Def|
|00005610| 69 6e 65 20 74 68 69 73 | 20 6d 61 63 72 6f 20 69 |ine this| macro i|
|00005620| 66 20 74 68 65 20 75 73 | 75 61 6c 20 73 79 73 74 |f the us|ual syst|
|00005630| 65 6d 20 63 6f 6e 76 65 | 6e 74 69 6f 6e 20 6f 6e |em conve|ntion on|
|00005640| 20 74 68 65 20 74 61 72 | 67 65 74 20 6d 61 63 68 | the tar|get mach|
|00005650| 69 6e 65 0a 66 6f 72 20 | 72 65 74 75 72 6e 69 6e |ine.for |returnin|
|00005660| 67 20 73 74 72 75 63 74 | 75 72 65 73 20 61 6e 64 |g struct|ures and|
|00005670| 20 75 6e 69 6f 6e 73 20 | 69 73 20 66 6f 72 20 74 | unions |is for t|
|00005680| 68 65 20 63 61 6c 6c 65 | 64 20 66 75 6e 63 74 69 |he calle|d functi|
|00005690| 6f 6e 20 74 6f 20 72 65 | 74 75 72 6e 0a 74 68 65 |on to re|turn.the|
|000056a0| 20 61 64 64 72 65 73 73 | 20 6f 66 20 61 20 73 74 | address| of a st|
|000056b0| 61 74 69 63 20 76 61 72 | 69 61 62 6c 65 20 63 6f |atic var|iable co|
|000056c0| 6e 74 61 69 6e 69 6e 67 | 20 74 68 65 20 76 61 6c |ntaining| the val|
|000056d0| 75 65 2e 0a 0a 44 6f 20 | 6e 6f 74 20 64 65 66 69 |ue...Do |not defi|
|000056e0| 6e 65 20 74 68 69 73 20 | 69 66 20 74 68 65 20 75 |ne this |if the u|
|000056f0| 73 75 61 6c 20 73 79 73 | 74 65 6d 20 63 6f 6e 76 |sual sys|tem conv|
|00005700| 65 6e 74 69 6f 6e 20 69 | 73 20 66 6f 72 20 74 68 |ention i|s for th|
|00005710| 65 20 63 61 6c 6c 65 72 | 20 74 6f 0a 70 61 73 73 |e caller| to.pass|
|00005720| 20 61 6e 20 61 64 64 72 | 65 73 73 20 74 6f 20 74 | an addr|ess to t|
|00005730| 68 65 20 73 75 62 72 6f | 75 74 69 6e 65 2e 0a 0a |he subro|utine...|
|00005740| 54 68 69 73 20 6d 61 63 | 72 6f 20 68 61 73 20 65 |This mac|ro has e|
|00005750| 66 66 65 63 74 20 69 6e | 20 7b 66 45 6d 70 68 61 |ffect in| {fEmpha|
|00005760| 73 69 73 7d 2d 66 70 63 | 63 2d 73 74 72 75 63 74 |sis}-fpc|c-struct|
|00005770| 2d 72 65 74 75 72 6e 7b | 66 7d 20 6d 6f 64 65 2c |-return{|f} mode,|
|00005780| 20 62 75 74 20 69 74 20 | 64 6f 65 73 0a 6e 6f 74 | but it |does.not|
|00005790| 68 69 6e 67 20 77 68 65 | 6e 20 79 6f 75 20 75 73 |hing whe|n you us|
|000057a0| 65 20 7b 66 45 6d 70 68 | 61 73 69 73 7d 2d 66 72 |e {fEmph|asis}-fr|
|000057b0| 65 67 2d 73 74 72 75 63 | 74 2d 72 65 74 75 72 6e |eg-struc|t-return|
|000057c0| 7b 66 7d 20 6d 6f 64 65 | 2e 0a 0a 23 49 6e 64 65 |{f} mode|...#Inde|
|000057d0| 6e 74 0a 0a 44 41 54 41 | 69 06 00 00 41 6c 69 67 |nt..DATA|i...Alig|
|000057e0| 6e 6d 65 6e 74 0a 50 72 | 65 76 69 6f 75 73 3a 20 |nment.Pr|evious: |
|000057f0| 3c 43 68 61 72 61 63 74 | 65 72 20 45 73 63 61 70 |<Charact|er Escap|
|00005800| 65 73 3d 3e 43 68 61 72 | 61 63 74 65 72 45 3e 20 |es=>Char|acterE> |
|00005810| 2a 20 4e 65 78 74 3a 20 | 3c 56 61 72 69 61 62 6c |* Next: |<Variabl|
|00005820| 65 20 41 74 74 72 69 62 | 75 74 65 73 3d 3e 56 61 |e Attrib|utes=>Va|
|00005830| 72 69 61 62 6c 65 41 74 | 3e 20 2a 20 55 70 3a 20 |riableAt|> * Up: |
|00005840| 3c 43 20 45 78 74 65 6e | 73 69 6f 6e 73 3d 3e 43 |<C Exten|sions=>C|
|00005850| 45 78 74 65 6e 73 69 6f | 6e 3e 0a 0a 23 57 72 61 |Extensio|n>..#Wra|
|00005860| 70 20 6f 6e 0a 7b 66 48 | 33 7d 49 6e 71 75 69 72 |p on.{fH|3}Inquir|
|00005870| 69 6e 67 20 6f 6e 20 41 | 6c 69 67 6e 6d 65 6e 74 |ing on A|lignment|
|00005880| 20 6f 66 20 54 79 70 65 | 73 20 6f 72 20 56 61 72 | of Type|s or Var|
|00005890| 69 61 62 6c 65 73 7b 66 | 7d 0a 0a 54 68 65 20 6b |iables{f|}..The k|
|000058a0| 65 79 77 6f 72 64 20 7b | 66 43 6f 64 65 7d 5c 5f |eyword {|fCode}\_|
|000058b0| 5c 5f 61 6c 69 67 6e 6f | 66 5c 5f 5c 5f 7b 66 7d |\_aligno|f\_\_{f}|
|000058c0| 20 61 6c 6c 6f 77 73 20 | 79 6f 75 20 74 6f 20 69 | allows |you to i|
|000058d0| 6e 71 75 69 72 65 20 61 | 62 6f 75 74 20 68 6f 77 |nquire a|bout how|
|000058e0| 20 61 6e 20 6f 62 6a 65 | 63 74 0a 69 73 20 61 6c | an obje|ct.is al|
|000058f0| 69 67 6e 65 64 2c 20 6f | 72 20 74 68 65 20 6d 69 |igned, o|r the mi|
|00005900| 6e 69 6d 75 6d 20 61 6c | 69 67 6e 6d 65 6e 74 20 |nimum al|ignment |
|00005910| 75 73 75 61 6c 6c 79 20 | 72 65 71 75 69 72 65 64 |usually |required|
|00005920| 20 62 79 20 61 20 74 79 | 70 65 2e 20 20 49 74 73 | by a ty|pe. Its|
|00005930| 0a 73 79 6e 74 61 78 20 | 69 73 20 6a 75 73 74 20 |.syntax |is just |
|00005940| 6c 69 6b 65 20 7b 66 43 | 6f 64 65 7d 73 69 7a 65 |like {fC|ode}size|
|00005950| 6f 66 7b 66 7d 2e 0a 0a | 46 6f 72 20 65 78 61 6d |of{f}...|For exam|
|00005960| 70 6c 65 2c 20 69 66 20 | 74 68 65 20 74 61 72 67 |ple, if |the targ|
|00005970| 65 74 20 6d 61 63 68 69 | 6e 65 20 72 65 71 75 69 |et machi|ne requi|
|00005980| 72 65 73 20 61 20 7b 66 | 43 6f 64 65 7d 64 6f 75 |res a {f|Code}dou|
|00005990| 62 6c 65 7b 66 7d 20 76 | 61 6c 75 65 20 74 6f 20 |ble{f} v|alue to |
|000059a0| 62 65 0a 61 6c 69 67 6e | 65 64 20 6f 6e 20 61 6e |be.align|ed on an|
|000059b0| 20 38 2d 62 79 74 65 20 | 62 6f 75 6e 64 61 72 79 | 8-byte |boundary|
|000059c0| 2c 20 74 68 65 6e 20 7b | 66 43 6f 64 65 7d 5c 5f |, then {|fCode}\_|
|000059d0| 5c 5f 61 6c 69 67 6e 6f | 66 5c 5f 5c 5f 20 28 64 |\_aligno|f\_\_ (d|
|000059e0| 6f 75 62 6c 65 29 7b 66 | 7d 20 69 73 20 38 2e 0a |ouble){f|} is 8..|
|000059f0| 54 68 69 73 20 69 73 20 | 74 72 75 65 20 6f 6e 20 |This is |true on |
|00005a00| 6d 61 6e 79 20 52 49 53 | 43 20 6d 61 63 68 69 6e |many RIS|C machin|
|00005a10| 65 73 2e 20 20 4f 6e 20 | 6d 6f 72 65 20 74 72 61 |es. On |more tra|
|00005a20| 64 69 74 69 6f 6e 61 6c | 20 6d 61 63 68 69 6e 65 |ditional| machine|
|00005a30| 0a 64 65 73 69 67 6e 73 | 2c 20 7b 66 43 6f 64 65 |.designs|, {fCode|
|00005a40| 7d 5c 5f 5c 5f 61 6c 69 | 67 6e 6f 66 5c 5f 5c 5f |}\_\_ali|gnof\_\_|
|00005a50| 20 28 64 6f 75 62 6c 65 | 29 7b 66 7d 20 69 73 20 | (double|){f} is |
|00005a60| 34 20 6f 72 20 65 76 65 | 6e 20 32 2e 0a 0a 53 6f |4 or eve|n 2...So|
|00005a70| 6d 65 20 6d 61 63 68 69 | 6e 65 73 20 6e 65 76 65 |me machi|nes neve|
|00005a80| 72 20 61 63 74 75 61 6c | 6c 79 20 72 65 71 75 69 |r actual|ly requi|
|00005a90| 72 65 20 61 6c 69 67 6e | 6d 65 6e 74 3b 20 74 68 |re align|ment; th|
|00005aa0| 65 79 20 61 6c 6c 6f 77 | 20 72 65 66 65 72 65 6e |ey allow| referen|
|00005ab0| 63 65 20 74 6f 20 61 6e | 79 0a 64 61 74 61 20 74 |ce to an|y.data t|
|00005ac0| 79 70 65 20 65 76 65 6e | 20 61 74 20 61 6e 20 6f |ype even| at an o|
|00005ad0| 64 64 20 61 64 64 72 65 | 73 73 65 73 2e 20 20 46 |dd addre|sses. F|
|00005ae0| 6f 72 20 74 68 65 73 65 | 20 6d 61 63 68 69 6e 65 |or these| machine|
|00005af0| 73 2c 20 7b 66 43 6f 64 | 65 7d 5c 5f 5c 5f 61 6c |s, {fCod|e}\_\_al|
|00005b00| 69 67 6e 6f 66 5c 5f 5c | 5f 7b 66 7d 0a 72 65 70 |ignof\_\|_{f}.rep|
|00005b10| 6f 72 74 73 20 74 68 65 | 20 7b 66 45 6d 70 68 61 |orts the| {fEmpha|
|00005b20| 73 69 73 7d 72 65 63 6f | 6d 6d 65 6e 64 65 64 7b |sis}reco|mmended{|
|00005b30| 66 7d 20 61 6c 69 67 6e | 6d 65 6e 74 20 6f 66 20 |f} align|ment of |
|00005b40| 61 20 74 79 70 65 2e 0a | 0a 57 68 65 6e 20 74 68 |a type..|.When th|
|00005b50| 65 20 6f 70 65 72 61 6e | 64 20 6f 66 20 7b 66 43 |e operan|d of {fC|
|00005b60| 6f 64 65 7d 5c 5f 5c 5f | 61 6c 69 67 6e 6f 66 5c |ode}\_\_|alignof\|
|00005b70| 5f 5c 5f 7b 66 7d 20 69 | 73 20 61 6e 20 6c 76 61 |_\_{f} i|s an lva|
|00005b80| 6c 75 65 20 72 61 74 68 | 65 72 20 74 68 61 6e 20 |lue rath|er than |
|00005b90| 61 20 74 79 70 65 2c 20 | 74 68 65 0a 76 61 6c 75 |a type, |the.valu|
|00005ba0| 65 20 69 73 20 74 68 65 | 20 6c 61 72 67 65 73 74 |e is the| largest|
|00005bb0| 20 61 6c 69 67 6e 6d 65 | 6e 74 20 74 68 61 74 20 | alignme|nt that |
|00005bc0| 74 68 65 20 6c 76 61 6c | 75 65 20 69 73 20 6b 6e |the lval|ue is kn|
|00005bd0| 6f 77 6e 20 74 6f 20 68 | 61 76 65 2e 20 20 49 74 |own to h|ave. It|
|00005be0| 20 6d 61 79 0a 68 61 76 | 65 20 74 68 69 73 20 61 | may.hav|e this a|
|00005bf0| 6c 69 67 6e 6d 65 6e 74 | 20 61 73 20 61 20 72 65 |lignment| as a re|
|00005c00| 73 75 6c 74 20 6f 66 20 | 69 74 73 20 64 61 74 61 |sult of |its data|
|00005c10| 20 74 79 70 65 2c 20 6f | 72 20 62 65 63 61 75 73 | type, o|r becaus|
|00005c20| 65 20 69 74 20 69 73 20 | 70 61 72 74 20 6f 66 0a |e it is |part of.|
|00005c30| 61 20 73 74 72 75 63 74 | 75 72 65 20 61 6e 64 20 |a struct|ure and |
|00005c40| 69 6e 68 65 72 69 74 73 | 20 61 6c 69 67 6e 6d 65 |inherits| alignme|
|00005c50| 6e 74 20 66 72 6f 6d 20 | 74 68 61 74 20 73 74 72 |nt from |that str|
|00005c60| 75 63 74 75 72 65 2e 20 | 20 46 6f 72 20 65 78 61 |ucture. | For exa|
|00005c70| 6d 70 6c 65 2c 20 61 66 | 74 65 72 0a 74 68 69 73 |mple, af|ter.this|
|00005c80| 20 64 65 63 6c 61 72 61 | 74 69 6f 6e 3a 0a 0a 23 | declara|tion:..#|
|00005c90| 57 72 61 70 20 6f 66 66 | 0a 23 66 43 6f 64 65 0a |Wrap off|.#fCode.|
|00005ca0| 73 74 72 75 63 74 20 66 | 6f 6f 20 5c 7b 20 69 6e |struct f|oo \{ in|
|00005cb0| 74 20 78 3b 20 63 68 61 | 72 20 79 3b 20 5c 7d 20 |t x; cha|r y; \} |
|00005cc0| 66 6f 6f 31 3b 0a 23 66 | 0a 23 57 72 61 70 20 6f |foo1;.#f|.#Wrap o|
|00005cd0| 6e 0a 0a 74 68 65 20 76 | 61 6c 75 65 20 6f 66 20 |n..the v|alue of |
|00005ce0| 7b 66 43 6f 64 65 7d 5c | 5f 5c 5f 61 6c 69 67 6e |{fCode}\|_\_align|
|00005cf0| 6f 66 5c 5f 5c 5f 20 28 | 66 6f 6f 31 2e 79 29 7b |of\_\_ (|foo1.y){|
|00005d00| 66 7d 20 69 73 20 70 72 | 6f 62 61 62 6c 79 20 32 |f} is pr|obably 2|
|00005d10| 20 6f 72 20 34 2c 20 74 | 68 65 20 73 61 6d 65 20 | or 4, t|he same |
|00005d20| 61 73 0a 7b 66 43 6f 64 | 65 7d 5c 5f 5c 5f 61 6c |as.{fCod|e}\_\_al|
|00005d30| 69 67 6e 6f 66 5c 5f 5c | 5f 20 28 69 6e 74 29 7b |ignof\_\|_ (int){|
|00005d40| 66 7d 2c 20 65 76 65 6e | 20 74 68 6f 75 67 68 20 |f}, even| though |
|00005d50| 74 68 65 20 64 61 74 61 | 20 74 79 70 65 20 6f 66 |the data| type of|
|00005d60| 20 7b 66 43 6f 64 65 7d | 66 6f 6f 31 2e 79 7b 66 | {fCode}|foo1.y{f|
|00005d70| 7d 0a 64 6f 65 73 20 6e | 6f 74 20 69 74 73 65 6c |}.does n|ot itsel|
|00005d80| 66 20 64 65 6d 61 6e 64 | 20 61 6e 79 20 61 6c 69 |f demand| any ali|
|00005d90| 67 6e 6d 65 6e 74 2e 0a | 0a 41 20 72 65 6c 61 74 |gnment..|.A relat|
|00005da0| 65 64 20 66 65 61 74 75 | 72 65 20 77 68 69 63 68 |ed featu|re which|
|00005db0| 20 6c 65 74 73 20 79 6f | 75 20 73 70 65 63 69 66 | lets yo|u specif|
|00005dc0| 79 20 74 68 65 20 61 6c | 69 67 6e 6d 65 6e 74 20 |y the al|ignment |
|00005dd0| 6f 66 20 61 6e 20 6f 62 | 6a 65 63 74 20 69 73 0a |of an ob|ject is.|
|00005de0| 7b 66 43 6f 64 65 7d 5c | 5f 5c 5f 61 74 74 72 69 |{fCode}\|_\_attri|
|00005df0| 62 75 74 65 5c 5f 5c 5f | 20 28 28 61 6c 69 67 6e |bute\_\_| ((align|
|00005e00| 65 64 20 28 7b 66 53 74 | 72 6f 6e 67 7d 61 6c 69 |ed ({fSt|rong}ali|
|00005e10| 67 6e 6d 65 6e 74 7b 66 | 7d 29 29 29 7b 66 7d 3b |gnment{f|}))){f};|
|00005e20| 20 73 65 65 20 74 68 65 | 20 66 6f 6c 6c 6f 77 69 | see the| followi|
|00005e30| 6e 67 0a 73 65 63 74 69 | 6f 6e 2e 0a 0a 00 00 00 |ng.secti|on......|
|00005e40| 44 41 54 41 cb 07 00 00 | 41 6c 69 67 6e 6d 65 6e |DATA....|Alignmen|
|00005e50| 74 20 4f 75 74 70 75 74 | 0a 50 72 65 76 69 6f 75 |t Output|.Previou|
|00005e60| 73 3a 20 3c 44 69 73 70 | 61 74 63 68 20 54 61 62 |s: <Disp|atch Tab|
|00005e70| 6c 65 73 3d 3e 44 69 73 | 70 61 74 63 68 54 61 3e |les=>Dis|patchTa>|
|00005e80| 20 2a 20 4e 65 78 74 3a | 20 3c 44 65 62 75 67 67 | * Next:| <Debugg|
|00005e90| 69 6e 67 20 49 6e 66 6f | 3d 3e 44 65 62 75 67 67 |ing Info|=>Debugg|
|00005ea0| 69 6e 67 49 3e 20 2a 20 | 55 70 3a 20 3c 41 73 73 |ingI> * |Up: <Ass|
|00005eb0| 65 6d 62 6c 65 72 20 46 | 6f 72 6d 61 74 3d 3e 41 |embler F|ormat=>A|
|00005ec0| 73 73 65 6d 62 6c 65 72 | 46 3e 0a 0a 23 57 72 61 |ssembler|F>..#Wra|
|00005ed0| 70 20 6f 6e 0a 7b 66 48 | 34 7d 41 73 73 65 6d 62 |p on.{fH|4}Assemb|
|00005ee0| 6c 65 72 20 43 6f 6d 6d | 61 6e 64 73 20 66 6f 72 |ler Comm|ands for|
|00005ef0| 20 41 6c 69 67 6e 6d 65 | 6e 74 7b 66 7d 0a 0a 54 | Alignme|nt{f}..T|
|00005f00| 68 69 73 20 64 65 73 63 | 72 69 62 65 73 20 63 6f |his desc|ribes co|
|00005f10| 6d 6d 61 6e 64 73 20 66 | 6f 72 20 61 6c 69 67 6e |mmands f|or align|
|00005f20| 6d 65 6e 74 2e 0a 0a 23 | 49 6e 64 65 6e 74 20 2b |ment...#|Indent +|
|00005f30| 34 0a 23 49 6e 64 65 6e | 74 0a 7b 66 43 6f 64 65 |4.#Inden|t.{fCode|
|00005f40| 7d 41 53 4d 5c 5f 4f 55 | 54 50 55 54 5c 5f 41 4c |}ASM\_OU|TPUT\_AL|
|00005f50| 49 47 4e 5c 5f 43 4f 44 | 45 20 28 7b 66 53 74 72 |IGN\_COD|E ({fStr|
|00005f60| 6f 6e 67 7d 66 69 6c 65 | 7b 66 7d 29 7b 66 7d 0a |ong}file|{f}){f}.|
|00005f70| 23 49 6e 64 65 6e 74 20 | 2b 34 0a 41 20 43 20 65 |#Indent |+4.A C e|
|00005f80| 78 70 72 65 73 73 69 6f | 6e 20 74 6f 20 6f 75 74 |xpressio|n to out|
|00005f90| 70 75 74 20 74 65 78 74 | 20 74 6f 20 61 6c 69 67 |put text| to alig|
|00005fa0| 6e 20 74 68 65 20 6c 6f | 63 61 74 69 6f 6e 20 63 |n the lo|cation c|
|00005fb0| 6f 75 6e 74 65 72 20 69 | 6e 20 74 68 65 20 77 61 |ounter i|n the wa|
|00005fc0| 79 0a 74 68 61 74 20 69 | 73 20 64 65 73 69 72 61 |y.that i|s desira|
|00005fd0| 62 6c 65 20 61 74 20 61 | 20 70 6f 69 6e 74 20 69 |ble at a| point i|
|00005fe0| 6e 20 74 68 65 20 63 6f | 64 65 20 74 68 61 74 20 |n the co|de that |
|00005ff0| 69 73 20 72 65 61 63 68 | 65 64 20 6f 6e 6c 79 20 |is reach|ed only |
|00006000| 62 79 0a 6a 75 6d 70 69 | 6e 67 2e 0a 0a 54 68 69 |by.jumpi|ng...Thi|
|00006010| 73 20 6d 61 63 72 6f 20 | 6e 65 65 64 20 6e 6f 74 |s macro |need not|
|00006020| 20 62 65 20 64 65 66 69 | 6e 65 64 20 69 66 20 79 | be defi|ned if y|
|00006030| 6f 75 20 64 6f 6e 27 74 | 20 77 61 6e 74 20 61 6e |ou don't| want an|
|00006040| 79 20 73 70 65 63 69 61 | 6c 20 61 6c 69 67 6e 6d |y specia|l alignm|
|00006050| 65 6e 74 0a 74 6f 20 62 | 65 20 64 6f 6e 65 20 61 |ent.to b|e done a|
|00006060| 74 20 73 75 63 68 20 61 | 20 74 69 6d 65 2e 20 20 |t such a| time. |
|00006070| 4d 6f 73 74 20 6d 61 63 | 68 69 6e 65 20 64 65 73 |Most mac|hine des|
|00006080| 63 72 69 70 74 69 6f 6e | 73 20 64 6f 20 6e 6f 74 |cription|s do not|
|00006090| 20 63 75 72 72 65 6e 74 | 6c 79 0a 64 65 66 69 6e | current|ly.defin|
|000060a0| 65 20 74 68 65 20 6d 61 | 63 72 6f 2e 0a 0a 23 49 |e the ma|cro...#I|
|000060b0| 6e 64 65 6e 74 0a 7b 66 | 43 6f 64 65 7d 41 53 4d |ndent.{f|Code}ASM|
|000060c0| 5c 5f 4f 55 54 50 55 54 | 5c 5f 4c 4f 4f 50 5c 5f |\_OUTPUT|\_LOOP\_|
|000060d0| 41 4c 49 47 4e 20 28 7b | 66 53 74 72 6f 6e 67 7d |ALIGN ({|fStrong}|
|000060e0| 66 69 6c 65 7b 66 7d 29 | 7b 66 7d 0a 23 49 6e 64 |file{f})|{f}.#Ind|
|000060f0| 65 6e 74 20 2b 34 0a 41 | 20 43 20 65 78 70 72 65 |ent +4.A| C expre|
|00006100| 73 73 69 6f 6e 20 74 6f | 20 6f 75 74 70 75 74 20 |ssion to| output |
|00006110| 74 65 78 74 20 74 6f 20 | 61 6c 69 67 6e 20 74 68 |text to |align th|
|00006120| 65 20 6c 6f 63 61 74 69 | 6f 6e 20 63 6f 75 6e 74 |e locati|on count|
|00006130| 65 72 20 69 6e 20 74 68 | 65 20 77 61 79 0a 74 68 |er in th|e way.th|
|00006140| 61 74 20 69 73 20 64 65 | 73 69 72 61 62 6c 65 20 |at is de|sirable |
|00006150| 61 74 20 74 68 65 20 62 | 65 67 69 6e 6e 69 6e 67 |at the b|eginning|
|00006160| 20 6f 66 20 61 20 6c 6f | 6f 70 2e 0a 0a 54 68 69 | of a lo|op...Thi|
|00006170| 73 20 6d 61 63 72 6f 20 | 6e 65 65 64 20 6e 6f 74 |s macro |need not|
|00006180| 20 62 65 20 64 65 66 69 | 6e 65 64 20 69 66 20 79 | be defi|ned if y|
|00006190| 6f 75 20 64 6f 6e 27 74 | 20 77 61 6e 74 20 61 6e |ou don't| want an|
|000061a0| 79 20 73 70 65 63 69 61 | 6c 20 61 6c 69 67 6e 6d |y specia|l alignm|
|000061b0| 65 6e 74 0a 74 6f 20 62 | 65 20 64 6f 6e 65 20 61 |ent.to b|e done a|
|000061c0| 74 20 73 75 63 68 20 61 | 20 74 69 6d 65 2e 20 20 |t such a| time. |
|000061d0| 4d 6f 73 74 20 6d 61 63 | 68 69 6e 65 20 64 65 73 |Most mac|hine des|
|000061e0| 63 72 69 70 74 69 6f 6e | 73 20 64 6f 20 6e 6f 74 |cription|s do not|
|000061f0| 20 63 75 72 72 65 6e 74 | 6c 79 0a 64 65 66 69 6e | current|ly.defin|
|00006200| 65 20 74 68 65 20 6d 61 | 63 72 6f 2e 0a 0a 23 49 |e the ma|cro...#I|
|00006210| 6e 64 65 6e 74 0a 7b 66 | 43 6f 64 65 7d 41 53 4d |ndent.{f|Code}ASM|
|00006220| 5c 5f 4f 55 54 50 55 54 | 5c 5f 53 4b 49 50 20 28 |\_OUTPUT|\_SKIP (|
|00006230| 7b 66 53 74 72 6f 6e 67 | 7d 73 74 72 65 61 6d 7b |{fStrong|}stream{|
|00006240| 66 7d 2c 20 7b 66 53 74 | 72 6f 6e 67 7d 6e 62 79 |f}, {fSt|rong}nby|
|00006250| 74 65 73 7b 66 7d 29 7b | 66 7d 0a 23 49 6e 64 65 |tes{f}){|f}.#Inde|
|00006260| 6e 74 20 2b 34 0a 41 20 | 43 20 73 74 61 74 65 6d |nt +4.A |C statem|
|00006270| 65 6e 74 20 74 6f 20 6f | 75 74 70 75 74 20 74 6f |ent to o|utput to|
|00006280| 20 74 68 65 20 73 74 64 | 69 6f 20 73 74 72 65 61 | the std|io strea|
|00006290| 6d 20 7b 66 53 74 72 6f | 6e 67 7d 73 74 72 65 61 |m {fStro|ng}strea|
|000062a0| 6d 7b 66 7d 20 61 6e 20 | 61 73 73 65 6d 62 6c 65 |m{f} an |assemble|
|000062b0| 72 0a 69 6e 73 74 72 75 | 63 74 69 6f 6e 20 74 6f |r.instru|ction to|
|000062c0| 20 61 64 76 61 6e 63 65 | 20 74 68 65 20 6c 6f 63 | advance| the loc|
|000062d0| 61 74 69 6f 6e 20 63 6f | 75 6e 74 65 72 20 62 79 |ation co|unter by|
|000062e0| 20 7b 66 53 74 72 6f 6e | 67 7d 6e 62 79 74 65 73 | {fStron|g}nbytes|
|000062f0| 7b 66 7d 20 62 79 74 65 | 73 2e 0a 54 68 6f 73 65 |{f} byte|s..Those|
|00006300| 20 62 79 74 65 73 20 73 | 68 6f 75 6c 64 20 62 65 | bytes s|hould be|
|00006310| 20 7a 65 72 6f 20 77 68 | 65 6e 20 6c 6f 61 64 65 | zero wh|en loade|
|00006320| 64 2e 20 20 7b 66 53 74 | 72 6f 6e 67 7d 6e 62 79 |d. {fSt|rong}nby|
|00006330| 74 65 73 7b 66 7d 20 77 | 69 6c 6c 20 62 65 20 61 |tes{f} w|ill be a|
|00006340| 20 43 0a 65 78 70 72 65 | 73 73 69 6f 6e 20 6f 66 | C.expre|ssion of|
|00006350| 20 74 79 70 65 20 7b 66 | 43 6f 64 65 7d 69 6e 74 | type {f|Code}int|
|00006360| 7b 66 7d 2e 0a 0a 23 49 | 6e 64 65 6e 74 0a 7b 66 |{f}...#I|ndent.{f|
|00006370| 43 6f 64 65 7d 41 53 4d | 5c 5f 4e 4f 5c 5f 53 4b |Code}ASM|\_NO\_SK|
|00006380| 49 50 5c 5f 49 4e 5c 5f | 54 45 58 54 7b 66 7d 0a |IP\_IN\_|TEXT{f}.|
|00006390| 23 49 6e 64 65 6e 74 20 | 2b 34 0a 44 65 66 69 6e |#Indent |+4.Defin|
|000063a0| 65 20 74 68 69 73 20 6d | 61 63 72 6f 20 69 66 20 |e this m|acro if |
|000063b0| 7b 66 43 6f 64 65 7d 41 | 53 4d 5c 5f 4f 55 54 50 |{fCode}A|SM\_OUTP|
|000063c0| 55 54 5c 5f 53 4b 49 50 | 7b 66 7d 20 73 68 6f 75 |UT\_SKIP|{f} shou|
|000063d0| 6c 64 20 6e 6f 74 20 62 | 65 20 75 73 65 64 20 69 |ld not b|e used i|
|000063e0| 6e 20 74 68 65 0a 74 65 | 78 74 20 73 65 63 74 69 |n the.te|xt secti|
|000063f0| 6f 6e 20 62 65 63 61 75 | 73 65 20 69 74 20 66 61 |on becau|se it fa|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.