home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: SHell self-extracting ARchive
(archive/shar).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Newsgroup Content (archive/news)
| magic
| Supported |
100%
| dexvert
| SHell self-extracting ARchive (archive/shar)
| magic
| Supported |
100%
| dexvert
| Internet Message Format (text/imf)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| news or mail, ASCII text
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/329 Shell Archive Format
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
| |
100%
| xdgMime
| message/rfc822
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 53 75 62 6a 65 63 74 3a | 20 20 76 31 35 69 30 30 |Subject:| v15i00|
|00000010| 36 3a 20 20 53 79 6d 62 | 6f 6c 69 63 20 64 69 73 |6: Symb|olic dis|
|00000020| 61 73 73 65 6d 62 6c 65 | 72 20 66 6f 72 20 50 43 |assemble|r for PC|
|00000030| 2f 49 58 2c 20 50 61 72 | 74 30 31 2f 30 32 0a 4e |/IX, Par|t01/02.N|
|00000040| 65 77 73 67 72 6f 75 70 | 73 3a 20 63 6f 6d 70 2e |ewsgroup|s: comp.|
|00000050| 73 6f 75 72 63 65 73 2e | 75 6e 69 78 0a 53 65 6e |sources.|unix.Sen|
|00000060| 64 65 72 3a 20 73 6f 75 | 72 63 65 73 0a 41 70 70 |der: sou|rces.App|
|00000070| 72 6f 76 65 64 3a 20 72 | 73 61 6c 7a 40 75 75 6e |roved: r|salz@uun|
|00000080| 65 74 2e 55 55 2e 4e 45 | 54 0a 0a 53 75 62 6d 69 |et.UU.NE|T..Submi|
|00000090| 74 74 65 64 2d 62 79 3a | 20 22 47 2e 20 4d 2e 20 |tted-by:| "G. M. |
|000000a0| 48 61 72 64 69 6e 67 22 | 20 3c 67 6d 40 75 74 73 |Harding"| <gm@uts|
|000000b0| 2e 61 6d 64 61 68 6c 2e | 63 6f 6d 3e 0a 50 6f 73 |.amdahl.|com>.Pos|
|000000c0| 74 69 6e 67 2d 6e 75 6d | 62 65 72 3a 20 56 6f 6c |ting-num|ber: Vol|
|000000d0| 75 6d 65 20 31 35 2c 20 | 49 73 73 75 65 20 36 0a |ume 15, |Issue 6.|
|000000e0| 41 72 63 68 69 76 65 2d | 6e 61 6d 65 3a 20 64 69 |Archive-|name: di|
|000000f0| 73 38 38 2f 70 61 72 74 | 30 31 0a 0a 5b 20 20 49 |s88/part|01..[ I|
|00000100| 20 70 61 63 6b 65 64 20 | 75 70 20 74 68 65 20 61 | packed |up the a|
|00000110| 72 63 68 69 76 65 73 20 | 61 6e 64 20 74 75 72 6e |rchives |and turn|
|00000120| 65 64 20 74 68 65 20 66 | 6f 72 6d 61 74 74 65 64 |ed the f|ormatted|
|00000130| 20 6d 61 6e 70 61 67 65 | 0a 20 20 20 69 6e 74 6f | manpage|. into|
|00000140| 20 61 6e 20 75 6e 66 6f | 72 6d 61 74 74 65 64 20 | an unfo|rmatted |
|00000150| 6f 6e 65 2e 20 20 2d 2d | 72 24 20 20 5d 0a 0a 09 |one. --|r$ ]...|
|00000160| 20 22 44 69 73 38 38 22 | 20 69 73 20 61 20 73 79 | "Dis88"| is a sy|
|00000170| 6d 62 6f 6c 69 63 20 64 | 69 73 61 73 73 65 6d 62 |mbolic d|isassemb|
|00000180| 6c 65 72 20 66 6f 72 20 | 74 68 65 20 49 6e 74 65 |ler for |the Inte|
|00000190| 6c 20 38 30 38 38 20 43 | 50 55 2c 0a 20 20 20 20 |l 8088 C|PU,. |
|000001a0| 64 65 73 69 67 6e 65 64 | 20 74 6f 20 72 75 6e 20 |designed| to run |
|000001b0| 75 6e 64 65 72 20 74 68 | 65 20 50 43 2f 49 58 20 |under th|e PC/IX |
|000001c0| 20 6f 70 65 72 61 74 69 | 6e 67 20 20 73 79 73 74 | operati|ng syst|
|000001d0| 65 6d 20 6f 6e 20 61 6e | 20 49 42 4d 20 58 54 0a |em on an| IBM XT.|
|000001e0| 20 20 20 20 6f 72 20 66 | 75 6c 6c 79 2d 63 6f 6d | or f|ully-com|
|000001f0| 70 61 74 69 62 6c 65 20 | 63 6c 6f 6e 65 2e 20 20 |patible |clone. |
|00000200| 49 74 73 20 6f 75 74 70 | 75 74 20 69 73 20 69 6e |Its outp|ut is in|
|00000210| 20 74 68 65 20 66 6f 72 | 6d 61 74 20 6f 66 2c 20 | the for|mat of, |
|00000220| 61 6e 64 0a 20 20 20 20 | 69 73 20 63 6f 6d 70 6c |and. |is compl|
|00000230| 65 74 65 6c 79 20 63 6f | 6d 70 61 74 69 62 6c 65 |etely co|mpatible|
|00000240| 20 77 69 74 68 2c 20 74 | 68 65 20 50 43 2f 49 58 | with, t|he PC/IX|
|00000250| 20 61 73 73 65 6d 62 6c | 65 72 2c 20 20 22 61 73 | assembl|er, "as|
|00000260| 22 2e 20 20 54 68 65 0a | 20 20 20 20 70 72 6f 67 |". The.| prog|
|00000270| 72 61 6d 20 69 73 20 63 | 6f 70 79 72 69 67 68 74 |ram is c|opyright|
|00000280| 65 64 20 62 79 20 69 74 | 73 20 61 75 74 68 6f 72 |ed by it|s author|
|00000290| 2c 20 62 75 74 20 6d 61 | 79 20 62 65 20 63 6f 70 |, but ma|y be cop|
|000002a0| 69 65 64 20 61 6e 64 20 | 72 65 2d 0a 20 20 20 20 |ied and |re-. |
|000002b0| 64 69 73 74 72 69 62 75 | 74 65 64 20 66 72 65 65 |distribu|ted free|
|000002c0| 6c 79 20 70 72 6f 76 69 | 64 65 64 20 74 68 61 74 |ly provi|ded that|
|000002d0| 20 63 6f 6d 70 6c 65 74 | 65 20 73 6f 75 72 63 65 | complet|e source|
|000002e0| 20 63 6f 64 65 2c 20 77 | 69 74 68 20 61 6c 6c 0a | code, w|ith all.|
|000002f0| 20 20 20 20 63 6f 70 79 | 72 69 67 68 74 20 6e 6f | copy|right no|
|00000300| 74 69 63 65 73 2c 20 61 | 63 63 6f 6d 70 61 6e 69 |tices, a|ccompani|
|00000310| 65 73 20 61 6e 79 20 64 | 69 73 74 72 69 62 75 74 |es any d|istribut|
|00000320| 69 6f 6e 2e 20 54 68 69 | 73 20 70 72 6f 76 69 73 |ion. Thi|s provis|
|00000330| 69 6f 6e 0a 20 20 20 20 | 61 6c 73 6f 20 61 70 70 |ion. |also app|
|00000340| 6c 69 65 73 20 74 6f 20 | 61 6e 79 20 20 6d 6f 64 |lies to |any mod|
|00000350| 69 66 69 63 61 74 69 6f | 6e 73 20 79 6f 75 20 6d |ificatio|ns you m|
|00000360| 61 79 20 6d 61 6b 65 2e | 20 20 59 6f 75 20 61 72 |ay make.| You ar|
|00000370| 65 20 75 72 67 65 64 0a | 20 20 20 20 74 6f 20 63 |e urged.| to c|
|00000380| 6f 6d 6d 65 6e 74 20 73 | 75 63 68 20 63 68 61 6e |omment s|uch chan|
|00000390| 67 65 73 2c 20 20 67 69 | 76 69 6e 67 2c 20 20 61 |ges, gi|ving, a|
|000003a0| 73 20 61 20 6d 69 6d 69 | 6e 75 6d 2c 20 20 79 6f |s a mimi|num, yo|
|000003b0| 75 72 20 6e 61 6d 65 20 | 61 6e 64 0a 20 20 20 20 |ur name |and. |
|000003c0| 63 6f 6d 70 6c 65 74 65 | 20 61 64 64 72 65 73 73 |complete| address|
|000003d0| 2e 0a 0a 20 20 20 20 2d | 2d 2d 0a 20 20 20 20 47 |... -|--. G|
|000003e0| 2e 20 4d 2e 20 48 41 52 | 44 49 4e 47 0a 20 20 20 |. M. HAR|DING. |
|000003f0| 20 50 4f 42 20 34 31 34 | 32 0a 20 20 20 20 53 61 | POB 414|2. Sa|
|00000400| 6e 74 61 20 43 6c 61 72 | 61 20 43 41 20 20 39 35 |nta Clar|a CA 95|
|00000410| 30 35 34 2d 30 31 34 32 | 0a 0a 23 21 20 2f 62 69 |054-0142|..#! /bi|
|00000420| 6e 2f 73 68 0a 23 20 54 | 68 69 73 20 69 73 20 61 |n/sh.# T|his is a|
|00000430| 20 73 68 65 6c 6c 20 61 | 72 63 68 69 76 65 2e 20 | shell a|rchive. |
|00000440| 20 52 65 6d 6f 76 65 20 | 61 6e 79 74 68 69 6e 67 | Remove |anything|
|00000450| 20 62 65 66 6f 72 65 20 | 74 68 69 73 20 6c 69 6e | before |this lin|
|00000460| 65 2c 20 74 68 65 6e 20 | 75 6e 70 61 63 6b 0a 23 |e, then |unpack.#|
|00000470| 20 69 74 20 62 79 20 73 | 61 76 69 6e 67 20 69 74 | it by s|aving it|
|00000480| 20 69 6e 74 6f 20 61 20 | 66 69 6c 65 20 61 6e 64 | into a |file and|
|00000490| 20 74 79 70 69 6e 67 20 | 22 73 68 20 66 69 6c 65 | typing |"sh file|
|000004a0| 22 2e 20 20 54 6f 20 6f | 76 65 72 77 72 69 74 65 |". To o|verwrite|
|000004b0| 20 65 78 69 73 74 69 6e | 67 0a 23 20 66 69 6c 65 | existin|g.# file|
|000004c0| 73 2c 20 74 79 70 65 20 | 22 73 68 20 66 69 6c 65 |s, type |"sh file|
|000004d0| 20 2d 63 22 2e 20 20 59 | 6f 75 20 63 61 6e 20 61 | -c". Y|ou can a|
|000004e0| 6c 73 6f 20 66 65 65 64 | 20 74 68 69 73 20 61 73 |lso feed| this as|
|000004f0| 20 73 74 61 6e 64 61 72 | 64 20 69 6e 70 75 74 20 | standar|d input |
|00000500| 76 69 61 0a 23 20 75 6e | 73 68 61 72 2c 20 6f 72 |via.# un|shar, or|
|00000510| 20 62 79 20 74 79 70 69 | 6e 67 20 22 73 68 20 3c | by typi|ng "sh <|
|00000520| 66 69 6c 65 22 2c 20 65 | 2e 67 2e 2e 20 20 49 66 |file", e|.g.. If|
|00000530| 20 74 68 69 73 20 61 72 | 63 68 69 76 65 20 69 73 | this ar|chive is|
|00000540| 20 63 6f 6d 70 6c 65 74 | 65 2c 20 79 6f 75 0a 23 | complet|e, you.#|
|00000550| 20 77 69 6c 6c 20 73 65 | 65 20 74 68 65 20 66 6f | will se|e the fo|
|00000560| 6c 6c 6f 77 69 6e 67 20 | 6d 65 73 73 61 67 65 20 |llowing |message |
|00000570| 61 74 20 74 68 65 20 65 | 6e 64 3a 0a 23 09 09 22 |at the e|nd:.#.."|
|00000580| 45 6e 64 20 6f 66 20 61 | 72 63 68 69 76 65 20 31 |End of a|rchive 1|
|00000590| 20 28 6f 66 20 32 29 2e | 22 0a 50 41 54 48 3d 2f | (of 2).|".PATH=/|
|000005a0| 62 69 6e 3a 2f 75 73 72 | 2f 62 69 6e 3a 2f 75 73 |bin:/usr|/bin:/us|
|000005b0| 72 2f 75 63 62 20 3b 20 | 65 78 70 6f 72 74 20 50 |r/ucb ; |export P|
|000005c0| 41 54 48 0a 69 66 20 74 | 65 73 74 20 2d 66 20 27 |ATH.if t|est -f '|
|000005d0| 4d 41 4e 49 46 45 53 54 | 27 20 2d 61 20 22 24 7b |MANIFEST|' -a "${|
|000005e0| 31 7d 22 20 21 3d 20 22 | 2d 63 22 20 3b 20 74 68 |1}" != "|-c" ; th|
|000005f0| 65 6e 20 0a 20 20 65 63 | 68 6f 20 73 68 61 72 3a |en . ec|ho shar:|
|00000600| 20 57 69 6c 6c 20 6e 6f | 74 20 63 6c 6f 62 62 65 | Will no|t clobbe|
|00000610| 72 20 65 78 69 73 74 69 | 6e 67 20 66 69 6c 65 20 |r existi|ng file |
|00000620| 5c 22 27 4d 41 4e 49 46 | 45 53 54 27 5c 22 0a 65 |\"'MANIF|EST'\".e|
|00000630| 6c 73 65 0a 65 63 68 6f | 20 73 68 61 72 3a 20 45 |lse.echo| shar: E|
|00000640| 78 74 72 61 63 74 69 6e | 67 20 5c 22 27 4d 41 4e |xtractin|g \"'MAN|
|00000650| 49 46 45 53 54 27 5c 22 | 20 5c 28 34 30 36 20 63 |IFEST'\"| \(406 c|
|00000660| 68 61 72 61 63 74 65 72 | 73 5c 29 0a 73 65 64 20 |haracter|s\).sed |
|00000670| 22 73 2f 5e 58 2f 2f 22 | 20 3e 27 4d 41 4e 49 46 |"s/^X//"| >'MANIF|
|00000680| 45 53 54 27 20 3c 3c 27 | 45 4e 44 5f 4f 46 5f 46 |EST' <<'|END_OF_F|
|00000690| 49 4c 45 27 0a 58 20 20 | 20 46 69 6c 65 20 4e 61 |ILE'.X | File Na|
|000006a0| 6d 65 09 09 41 72 63 68 | 69 76 65 20 23 09 44 65 |me..Arch|ive #.De|
|000006b0| 73 63 72 69 70 74 69 6f | 6e 0a 58 2d 2d 2d 2d 2d |scriptio|n.X-----|
|000006c0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000006d0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000006e0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000006f0| 2d 2d 2d 2d 2d 2d 0a 58 | 20 4d 41 4e 49 46 45 53 |------.X| MANIFES|
|00000700| 54 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |T | |
|00000710| 20 20 20 20 31 09 0a 58 | 20 4d 61 6b 65 66 69 6c | 1..X| Makefil|
|00000720| 65 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |e | |
|00000730| 20 20 20 20 31 09 0a 58 | 20 52 45 41 44 4d 45 20 | 1..X| README |
|00000740| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000750| 20 20 20 20 31 09 0a 58 | 20 64 69 73 2e 68 20 20 | 1..X| dis.h |
|00000760| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000770| 20 20 20 20 31 09 0a 58 | 20 64 69 73 38 38 2e 31 | 1..X| dis88.1|
|00000780| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000790| 20 20 20 20 31 09 0a 58 | 20 64 69 73 66 70 2e 63 | 1..X| disfp.c|
|000007a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000007b0| 20 20 20 20 31 09 0a 58 | 20 64 69 73 68 61 6e 64 | 1..X| dishand|
|000007c0| 2e 63 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.c | |
|000007d0| 20 20 20 20 32 09 0a 58 | 20 64 69 73 6d 61 69 6e | 2..X| dismain|
|000007e0| 2e 63 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.c | |
|000007f0| 20 20 20 20 31 09 0a 58 | 20 64 69 73 72 65 6c 2e | 1..X| disrel.|
|00000800| 63 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |c | |
|00000810| 20 20 20 20 31 09 0a 58 | 20 64 69 73 74 61 62 73 | 1..X| distabs|
|00000820| 2e 63 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.c | |
|00000830| 20 20 20 20 32 09 0a 45 | 4e 44 5f 4f 46 5f 46 49 | 2..E|ND_OF_FI|
|00000840| 4c 45 0a 69 66 20 74 65 | 73 74 20 34 30 36 20 2d |LE.if te|st 406 -|
|00000850| 6e 65 20 60 77 63 20 2d | 63 20 3c 27 4d 41 4e 49 |ne `wc -|c <'MANI|
|00000860| 46 45 53 54 27 60 3b 20 | 74 68 65 6e 0a 20 20 20 |FEST'`; |then. |
|00000870| 20 65 63 68 6f 20 73 68 | 61 72 3a 20 5c 22 27 4d | echo sh|ar: \"'M|
|00000880| 41 4e 49 46 45 53 54 27 | 5c 22 20 75 6e 70 61 63 |ANIFEST'|\" unpac|
|00000890| 6b 65 64 20 77 69 74 68 | 20 77 72 6f 6e 67 20 73 |ked with| wrong s|
|000008a0| 69 7a 65 21 0a 66 69 0a | 23 20 65 6e 64 20 6f 66 |ize!.fi.|# end of|
|000008b0| 20 27 4d 41 4e 49 46 45 | 53 54 27 0a 66 69 0a 69 | 'MANIFE|ST'.fi.i|
|000008c0| 66 20 74 65 73 74 20 2d | 66 20 27 4d 61 6b 65 66 |f test -|f 'Makef|
|000008d0| 69 6c 65 27 20 2d 61 20 | 22 24 7b 31 7d 22 20 21 |ile' -a |"${1}" !|
|000008e0| 3d 20 22 2d 63 22 20 3b | 20 74 68 65 6e 20 0a 20 |= "-c" ;| then . |
|000008f0| 20 65 63 68 6f 20 73 68 | 61 72 3a 20 57 69 6c 6c | echo sh|ar: Will|
|00000900| 20 6e 6f 74 20 63 6c 6f | 62 62 65 72 20 65 78 69 | not clo|bber exi|
|00000910| 73 74 69 6e 67 20 66 69 | 6c 65 20 5c 22 27 4d 61 |sting fi|le \"'Ma|
|00000920| 6b 65 66 69 6c 65 27 5c | 22 0a 65 6c 73 65 0a 65 |kefile'\|".else.e|
|00000930| 63 68 6f 20 73 68 61 72 | 3a 20 45 78 74 72 61 63 |cho shar|: Extrac|
|00000940| 74 69 6e 67 20 5c 22 27 | 4d 61 6b 65 66 69 6c 65 |ting \"'|Makefile|
|00000950| 27 5c 22 20 5c 28 31 35 | 39 33 20 63 68 61 72 61 |'\" \(15|93 chara|
|00000960| 63 74 65 72 73 5c 29 0a | 73 65 64 20 22 73 2f 5e |cters\).|sed "s/^|
|00000970| 58 2f 2f 22 20 3e 27 4d | 61 6b 65 66 69 6c 65 27 |X//" >'M|akefile'|
|00000980| 20 3c 3c 27 45 4e 44 5f | 4f 46 5f 46 49 4c 45 27 | <<'END_|OF_FILE'|
|00000990| 0a 58 23 20 40 28 23 29 | 20 4d 61 6b 65 66 69 6c |.X# @(#)| Makefil|
|000009a0| 65 2c 20 56 65 72 2e 20 | 32 2e 31 20 63 72 65 61 |e, Ver. |2.1 crea|
|000009b0| 74 65 64 20 30 30 3a 30 | 30 3a 30 30 20 38 37 2f |ted 00:0|0:00 87/|
|000009c0| 30 39 2f 30 31 0a 58 23 | 20 4d 61 6b 65 66 69 6c |09/01.X#| Makefil|
|000009d0| 65 20 66 6f 72 20 38 30 | 38 38 20 73 79 6d 62 6f |e for 80|88 symbo|
|000009e0| 6c 69 63 20 64 69 73 61 | 73 73 65 6d 62 6c 65 72 |lic disa|ssembler|
|000009f0| 0a 58 0a 58 23 20 43 6f | 70 79 72 69 67 68 74 20 |.X.X# Co|pyright |
|00000a00| 28 43 29 20 31 39 38 37 | 20 47 2e 20 4d 2e 20 48 |(C) 1987| G. M. H|
|00000a10| 61 72 64 69 6e 67 2c 20 | 61 6c 6c 20 72 69 67 68 |arding, |all righ|
|00000a20| 74 73 20 72 65 73 65 72 | 76 65 64 2e 0a 58 23 20 |ts reser|ved..X# |
|00000a30| 50 65 72 6d 69 73 73 69 | 6f 6e 20 74 6f 20 63 6f |Permissi|on to co|
|00000a40| 70 79 20 61 6e 64 20 72 | 65 64 69 73 74 72 69 62 |py and r|edistrib|
|00000a50| 75 74 65 20 69 73 20 68 | 65 72 65 62 79 20 67 72 |ute is h|ereby gr|
|00000a60| 61 6e 74 65 64 2c 0a 58 | 23 20 70 72 6f 76 69 64 |anted,.X|# provid|
|00000a70| 65 64 20 66 75 6c 6c 20 | 73 6f 75 72 63 65 20 63 |ed full |source c|
|00000a80| 6f 64 65 2c 20 77 69 74 | 68 20 61 6c 6c 20 63 6f |ode, wit|h all co|
|00000a90| 70 79 72 69 67 68 74 20 | 6e 6f 74 69 63 65 73 2c |pyright |notices,|
|00000aa0| 0a 58 23 20 61 63 63 6f | 6d 70 61 6e 69 65 73 20 |.X# acco|mpanies |
|00000ab0| 61 6e 79 20 72 65 64 69 | 73 74 72 69 62 75 74 69 |any redi|stributi|
|00000ac0| 6f 6e 2e 0a 58 0a 58 23 | 20 54 68 69 73 20 4d 61 |on..X.X#| This Ma|
|00000ad0| 6b 65 66 69 6c 65 20 20 | 61 75 74 6f 6d 61 74 65 |kefile |automate|
|00000ae0| 73 20 74 68 65 20 70 72 | 6f 63 65 73 73 20 6f 66 |s the pr|ocess of|
|00000af0| 20 63 6f 6d 70 69 6c 69 | 6e 67 20 61 6e 64 20 6c | compili|ng and l|
|00000b00| 69 6e 6b 69 6e 67 0a 58 | 23 20 61 20 73 79 6d 62 |inking.X|# a symb|
|00000b10| 6f 6c 69 63 20 20 6f 62 | 6a 65 63 74 2d 66 69 6c |olic ob|ject-fil|
|00000b20| 65 20 20 64 69 73 61 73 | 73 65 6d 62 6c 65 72 20 |e disas|sembler |
|00000b30| 20 70 72 6f 67 72 61 6d | 20 20 66 6f 72 20 74 68 | program| for th|
|00000b40| 65 20 49 6e 74 65 6c 0a | 58 23 20 38 30 38 38 20 |e Intel.|X# 8088 |
|00000b50| 43 50 55 2e 20 52 65 6c | 61 74 69 76 65 6c 79 20 |CPU. Rel|atively |
|00000b60| 6d 61 63 68 69 6e 65 2d | 69 6e 64 65 70 65 6e 64 |machine-|independ|
|00000b70| 65 6e 74 20 63 6f 64 65 | 20 69 73 20 63 6f 6e 74 |ent code| is cont|
|00000b80| 61 69 6e 65 64 20 69 6e | 0a 58 23 20 74 68 65 20 |ained in|.X# the |
|00000b90| 66 69 6c 65 20 64 69 73 | 6d 61 69 6e 2e 63 3b 20 |file dis|main.c; |
|00000ba0| 6c 6f 6f 6b 75 70 20 74 | 61 62 6c 65 73 20 61 6e |lookup t|ables an|
|00000bb0| 64 20 68 61 6e 64 6c 65 | 72 20 72 6f 75 74 69 6e |d handle|r routin|
|00000bc0| 65 73 2c 20 77 68 69 63 | 68 0a 58 23 20 61 72 65 |es, whic|h.X# are|
|00000bd0| 20 62 79 20 74 68 65 69 | 72 20 6e 61 74 75 72 65 | by thei|r nature|
|00000be0| 20 20 6d 61 63 68 69 6e | 65 2d 73 70 65 63 69 66 | machin|e-specif|
|00000bf0| 69 63 2c 20 20 61 72 65 | 20 20 63 6f 6e 74 61 69 |ic, are| contai|
|00000c00| 6e 65 64 20 69 6e 20 74 | 77 6f 0a 58 23 20 66 69 |ned in t|wo.X# fi|
|00000c10| 6c 65 73 20 6e 61 6d 65 | 64 20 64 69 73 74 61 62 |les name|d distab|
|00000c20| 73 2e 63 20 61 6e 64 20 | 64 69 73 68 61 6e 64 2e |s.c and |dishand.|
|00000c30| 63 2c 20 20 72 65 73 70 | 65 63 74 69 76 65 6c 79 |c, resp|ectively|
|00000c40| 2e 20 20 28 41 20 74 68 | 69 72 64 0a 58 23 20 6d |. (A th|ird.X# m|
|00000c50| 61 63 68 69 6e 65 2d 73 | 70 65 63 69 66 69 63 20 |achine-s|pecific |
|00000c60| 66 69 6c 65 2c 20 64 69 | 73 66 70 2e 63 2c 20 63 |file, di|sfp.c, c|
|00000c70| 6f 6e 74 61 69 6e 73 20 | 68 61 6e 64 6c 65 72 20 |ontains |handler |
|00000c80| 72 6f 75 74 69 6e 65 73 | 20 66 6f 72 0a 58 23 20 |routines| for.X# |
|00000c90| 66 6c 6f 61 74 69 6e 67 | 2d 70 6f 69 6e 74 20 20 |floating|-point |
|00000ca0| 63 6f 70 72 6f 63 65 73 | 73 6f 72 20 6f 70 63 6f |coproces|sor opco|
|00000cb0| 64 65 73 2e 29 20 20 41 | 20 68 65 61 64 65 72 20 |des.) A| header |
|00000cc0| 66 69 6c 65 2c 20 20 64 | 69 73 2e 68 2c 0a 58 23 |file, d|is.h,.X#|
|00000cd0| 20 61 74 74 65 6d 70 74 | 73 20 74 6f 20 6d 65 64 | attempt|s to med|
|00000ce0| 69 61 74 65 20 62 65 74 | 77 65 65 6e 20 74 68 65 |iate bet|ween the|
|00000cf0| 20 6d 61 63 68 69 6e 65 | 2d 73 70 65 63 69 66 69 | machine|-specifi|
|00000d00| 63 20 61 6e 64 20 6d 61 | 63 68 69 6e 65 2d 0a 58 |c and ma|chine-.X|
|00000d10| 23 20 69 6e 64 65 70 65 | 6e 64 65 6e 74 20 70 6f |# indepe|ndent po|
|00000d20| 72 74 69 6f 6e 73 20 6f | 66 20 74 68 65 20 63 6f |rtions o|f the co|
|00000d30| 64 65 2e 20 41 6e 20 61 | 74 74 65 6d 70 74 20 68 |de. An a|ttempt h|
|00000d40| 61 73 20 62 65 65 6e 20 | 6d 61 64 65 20 74 6f 0a |as been |made to.|
|00000d50| 58 23 20 69 73 6f 6c 61 | 74 65 20 6d 61 63 68 69 |X# isola|te machi|
|00000d60| 6e 65 20 20 64 65 70 65 | 6e 64 65 6e 63 69 65 73 |ne depe|ndencies|
|00000d70| 20 61 6e 64 20 74 6f 20 | 64 65 61 6c 20 77 69 74 | and to |deal wit|
|00000d80| 68 20 74 68 65 6d 20 69 | 6e 20 66 61 69 72 6c 79 |h them i|n fairly|
|00000d90| 0a 58 23 20 73 74 72 61 | 69 67 68 74 66 6f 72 77 |.X# stra|ightforw|
|00000da0| 61 72 64 20 77 61 79 73 | 2e 20 54 68 75 73 2c 20 |ard ways|. Thus, |
|00000db0| 69 74 20 73 68 6f 75 6c | 64 20 62 65 20 70 6f 73 |it shoul|d be pos|
|00000dc0| 73 69 62 6c 65 20 74 6f | 20 74 61 72 67 65 74 20 |sible to| target |
|00000dd0| 61 0a 58 23 20 64 69 66 | 66 65 72 65 6e 74 20 43 |a.X# dif|ferent C|
|00000de0| 50 55 20 62 79 20 72 65 | 77 72 69 74 69 6e 67 20 |PU by re|writing |
|00000df0| 74 68 65 20 68 61 6e 64 | 6c 65 72 20 20 72 6f 75 |the hand|ler rou|
|00000e00| 74 69 6e 65 73 20 61 6e | 64 20 63 68 61 6e 67 69 |tines an|d changi|
|00000e10| 6e 67 0a 58 23 20 74 68 | 65 20 69 6e 69 74 69 61 |ng.X# th|e initia|
|00000e20| 6c 69 7a 61 74 69 6f 6e | 20 20 64 61 74 61 20 69 |lization| data i|
|00000e30| 6e 20 74 68 65 20 6c 6f | 6f 6b 75 70 20 74 61 62 |n the lo|okup tab|
|00000e40| 6c 65 73 2e 20 20 49 74 | 20 73 68 6f 75 6c 64 20 |les. It| should |
|00000e50| 6e 6f 74 0a 58 23 20 62 | 65 20 6e 65 63 65 73 73 |not.X# b|e necess|
|00000e60| 61 72 79 20 74 6f 20 61 | 6c 74 65 72 20 74 68 65 |ary to a|lter the|
|00000e70| 20 66 6f 72 6d 61 74 73 | 20 6f 66 20 74 68 65 20 | formats| of the |
|00000e80| 74 61 62 6c 65 73 2e 0a | 58 0a 4f 42 4a 20 3d 20 |tables..|X.OBJ = |
|00000e90| 64 69 73 72 65 6c 2e 6f | 20 64 69 73 6d 61 69 6e |disrel.o| dismain|
|00000ea0| 2e 6f 20 64 69 73 74 61 | 62 73 2e 6f 20 64 69 73 |.o dista|bs.o dis|
|00000eb0| 68 61 6e 64 2e 6f 20 64 | 69 73 66 70 2e 6f 0a 58 |hand.o d|isfp.o.X|
|00000ec0| 0a 64 69 73 38 38 20 3a | 20 24 28 4f 42 4a 29 0a |.dis88 :| $(OBJ).|
|00000ed0| 58 09 6c 64 20 2d 69 20 | 2d 73 20 2d 6f 20 64 69 |X.ld -i |-s -o di|
|00000ee0| 73 38 38 20 2f 6c 69 62 | 2f 63 72 74 30 2e 6f 20 |s88 /lib|/crt0.o |
|00000ef0| 24 28 4f 42 4a 29 20 2d | 6c 63 0a 58 09 73 69 7a |$(OBJ) -|lc.X.siz|
|00000f00| 65 20 64 69 73 38 38 0a | 58 09 40 65 63 68 6f 20 |e dis88.|X.@echo |
|00000f10| 22 5c 30 37 42 75 69 6c | 64 20 6f 66 20 27 64 69 |"\07Buil|d of 'di|
|00000f20| 73 38 38 27 20 63 6f 6d | 70 6c 65 74 65 2e 22 20 |s88' com|plete." |
|00000f30| 3e 20 2f 64 65 76 2f 74 | 74 79 0a 58 0a 58 2e 63 |> /dev/t|ty.X.X.c|
|00000f40| 2e 6f 20 3a 0a 58 09 63 | 63 20 2d 4f 20 2d 63 20 |.o :.X.c|c -O -c |
|00000f50| 24 3c 0a 58 09 63 68 6d | 6f 64 20 36 30 30 20 24 |$<.X.chm|od 600 $|
|00000f60| 2a 2e 6f 0a 58 0a 64 69 | 73 72 65 6c 2e 6f 20 3a |*.o.X.di|srel.o :|
|00000f70| 20 64 69 73 72 65 6c 2e | 63 0a 58 0a 64 69 73 6d | disrel.|c.X.dism|
|00000f80| 61 69 6e 2e 6f 20 3a 20 | 64 69 73 6d 61 69 6e 2e |ain.o : |dismain.|
|00000f90| 63 20 64 69 73 2e 68 0a | 58 0a 64 69 73 74 61 62 |c dis.h.|X.distab|
|00000fa0| 73 2e 6f 20 3a 20 64 69 | 73 74 61 62 73 2e 63 20 |s.o : di|stabs.c |
|00000fb0| 64 69 73 2e 68 0a 58 0a | 64 69 73 68 61 6e 64 2e |dis.h.X.|dishand.|
|00000fc0| 6f 20 3a 20 64 69 73 68 | 61 6e 64 2e 63 20 64 69 |o : dish|and.c di|
|00000fd0| 73 2e 68 0a 58 0a 64 69 | 73 66 70 2e 6f 20 3a 20 |s.h.X.di|sfp.o : |
|00000fe0| 64 69 73 66 70 2e 63 20 | 64 69 73 2e 68 0a 58 0a |disfp.c |dis.h.X.|
|00000ff0| 45 4e 44 5f 4f 46 5f 46 | 49 4c 45 0a 69 66 20 74 |END_OF_F|ILE.if t|
|00001000| 65 73 74 20 31 35 39 33 | 20 2d 6e 65 20 60 77 63 |est 1593| -ne `wc|
|00001010| 20 2d 63 20 3c 27 4d 61 | 6b 65 66 69 6c 65 27 60 | -c <'Ma|kefile'`|
|00001020| 3b 20 74 68 65 6e 0a 20 | 20 20 20 65 63 68 6f 20 |; then. | echo |
|00001030| 73 68 61 72 3a 20 5c 22 | 27 4d 61 6b 65 66 69 6c |shar: \"|'Makefil|
|00001040| 65 27 5c 22 20 75 6e 70 | 61 63 6b 65 64 20 77 69 |e'\" unp|acked wi|
|00001050| 74 68 20 77 72 6f 6e 67 | 20 73 69 7a 65 21 0a 66 |th wrong| size!.f|
|00001060| 69 0a 23 20 65 6e 64 20 | 6f 66 20 27 4d 61 6b 65 |i.# end |of 'Make|
|00001070| 66 69 6c 65 27 0a 66 69 | 0a 69 66 20 74 65 73 74 |file'.fi|.if test|
|00001080| 20 2d 66 20 27 52 45 41 | 44 4d 45 27 20 2d 61 20 | -f 'REA|DME' -a |
|00001090| 22 24 7b 31 7d 22 20 21 | 3d 20 22 2d 63 22 20 3b |"${1}" !|= "-c" ;|
|000010a0| 20 74 68 65 6e 20 0a 20 | 20 65 63 68 6f 20 73 68 | then . | echo sh|
|000010b0| 61 72 3a 20 57 69 6c 6c | 20 6e 6f 74 20 63 6c 6f |ar: Will| not clo|
|000010c0| 62 62 65 72 20 65 78 69 | 73 74 69 6e 67 20 66 69 |bber exi|sting fi|
|000010d0| 6c 65 20 5c 22 27 52 45 | 41 44 4d 45 27 5c 22 0a |le \"'RE|ADME'\".|
|000010e0| 65 6c 73 65 0a 65 63 68 | 6f 20 73 68 61 72 3a 20 |else.ech|o shar: |
|000010f0| 45 78 74 72 61 63 74 69 | 6e 67 20 5c 22 27 52 45 |Extracti|ng \"'RE|
|00001100| 41 44 4d 45 27 5c 22 20 | 5c 28 34 38 39 38 20 63 |ADME'\" |\(4898 c|
|00001110| 68 61 72 61 63 74 65 72 | 73 5c 29 0a 73 65 64 20 |haracter|s\).sed |
|00001120| 22 73 2f 5e 58 2f 2f 22 | 20 3e 27 52 45 41 44 4d |"s/^X//"| >'READM|
|00001130| 45 27 20 3c 3c 27 45 4e | 44 5f 4f 46 5f 46 49 4c |E' <<'EN|D_OF_FIL|
|00001140| 45 27 0a 58 20 20 20 20 | 20 20 20 20 20 20 20 20 |E'.X | |
|00001150| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001160| 20 20 20 20 20 20 20 20 | 20 64 69 73 38 38 0a 58 | | dis88.X|
|00001170| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001180| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001190| 20 20 42 65 74 61 20 52 | 65 6c 65 61 73 65 0a 58 | Beta R|elease.X|
|000011a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000011b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000011c0| 20 20 20 20 38 37 2f 30 | 39 2f 30 31 0a 58 20 20 | 87/0|9/01.X |
|000011d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000011e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000011f0| 20 20 20 20 2d 2d 2d 0a | 58 20 20 20 20 20 20 20 | ---.|X |
|00001200| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001210| 20 20 20 20 20 20 20 20 | 20 20 47 2e 20 4d 2e 20 | | G. M. |
|00001220| 48 41 52 44 49 4e 47 0a | 58 20 20 20 20 20 20 20 |HARDING.|X |
|00001230| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001240| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 50 4f 42 | | POB|
|00001250| 20 34 31 34 32 0a 58 20 | 20 20 20 20 20 20 20 20 | 4142.X | |
|00001260| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001270| 20 20 53 61 6e 74 61 20 | 43 6c 61 72 61 20 43 41 | Santa |Clara CA|
|00001280| 20 20 39 35 30 35 34 2d | 30 31 34 32 0a 58 0a 58 | 95054-|0142.X.X|
|00001290| 0a 58 20 20 20 20 20 20 | 20 20 20 20 20 20 20 22 |.X | "|
|000012a0| 44 69 73 38 38 22 20 69 | 73 20 61 20 73 79 6d 62 |Dis88" i|s a symb|
|000012b0| 6f 6c 69 63 20 64 69 73 | 61 73 73 65 6d 62 6c 65 |olic dis|assemble|
|000012c0| 72 20 66 6f 72 20 74 68 | 65 20 49 6e 74 65 6c 20 |r for th|e Intel |
|000012d0| 38 30 38 38 20 43 50 55 | 2c 0a 58 20 20 20 20 20 |8088 CPU|,.X |
|000012e0| 20 20 20 64 65 73 69 67 | 6e 65 64 20 74 6f 20 72 | desig|ned to r|
|000012f0| 75 6e 20 75 6e 64 65 72 | 20 74 68 65 20 50 43 2f |un under| the PC/|
|00001300| 49 58 20 20 6f 70 65 72 | 61 74 69 6e 67 20 20 73 |IX oper|ating s|
|00001310| 79 73 74 65 6d 20 6f 6e | 20 61 6e 20 49 42 4d 20 |ystem on| an IBM |
|00001320| 58 54 0a 58 20 20 20 20 | 20 20 20 20 6f 72 20 66 |XT.X | or f|
|00001330| 75 6c 6c 79 2d 63 6f 6d | 70 61 74 69 62 6c 65 20 |ully-com|patible |
|00001340| 63 6c 6f 6e 65 2e 20 20 | 49 74 73 20 6f 75 74 70 |clone. |Its outp|
|00001350| 75 74 20 69 73 20 69 6e | 20 74 68 65 20 66 6f 72 |ut is in| the for|
|00001360| 6d 61 74 20 6f 66 2c 20 | 61 6e 64 0a 58 20 20 20 |mat of, |and.X |
|00001370| 20 20 20 20 20 69 73 20 | 63 6f 6d 70 6c 65 74 65 | is |complete|
|00001380| 6c 79 20 63 6f 6d 70 61 | 74 69 62 6c 65 20 77 69 |ly compa|tible wi|
|00001390| 74 68 2c 20 74 68 65 20 | 50 43 2f 49 58 20 61 73 |th, the |PC/IX as|
|000013a0| 73 65 6d 62 6c 65 72 2c | 20 20 22 61 73 22 2e 20 |sembler,| "as". |
|000013b0| 20 54 68 65 0a 58 20 20 | 20 20 20 20 20 20 70 72 | The.X | pr|
|000013c0| 6f 67 72 61 6d 20 69 73 | 20 63 6f 70 79 72 69 67 |ogram is| copyrig|
|000013d0| 68 74 65 64 20 62 79 20 | 69 74 73 20 61 75 74 68 |hted by |its auth|
|000013e0| 6f 72 2c 20 62 75 74 20 | 6d 61 79 20 62 65 20 63 |or, but |may be c|
|000013f0| 6f 70 69 65 64 20 61 6e | 64 20 72 65 2d 0a 58 20 |opied an|d re-.X |
|00001400| 20 20 20 20 20 20 20 64 | 69 73 74 72 69 62 75 74 | d|istribut|
|00001410| 65 64 20 66 72 65 65 6c | 79 20 70 72 6f 76 69 64 |ed freel|y provid|
|00001420| 65 64 20 74 68 61 74 20 | 63 6f 6d 70 6c 65 74 65 |ed that |complete|
|00001430| 20 73 6f 75 72 63 65 20 | 63 6f 64 65 2c 20 77 69 | source |code, wi|
|00001440| 74 68 20 61 6c 6c 0a 58 | 20 20 20 20 20 20 20 20 |th all.X| |
|00001450| 63 6f 70 79 72 69 67 68 | 74 20 6e 6f 74 69 63 65 |copyrigh|t notice|
|00001460| 73 2c 20 61 63 63 6f 6d | 70 61 6e 69 65 73 20 61 |s, accom|panies a|
|00001470| 6e 79 20 64 69 73 74 72 | 69 62 75 74 69 6f 6e 2e |ny distr|ibution.|
|00001480| 20 54 68 69 73 20 70 72 | 6f 76 69 73 69 6f 6e 0a | This pr|ovision.|
|00001490| 58 20 20 20 20 20 20 20 | 20 61 6c 73 6f 20 61 70 |X | also ap|
|000014a0| 70 6c 69 65 73 20 74 6f | 20 61 6e 79 20 20 6d 6f |plies to| any mo|
|000014b0| 64 69 66 69 63 61 74 69 | 6f 6e 73 20 79 6f 75 20 |dificati|ons you |
|000014c0| 6d 61 79 20 6d 61 6b 65 | 2e 20 20 59 6f 75 20 61 |may make|. You a|
|000014d0| 72 65 20 75 72 67 65 64 | 0a 58 20 20 20 20 20 20 |re urged|.X |
|000014e0| 20 20 74 6f 20 63 6f 6d | 6d 65 6e 74 20 73 75 63 | to com|ment suc|
|000014f0| 68 20 63 68 61 6e 67 65 | 73 2c 20 20 67 69 76 69 |h change|s, givi|
|00001500| 6e 67 2c 20 20 61 73 20 | 61 20 6d 69 6d 69 6e 75 |ng, as |a miminu|
|00001510| 6d 2c 20 20 79 6f 75 72 | 20 6e 61 6d 65 20 61 6e |m, your| name an|
|00001520| 64 0a 58 20 20 20 20 20 | 20 20 20 63 6f 6d 70 6c |d.X | compl|
|00001530| 65 74 65 20 61 64 64 72 | 65 73 73 2e 0a 58 0a 58 |ete addr|ess..X.X|
|00001540| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 54 68 69 | | Thi|
|00001550| 73 20 72 65 6c 65 61 73 | 65 20 6f 66 20 74 68 65 |s releas|e of the|
|00001560| 20 70 72 6f 67 72 61 6d | 20 69 73 20 61 20 62 65 | program| is a be|
|00001570| 74 61 20 72 65 6c 65 61 | 73 65 2c 20 77 68 69 63 |ta relea|se, whic|
|00001580| 68 20 6d 65 61 6e 73 0a | 58 20 20 20 20 20 20 20 |h means.|X |
|00001590| 20 74 68 61 74 20 69 74 | 20 68 61 73 20 62 65 65 | that it| has bee|
|000015a0| 6e 20 20 65 78 74 65 6e | 73 69 76 65 6c 79 2c 20 |n exten|sively, |
|000015b0| 20 62 75 74 20 6e 6f 74 | 20 20 65 78 68 61 75 73 | but not| exhaus|
|000015c0| 74 69 76 65 6c 79 2c 20 | 20 74 65 73 74 65 64 2e |tively, | tested.|
|000015d0| 0a 58 20 20 20 20 20 20 | 20 20 55 73 65 72 20 63 |.X | User c|
|000015e0| 6f 6d 6d 65 6e 74 73 2c | 20 72 65 63 6f 6d 6d 65 |omments,| recomme|
|000015f0| 6e 64 61 74 69 6f 6e 73 | 2c 20 61 6e 64 20 62 75 |ndations|, and bu|
|00001600| 67 20 66 69 78 65 73 20 | 61 72 65 20 77 65 6c 63 |g fixes |are welc|
|00001610| 6f 6d 65 2e 20 20 54 68 | 65 0a 58 20 20 20 20 20 |ome. Th|e.X |
|00001620| 20 20 20 70 72 69 6e 63 | 69 70 61 6c 20 66 65 61 | princ|ipal fea|
|00001630| 74 75 72 65 73 20 6f 66 | 20 74 68 65 20 63 75 72 |tures of| the cur|
|00001640| 72 65 6e 74 20 72 65 6c | 65 61 73 65 20 61 72 65 |rent rel|ease are|
|00001650| 3a 0a 58 0a 58 20 20 20 | 20 20 20 20 20 20 20 20 |:.X.X | |
|00001660| 20 20 28 61 29 20 20 54 | 68 65 20 61 62 69 6c 69 | (a) T|he abili|
|00001670| 74 79 20 74 6f 20 20 64 | 69 73 61 73 73 65 6d 62 |ty to d|isassemb|
|00001680| 6c 65 20 20 61 6e 79 20 | 66 69 6c 65 20 69 6e 20 |le any |file in |
|00001690| 50 43 2f 49 58 20 6f 62 | 6a 65 63 74 0a 58 20 20 |PC/IX ob|ject.X |
|000016a0| 20 20 20 20 20 20 66 6f | 72 6d 61 74 2c 20 6d 61 | fo|rmat, ma|
|000016b0| 6b 69 6e 67 20 66 75 6c | 6c 20 75 73 65 20 6f 66 |king ful|l use of|
|000016c0| 20 73 79 6d 62 6f 6c 20 | 61 6e 64 20 72 65 6c 6f | symbol |and relo|
|000016d0| 63 61 74 69 6f 6e 20 69 | 6e 66 6f 72 6d 61 74 69 |cation i|nformati|
|000016e0| 6f 6e 20 69 66 0a 58 20 | 20 20 20 20 20 20 20 69 |on if.X | i|
|000016f0| 74 20 69 73 20 70 72 65 | 73 65 6e 74 2c 20 20 72 |t is pre|sent, r|
|00001700| 65 67 61 72 64 6c 65 73 | 73 20 6f 66 20 77 68 65 |egardles|s of whe|
|00001710| 74 68 65 72 20 74 68 65 | 20 66 69 6c 65 20 69 73 |ther the| file is|
|00001720| 20 65 78 65 63 75 74 61 | 62 6c 65 20 6f 72 0a 58 | executa|ble or.X|
|00001730| 20 20 20 20 20 20 20 20 | 6c 69 6e 6b 61 62 6c 65 | |linkable|
|00001740| 2c 20 20 61 6e 64 20 72 | 65 67 61 72 64 6c 65 73 |, and r|egardles|
|00001750| 73 20 6f 66 20 77 68 65 | 74 68 65 72 20 69 74 20 |s of whe|ther it |
|00001760| 68 61 73 20 63 6f 6e 74 | 69 6e 75 6f 75 73 20 6f |has cont|inuous o|
|00001770| 72 20 73 70 6c 69 74 0a | 58 20 20 20 20 20 20 20 |r split.|X |
|00001780| 20 49 2f 44 20 73 70 61 | 63 65 3b 0a 58 0a 58 20 | I/D spa|ce;.X.X |
|00001790| 20 20 20 20 20 20 20 20 | 20 20 20 20 28 62 29 20 | | (b) |
|000017a0| 20 41 75 74 6f 6d 61 74 | 69 63 20 67 65 6e 65 72 | Automat|ic gener|
|000017b0| 61 74 69 6f 6e 20 6f 66 | 20 73 79 6e 74 68 65 74 |ation of| synthet|
|000017c0| 69 63 20 6c 61 62 65 6c | 73 20 77 68 65 6e 20 6e |ic label|s when n|
|000017d0| 6f 20 73 79 6d 2d 0a 58 | 20 20 20 20 20 20 20 20 |o sym-.X| |
|000017e0| 62 6f 6c 20 74 61 62 6c | 65 20 69 73 20 61 76 61 |bol tabl|e is ava|
|000017f0| 69 6c 61 62 6c 65 3b 20 | 61 6e 64 0a 58 0a 58 20 |ilable; |and.X.X |
|00001800| 20 20 20 20 20 20 20 20 | 20 20 20 20 28 63 29 20 | | (c) |
|00001810| 20 4f 70 74 69 6f 6e 61 | 6c 20 20 6f 75 74 70 75 | Optiona|l outpu|
|00001820| 74 20 6f 66 20 61 64 64 | 72 65 73 73 20 61 6e 64 |t of add|ress and|
|00001830| 20 6f 62 6a 65 63 74 2d | 63 6f 64 65 20 20 69 6e | object-|code in|
|00001840| 66 6f 72 6d 61 2d 0a 58 | 20 20 20 20 20 20 20 20 |forma-.X| |
|00001850| 74 69 6f 6e 20 61 73 20 | 61 73 73 65 6d 62 6c 65 |tion as |assemble|
|00001860| 72 20 63 6f 6d 6d 65 6e | 74 20 74 65 78 74 2e 0a |r commen|t text..|
|00001870| 58 0a 58 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |X.X | |
|00001880| 4c 69 6d 69 74 61 74 69 | 6f 6e 73 20 6f 66 20 74 |Limitati|ons of t|
|00001890| 68 65 20 63 75 72 72 65 | 6e 74 20 72 65 6c 65 61 |he curre|nt relea|
|000018a0| 73 65 20 61 72 65 3a 0a | 58 0a 58 20 20 20 20 20 |se are:.|X.X |
|000018b0| 20 20 20 20 20 20 20 20 | 28 61 29 20 20 4e 75 6d | |(a) Num|
|000018c0| 65 72 69 63 20 63 6f 2d | 70 72 6f 63 65 73 73 6f |eric co-|processo|
|000018d0| 72 20 20 28 69 2e 65 2e | 2c 20 38 30 38 37 29 20 |r (i.e.|, 8087) |
|000018e0| 20 6d 6e 65 6d 6f 6e 69 | 63 73 20 61 72 65 20 6e | mnemoni|cs are n|
|000018f0| 6f 74 0a 58 20 20 20 20 | 20 20 20 20 73 75 70 70 |ot.X | supp|
|00001900| 6f 72 74 65 64 2e 20 20 | 49 6e 73 74 72 75 63 74 |orted. |Instruct|
|00001910| 69 6f 6e 73 20 20 66 6f | 72 20 74 68 65 20 63 6f |ions fo|r the co|
|00001920| 2d 70 72 6f 63 65 73 73 | 6f 72 20 61 72 65 20 64 |-process|or are d|
|00001930| 69 73 61 73 73 65 6d 62 | 6c 65 64 0a 58 20 20 20 |isassemb|led.X |
|00001940| 20 20 20 20 20 61 73 20 | 43 50 55 20 65 73 63 61 | as |CPU esca|
|00001950| 70 65 20 20 73 65 71 75 | 65 6e 63 65 73 2c 20 20 |pe sequ|ences, |
|00001960| 6f 72 20 61 73 20 20 69 | 6e 74 65 72 72 75 70 74 |or as i|nterrupt|
|00001970| 73 2c 20 20 64 65 70 65 | 6e 64 69 6e 67 20 6f 6e |s, depe|nding on|
|00001980| 20 68 6f 77 0a 58 20 20 | 20 20 20 20 20 20 74 68 | how.X | th|
|00001990| 65 79 20 77 65 72 65 20 | 61 73 73 65 6d 62 6c 65 |ey were |assemble|
|000019a0| 64 20 69 6e 20 74 68 65 | 20 66 69 72 73 74 20 70 |d in the| first p|
|000019b0| 6c 61 63 65 2e 20 54 68 | 69 73 20 6c 69 6d 69 74 |lace. Th|is limit|
|000019c0| 61 74 69 6f 6e 20 77 69 | 6c 6c 20 62 65 0a 58 20 |ation wi|ll be.X |
|000019d0| 20 20 20 20 20 20 20 61 | 64 64 72 65 73 73 65 64 | a|ddressed|
|000019e0| 20 69 6e 20 61 20 66 75 | 74 75 72 65 20 72 65 6c | in a fu|ture rel|
|000019f0| 65 61 73 65 2e 0a 58 0a | 58 20 20 20 20 20 20 20 |ease..X.|X |
|00001a00| 20 20 20 20 20 20 28 62 | 29 20 20 53 79 6d 62 6f | (b|) Symbo|
|00001a10| 6c 69 63 20 20 72 65 66 | 65 72 65 6e 63 65 73 20 |lic ref|erences |
|00001a20| 20 77 69 74 68 69 6e 20 | 74 68 65 20 6f 62 6a 65 | within |the obje|
|00001a30| 63 74 20 20 66 69 6c 65 | 27 73 20 20 64 61 74 61 |ct file|'s data|
|00001a40| 0a 58 20 20 20 20 20 20 | 20 20 73 65 67 6d 65 6e |.X | segmen|
|00001a50| 74 20 61 72 65 20 6e 6f | 74 20 73 75 70 70 6f 72 |t are no|t suppor|
|00001a60| 74 65 64 2e 20 54 68 75 | 73 2c 20 66 6f 72 20 65 |ted. Thu|s, for e|
|00001a70| 78 61 6d 70 6c 65 2c 20 | 69 66 20 61 20 64 61 74 |xample, |if a dat|
|00001a80| 61 20 73 65 67 6d 65 6e | 74 0a 58 20 20 20 20 20 |a segmen|t.X |
|00001a90| 20 20 20 6c 6f 63 61 74 | 69 6f 6e 20 69 73 20 69 | locat|ion is i|
|00001aa0| 6e 69 74 69 61 6c 69 7a | 65 64 20 74 6f 20 70 6f |nitializ|ed to po|
|00001ab0| 69 6e 74 20 74 6f 20 61 | 20 74 65 78 74 20 73 65 |int to a| text se|
|00001ac0| 67 6d 65 6e 74 20 61 64 | 64 72 65 73 73 2c 20 20 |gment ad|dress, |
|00001ad0| 6e 6f 0a 58 20 20 20 20 | 20 20 20 20 72 65 66 65 |no.X | refe|
|00001ae0| 72 65 6e 63 65 20 74 6f | 20 61 20 74 65 78 74 20 |rence to| a text |
|00001af0| 73 65 67 6d 65 6e 74 20 | 73 79 6d 62 6f 6c 20 77 |segment |symbol w|
|00001b00| 69 6c 6c 20 62 65 20 64 | 65 74 65 63 74 65 64 2e |ill be d|etected.|
|00001b10| 20 54 68 69 73 20 6c 69 | 6d 69 2d 0a 58 20 20 20 | This li|mi-.X |
|00001b20| 20 20 20 20 20 74 61 74 | 69 6f 6e 20 69 73 20 6c | tat|ion is l|
|00001b30| 69 6b 65 6c 79 20 74 6f | 20 72 65 6d 61 69 6e 20 |ikely to| remain |
|00001b40| 69 6e 20 66 75 74 75 72 | 65 20 20 72 65 6c 65 61 |in futur|e relea|
|00001b50| 73 65 73 2c 20 20 62 65 | 63 61 75 73 65 20 6f 62 |ses, be|cause ob|
|00001b60| 6a 65 63 74 0a 58 20 20 | 20 20 20 20 20 20 63 6f |ject.X | co|
|00001b70| 64 65 20 64 6f 65 73 20 | 6e 6f 74 2c 20 69 6e 20 |de does |not, in |
|00001b80| 6d 6f 73 74 20 63 61 73 | 65 73 2c 20 63 6f 6e 74 |most cas|es, cont|
|00001b90| 61 69 6e 20 73 75 66 66 | 69 63 69 65 6e 74 20 69 |ain suff|icient i|
|00001ba0| 6e 66 6f 72 6d 61 74 69 | 6f 6e 20 74 6f 0a 58 20 |nformati|on to.X |
|00001bb0| 20 20 20 20 20 20 20 61 | 6c 6c 6f 77 20 6d 65 61 | a|llow mea|
|00001bc0| 6e 69 6e 67 66 75 6c 20 | 69 6e 74 65 72 70 72 65 |ningful |interpre|
|00001bd0| 74 61 74 69 6f 6e 20 6f | 66 20 70 75 72 65 20 64 |tation o|f pure d|
|00001be0| 61 74 61 2e 20 20 28 4e | 6f 74 65 2c 20 20 68 6f |ata. (N|ote, ho|
|00001bf0| 77 65 76 65 72 2c 0a 58 | 20 20 20 20 20 20 20 20 |wever,.X| |
|00001c00| 74 68 61 74 20 20 73 79 | 6d 62 6f 6c 69 63 20 20 |that sy|mbolic |
|00001c10| 72 65 66 65 72 65 6e 63 | 65 73 20 20 74 6f 20 74 |referenc|es to t|
|00001c20| 68 65 20 64 61 74 61 20 | 73 65 67 6d 65 6e 74 20 |he data |segment |
|00001c30| 66 72 6f 6d 20 77 69 74 | 68 69 6e 20 74 68 65 0a |from wit|hin the.|
|00001c40| 58 20 20 20 20 20 20 20 | 20 74 65 78 74 20 73 65 |X | text se|
|00001c50| 67 6d 65 6e 74 20 61 72 | 65 20 61 6c 77 61 79 73 |gment ar|e always|
|00001c60| 20 73 75 70 70 6f 72 74 | 65 64 2e 29 0a 58 0a 58 | support|ed.).X.X|
|00001c70| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 41 73 20 | | As |
|00001c80| 61 20 66 69 6e 61 6c 20 | 63 61 76 65 61 74 2c 20 |a final |caveat, |
|00001c90| 20 62 65 20 61 77 61 72 | 65 20 74 68 61 74 20 74 | be awar|e that t|
|00001ca0| 68 65 20 50 43 2f 49 58 | 20 61 73 73 65 6d 62 6c |he PC/IX| assembl|
|00001cb0| 65 72 20 64 6f 65 73 0a | 58 20 20 20 20 20 20 20 |er does.|X |
|00001cc0| 20 6e 6f 74 20 72 65 63 | 6f 67 6e 69 7a 65 20 74 | not rec|ognize t|
|00001cd0| 68 65 20 20 22 65 73 63 | 22 20 20 6d 6e 65 6d 6f |he "esc|" mnemo|
|00001ce0| 6e 69 63 2c 20 20 65 76 | 65 6e 20 74 68 6f 75 67 |nic, ev|en thoug|
|00001cf0| 68 20 69 74 20 72 65 66 | 65 72 73 20 74 6f 20 61 |h it ref|ers to a|
|00001d00| 0a 58 20 20 20 20 20 20 | 20 20 63 6f 6d 70 6c 65 |.X | comple|
|00001d10| 74 65 6c 79 20 20 76 61 | 6c 69 64 20 43 50 55 20 |tely va|lid CPU |
|00001d20| 6f 70 65 72 61 74 69 6f | 6e 20 20 77 68 69 63 68 |operatio|n which|
|00001d30| 20 69 73 20 64 6f 63 75 | 6d 65 6e 74 65 64 20 69 | is docu|mented i|
|00001d40| 6e 20 61 6c 6c 20 74 68 | 65 0a 58 20 20 20 20 20 |n all th|e.X |
|00001d50| 20 20 20 49 6e 74 65 6c | 20 6c 69 74 65 72 61 74 | Intel| literat|
|00001d60| 75 72 65 2e 20 54 68 75 | 73 2c 20 74 68 65 20 63 |ure. Thu|s, the c|
|00001d70| 6f 72 72 65 73 70 6f 6e | 64 69 6e 67 20 6f 70 63 |orrespon|ding opc|
|00001d80| 6f 64 65 73 20 28 30 78 | 64 38 20 74 68 72 6f 75 |odes (0x|d8 throu|
|00001d90| 67 68 0a 58 20 20 20 20 | 20 20 20 20 30 78 64 66 |gh.X | 0xdf|
|00001da0| 29 20 61 72 65 20 64 69 | 73 61 73 73 65 6d 62 6c |) are di|sassembl|
|00001db0| 65 64 20 61 73 20 2e 62 | 79 74 65 20 64 69 72 65 |ed as .b|yte dire|
|00001dc0| 63 74 69 76 65 73 2e 20 | 46 6f 72 20 72 65 66 65 |ctives. |For refe|
|00001dd0| 72 65 6e 63 65 2c 20 68 | 6f 77 2d 0a 58 20 20 20 |rence, h|ow-.X |
|00001de0| 20 20 20 20 20 65 76 65 | 72 2c 20 20 74 68 65 20 | eve|r, the |
|00001df0| 73 79 6e 74 61 63 74 69 | 63 61 6c 6c 79 2d 63 6f |syntacti|cally-co|
|00001e00| 72 72 65 63 74 20 22 65 | 73 63 22 20 69 6e 73 74 |rrect "e|sc" inst|
|00001e10| 72 75 63 74 69 6f 6e 20 | 69 73 20 6f 75 74 70 75 |ruction |is outpu|
|00001e20| 74 20 61 73 0a 58 20 20 | 20 20 20 20 20 20 61 20 |t as.X | a |
|00001e30| 63 6f 6d 6d 65 6e 74 2e | 0a 58 0a 58 20 20 20 20 |comment.|.X.X |
|00001e40| 20 20 20 20 20 20 20 20 | 20 54 6f 20 62 75 69 6c | | To buil|
|00001e50| 64 20 74 68 65 20 64 69 | 73 61 73 73 65 6d 62 6c |d the di|sassembl|
|00001e60| 65 72 20 70 72 6f 67 72 | 61 6d 2c 20 74 72 61 6e |er progr|am, tran|
|00001e70| 73 66 65 72 20 61 6c 6c | 20 74 68 65 20 73 6f 75 |sfer all| the sou|
|00001e80| 72 63 65 0a 58 20 20 20 | 20 20 20 20 20 66 69 6c |rce.X | fil|
|00001e90| 65 73 2c 20 20 74 6f 67 | 65 74 68 65 72 20 77 69 |es, tog|ether wi|
|00001ea0| 74 68 20 74 68 65 20 4d | 61 6b 65 66 69 6c 65 2c |th the M|akefile,|
|00001eb0| 20 20 74 6f 20 61 20 73 | 75 69 74 61 62 6c 65 20 | to a s|uitable |
|00001ec0| 20 28 70 72 65 66 65 72 | 61 62 6c 79 0a 58 20 20 | (prefer|ably.X |
|00001ed0| 20 20 20 20 20 20 65 6d | 70 74 79 29 20 50 43 2f | em|pty) PC/|
|00001ee0| 49 58 20 64 69 72 65 63 | 74 6f 72 79 2e 20 54 68 |IX direc|tory. Th|
|00001ef0| 65 6e 2c 20 73 69 6d 70 | 6c 79 20 74 79 70 65 20 |en, simp|ly type |
|00001f00| 22 6d 61 6b 65 22 2e 0a | 58 0a 58 20 20 20 20 20 |"make"..|X.X |
|00001f10| 20 20 20 20 20 20 20 20 | 54 6f 20 75 73 65 20 64 | |To use d|
|00001f20| 69 73 38 38 2c 20 20 70 | 6c 61 63 65 20 69 74 20 |is88, p|lace it |
|00001f30| 69 6e 20 61 20 20 64 69 | 72 65 63 74 6f 72 79 20 |in a di|rectory |
|00001f40| 20 77 68 69 63 68 20 20 | 61 70 70 65 61 72 73 20 | which |appears |
|00001f50| 69 6e 0a 58 20 20 20 20 | 20 20 20 20 79 6f 75 72 |in.X | your|
|00001f60| 20 24 50 41 54 48 20 6c | 69 73 74 2e 20 20 49 74 | $PATH l|ist. It|
|00001f70| 20 6d 61 79 20 74 68 65 | 6e 20 62 65 20 69 6e 76 | may the|n be inv|
|00001f80| 6f 6b 65 64 20 62 79 20 | 6e 61 6d 65 20 66 72 6f |oked by |name fro|
|00001f90| 6d 20 20 77 68 61 74 65 | 76 65 72 0a 58 20 20 20 |m whate|ver.X |
|00001fa0| 20 20 20 20 20 64 69 72 | 65 63 74 6f 72 79 20 79 | dir|ectory y|
|00001fb0| 6f 75 20 68 61 70 70 65 | 6e 20 74 6f 20 62 65 20 |ou happe|n to be |
|00001fc0| 69 6e 2e 20 20 41 73 20 | 61 20 6d 69 6e 69 6d 75 |in. As |a minimu|
|00001fd0| 6d 2c 20 20 74 68 65 20 | 70 72 6f 67 72 61 6d 20 |m, the |program |
|00001fe0| 6d 75 73 74 0a 58 20 20 | 20 20 20 20 20 20 62 65 |must.X | be|
|00001ff0| 20 69 6e 76 6f 6b 65 64 | 20 77 69 74 68 20 6f 6e | invoked| with on|
|00002000| 65 20 63 6f 6d 6d 61 6e | 64 2d 6c 69 6e 65 20 61 |e comman|d-line a|
|00002010| 72 67 75 6d 65 6e 74 3a | 20 20 74 68 65 20 6e 61 |rgument:| the na|
|00002020| 6d 65 20 6f 66 20 74 68 | 65 20 6f 62 2d 0a 58 20 |me of th|e ob-.X |
|00002030| 20 20 20 20 20 20 20 6a | 65 63 74 20 66 69 6c 65 | j|ect file|
|00002040| 20 74 6f 20 62 65 20 64 | 69 73 61 73 73 65 6d 62 | to be d|isassemb|
|00002050| 6c 65 64 2e 20 20 28 44 | 69 73 38 38 20 77 69 6c |led. (D|is88 wil|
|00002060| 6c 20 63 6f 6d 70 6c 61 | 69 6e 20 69 66 20 74 68 |l compla|in if th|
|00002070| 65 20 66 69 6c 65 0a 58 | 20 20 20 20 20 20 20 20 |e file.X| |
|00002080| 73 70 65 63 69 66 69 65 | 64 20 69 73 20 6e 6f 74 |specifie|d is not|
|00002090| 20 61 6e 20 6f 62 6a 65 | 63 74 20 66 69 6c 65 2e | an obje|ct file.|
|000020a0| 29 20 20 4f 70 74 69 6f | 6e 61 6c 6c 79 2c 20 20 |) Optio|nally, |
|000020b0| 79 6f 75 20 6d 61 79 20 | 73 70 65 63 69 66 79 0a |you may |specify.|
|000020c0| 58 20 20 20 20 20 20 20 | 20 61 6e 20 6f 75 74 70 |X | an outp|
|000020d0| 75 74 20 66 69 6c 65 3b | 20 73 74 64 6f 75 74 20 |ut file;| stdout |
|000020e0| 69 73 20 74 68 65 20 64 | 65 66 61 75 6c 74 2e 20 |is the d|efault. |
|000020f0| 20 4f 6e 65 20 63 6f 6d | 6d 61 6e 64 2d 6c 69 6e | One com|mand-lin|
|00002100| 65 20 73 77 69 74 63 68 | 0a 58 20 20 20 20 20 20 |e switch|.X |
|00002110| 20 20 69 73 20 61 76 61 | 69 6c 61 62 6c 65 3a 20 | is ava|ilable: |
|00002120| 20 22 2d 6f 22 2c 20 20 | 77 68 69 63 68 20 6d 61 | "-o", |which ma|
|00002130| 6b 65 73 20 74 68 65 20 | 70 72 6f 67 72 61 6d 20 |kes the |program |
|00002140| 64 69 73 70 6c 61 79 20 | 61 64 64 72 65 73 73 65 |display |addresse|
|00002150| 73 0a 58 20 20 20 20 20 | 20 20 20 61 6e 64 20 6f |s.X | and o|
|00002160| 62 6a 65 63 74 20 63 6f | 64 65 20 61 6c 6f 6e 67 |bject co|de along|
|00002170| 20 77 69 74 68 20 69 74 | 73 20 6d 6e 65 6d 6f 6e | with it|s mnemon|
|00002180| 69 63 20 64 69 73 61 73 | 73 65 6d 62 6c 79 2e 0a |ic disas|sembly..|
|00002190| 58 0a 58 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |X.X | |
|000021a0| 54 68 65 20 22 2d 6f 22 | 20 6f 70 74 69 6f 6e 20 |The "-o"| option |
|000021b0| 69 73 20 75 73 65 66 75 | 6c 20 70 72 69 6d 61 72 |is usefu|l primar|
|000021c0| 69 6c 79 20 66 6f 72 20 | 76 65 72 69 66 79 69 6e |ily for |verifyin|
|000021d0| 67 20 74 68 65 20 63 6f | 72 2d 0a 58 20 20 20 20 |g the co|r-.X |
|000021e0| 20 20 20 20 72 65 63 74 | 6e 65 73 73 20 6f 66 20 | rect|ness of |
|000021f0| 74 68 65 20 70 72 6f 67 | 72 61 6d 27 73 20 6f 75 |the prog|ram's ou|
|00002200| 74 70 75 74 2e 20 49 6e | 20 70 61 72 74 69 63 75 |tput. In| particu|
|00002210| 6c 61 72 2c 20 69 74 20 | 6d 61 79 20 62 65 20 75 |lar, it |may be u|
|00002220| 73 65 64 0a 58 20 20 20 | 20 20 20 20 20 74 6f 20 |sed.X | to |
|00002230| 63 68 65 63 6b 20 74 68 | 65 20 61 63 63 75 72 61 |check th|e accura|
|00002240| 63 79 20 6f 66 20 6c 6f | 63 61 6c 20 20 72 65 6c |cy of lo|cal rel|
|00002250| 61 74 69 76 65 20 20 6a | 75 6d 70 20 20 6f 70 63 |ative j|ump opc|
|00002260| 6f 64 65 73 2e 20 20 54 | 68 65 73 65 0a 58 20 20 |odes. T|hese.X |
|00002270| 20 20 20 20 20 20 6a 75 | 6d 70 73 20 6f 66 74 65 | ju|mps ofte|
|00002280| 6e 20 20 74 61 72 67 65 | 74 20 20 6c 6f 63 61 6c |n targe|t local|
|00002290| 20 20 6c 61 62 65 6c 73 | 2c 20 20 77 68 69 63 68 | labels|, which|
|000022a0| 20 61 72 65 20 6c 6f 73 | 74 20 61 74 20 61 73 73 | are los|t at ass|
|000022b0| 65 6d 62 6c 79 0a 58 20 | 20 20 20 20 20 20 20 74 |embly.X | t|
|000022c0| 69 6d 65 3b 20 20 74 68 | 75 73 2c 20 20 74 68 65 |ime; th|us, the|
|000022d0| 20 64 69 73 61 73 73 65 | 6d 62 6c 79 20 6d 61 79 | disasse|mbly may|
|000022e0| 20 63 6f 6e 74 61 69 6e | 20 63 72 79 70 74 69 63 | contain| cryptic|
|000022f0| 20 20 69 6e 73 74 72 75 | 63 74 69 6f 6e 73 0a 58 | instru|ctions.X|
|00002300| 20 20 20 20 20 20 20 20 | 6c 69 6b 65 20 22 6a 6e | |like "jn|
|00002310| 7a 20 2e 2b 33 39 22 2e | 20 20 41 73 20 61 20 75 |z .+39".| As a u|
|00002320| 73 65 72 20 63 6f 6e 76 | 65 6e 69 65 6e 63 65 2c |ser conv|enience,|
|00002330| 20 20 61 6c 6c 20 72 65 | 6c 61 74 69 76 65 20 6a | all re|lative j|
|00002340| 75 6d 70 20 61 6e 64 0a | 58 20 20 20 20 20 20 20 |ump and.|X |
|00002350| 20 63 61 6c 6c 20 20 6f | 70 63 6f 64 65 73 20 61 | call o|pcodes a|
|00002360| 72 65 20 6f 75 74 70 75 | 74 20 77 69 74 68 20 61 |re outpu|t with a|
|00002370| 20 63 6f 6d 6d 65 6e 74 | 20 20 77 68 69 63 68 20 | comment| which |
|00002380| 20 69 64 65 6e 74 69 66 | 69 65 73 20 20 74 68 65 | identif|ies the|
|00002390| 0a 58 20 20 20 20 20 20 | 20 20 70 68 79 73 69 63 |.X | physic|
|000023a0| 61 6c 20 74 61 72 67 65 | 74 20 61 64 64 72 65 73 |al targe|t addres|
|000023b0| 73 2e 0a 58 0a 58 20 20 | 20 20 20 20 20 20 20 20 |s..X.X | |
|000023c0| 20 20 20 42 79 20 63 6f | 6e 76 65 6e 74 69 6f 6e | By co|nvention|
|000023d0| 2c 20 74 68 65 20 72 65 | 6c 65 61 73 65 20 6c 65 |, the re|lease le|
|000023e0| 76 65 6c 20 6f 66 20 74 | 68 65 20 70 72 6f 67 72 |vel of t|he progr|
|000023f0| 61 6d 20 61 73 20 61 20 | 77 68 6f 6c 65 0a 58 20 |am as a |whole.X |
|00002400| 20 20 20 20 20 20 20 69 | 73 20 74 68 65 20 53 49 | i|s the SI|
|00002410| 44 20 6f 66 20 74 68 65 | 20 66 69 6c 65 20 64 69 |D of the| file di|
|00002420| 73 72 65 6c 2e 63 2c 20 | 61 6e 64 20 74 68 69 73 |srel.c, |and this|
|00002430| 20 53 49 44 20 73 74 72 | 69 6e 67 20 61 70 70 65 | SID str|ing appe|
|00002440| 61 72 73 20 69 6e 0a 58 | 20 20 20 20 20 20 20 20 |ars in.X| |
|00002450| 65 61 63 68 20 64 69 73 | 61 73 73 65 6d 62 6c 79 |each dis|assembly|
|00002460| 2e 20 20 52 65 6c 65 61 | 73 65 20 32 2e 31 20 6f |. Relea|se 2.1 o|
|00002470| 66 20 74 68 65 20 70 72 | 6f 67 72 61 6d 20 69 73 |f the pr|ogram is|
|00002480| 20 74 68 65 20 66 69 72 | 73 74 20 62 65 74 61 0a | the fir|st beta.|
|00002490| 58 20 20 20 20 20 20 20 | 20 72 65 6c 65 61 73 65 |X | release|
|000024a0| 20 74 6f 20 62 65 20 64 | 69 73 74 72 69 62 75 74 | to be d|istribut|
|000024b0| 65 64 20 6f 6e 20 55 73 | 65 6e 65 74 2e 0a 58 0a |ed on Us|enet..X.|
|000024c0| 45 4e 44 5f 4f 46 5f 46 | 49 4c 45 0a 69 66 20 74 |END_OF_F|ILE.if t|
|000024d0| 65 73 74 20 34 38 39 38 | 20 2d 6e 65 20 60 77 63 |est 4898| -ne `wc|
|000024e0| 20 2d 63 20 3c 27 52 45 | 41 44 4d 45 27 60 3b 20 | -c <'RE|ADME'`; |
|000024f0| 74 68 65 6e 0a 20 20 20 | 20 65 63 68 6f 20 73 68 |then. | echo sh|
|00002500| 61 72 3a 20 5c 22 27 52 | 45 41 44 4d 45 27 5c 22 |ar: \"'R|EADME'\"|
|00002510| 20 75 6e 70 61 63 6b 65 | 64 20 77 69 74 68 20 77 | unpacke|d with w|
|00002520| 72 6f 6e 67 20 73 69 7a | 65 21 0a 66 69 0a 23 20 |rong siz|e!.fi.# |
|00002530| 65 6e 64 20 6f 66 20 27 | 52 45 41 44 4d 45 27 0a |end of '|README'.|
|00002540| 66 69 0a 69 66 20 74 65 | 73 74 20 2d 66 20 27 64 |fi.if te|st -f 'd|
|00002550| 69 73 2e 68 27 20 2d 61 | 20 22 24 7b 31 7d 22 20 |is.h' -a| "${1}" |
|00002560| 21 3d 20 22 2d 63 22 20 | 3b 20 74 68 65 6e 20 0a |!= "-c" |; then .|
|00002570| 20 20 65 63 68 6f 20 73 | 68 61 72 3a 20 57 69 6c | echo s|har: Wil|
|00002580| 6c 20 6e 6f 74 20 63 6c | 6f 62 62 65 72 20 65 78 |l not cl|obber ex|
|00002590| 69 73 74 69 6e 67 20 66 | 69 6c 65 20 5c 22 27 64 |isting f|ile \"'d|
|000025a0| 69 73 2e 68 27 5c 22 0a | 65 6c 73 65 0a 65 63 68 |is.h'\".|else.ech|
|000025b0| 6f 20 73 68 61 72 3a 20 | 45 78 74 72 61 63 74 69 |o shar: |Extracti|
|000025c0| 6e 67 20 5c 22 27 64 69 | 73 2e 68 27 5c 22 20 5c |ng \"'di|s.h'\" \|
|000025d0| 28 37 35 36 33 20 63 68 | 61 72 61 63 74 65 72 73 |(7563 ch|aracters|
|000025e0| 5c 29 0a 73 65 64 20 22 | 73 2f 5e 58 2f 2f 22 20 |\).sed "|s/^X//" |
|000025f0| 3e 27 64 69 73 2e 68 27 | 20 3c 3c 27 45 4e 44 5f |>'dis.h'| <<'END_|
|00002600| 4f 46 5f 46 49 4c 45 27 | 0a 58 20 2f 2a 0a 58 20 |OF_FILE'|.X /*.X |
|00002610| 2a 2a 20 40 28 23 29 20 | 64 69 73 2e 68 2c 20 56 |** @(#) |dis.h, V|
|00002620| 65 72 2e 20 32 2e 31 20 | 63 72 65 61 74 65 64 20 |er. 2.1 |created |
|00002630| 30 30 3a 30 30 3a 30 30 | 20 38 37 2f 30 39 2f 30 |00:00:00| 87/09/0|
|00002640| 31 0a 58 20 2a 2f 0a 58 | 0a 58 20 2f 2a 20 2a 20 |1.X */.X|.X /* * |
|00002650| 2a 20 2a 20 2a 20 2a 20 | 2a 20 2a 20 2a 20 2a 20 |* * * * |* * * * |
|00002660| 2a 20 2a 20 2a 20 2a 20 | 2a 20 2a 20 2a 20 2a 20 |* * * * |* * * * |
|00002670| 2a 20 2a 20 2a 20 2a 20 | 2a 20 2a 20 2a 20 2a 20 |* * * * |* * * * |
|00002680| 2a 20 2a 20 2a 20 2a 0a | 58 20 20 2a 20 20 20 20 |* * * *.|X * |
|00002690| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000026a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000026b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000026c0| 20 20 20 20 20 2a 0a 58 | 20 20 2a 20 20 43 6f 70 | *.X| * Cop|
|000026d0| 79 72 69 67 68 74 20 28 | 43 29 20 31 39 38 37 20 |yright (|C) 1987 |
|000026e0| 47 2e 20 4d 2e 20 48 61 | 72 64 69 6e 67 2c 20 61 |G. M. Ha|rding, a|
|000026f0| 6c 6c 20 72 69 67 68 74 | 73 20 72 65 73 65 72 76 |ll right|s reserv|
|00002700| 65 64 20 20 2a 0a 58 20 | 20 2a 20 20 20 20 20 20 |ed *.X | * |
|00002710| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002720| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002730| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002740| 20 20 20 2a 0a 58 20 20 | 2a 20 50 65 72 6d 69 73 | *.X |* Permis|
|00002750| 73 69 6f 6e 20 74 6f 20 | 63 6f 70 79 20 61 6e 64 |sion to |copy and|
|00002760| 20 20 72 65 64 69 73 74 | 72 69 62 75 74 65 20 69 | redist|ribute i|
|00002770| 73 20 68 65 72 65 62 79 | 20 67 72 61 6e 74 65 64 |s hereby| granted|
|00002780| 2c 20 2a 0a 58 20 20 2a | 20 70 72 6f 76 69 64 65 |, *.X *| provide|
|00002790| 64 20 66 75 6c 6c 20 73 | 6f 75 72 63 65 20 63 6f |d full s|ource co|
|000027a0| 64 65 2c 20 20 77 69 74 | 68 20 61 6c 6c 20 63 6f |de, wit|h all co|
|000027b0| 70 79 72 69 67 68 74 20 | 6e 6f 74 69 63 65 73 2c |pyright |notices,|
|000027c0| 20 2a 0a 58 20 20 2a 20 | 61 63 63 6f 6d 70 61 6e | *.X * |accompan|
|000027d0| 69 65 73 20 61 6e 79 20 | 72 65 64 69 73 74 72 69 |ies any |redistri|
|000027e0| 62 75 74 69 6f 6e 2e 20 | 20 20 20 20 20 20 20 20 |bution. | |
|000027f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002800| 2a 0a 58 20 20 2a 20 20 | 20 20 20 20 20 20 20 20 |*.X * | |
|00002810| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002820| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002830| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 2a | | *|
|00002840| 0a 58 20 20 2a 20 54 68 | 69 73 20 66 69 6c 65 20 |.X * Th|is file |
|00002850| 63 6f 6e 74 61 69 6e 73 | 20 64 65 63 6c 61 72 61 |contains| declara|
|00002860| 74 69 6f 6e 73 20 61 6e | 64 20 64 65 66 69 6e 69 |tions an|d defini|
|00002870| 74 69 6f 6e 73 20 75 73 | 65 64 20 62 79 20 2a 0a |tions us|ed by *.|
|00002880| 58 20 20 2a 20 74 68 65 | 20 38 30 38 38 20 64 69 |X * the| 8088 di|
|00002890| 73 61 73 73 65 6d 62 6c | 65 72 20 70 72 6f 67 72 |sassembl|er progr|
|000028a0| 61 6d 2e 20 54 68 65 20 | 70 72 6f 67 72 61 6d 20 |am. The |program |
|000028b0| 77 61 73 20 64 65 73 69 | 67 6e 65 64 20 2a 0a 58 |was desi|gned *.X|
|000028c0| 20 20 2a 20 66 6f 72 20 | 65 78 65 63 75 74 69 6f | * for |executio|
|000028d0| 6e 20 6f 6e 20 61 20 6d | 61 63 68 69 6e 65 20 6f |n on a m|achine o|
|000028e0| 66 20 69 74 73 20 6f 77 | 6e 20 74 79 70 65 20 28 |f its ow|n type (|
|000028f0| 69 2e 65 2e 2c 20 69 74 | 20 69 73 20 2a 0a 58 20 |i.e., it| is *.X |
|00002900| 20 2a 20 6e 6f 74 20 64 | 65 73 69 67 6e 65 64 20 | * not d|esigned |
|00002910| 61 73 20 61 20 63 72 6f | 73 73 2d 64 69 73 61 73 |as a cro|ss-disas|
|00002920| 73 65 6d 62 6c 65 72 29 | 3b 20 20 63 6f 6e 73 65 |sembler)|; conse|
|00002930| 71 75 65 6e 74 6c 79 2c | 20 41 20 2a 0a 58 20 20 |quently,| A *.X |
|00002940| 2a 20 53 49 58 54 45 45 | 4e 2d 42 49 54 20 49 4e |* SIXTEE|N-BIT IN|
|00002950| 54 45 47 45 52 20 53 49 | 5a 45 20 48 41 53 20 42 |TEGER SI|ZE HAS B|
|00002960| 45 45 4e 20 41 53 53 55 | 4d 45 44 2e 20 54 68 69 |EEN ASSU|MED. Thi|
|00002970| 73 20 61 73 73 75 6d 70 | 2d 20 2a 0a 58 20 20 2a |s assump|- *.X *|
|00002980| 20 74 69 6f 6e 20 69 73 | 20 6e 6f 74 20 70 61 72 | tion is| not par|
|00002990| 74 69 63 75 6c 61 72 6c | 79 20 69 6d 70 6f 72 74 |ticularl|y import|
|000029a0| 61 6e 74 2c 20 20 68 6f | 77 65 76 65 72 2c 20 65 |ant, ho|wever, e|
|000029b0| 78 63 65 70 74 20 69 6e | 20 2a 0a 58 20 20 2a 20 |xcept in| *.X * |
|000029c0| 74 68 65 20 6d 61 63 68 | 69 6e 65 2d 73 70 65 63 |the mach|ine-spec|
|000029d0| 69 66 69 63 20 20 70 6f | 72 74 69 6f 6e 73 20 6f |ific po|rtions o|
|000029e0| 66 20 74 68 65 20 63 6f | 64 65 20 20 28 69 2e 65 |f the co|de (i.e|
|000029f0| 2e 2c 20 20 74 68 65 20 | 2a 0a 58 20 20 2a 20 68 |., the |*.X * h|
|00002a00| 61 6e 64 6c 65 72 20 20 | 72 6f 75 74 69 6e 65 73 |andler |routines|
|00002a10| 20 61 6e 64 20 74 68 65 | 20 6f 70 74 61 62 5b 5d | and the| optab[]|
|00002a20| 20 61 72 72 61 79 29 2e | 20 20 49 74 20 73 68 6f | array).| It sho|
|00002a30| 75 6c 64 20 62 65 20 2a | 0a 58 20 20 2a 20 70 6f |uld be *|.X * po|
|00002a40| 73 73 69 62 6c 65 20 74 | 6f 20 6f 76 65 72 72 69 |ssible t|o overri|
|00002a50| 64 65 20 74 68 69 73 20 | 61 73 73 75 6d 70 74 69 |de this |assumpti|
|00002a60| 6f 6e 2c 20 20 66 6f 72 | 20 65 78 65 63 75 74 69 |on, for| executi|
|00002a70| 6f 6e 20 6f 6e 20 2a 0a | 58 20 20 2a 20 33 32 2d |on on *.|X * 32-|
|00002a80| 62 69 74 20 6d 61 63 68 | 69 6e 65 73 2c 20 20 62 |bit mach|ines, b|
|00002a90| 79 20 75 73 65 20 6f 66 | 20 61 20 20 70 72 65 2d |y use of| a pre-|
|00002aa0| 70 72 6f 63 65 73 73 6f | 72 20 20 64 69 72 65 63 |processo|r direc|
|00002ab0| 74 69 76 65 20 2a 0a 58 | 20 20 2a 20 28 73 65 65 |tive *.X| * (see|
|00002ac0| 20 62 65 6c 6f 77 29 3b | 20 68 6f 77 65 76 65 72 | below);| however|
|00002ad0| 2c 20 74 68 69 73 20 68 | 61 73 20 6e 6f 74 20 62 |, this h|as not b|
|00002ae0| 65 65 6e 20 74 65 73 74 | 65 64 2e 20 20 20 20 20 |een test|ed. |
|00002af0| 20 20 20 20 2a 0a 58 20 | 20 2a 20 20 20 20 20 20 | *.X | * |
|00002b00| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002b10| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002b20| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002b30| 20 20 20 2a 0a 58 20 20 | 2a 20 2a 20 2a 20 2a 20 | *.X |* * * * |
|00002b40| 2a 20 2a 20 2a 20 2a 20 | 2a 20 2a 20 2a 20 2a 20 |* * * * |* * * * |
|00002b50| 2a 20 2a 20 2a 20 2a 20 | 2a 20 2a 20 2a 20 2a 20 |* * * * |* * * * |
|00002b60| 2a 20 2a 20 2a 20 2a 20 | 2a 20 2a 20 2a 20 2a 20 |* * * * |* * * * |
|00002b70| 2a 20 2a 2f 0a 58 0a 58 | 23 69 6e 63 6c 75 64 65 |* */.X.X|#include|
|00002b80| 20 3c 73 74 64 69 6f 2e | 68 3e 20 20 20 20 20 20 | <stdio.|h> |
|00002b90| 2f 2a 20 53 79 73 74 65 | 6d 20 73 74 61 6e 64 61 |/* Syste|m standa|
|00002ba0| 72 64 20 49 2f 4f 20 64 | 65 66 69 6e 69 74 69 6f |rd I/O d|efinitio|
|00002bb0| 6e 73 20 20 2a 2f 0a 58 | 23 69 6e 63 6c 75 64 65 |ns */.X|#include|
|00002bc0| 20 3c 66 63 6e 74 6c 2e | 68 3e 20 20 20 20 20 20 | <fcntl.|h> |
|00002bd0| 2f 2a 20 53 79 73 74 65 | 6d 20 66 69 6c 65 2d 63 |/* Syste|m file-c|
|00002be0| 6f 6e 74 72 6f 6c 20 64 | 65 66 69 6e 69 74 69 6f |ontrol d|efinitio|
|00002bf0| 6e 73 20 20 2a 2f 0a 58 | 23 69 6e 63 6c 75 64 65 |ns */.X|#include|
|00002c00| 20 3c 61 2e 6f 75 74 2e | 68 3e 20 20 20 20 20 20 | <a.out.|h> |
|00002c10| 2f 2a 20 4f 62 6a 65 63 | 74 20 66 69 6c 65 20 66 |/* Objec|t file f|
|00002c20| 6f 72 6d 61 74 20 64 65 | 66 69 6e 69 74 69 6f 6e |ormat de|finition|
|00002c30| 73 20 20 20 2a 2f 0a 58 | 0a 58 23 69 66 20 69 38 |s */.X|.X#if i8|
|00002c40| 30 38 36 20 7c 7c 20 69 | 38 30 38 38 20 20 20 20 |086 || i|8088 |
|00002c50| 20 20 2f 2a 20 46 6f 72 | 20 43 50 55 27 73 20 77 | /* For| CPU's w|
|00002c60| 69 74 68 20 31 36 2d 62 | 69 74 20 69 6e 74 65 67 |ith 16-b|it integ|
|00002c70| 65 72 73 20 20 20 2a 2f | 0a 58 23 75 6e 64 65 66 |ers */|.X#undef|
|00002c80| 20 69 6e 74 0a 58 23 65 | 6c 73 65 20 20 20 20 20 | int.X#e|lse |
|00002c90| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 2f 2a | | /*|
|00002ca0| 20 44 65 66 61 75 6c 74 | 73 20 28 66 6f 72 20 33 | Default|s (for 3|
|00002cb0| 32 2d 62 69 74 20 43 50 | 55 20 74 79 70 65 73 29 |2-bit CP|U types)|
|00002cc0| 20 20 2a 2f 0a 58 23 64 | 65 66 69 6e 65 20 69 6e | */.X#d|efine in|
|00002cd0| 74 20 73 68 6f 72 74 0a | 58 23 65 6e 64 69 66 0a |t short.|X#endif.|
|00002ce0| 58 0a 58 23 64 65 66 69 | 6e 65 20 4d 41 58 53 59 |X.X#defi|ne MAXSY|
|00002cf0| 4d 20 31 35 30 30 20 20 | 20 20 20 2f 2a 20 4d 61 |M 1500 | /* Ma|
|00002d00| 78 69 6d 75 6d 20 65 6e | 74 72 69 65 73 20 69 6e |ximum en|tries in|
|00002d10| 20 73 79 6d 62 6f 6c 20 | 74 61 62 6c 65 20 20 2a | symbol |table *|
|00002d20| 2f 0a 58 0a 65 78 74 65 | 72 6e 20 73 74 72 75 63 |/.X.exte|rn struc|
|00002d30| 74 20 6e 6c 69 73 74 20 | 20 20 20 20 2f 2a 20 41 |t nlist | /* A|
|00002d40| 72 72 61 79 20 74 6f 20 | 68 6f 6c 64 20 74 68 65 |rray to |hold the|
|00002d50| 20 73 79 6d 62 6f 6c 20 | 74 61 62 6c 65 20 20 20 | symbol |table |
|00002d60| 2a 2f 0a 58 20 20 20 73 | 79 6d 74 61 62 5b 4d 41 |*/.X s|ymtab[MA|
|00002d70| 58 53 59 4d 5d 3b 0a 58 | 0a 65 78 74 65 72 6e 20 |XSYM];.X|.extern |
|00002d80| 73 74 72 75 63 74 20 72 | 65 6c 6f 63 20 20 20 20 |struct r|eloc |
|00002d90| 20 2f 2a 20 41 72 72 61 | 79 20 74 6f 20 68 6f 6c | /* Arra|y to hol|
|00002da0| 64 20 72 65 6c 6f 63 61 | 74 69 6f 6e 20 74 61 62 |d reloca|tion tab|
|00002db0| 6c 65 20 20 20 2a 2f 0a | 58 20 20 20 72 65 6c 6f |le */.|X relo|
|00002dc0| 5b 4d 41 58 53 59 4d 5d | 3b 0a 58 0a 65 78 74 65 |[MAXSYM]|;.X.exte|
|00002dd0| 72 6e 20 69 6e 74 20 73 | 79 6d 70 74 72 3b 20 20 |rn int s|ymptr; |
|00002de0| 20 20 20 20 2f 2a 20 49 | 6e 64 65 78 20 69 6e 74 | /* I|ndex int|
|00002df0| 6f 20 74 68 65 20 73 79 | 6d 74 61 62 5b 5d 20 61 |o the sy|mtab[] a|
|00002e00| 72 72 61 79 20 20 20 20 | 2a 2f 0a 58 0a 65 78 74 |rray |*/.X.ext|
|00002e10| 65 72 6e 20 69 6e 74 20 | 72 65 6c 70 74 72 3b 20 |ern int |relptr; |
|00002e20| 20 20 20 20 20 2f 2a 20 | 49 6e 64 65 78 20 69 6e | /* |Index in|
|00002e30| 74 6f 20 74 68 65 20 72 | 65 6c 6f 5b 5d 20 61 72 |to the r|elo[] ar|
|00002e40| 72 61 79 20 20 20 20 20 | 20 2a 2f 0a 58 0a 73 74 |ray | */.X.st|
|00002e50| 72 75 63 74 20 6f 70 63 | 6f 64 65 20 20 20 20 20 |ruct opc|ode |
|00002e60| 20 20 20 20 20 20 2f 2a | 20 46 6f 72 6d 61 74 20 | /*| Format |
|00002e70| 66 6f 72 20 6f 70 63 6f | 64 65 20 64 61 74 61 20 |for opco|de data |
|00002e80| 72 65 63 6f 72 64 73 20 | 20 20 2a 2f 0a 58 20 20 |records | */.X |
|00002e90| 20 7b 0a 58 20 20 20 63 | 68 61 72 20 20 20 20 20 | {.X c|har |
|00002ea0| 2a 74 65 78 74 3b 20 20 | 20 20 20 20 20 20 20 20 |*text; | |
|00002eb0| 20 20 2f 2a 20 50 6f 69 | 6e 74 65 72 20 74 6f 20 | /* Poi|nter to |
|00002ec0| 6d 6e 65 6d 6f 6e 69 63 | 20 74 65 78 74 20 20 20 |mnemonic| text |
|00002ed0| 2a 2f 0a 58 20 20 20 76 | 6f 69 64 20 20 20 20 20 |*/.X v|oid |
|00002ee0| 28 2a 66 75 6e 63 29 28 | 29 3b 20 20 20 20 20 20 |(*func)(|); |
|00002ef0| 20 20 2f 2a 20 50 6f 69 | 6e 74 65 72 20 74 6f 20 | /* Poi|nter to |
|00002f00| 68 61 6e 64 6c 65 72 20 | 72 6f 75 74 69 6e 65 20 |handler |routine |
|00002f10| 2a 2f 0a 58 20 20 20 75 | 6e 73 69 67 6e 65 64 20 |*/.X u|nsigned |
|00002f20| 6d 69 6e 3b 20 20 20 20 | 20 20 20 20 20 20 20 20 |min; | |
|00002f30| 20 20 2f 2a 20 4d 69 6e | 69 6d 75 6d 20 23 20 6f | /* Min|imum # o|
|00002f40| 66 20 6f 62 6a 65 63 74 | 20 62 79 74 65 73 20 20 |f object| bytes |
|00002f50| 2a 2f 0a 58 20 20 20 75 | 6e 73 69 67 6e 65 64 20 |*/.X u|nsigned |
|00002f60| 6d 61 78 3b 20 20 20 20 | 20 20 20 20 20 20 20 20 |max; | |
|00002f70| 20 20 2f 2a 20 4d 61 78 | 69 6d 75 6d 20 23 20 6f | /* Max|imum # o|
|00002f80| 66 20 6f 62 6a 65 63 74 | 20 62 79 74 65 73 20 20 |f object| bytes |
|00002f90| 2a 2f 0a 58 20 20 20 7d | 3b 0a 58 0a 65 78 74 65 |*/.X }|;.X.exte|
|00002fa0| 72 6e 20 73 74 72 75 63 | 74 20 6f 70 63 6f 64 65 |rn struc|t opcode|
|00002fb0| 20 20 20 20 2f 2a 20 41 | 72 72 61 79 20 74 6f 20 | /* A|rray to |
|00002fc0| 68 6f 6c 64 20 74 68 65 | 20 6f 70 63 6f 64 65 20 |hold the| opcode |
|00002fd0| 74 61 62 6c 65 20 20 20 | 2a 2f 0a 58 20 20 6f 70 |table |*/.X op|
|00002fe0| 74 61 62 5b 32 35 36 5d | 3b 0a 58 0a 58 20 2f 2a |tab[256]|;.X.X /*|
|00002ff0| 0a 58 20 20 20 2b 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |.X +--|--------|
|00003000| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003010| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003020| 2d 2d 2d 0a 58 20 20 20 | 7c 20 54 68 65 20 66 6f |---.X || The fo|
|00003030| 6c 6c 6f 77 69 6e 67 20 | 20 66 75 6e 63 74 69 6f |llowing | functio|
|00003040| 6e 73 20 61 72 65 20 74 | 68 65 20 73 70 65 63 69 |ns are t|he speci|
|00003050| 61 6c 69 7a 65 64 0a 58 | 20 20 20 7c 20 68 61 6e |alized.X| | han|
|00003060| 64 6c 65 72 73 20 66 6f | 72 20 65 61 63 68 20 6f |dlers fo|r each o|
|00003070| 70 63 6f 64 65 20 67 72 | 6f 75 70 2e 20 54 68 65 |pcode gr|oup. The|
|00003080| 79 20 61 72 65 2c 20 6f | 66 0a 58 20 20 20 7c 20 |y are, o|f.X | |
|00003090| 63 6f 75 72 73 65 2c 20 | 68 69 67 68 6c 79 20 4d |course, |highly M|
|000030a0| 41 43 48 49 4e 45 2d 53 | 50 45 43 49 46 49 43 2e |ACHINE-S|PECIFIC.|
|000030b0| 20 20 45 61 63 68 20 65 | 6e 74 72 79 0a 58 20 20 | Each e|ntry.X |
|000030c0| 20 7c 20 69 6e 20 74 68 | 65 20 6f 70 63 6f 64 65 | | in th|e opcode|
|000030d0| 5b 5d 20 20 61 72 72 61 | 79 20 63 6f 6e 74 61 69 |[] arra|y contai|
|000030e0| 6e 73 20 61 20 70 6f 69 | 6e 74 65 72 20 74 6f 0a |ns a poi|nter to.|
|000030f0| 58 20 20 20 7c 20 6f 6e | 65 20 6f 66 20 74 68 65 |X | on|e of the|
|00003100| 73 65 20 20 68 61 6e 64 | 6c 65 72 73 2e 20 20 54 |se hand|lers. T|
|00003110| 68 65 20 68 61 6e 64 6c | 65 72 73 20 69 6e 20 74 |he handl|ers in t|
|00003120| 68 65 0a 58 20 20 20 7c | 20 66 69 72 73 74 20 67 |he.X || first g|
|00003130| 72 6f 75 70 20 61 72 65 | 20 69 6e 20 20 64 69 73 |roup are| in dis|
|00003140| 68 61 6e 64 2e 63 3b 20 | 20 74 68 6f 73 65 20 69 |hand.c; | those i|
|00003150| 6e 20 74 68 65 0a 58 20 | 20 20 7c 20 73 65 63 6f |n the.X | | seco|
|00003160| 6e 64 20 67 72 6f 75 70 | 20 61 72 65 20 69 6e 20 |nd group| are in |
|00003170| 64 69 73 66 70 2e 63 2e | 0a 58 20 20 20 2b 2d 2d |disfp.c.|.X +--|
|00003180| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003190| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000031a0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 0a 58 20 2a 2f |--------|---.X */|
|000031b0| 0a 58 0a 65 78 74 65 72 | 6e 20 76 6f 69 64 20 64 |.X.exter|n void d|
|000031c0| 66 68 61 6e 64 28 29 2c | 20 20 20 2f 2a 20 44 65 |fhand(),| /* De|
|000031d0| 66 61 75 6c 74 20 68 61 | 6e 64 6c 65 72 20 72 6f |fault ha|ndler ro|
|000031e0| 75 74 69 6e 65 20 20 20 | 20 20 20 20 20 20 20 2a |utine | *|
|000031f0| 2f 0a 58 20 20 20 20 20 | 20 20 20 20 20 20 20 73 |/.X | s|
|00003200| 62 68 61 6e 64 28 29 2c | 20 20 20 2f 2a 20 53 69 |bhand(),| /* Si|
|00003210| 6e 67 6c 65 2d 62 79 74 | 65 20 68 61 6e 64 6c 65 |ngle-byt|e handle|
|00003220| 72 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 2a |r | *|
|00003230| 2f 0a 58 20 20 20 20 20 | 20 20 20 20 20 20 20 61 |/.X | a|
|00003240| 6f 68 61 6e 64 28 29 2c | 20 20 20 2f 2a 20 41 72 |ohand(),| /* Ar|
|00003250| 69 74 68 6d 65 74 69 63 | 2d 6f 70 20 68 61 6e 64 |ithmetic|-op hand|
|00003260| 6c 65 72 20 20 20 20 20 | 20 20 20 20 20 20 20 2a |ler | *|
|00003270| 2f 0a 58 20 20 20 20 20 | 20 20 20 20 20 20 20 73 |/.X | s|
|00003280| 6a 68 61 6e 64 28 29 2c | 20 20 20 2f 2a 20 53 68 |jhand(),| /* Sh|
|00003290| 6f 72 74 2d 6a 75 6d 70 | 20 68 61 6e 64 6c 65 72 |ort-jump| handler|
|000032a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 2a | | *|
|000032b0| 2f 0a 58 20 20 20 20 20 | 20 20 20 20 20 20 20 69 |/.X | i|
|000032c0| 6d 68 61 6e 64 28 29 2c | 20 20 20 2f 2a 20 49 6d |mhand(),| /* Im|
|000032d0| 6d 65 64 69 61 74 65 2d | 6f 70 65 72 61 6e 64 20 |mediate-|operand |
|000032e0| 68 61 6e 64 6c 65 72 20 | 20 20 20 20 20 20 20 2a |handler | *|
|000032f0| 2f 0a 58 20 20 20 20 20 | 20 20 20 20 20 20 20 6d |/.X | m|
|00003300| 76 68 61 6e 64 28 29 2c | 20 20 20 2f 2a 20 53 69 |vhand(),| /* Si|
|00003310| 6d 70 6c 65 20 6d 6f 76 | 65 20 68 61 6e 64 6c 65 |mple mov|e handle|
|00003320| 72 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 2a |r | *|
|00003330| 2f 0a 58 20 20 20 20 20 | 20 20 20 20 20 20 20 6d |/.X | m|
|00003340| 73 68 61 6e 64 28 29 2c | 20 20 20 2f 2a 20 53 65 |shand(),| /* Se|
|00003350| 67 72 65 67 2d 6d 6f 76 | 65 20 68 61 6e 64 6c 65 |greg-mov|e handle|
|00003360| 72 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 2a |r | *|
|00003370| 2f 0a 58 20 20 20 20 20 | 20 20 20 20 20 20 20 70 |/.X | p|
|00003380| 6f 68 61 6e 64 28 29 2c | 20 20 20 2f 2a 20 50 6f |ohand(),| /* Po|
|00003390| 70 20 6d 65 6d 6f 72 79 | 2f 72 65 67 20 68 61 6e |p memory|/reg han|
|000033a0| 64 6c 65 72 20 20 20 20 | 20 20 20 20 20 20 20 2a |dler | *|
|000033b0| 2f 0a 58 20 20 20 20 20 | 20 20 20 20 20 20 20 63 |/.X | c|
|000033c0| 69 68 61 6e 64 28 29 2c | 20 20 20 2f 2a 20 49 6e |ihand(),| /* In|
|000033d0| 74 65 72 73 65 67 6d 65 | 6e 74 20 63 61 6c 6c 20 |tersegme|nt call |
|000033e0| 68 61 6e 64 6c 65 72 20 | 20 20 20 20 20 20 20 2a |handler | *|
|000033f0| 2f 0a 58 20 20 20 20 20 | 20 20 20 20 20 20 20 6d |/.X | m|
|00003400| 69 68 61 6e 64 28 29 2c | 20 20 20 2f 2a 20 49 6d |ihand(),| /* Im|
|00003410| 6d 65 64 69 61 74 65 2d | 6d 6f 76 65 20 68 61 6e |mediate-|move han|
|00003420| 64 6c 65 72 20 20 20 20 | 20 20 20 20 20 20 20 2a |dler | *|
|00003430| 2f 0a 58 20 20 20 20 20 | 20 20 20 20 20 20 20 6d |/.X | m|
|00003440| 71 68 61 6e 64 28 29 2c | 20 20 20 2f 2a 20 51 75 |qhand(),| /* Qu|
|00003450| 69 63 6b 2d 6d 6f 76 65 | 20 68 61 6e 64 6c 65 72 |ick-move| handler|
|00003460| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 2a | | *|
|00003470| 2f 0a 58 20 20 20 20 20 | 20 20 20 20 20 20 20 74 |/.X | t|
|00003480| 71 68 61 6e 64 28 29 2c | 20 20 20 2f 2a 20 51 75 |qhand(),| /* Qu|
|00003490| 69 63 6b 2d 74 65 73 74 | 20 68 61 6e 64 6c 65 72 |ick-test| handler|
|000034a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 2a | | *|
|000034b0| 2f 0a 58 20 20 20 20 20 | 20 20 20 20 20 20 20 72 |/.X | r|
|000034c0| 65 68 61 6e 64 28 29 2c | 20 20 20 2f 2a 20 52 65 |ehand(),| /* Re|
|000034d0| 74 75 72 6e 20 68 61 6e | 64 6c 65 72 20 20 20 20 |turn han|dler |
|000034e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 2a | | *|
|000034f0| 2f 0a 58 20 20 20 20 20 | 20 20 20 20 20 20 20 6d |/.X | m|
|00003500| 6d 68 61 6e 64 28 29 2c | 20 20 20 2f 2a 20 4d 6f |mhand(),| /* Mo|
|00003510| 76 65 2d 74 6f 2d 6d 65 | 6d 6f 72 79 20 68 61 6e |ve-to-me|mory han|
|00003520| 64 6c 65 72 20 20 20 20 | 20 20 20 20 20 20 20 2a |dler | *|
|00003530| 2f 0a 58 20 20 20 20 20 | 20 20 20 20 20 20 20 73 |/.X | s|
|00003540| 72 68 61 6e 64 28 29 2c | 20 20 20 2f 2a 20 53 68 |rhand(),| /* Sh|
|00003550| 69 66 74 20 61 6e 64 20 | 72 6f 74 61 74 65 20 68 |ift and |rotate h|
|00003560| 61 6e 64 6c 65 72 20 20 | 20 20 20 20 20 20 20 2a |andler | *|
|00003570| 2f 0a 58 20 20 20 20 20 | 20 20 20 20 20 20 20 61 |/.X | a|
|00003580| 61 68 61 6e 64 28 29 2c | 20 20 20 2f 2a 20 41 53 |ahand(),| /* AS|
|00003590| 43 49 49 2d 61 64 6a 75 | 73 74 20 68 61 6e 64 6c |CII-adju|st handl|
|000035a0| 65 72 20 20 20 20 20 20 | 20 20 20 20 20 20 20 2a |er | *|
|000035b0| 2f 0a 58 20 20 20 20 20 | 20 20 20 20 20 20 20 69 |/.X | i|
|000035c0| 6f 68 61 6e 64 28 29 2c | 20 20 20 2f 2a 20 49 6d |ohand(),| /* Im|
|000035d0| 6d 65 64 69 61 74 65 20 | 70 6f 72 74 20 49 2f 4f |mediate |port I/O|
|000035e0| 20 68 61 6e 64 6c 65 72 | 20 20 20 20 20 20 20 2a | handler| *|
|000035f0| 2f 0a 58 20 20 20 20 20 | 20 20 20 20 20 20 20 6c |/.X | l|
|00003600| 6a 68 61 6e 64 28 29 2c | 20 20 20 2f 2a 20 4c 6f |jhand(),| /* Lo|
|00003610| 6e 67 2d 6a 75 6d 70 20 | 68 61 6e 64 6c 65 72 20 |ng-jump |handler |
|00003620| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 2a | | *|
|00003630| 2f 0a 58 20 20 20 20 20 | 20 20 20 20 20 20 20 6d |/.X | m|
|00003640| 61 68 61 6e 64 28 29 2c | 20 20 20 2f 2a 20 4d 69 |ahand(),| /* Mi|
|00003650| 73 63 2e 20 61 72 69 74 | 68 6d 65 74 69 63 20 68 |sc. arit|hmetic h|
|00003660| 61 6e 64 6c 65 72 20 20 | 20 20 20 20 20 20 20 2a |andler | *|
|00003670| 2f 0a 58 20 20 20 20 20 | 20 20 20 20 20 20 20 6d |/.X | m|
|00003680| 6a 68 61 6e 64 28 29 3b | 20 20 20 2f 2a 20 4d 69 |jhand();| /* Mi|
|00003690| 73 63 65 6c 6c 61 6e 65 | 6f 75 73 20 6a 75 6d 70 |scellane|ous jump|
|000036a0| 20 68 61 6e 64 6c 65 72 | 20 20 20 20 20 20 20 2a | handler| *|
|000036b0| 2f 0a 58 0a 65 78 74 65 | 72 6e 20 76 6f 69 64 20 |/.X.exte|rn void |
|000036c0| 65 73 68 61 6e 64 28 29 | 2c 20 20 20 2f 2a 20 42 |eshand()|, /* B|
|000036d0| 75 73 2d 65 73 63 61 70 | 65 20 6f 70 63 6f 64 65 |us-escap|e opcode|
|000036e0| 20 68 61 6e 64 6c 65 72 | 20 20 20 20 20 20 20 20 | handler| |
|000036f0| 2a 2f 0a 58 20 20 20 20 | 20 20 20 20 20 20 20 20 |*/.X | |
|00003700| 66 70 68 61 6e 64 28 29 | 2c 20 20 20 2f 2a 20 46 |fphand()|, /* F|
|00003710| 6c 6f 61 74 69 6e 67 2d | 70 6f 69 6e 74 20 68 61 |loating-|point ha|
|00003720| 6e 64 6c 65 72 20 20 20 | 20 20 20 20 20 20 20 20 |ndler | |
|00003730| 2a 2f 0a 58 20 20 20 20 | 20 20 20 20 20 20 20 20 |*/.X | |
|00003740| 69 6e 68 61 6e 64 28 29 | 3b 20 20 20 2f 2a 20 49 |inhand()|; /* I|
|00003750| 6e 74 65 72 72 75 70 74 | 2d 6f 70 63 6f 64 65 20 |nterrupt|-opcode |
|00003760| 68 61 6e 64 6c 65 72 20 | 20 20 20 20 20 20 20 20 |handler | |
|00003770| 2a 2f 0a 58 0a 65 78 74 | 65 72 6e 20 63 68 61 72 |*/.X.ext|ern char|
|00003780| 20 2a 52 45 47 53 5b 5d | 3b 20 20 20 20 2f 2a 20 | *REGS[]|; /* |
|00003790| 54 61 62 6c 65 20 6f 66 | 20 72 65 67 69 73 74 65 |Table of| registe|
|000037a0| 72 20 6e 61 6d 65 73 20 | 20 20 20 20 20 20 20 20 |r names | |
|000037b0| 20 2a 2f 0a 58 0a 65 78 | 74 65 72 6e 20 63 68 61 | */.X.ex|tern cha|
|000037c0| 72 20 2a 52 45 47 53 30 | 5b 5d 3b 20 20 20 2f 2a |r *REGS0|[]; /*|
|000037d0| 20 4d 6f 64 65 20 30 20 | 72 65 67 69 73 74 65 72 | Mode 0 |register|
|000037e0| 20 6e 61 6d 65 20 74 61 | 62 6c 65 20 20 20 20 20 | name ta|ble |
|000037f0| 20 20 2a 2f 0a 58 0a 65 | 78 74 65 72 6e 20 63 68 | */.X.e|xtern ch|
|00003800| 61 72 20 2a 52 45 47 53 | 31 5b 5d 3b 20 20 20 2f |ar *REGS|1[]; /|
|00003810| 2a 20 4d 6f 64 65 20 31 | 20 72 65 67 69 73 74 65 |* Mode 1| registe|
|00003820| 72 20 6e 61 6d 65 20 74 | 61 62 6c 65 20 20 20 20 |r name t|able |
|00003830| 20 20 20 2a 2f 0a 58 0a | 58 23 64 65 66 69 6e 65 | */.X.|X#define|
|00003840| 20 41 4c 20 52 45 47 53 | 5b 30 5d 20 20 20 20 20 | AL REGS|[0] |
|00003850| 20 2f 2a 20 43 50 55 20 | 72 65 67 69 73 74 65 72 | /* CPU |register|
|00003860| 20 6d 61 6e 69 66 65 73 | 74 73 20 20 20 20 20 20 | manifes|ts |
|00003870| 20 20 20 20 20 2a 2f 0a | 58 23 64 65 66 69 6e 65 | */.|X#define|
|00003880| 20 43 4c 20 52 45 47 53 | 5b 31 5d 0a 58 23 64 65 | CL REGS|[1].X#de|
|00003890| 66 69 6e 65 20 44 4c 20 | 52 45 47 53 5b 32 5d 0a |fine DL |REGS[2].|
|000038a0| 58 23 64 65 66 69 6e 65 | 20 42 4c 20 52 45 47 53 |X#define| BL REGS|
|000038b0| 5b 33 5d 0a 58 23 64 65 | 66 69 6e 65 20 41 48 20 |[3].X#de|fine AH |
|000038c0| 52 45 47 53 5b 34 5d 0a | 58 23 64 65 66 69 6e 65 |REGS[4].|X#define|
|000038d0| 20 43 48 20 52 45 47 53 | 5b 35 5d 0a 58 23 64 65 | CH REGS|[5].X#de|
|000038e0| 66 69 6e 65 20 44 48 20 | 52 45 47 53 5b 36 5d 0a |fine DH |REGS[6].|
|000038f0| 58 23 64 65 66 69 6e 65 | 20 42 48 20 52 45 47 53 |X#define| BH REGS|
|00003900| 5b 37 5d 0a 58 23 64 65 | 66 69 6e 65 20 41 58 20 |[7].X#de|fine AX |
|00003910| 52 45 47 53 5b 38 5d 0a | 58 23 64 65 66 69 6e 65 |REGS[8].|X#define|
|00003920| 20 43 58 20 52 45 47 53 | 5b 39 5d 0a 58 23 64 65 | CX REGS|[9].X#de|
|00003930| 66 69 6e 65 20 44 58 20 | 52 45 47 53 5b 31 30 5d |fine DX |REGS[10]|
|00003940| 0a 58 23 64 65 66 69 6e | 65 20 42 58 20 52 45 47 |.X#defin|e BX REG|
|00003950| 53 5b 31 31 5d 0a 58 23 | 64 65 66 69 6e 65 20 53 |S[11].X#|define S|
|00003960| 50 20 52 45 47 53 5b 31 | 32 5d 0a 58 23 64 65 66 |P REGS[1|2].X#def|
|00003970| 69 6e 65 20 42 50 20 52 | 45 47 53 5b 31 33 5d 0a |ine BP R|EGS[13].|
|00003980| 58 23 64 65 66 69 6e 65 | 20 53 49 20 52 45 47 53 |X#define| SI REGS|
|00003990| 5b 31 34 5d 0a 58 23 64 | 65 66 69 6e 65 20 44 49 |[14].X#d|efine DI|
|000039a0| 20 52 45 47 53 5b 31 35 | 5d 0a 58 23 64 65 66 69 | REGS[15|].X#defi|
|000039b0| 6e 65 20 45 53 20 52 45 | 47 53 5b 31 36 5d 0a 58 |ne ES RE|GS[16].X|
|000039c0| 23 64 65 66 69 6e 65 20 | 43 53 20 52 45 47 53 5b |#define |CS REGS[|
|000039d0| 31 37 5d 0a 58 23 64 65 | 66 69 6e 65 20 53 53 20 |17].X#de|fine SS |
|000039e0| 52 45 47 53 5b 31 38 5d | 0a 58 23 64 65 66 69 6e |REGS[18]|.X#defin|
|000039f0| 65 20 44 53 20 52 45 47 | 53 5b 31 39 5d 0a 58 23 |e DS REG|S[19].X#|
|00003a00| 64 65 66 69 6e 65 20 42 | 58 5f 53 49 20 52 45 47 |define B|X_SI REG|
|00003a10| 53 30 5b 30 5d 0a 58 23 | 64 65 66 69 6e 65 20 42 |S0[0].X#|define B|
|00003a20| 58 5f 44 49 20 52 45 47 | 53 30 5b 31 5d 0a 58 23 |X_DI REG|S0[1].X#|
|00003a30| 64 65 66 69 6e 65 20 42 | 50 5f 53 49 20 52 45 47 |define B|P_SI REG|
|00003a40| 53 30 5b 32 5d 0a 58 23 | 64 65 66 69 6e 65 20 42 |S0[2].X#|define B|
|00003a50| 50 5f 44 49 20 52 45 47 | 53 30 5b 33 5d 0a 58 0a |P_DI REG|S0[3].X.|
|00003a60| 65 78 74 65 72 6e 20 69 | 6e 74 20 73 79 6d 72 61 |extern i|nt symra|
|00003a70| 6e 6b 5b 36 5d 5b 36 5d | 3b 20 20 20 20 20 2f 2a |nk[6][6]|; /*|
|00003a80| 20 53 79 6d 62 6f 6c 20 | 74 79 70 65 2f 72 61 6e | Symbol |type/ran|
|00003a90| 6b 20 6d 61 74 72 69 78 | 20 20 20 20 2a 2f 0a 58 |k matrix| */.X|
|00003aa0| 0a 65 78 74 65 72 6e 20 | 75 6e 73 69 67 6e 65 64 |.extern |unsigned|
|00003ab0| 20 6c 6f 6e 67 20 50 43 | 3b 20 20 20 20 20 20 2f | long PC|; /|
|00003ac0| 2a 20 43 75 72 72 65 6e | 74 20 70 72 6f 67 72 61 |* Curren|t progra|
|00003ad0| 6d 20 63 6f 75 6e 74 65 | 72 20 20 20 20 2a 2f 0a |m counte|r */.|
|00003ae0| 58 0a 65 78 74 65 72 6e | 20 69 6e 74 20 73 65 67 |X.extern| int seg|
|00003af0| 66 6c 67 3b 20 20 20 20 | 20 20 2f 2a 20 46 6c 61 |flg; | /* Fla|
|00003b00| 67 3a 20 73 65 67 6d 65 | 6e 74 20 6f 76 65 72 72 |g: segme|nt overr|
|00003b10| 69 64 65 20 69 6e 20 65 | 66 66 65 63 74 20 2a 2f |ide in e|ffect */|
|00003b20| 0a 58 0a 65 78 74 65 72 | 6e 20 69 6e 74 20 6f 62 |.X.exter|n int ob|
|00003b30| 6a 66 6c 67 3b 20 20 20 | 20 20 20 2f 2a 20 46 6c |jflg; | /* Fl|
|00003b40| 61 67 3a 20 6f 75 74 70 | 75 74 20 6f 62 6a 65 63 |ag: outp|ut objec|
|00003b50| 74 20 61 73 20 61 20 63 | 6f 6d 6d 65 6e 74 20 2a |t as a c|omment *|
|00003b60| 2f 0a 58 0a 58 23 64 65 | 66 69 6e 65 20 4f 42 4a |/.X.X#de|fine OBJ|
|00003b70| 4d 41 58 20 38 20 20 20 | 20 20 20 20 20 2f 2a 20 |MAX 8 | /* |
|00003b80| 53 69 7a 65 20 6f 66 20 | 74 68 65 20 6f 62 6a 65 |Size of |the obje|
|00003b90| 63 74 20 63 6f 64 65 20 | 62 75 66 66 65 72 20 20 |ct code |buffer |
|00003ba0| 20 2a 2f 0a 58 0a 65 78 | 74 65 72 6e 20 75 6e 73 | */.X.ex|tern uns|
|00003bb0| 69 67 6e 65 64 20 63 68 | 61 72 20 20 20 20 2f 2a |igned ch|ar /*|
|00003bc0| 20 49 6e 74 65 72 6e 61 | 6c 20 62 75 66 66 65 72 | Interna|l buffer|
|00003bd0| 20 66 6f 72 20 6f 62 6a | 65 63 74 20 63 6f 64 65 | for obj|ect code|
|00003be0| 20 20 2a 2f 0a 58 20 20 | 20 6f 62 6a 62 75 66 5b | */.X | objbuf[|
|00003bf0| 4f 42 4a 4d 41 58 5d 3b | 0a 58 0a 65 78 74 65 72 |OBJMAX];|.X.exter|
|00003c00| 6e 20 76 6f 69 64 20 6f | 62 6a 69 6e 69 28 29 2c |n void o|bjini(),|
|00003c10| 20 20 20 2f 2a 20 4f 62 | 6a 65 63 74 2d 62 75 66 | /* Ob|ject-buf|
|00003c20| 66 65 72 20 69 6e 69 74 | 20 72 6f 75 74 69 6e 65 |fer init| routine|
|00003c30| 20 20 20 20 20 20 20 2a | 2f 0a 58 20 20 20 20 20 | *|/.X |
|00003c40| 20 20 20 20 20 20 20 6f | 62 6a 6f 75 74 28 29 3b | o|bjout();|
|00003c50| 20 20 20 2f 2a 20 4f 62 | 6a 65 63 74 2d 63 6f 64 | /* Ob|ject-cod|
|00003c60| 65 20 6f 75 74 70 75 74 | 20 72 6f 75 74 69 6e 65 |e output| routine|
|00003c70| 20 20 20 20 20 20 20 2a | 2f 0a 58 0a 65 78 74 65 | *|/.X.exte|
|00003c80| 72 6e 20 69 6e 74 20 6f | 62 6a 70 74 72 3b 20 20 |rn int o|bjptr; |
|00003c90| 20 20 20 20 2f 2a 20 49 | 6e 64 65 78 20 69 6e 74 | /* I|ndex int|
|00003ca0| 6f 20 74 68 65 20 6f 62 | 6a 62 75 66 5b 5d 20 61 |o the ob|jbuf[] a|
|00003cb0| 72 72 61 79 20 20 20 20 | 2a 2f 0a 58 0a 65 78 74 |rray |*/.X.ext|
|00003cc0| 65 72 6e 20 76 6f 69 64 | 20 62 61 64 73 65 71 28 |ern void| badseq(|
|00003cd0| 29 3b 20 20 20 2f 2a 20 | 42 61 64 2d 63 6f 64 65 |); /* |Bad-code|
|00003ce0| 2d 73 65 71 75 65 6e 63 | 65 20 66 75 6e 63 74 69 |-sequenc|e functi|
|00003cf0| 6f 6e 20 20 20 20 20 20 | 20 2a 2f 0a 58 0a 65 78 |on | */.X.ex|
|00003d00| 74 65 72 6e 20 63 68 61 | 72 20 2a 67 65 74 6e 61 |tern cha|r *getna|
|00003d10| 6d 28 29 3b 20 20 2f 2a | 20 53 79 6d 62 6f 6c 2d |m(); /*| Symbol-|
|00003d20| 6e 61 6d 65 20 73 74 72 | 69 6e 67 20 66 75 6e 63 |name str|ing func|
|00003d30| 74 69 6f 6e 20 20 20 20 | 20 20 2a 2f 0a 58 0a 65 |tion | */.X.e|
|00003d40| 78 74 65 72 6e 20 63 68 | 61 72 20 2a 6c 6f 6f 6b |xtern ch|ar *look|
|00003d50| 75 70 28 29 3b 20 20 2f | 2a 20 53 79 6d 62 6f 6c |up(); /|* Symbol|
|00003d60| 2d 74 61 62 6c 65 20 6c | 6f 6f 6b 75 70 20 66 75 |-table l|ookup fu|
|00003d70| 6e 63 74 69 6f 6e 20 20 | 20 20 20 2a 2f 0a 58 0a |nction | */.X.|
|00003d80| 65 78 74 65 72 6e 20 69 | 6e 74 20 6c 6f 6f 6b 65 |extern i|nt looke|
|00003d90| 78 74 28 29 3b 20 20 20 | 2f 2a 20 45 78 74 65 72 |xt(); |/* Exter|
|00003da0| 6e 2d 64 65 66 69 6e 69 | 74 69 6f 6e 20 6c 6f 6f |n-defini|tion loo|
|00003db0| 6b 75 70 20 72 6f 75 74 | 69 6e 65 20 2a 2f 0a 58 |kup rout|ine */.X|
|00003dc0| 0a 65 78 74 65 72 6e 20 | 63 68 61 72 20 2a 6d 74 |.extern |char *mt|
|00003dd0| 72 61 6e 73 28 29 3b 20 | 20 2f 2a 20 49 6e 74 65 |rans(); | /* Inte|
|00003de0| 72 70 72 65 74 65 72 20 | 66 6f 72 20 74 68 65 20 |rpreter |for the |
|00003df0| 6d 6f 64 65 20 62 79 74 | 65 20 20 20 20 2a 2f 0a |mode byt|e */.|
|00003e00| 58 0a 65 78 74 65 72 6e | 20 76 6f 69 64 20 6d 74 |X.extern| void mt|
|00003e10| 72 75 6e 63 28 29 3b 20 | 20 20 2f 2a 20 4d 6f 64 |runc(); | /* Mod|
|00003e20| 65 20 73 74 72 69 6e 67 | 20 74 72 75 6e 63 61 74 |e string| truncat|
|00003e30| 6f 72 20 66 75 6e 63 74 | 69 6f 6e 20 20 20 2a 2f |or funct|ion */|
|00003e40| 0a 58 0a 65 78 74 65 72 | 6e 20 63 68 61 72 20 41 |.X.exter|n char A|
|00003e50| 44 44 5b 5d 2c 20 20 20 | 20 20 20 2f 2a 20 4f 70 |DD[], | /* Op|
|00003e60| 63 6f 64 65 20 66 61 6d | 69 6c 79 20 6d 6e 65 6d |code fam|ily mnem|
|00003e70| 6f 6e 69 63 20 73 74 72 | 69 6e 67 73 20 20 20 2a |onic str|ings *|
|00003e80| 2f 0a 58 20 20 20 20 20 | 20 20 20 20 20 20 20 4f |/.X | O|
|00003e90| 52 5b 5d 2c 0a 58 20 20 | 20 20 20 20 20 20 20 20 |R[],.X | |
|00003ea0| 20 20 41 44 43 5b 5d 2c | 0a 58 20 20 20 20 20 20 | ADC[],|.X |
|00003eb0| 20 20 20 20 20 20 53 42 | 42 5b 5d 2c 0a 58 20 20 | SB|B[],.X |
|00003ec0| 20 20 20 20 20 20 20 20 | 20 20 41 4e 44 5b 5d 2c | | AND[],|
|00003ed0| 0a 58 20 20 20 20 20 20 | 20 20 20 20 20 20 53 55 |.X | SU|
|00003ee0| 42 5b 5d 2c 0a 58 20 20 | 20 20 20 20 20 20 20 20 |B[],.X | |
|00003ef0| 20 20 58 4f 52 5b 5d 2c | 0a 58 20 20 20 20 20 20 | XOR[],|.X |
|00003f00| 20 20 20 20 20 20 43 4d | 50 5b 5d 2c 0a 58 20 20 | CM|P[],.X |
|00003f10| 20 20 20 20 20 20 20 20 | 20 20 4e 4f 54 5b 5d 2c | | NOT[],|
|00003f20| 0a 58 20 20 20 20 20 20 | 20 20 20 20 20 20 4e 45 |.X | NE|
|00003f30| 47 5b 5d 2c 0a 58 20 20 | 20 20 20 20 20 20 20 20 |G[],.X | |
|00003f40| 20 20 4d 55 4c 5b 5d 2c | 0a 58 20 20 20 20 20 20 | MUL[],|.X |
|00003f50| 20 20 20 20 20 20 44 49 | 56 5b 5d 2c 0a 58 20 20 | DI|V[],.X |
|00003f60| 20 20 20 20 20 20 20 20 | 20 20 4d 4f 56 5b 5d 2c | | MOV[],|
|00003f70| 0a 58 20 20 20 20 20 20 | 20 20 20 20 20 20 45 53 |.X | ES|
|00003f80| 43 5b 5d 2c 0a 58 20 20 | 20 20 20 20 20 20 20 20 |C[],.X | |
|00003f90| 20 20 54 45 53 54 5b 5d | 2c 0a 58 20 20 20 20 20 | TEST[]|,.X |
|00003fa0| 20 20 20 20 20 20 20 41 | 4d 42 49 47 5b 5d 3b 0a | A|MBIG[];.|
|00003fb0| 58 0a 65 78 74 65 72 6e | 20 63 68 61 72 20 2a 4f |X.extern| char *O|
|00003fc0| 50 46 41 4d 5b 5d 3b 20 | 20 20 2f 2a 20 49 6e 64 |PFAM[]; | /* Ind|
|00003fd0| 65 78 65 64 20 6d 6e 65 | 6d 6f 6e 69 63 20 66 61 |exed mne|monic fa|
|00003fe0| 6d 69 6c 79 20 74 61 62 | 6c 65 20 20 20 20 2a 2f |mily tab|le */|
|00003ff0| 0a 58 0a 65 78 74 65 72 | 6e 20 73 74 72 75 63 74 |.X.exter|n struct|
|00004000| 20 65 78 65 63 20 48 44 | 52 3b 20 2f 2a 20 48 6f | exec HD|R; /* Ho|
|00004010| 6c 64 73 20 74 68 65 20 | 6f 62 6a 65 63 74 20 66 |lds the |object f|
|00004020| 69 6c 65 27 73 20 68 65 | 61 64 65 72 20 20 20 2a |ile's he|ader *|
|00004030| 2f 0a 58 0a 58 23 64 65 | 66 69 6e 65 20 4c 4f 4f |/.X.X#de|fine LOO|
|00004040| 4b 5f 41 42 53 20 30 20 | 20 20 20 20 20 2f 2a 20 |K_ABS 0 | /* |
|00004050| 41 72 67 75 6d 65 6e 74 | 73 20 74 6f 20 6c 6f 6f |Argument|s to loo|
|00004060| 6b 75 70 28 29 20 66 75 | 6e 63 74 69 6f 6e 20 20 |kup() fu|nction |
|00004070| 20 2a 2f 0a 58 23 64 65 | 66 69 6e 65 20 4c 4f 4f | */.X#de|fine LOO|
|00004080| 4b 5f 52 45 4c 20 31 0a | 58 23 64 65 66 69 6e 65 |K_REL 1.|X#define|
|00004090| 20 4c 4f 4f 4b 5f 4c 4e | 47 20 32 0a 58 0a 58 23 | LOOK_LN|G 2.X.X#|
|000040a0| 64 65 66 69 6e 65 20 54 | 52 5f 53 54 44 20 30 20 |define T|R_STD 0 |
|000040b0| 20 20 20 20 20 20 20 2f | 2a 20 41 72 67 75 6d 65 | /|* Argume|
|000040c0| 6e 74 73 20 74 6f 20 6d | 74 72 61 6e 73 28 29 20 |nts to m|trans() |
|000040d0| 66 75 6e 63 74 69 6f 6e | 20 20 20 2a 2f 0a 58 23 |function| */.X#|
|000040e0| 64 65 66 69 6e 65 20 54 | 52 5f 53 45 47 20 38 0a |define T|R_SEG 8.|
|000040f0| 58 0a 58 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |X.X | |
|00004100| 20 20 20 20 20 20 20 20 | 20 20 20 2f 2a 20 4d 61 | | /* Ma|
|00004110| 63 72 6f 20 66 6f 72 20 | 62 79 74 65 20 69 6e 70 |cro for |byte inp|
|00004120| 75 74 20 70 72 69 6d 69 | 74 69 76 65 20 20 20 2a |ut primi|tive *|
|00004130| 2f 0a 58 23 64 65 66 69 | 6e 65 20 46 45 54 43 48 |/.X#defi|ne FETCH|
|00004140| 28 70 29 20 5c 0a 58 20 | 20 20 2b 2b 50 43 3b 20 |(p) \.X | ++PC; |
|00004150| 70 20 3d 20 67 65 74 63 | 68 61 72 28 29 20 26 20 |p = getc|har() & |
|00004160| 30 78 66 66 3b 20 6f 62 | 6a 62 75 66 5b 6f 62 6a |0xff; ob|jbuf[obj|
|00004170| 70 74 72 2b 2b 5d 20 3d | 20 70 0a 58 0a 65 78 74 |ptr++] =| p.X.ext|
|00004180| 65 72 6e 20 69 6e 74 20 | 63 6c 6f 73 65 28 29 3b |ern int |close();|
|00004190| 20 20 20 20 20 2f 2a 20 | 53 79 73 74 65 6d 20 66 | /* |System f|
|000041a0| 69 6c 65 2d 63 6c 6f 73 | 65 20 70 72 69 6d 69 74 |ile-clos|e primit|
|000041b0| 69 76 65 20 20 20 20 20 | 20 2a 2f 0a 65 78 74 65 |ive | */.exte|
|000041c0| 72 6e 20 69 6e 74 20 66 | 70 72 69 6e 74 66 28 29 |rn int f|printf()|
|000041d0| 3b 20 20 20 2f 2a 20 4c | 69 62 72 61 72 79 20 66 |; /* L|ibrary f|
|000041e0| 69 6c 65 2d 6f 75 74 70 | 75 74 20 66 75 6e 63 74 |ile-outp|ut funct|
|000041f0| 69 6f 6e 20 20 20 20 20 | 2a 2f 0a 65 78 74 65 72 |ion |*/.exter|
|00004200| 6e 20 6c 6f 6e 67 20 6c | 73 65 65 6b 28 29 3b 20 |n long l|seek(); |
|00004210| 20 20 20 2f 2a 20 53 79 | 73 74 65 6d 20 66 69 6c | /* Sy|stem fil|
|00004220| 65 2d 70 6f 73 69 74 69 | 6f 6e 20 70 72 69 6d 69 |e-positi|on primi|
|00004230| 74 69 76 65 20 20 20 2a | 2f 0a 65 78 74 65 72 6e |tive *|/.extern|
|00004240| 20 69 6e 74 20 6f 70 65 | 6e 28 29 3b 20 20 20 20 | int ope|n(); |
|00004250| 20 20 2f 2a 20 53 79 73 | 74 65 6d 20 66 69 6c 65 | /* Sys|tem file|
|00004260| 2d 6f 70 65 6e 20 70 72 | 69 6d 69 74 69 76 65 20 |-open pr|imitive |
|00004270| 20 20 20 20 20 20 2a 2f | 0a 65 78 74 65 72 6e 20 | */|.extern |
|00004280| 69 6e 74 20 70 72 69 6e | 74 66 28 29 3b 20 20 20 |int prin|tf(); |
|00004290| 20 2f 2a 20 4c 69 62 72 | 61 72 79 20 6f 75 74 70 | /* Libr|ary outp|
|000042a0| 75 74 2d 66 6f 72 6d 61 | 74 20 66 75 6e 63 74 69 |ut-forma|t functi|
|000042b0| 6f 6e 20 20 20 2a 2f 0a | 65 78 74 65 72 6e 20 69 |on */.|extern i|
|000042c0| 6e 74 20 72 65 61 64 28 | 29 3b 20 20 20 20 20 20 |nt read(|); |
|000042d0| 2f 2a 20 53 79 73 74 65 | 6d 20 66 69 6c 65 2d 72 |/* Syste|m file-r|
|000042e0| 65 61 64 20 70 72 69 6d | 69 74 69 76 65 20 20 20 |ead prim|itive |
|000042f0| 20 20 20 20 2a 2f 0a 65 | 78 74 65 72 6e 20 69 6e | */.e|xtern in|
|00004300| 74 20 73 70 72 69 6e 74 | 66 28 29 3b 20 20 20 2f |t sprint|f(); /|
|00004310| 2a 20 4c 69 62 72 61 72 | 79 20 73 74 72 69 6e 67 |* Librar|y string|
|00004320| 2d 6f 75 74 70 75 74 20 | 66 75 6e 63 74 69 6f 6e |-output |function|
|00004330| 20 20 20 2a 2f 0a 65 78 | 74 65 72 6e 20 63 68 61 | */.ex|tern cha|
|00004340| 72 20 2a 73 74 72 63 61 | 74 28 29 3b 20 20 2f 2a |r *strca|t(); /*|
|00004350| 20 4c 69 62 72 61 72 79 | 20 73 74 72 69 6e 67 2d | Library| string-|
|00004360| 6a 6f 69 6e 20 66 75 6e | 63 74 69 6f 6e 20 20 20 |join fun|ction |
|00004370| 20 20 2a 2f 0a 65 78 74 | 65 72 6e 20 63 68 61 72 | */.ext|ern char|
|00004380| 20 2a 73 74 72 63 70 79 | 28 29 3b 20 20 2f 2a 20 | *strcpy|(); /* |
|00004390| 4c 69 62 72 61 72 79 20 | 73 74 72 69 6e 67 2d 63 |Library |string-c|
|000043a0| 6f 70 79 20 66 75 6e 63 | 74 69 6f 6e 20 20 20 20 |opy func|tion |
|000043b0| 20 2a 2f 0a 65 78 74 65 | 72 6e 20 69 6e 74 20 73 | */.exte|rn int s|
|000043c0| 74 72 6c 65 6e 28 29 3b | 20 20 20 20 2f 2a 20 4c |trlen();| /* L|
|000043d0| 69 62 72 61 72 79 20 73 | 74 72 69 6e 67 2d 6c 65 |ibrary s|tring-le|
|000043e0| 6e 67 74 68 20 66 75 6e | 63 74 69 6f 6e 20 20 20 |ngth fun|ction |
|000043f0| 2a 2f 0a 58 0a 58 20 2f | 2a 20 2a 20 2a 20 2a 20 |*/.X.X /|* * * * |
|00004400| 2a 20 2a 20 2a 20 2a 20 | 2a 20 2a 20 2a 20 20 45 |* * * * |* * * E|
|00004410| 4e 44 20 4f 46 20 20 64 | 69 73 2e 68 20 20 2a 20 |ND OF d|is.h * |
|00004420| 2a 20 2a 20 2a 20 2a 20 | 2a 20 2a 20 2a 20 2a 20 |* * * * |* * * * |
|00004430| 2a 20 2a 2f 0a 58 0c 0a | 58 0a 45 4e 44 5f 4f 46 |* */.X..|X.END_OF|
|00004440| 5f 46 49 4c 45 0a 69 66 | 20 74 65 73 74 20 37 35 |_FILE.if| test 75|
|00004450| 36 33 20 2d 6e 65 20 60 | 77 63 20 2d 63 20 3c 27 |63 -ne `|wc -c <'|
|00004460| 64 69 73 2e 68 27 60 3b | 20 74 68 65 6e 0a 20 20 |dis.h'`;| then. |
|00004470| 20 20 65 63 68 6f 20 73 | 68 61 72 3a 20 5c 22 27 | echo s|har: \"'|
|00004480| 64 69 73 2e 68 27 5c 22 | 20 75 6e 70 61 63 6b 65 |dis.h'\"| unpacke|
|00004490| 64 20 77 69 74 68 20 77 | 72 6f 6e 67 20 73 69 7a |d with w|rong siz|
|000044a0| 65 21 0a 66 69 0a 23 20 | 65 6e 64 20 6f 66 20 27 |e!.fi.# |end of '|
|000044b0| 64 69 73 2e 68 27 0a 66 | 69 0a 69 66 20 74 65 73 |dis.h'.f|i.if tes|
|000044c0| 74 20 2d 66 20 27 64 69 | 73 38 38 2e 31 27 20 2d |t -f 'di|s88.1' -|
|000044d0| 61 20 22 24 7b 31 7d 22 | 20 21 3d 20 22 2d 63 22 |a "${1}"| != "-c"|
|000044e0| 20 3b 20 74 68 65 6e 20 | 0a 20 20 65 63 68 6f 20 | ; then |. echo |
|000044f0| 73 68 61 72 3a 20 57 69 | 6c 6c 20 6e 6f 74 20 63 |shar: Wi|ll not c|
|00004500| 6c 6f 62 62 65 72 20 65 | 78 69 73 74 69 6e 67 20 |lobber e|xisting |
|00004510| 66 69 6c 65 20 5c 22 27 | 64 69 73 38 38 2e 31 27 |file \"'|dis88.1'|
|00004520| 5c 22 0a 65 6c 73 65 0a | 65 63 68 6f 20 73 68 61 |\".else.|echo sha|
|00004530| 72 3a 20 45 78 74 72 61 | 63 74 69 6e 67 20 5c 22 |r: Extra|cting \"|
|00004540| 27 64 69 73 38 38 2e 31 | 27 5c 22 20 5c 28 36 31 |'dis88.1|'\" \(61|
|00004550| 37 34 20 63 68 61 72 61 | 63 74 65 72 73 5c 29 0a |74 chara|cters\).|
|00004560| 73 65 64 20 22 73 2f 5e | 58 2f 2f 22 20 3e 27 64 |sed "s/^|X//" >'d|
|00004570| 69 73 38 38 2e 31 27 20 | 3c 3c 27 45 4e 44 5f 4f |is88.1' |<<'END_O|
|00004580| 46 5f 46 49 4c 45 27 0a | 58 2e 54 48 20 64 69 73 |F_FILE'.|X.TH dis|
|00004590| 38 38 20 31 20 4c 4f 43 | 41 4c 0a 58 2e 53 48 20 |88 1 LOC|AL.X.SH |
|000045a0| 22 4e 41 4d 45 22 0a 64 | 69 73 38 38 20 5c 2d 20 |"NAME".d|is88 \- |
|000045b0| 38 30 38 38 20 73 79 6d | 62 6f 6c 69 63 20 64 69 |8088 sym|bolic di|
|000045c0| 73 61 73 73 65 6d 62 6c | 65 72 0a 58 2e 53 48 20 |sassembl|er.X.SH |
|000045d0| 22 53 59 4e 4f 50 53 49 | 53 22 0a 58 5c 66 42 64 |"SYNOPSI|S".X\fBd|
|000045e0| 69 73 38 38 5c 66 50 20 | 5b 20 2d 6f 20 5d 20 69 |is88\fP |[ -o ] i|
|000045f0| 66 69 6c 65 20 5b 20 6f | 66 69 6c 65 20 5d 0a 58 |file [ o|file ].X|
|00004600| 2e 53 48 20 22 44 45 53 | 43 52 49 50 54 49 4f 4e |.SH "DES|CRIPTION|
|00004610| 22 0a 44 69 73 38 38 20 | 72 65 61 64 73 20 69 66 |".Dis88 |reads if|
|00004620| 69 6c 65 2c 20 77 68 69 | 63 68 20 6d 75 73 74 20 |ile, whi|ch must |
|00004630| 62 65 20 69 6e 20 50 43 | 2f 49 58 20 61 2e 6f 75 |be in PC|/IX a.ou|
|00004640| 74 20 66 6f 72 6d 61 74 | 2e 0a 49 74 20 69 6e 74 |t format|..It int|
|00004650| 65 72 70 72 65 74 73 20 | 74 68 65 20 62 69 6e 61 |erprets |the bina|
|00004660| 72 79 20 6f 70 63 6f 64 | 65 73 20 61 6e 64 20 64 |ry opcod|es and d|
|00004670| 61 74 61 20 6c 6f 63 61 | 74 69 6f 6e 73 2c 20 61 |ata loca|tions, a|
|00004680| 6e 64 0a 77 72 69 74 65 | 73 20 63 6f 72 72 65 73 |nd.write|s corres|
|00004690| 70 6f 6e 64 69 6e 67 20 | 61 73 73 65 6d 62 6c 65 |ponding |assemble|
|000046a0| 72 20 73 6f 75 72 63 65 | 20 63 6f 64 65 20 74 6f |r source| code to|
|000046b0| 20 73 74 64 6f 75 74 2c | 20 6f 72 0a 74 6f 20 6f | stdout,| or.to o|
|000046c0| 66 69 6c 65 20 69 66 20 | 73 70 65 63 69 66 69 65 |file if |specifie|
|000046d0| 64 2e 20 20 54 68 65 20 | 70 72 6f 67 72 61 6d 27 |d. The |program'|
|000046e0| 73 20 6f 75 74 70 75 74 | 20 69 73 20 69 6e 20 74 |s output| is in t|
|000046f0| 68 65 0a 66 6f 72 6d 61 | 74 20 6f 66 2c 20 61 6e |he.forma|t of, an|
|00004700| 64 20 66 75 6c 6c 79 20 | 63 6f 6d 70 61 74 69 62 |d fully |compatib|
|00004710| 6c 65 20 77 69 74 68 2c | 20 74 68 65 20 50 43 2f |le with,| the PC/|
|00004720| 49 58 20 61 73 73 65 6d | 62 6c 65 72 2c 0a 61 73 |IX assem|bler,.as|
|00004730| 28 31 29 2e 20 20 49 66 | 20 61 20 73 79 6d 62 6f |(1). If| a symbo|
|00004740| 6c 20 74 61 62 6c 65 20 | 69 73 20 70 72 65 73 65 |l table |is prese|
|00004750| 6e 74 20 69 6e 20 69 66 | 69 6c 65 2c 20 6c 61 62 |nt in if|ile, lab|
|00004760| 65 6c 73 20 61 6e 64 0a | 72 65 66 65 72 65 6e 63 |els and.|referenc|
|00004770| 65 73 20 77 69 6c 6c 20 | 62 65 20 73 79 6d 62 6f |es will |be symbo|
|00004780| 6c 69 63 20 69 6e 20 74 | 68 65 20 6f 75 74 70 75 |lic in t|he outpu|
|00004790| 74 2e 20 20 49 66 20 74 | 68 65 20 69 6e 70 75 74 |t. If t|he input|
|000047a0| 0a 66 69 6c 65 20 6c 61 | 63 6b 73 20 61 20 73 79 |.file la|cks a sy|
|000047b0| 6d 62 6f 6c 20 74 61 62 | 6c 65 2c 20 74 68 65 20 |mbol tab|le, the |
|000047c0| 66 61 63 74 20 77 69 6c | 6c 20 62 65 20 6e 6f 74 |fact wil|l be not|
|000047d0| 65 64 2c 20 61 6e 64 20 | 74 68 65 0a 64 69 73 61 |ed, and |the.disa|
|000047e0| 73 73 65 6d 62 6c 79 20 | 77 69 6c 6c 20 70 72 6f |ssembly |will pro|
|000047f0| 63 65 65 64 2c 20 77 69 | 74 68 20 74 68 65 20 64 |ceed, wi|th the d|
|00004800| 69 73 61 73 73 65 6d 62 | 6c 65 72 20 67 65 6e 65 |isassemb|ler gene|
|00004810| 72 61 74 69 6e 67 0a 73 | 79 6e 74 68 65 74 69 63 |rating.s|ynthetic|
|00004820| 20 6c 61 62 65 6c 73 20 | 61 73 20 6e 65 65 64 65 | labels |as neede|
|00004830| 64 2e 20 20 49 66 20 74 | 68 65 20 69 6e 70 75 74 |d. If t|he input|
|00004840| 20 66 69 6c 65 20 68 61 | 73 20 73 70 6c 69 74 0a | file ha|s split.|
|00004850| 49 2f 44 20 73 70 61 63 | 65 2c 20 6f 72 20 69 66 |I/D spac|e, or if|
|00004860| 20 69 74 20 69 73 20 65 | 78 65 63 75 74 61 62 6c | it is e|xecutabl|
|00004870| 65 2c 20 74 68 65 20 64 | 69 73 61 73 73 65 6d 62 |e, the d|isassemb|
|00004880| 6c 65 72 20 77 69 6c 6c | 0a 6d 61 6b 65 20 61 6c |ler will|.make al|
|00004890| 6c 20 6e 65 63 65 73 73 | 61 72 79 20 61 64 6a 75 |l necess|ary adju|
|000048a0| 73 74 6d 65 6e 74 73 20 | 69 6e 20 61 64 64 72 65 |stments |in addre|
|000048b0| 73 73 2d 72 65 66 65 72 | 65 6e 63 65 20 63 61 6c |ss-refer|ence cal|
|000048c0| 63 75 6c 61 74 69 6f 6e | 73 2e 0a 58 2e 50 50 0a |culation|s..X.PP.|
|000048d0| 49 66 20 74 68 65 20 22 | 2d 6f 22 20 6f 70 74 69 |If the "|-o" opti|
|000048e0| 6f 6e 20 61 70 70 65 61 | 72 73 2c 20 6f 62 6a 65 |on appea|rs, obje|
|000048f0| 63 74 20 63 6f 64 65 20 | 77 69 6c 6c 20 62 65 20 |ct code |will be |
|00004900| 69 6e 63 6c 75 64 65 64 | 0a 69 6e 20 63 6f 6d 6d |included|.in comm|
|00004910| 65 6e 74 73 20 64 75 72 | 69 6e 67 20 64 69 73 61 |ents dur|ing disa|
|00004920| 73 73 65 6d 62 6c 79 20 | 6f 66 20 74 68 65 20 74 |ssembly |of the t|
|00004930| 65 78 74 20 73 65 67 6d | 65 6e 74 2e 20 20 54 68 |ext segm|ent. Th|
|00004940| 69 73 0a 66 65 61 74 75 | 72 65 20 69 73 20 75 73 |is.featu|re is us|
|00004950| 65 64 20 70 72 69 6d 61 | 72 69 6c 79 20 66 6f 72 |ed prima|rily for|
|00004960| 20 64 65 62 75 67 67 69 | 6e 67 20 74 68 65 20 64 | debuggi|ng the d|
|00004970| 69 73 61 73 73 65 6d 62 | 6c 65 72 0a 69 74 73 65 |isassemb|ler.itse|
|00004980| 6c 66 2c 20 62 75 74 20 | 6d 61 79 20 70 72 6f 76 |lf, but |may prov|
|00004990| 69 64 65 20 69 6e 66 6f | 72 6d 61 74 69 6f 6e 20 |ide info|rmation |
|000049a0| 6f 66 20 70 61 73 73 69 | 6e 67 20 69 6e 74 65 72 |of passi|ng inter|
|000049b0| 65 73 74 0a 74 6f 20 75 | 73 65 72 73 2e 0a 58 2e |est.to u|sers..X.|
|000049c0| 50 50 0a 54 68 65 20 70 | 72 6f 67 72 61 6d 20 61 |PP.The p|rogram a|
|000049d0| 6c 77 61 79 73 20 6f 75 | 74 70 75 74 73 20 74 68 |lways ou|tputs th|
|000049e0| 65 20 63 75 72 72 65 6e | 74 20 6d 61 63 68 69 6e |e curren|t machin|
|000049f0| 65 20 61 64 64 72 65 73 | 73 0a 62 65 66 6f 72 65 |e addres|s.before|
|00004a00| 20 64 69 73 61 73 73 65 | 6d 62 6c 69 6e 67 20 61 | disasse|mbling a|
|00004a10| 6e 20 6f 70 63 6f 64 65 | 2e 20 20 49 66 20 61 20 |n opcode|. If a |
|00004a20| 73 79 6d 62 6f 6c 20 74 | 61 62 6c 65 20 69 73 0a |symbol t|able is.|
|00004a30| 70 72 65 73 65 6e 74 2c | 20 74 68 69 73 20 61 64 |present,| this ad|
|00004a40| 64 72 65 73 73 20 69 73 | 20 6f 75 74 70 75 74 20 |dress is| output |
|00004a50| 61 73 20 61 6e 20 61 73 | 73 65 6d 62 6c 65 72 20 |as an as|sembler |
|00004a60| 63 6f 6d 6d 65 6e 74 3b | 0a 6f 74 68 65 72 77 69 |comment;|.otherwi|
|00004a70| 73 65 2c 20 69 74 20 69 | 73 20 69 6e 63 6f 72 70 |se, it i|s incorp|
|00004a80| 6f 72 61 74 65 64 20 69 | 6e 74 6f 20 74 68 65 20 |orated i|nto the |
|00004a90| 73 79 6e 74 68 65 74 69 | 63 20 6c 61 62 65 6c 0a |syntheti|c label.|
|00004aa0| 77 68 69 63 68 20 69 73 | 20 67 65 6e 65 72 61 74 |which is| generat|
|00004ab0| 65 64 20 69 6e 74 65 72 | 6e 61 6c 6c 79 2e 20 20 |ed inter|nally. |
|00004ac0| 53 69 6e 63 65 20 72 65 | 6c 61 74 69 76 65 20 6a |Since re|lative j|
|00004ad0| 75 6d 70 73 2c 0a 65 73 | 70 65 63 69 61 6c 6c 79 |umps,.es|pecially|
|00004ae0| 20 73 68 6f 72 74 20 6f | 6e 65 73 2c 20 6d 61 79 | short o|nes, may|
|00004af0| 20 74 61 72 67 65 74 20 | 75 6e 6c 61 62 65 6c 6c | target |unlabell|
|00004b00| 65 64 20 6c 6f 63 61 74 | 69 6f 6e 73 2c 0a 74 68 |ed locat|ions,.th|
|00004b10| 65 20 70 72 6f 67 72 61 | 6d 20 61 6c 77 61 79 73 |e progra|m always|
|00004b20| 20 6f 75 74 70 75 74 73 | 20 74 68 65 20 70 68 79 | outputs| the phy|
|00004b30| 73 69 63 61 6c 20 74 61 | 72 67 65 74 20 61 64 64 |sical ta|rget add|
|00004b40| 72 65 73 73 0a 61 73 20 | 61 20 63 6f 6d 6d 65 6e |ress.as |a commen|
|00004b50| 74 2c 20 74 6f 20 61 73 | 73 69 73 74 20 74 68 65 |t, to as|sist the|
|00004b60| 20 75 73 65 72 20 69 6e | 20 66 6f 6c 6c 6f 77 69 | user in| followi|
|00004b70| 6e 67 20 74 68 65 20 63 | 6f 64 65 2e 0a 58 2e 50 |ng the c|ode..X.P|
|00004b80| 50 0a 54 68 65 20 74 65 | 78 74 20 73 65 67 6d 65 |P.The te|xt segme|
|00004b90| 6e 74 20 6f 66 20 61 6e | 20 6f 62 6a 65 63 74 20 |nt of an| object |
|00004ba0| 66 69 6c 65 20 69 73 20 | 61 6c 77 61 79 73 20 70 |file is |always p|
|00004bb0| 61 64 64 65 64 20 74 6f | 0a 61 6e 20 65 76 65 6e |added to|.an even|
|00004bc0| 20 6d 61 63 68 69 6e 65 | 20 61 64 64 72 65 73 73 | machine| address|
|00004bd0| 2e 20 20 49 6e 20 61 64 | 64 69 74 69 6f 6e 2c 20 |. In ad|dition, |
|00004be0| 69 66 20 74 68 65 20 66 | 69 6c 65 20 68 61 73 0a |if the f|ile has.|
|00004bf0| 73 70 6c 69 74 20 49 2f | 44 20 73 70 61 63 65 2c |split I/|D space,|
|00004c00| 20 74 68 65 20 74 65 78 | 74 20 73 65 67 6d 65 6e | the tex|t segmen|
|00004c10| 74 20 77 69 6c 6c 20 62 | 65 20 70 61 64 64 65 64 |t will b|e padded|
|00004c20| 20 74 6f 20 61 0a 70 61 | 72 61 67 72 61 70 68 20 | to a.pa|ragraph |
|00004c30| 62 6f 75 6e 64 61 72 79 | 20 28 69 2e 65 2e 2c 20 |boundary| (i.e., |
|00004c40| 61 6e 20 61 64 64 72 65 | 73 73 20 64 69 76 69 73 |an addre|ss divis|
|00004c50| 69 62 6c 65 20 62 79 20 | 31 36 29 2e 0a 41 73 20 |ible by |16)..As |
|00004c60| 61 20 72 65 73 75 6c 74 | 20 6f 66 20 74 68 69 73 |a result| of this|
|00004c70| 20 70 61 64 64 69 6e 67 | 2c 20 74 68 65 20 64 69 | padding|, the di|
|00004c80| 73 61 73 73 65 6d 62 6c | 65 72 20 6d 61 79 20 70 |sassembl|er may p|
|00004c90| 72 6f 64 75 63 65 0a 61 | 20 66 65 77 20 73 70 75 |roduce.a| few spu|
|00004ca0| 72 69 6f 75 73 2c 20 62 | 75 74 20 68 61 72 6d 6c |rious, b|ut harml|
|00004cb0| 65 73 73 2c 20 69 6e 73 | 74 72 75 63 74 69 6f 6e |ess, ins|truction|
|00004cc0| 73 20 61 74 20 74 68 65 | 0a 65 6e 64 20 6f 66 20 |s at the|.end of |
|00004cd0| 74 68 65 20 74 65 78 74 | 20 73 65 67 6d 65 6e 74 |the text| segment|
|00004ce0| 2e 0a 58 2e 50 50 0a 44 | 69 73 61 73 73 65 6d 62 |..X.PP.D|isassemb|
|00004cf0| 6c 79 20 6f 66 20 74 68 | 65 20 64 61 74 61 20 73 |ly of th|e data s|
|00004d00| 65 67 6d 65 6e 74 20 69 | 73 20 61 20 64 69 66 66 |egment i|s a diff|
|00004d10| 69 63 75 6c 74 20 6d 61 | 74 74 65 72 2e 0a 54 68 |icult ma|tter..Th|
|00004d20| 65 20 69 6e 66 6f 72 6d | 61 74 69 6f 6e 20 74 6f |e inform|ation to|
|00004d30| 20 77 68 69 63 68 20 69 | 6e 69 74 69 61 6c 69 7a | which i|nitializ|
|00004d40| 65 64 20 64 61 74 61 20 | 72 65 66 65 72 73 20 63 |ed data |refers c|
|00004d50| 61 6e 6e 6f 74 0a 62 65 | 20 69 6e 66 65 72 72 65 |annot.be| inferre|
|00004d60| 64 20 66 72 6f 6d 20 63 | 6f 6e 74 65 78 74 2c 20 |d from c|ontext, |
|00004d70| 65 78 63 65 70 74 20 69 | 6e 20 74 68 65 20 73 70 |except i|n the sp|
|00004d80| 65 63 69 61 6c 20 63 61 | 73 65 0a 6f 66 20 61 6e |ecial ca|se.of an|
|00004d90| 20 65 78 74 65 72 6e 61 | 6c 20 64 61 74 61 20 6f | externa|l data o|
|00004da0| 72 20 61 64 64 72 65 73 | 73 20 72 65 66 65 72 65 |r addres|s refere|
|00004db0| 6e 63 65 2c 20 77 68 69 | 63 68 20 77 69 6c 6c 20 |nce, whi|ch will |
|00004dc0| 62 65 0a 72 65 66 6c 65 | 63 74 65 64 20 69 6e 20 |be.refle|cted in |
|00004dd0| 74 68 65 20 72 65 6c 6f | 63 61 74 69 6f 6e 20 74 |the relo|cation t|
|00004de0| 61 62 6c 65 2e 20 20 49 | 6e 74 65 72 6e 61 6c 20 |able. I|nternal |
|00004df0| 64 61 74 61 20 61 6e 64 | 0a 61 64 64 72 65 73 73 |data and|.address|
|00004e00| 20 72 65 66 65 72 65 6e | 63 65 73 20 77 69 6c 6c | referen|ces will|
|00004e10| 20 61 6c 72 65 61 64 79 | 20 62 65 20 72 65 73 6f | already| be reso|
|00004e20| 6c 76 65 64 20 69 6e 20 | 74 68 65 20 6f 62 6a 65 |lved in |the obje|
|00004e30| 63 74 20 66 69 6c 65 2c | 0a 61 6e 64 20 63 61 6e |ct file,|.and can|
|00004e40| 6e 6f 74 20 62 65 20 72 | 65 63 72 65 61 74 65 64 |not be r|ecreated|
|00004e50| 2e 20 20 54 68 65 72 65 | 66 6f 72 65 2c 20 74 68 |. There|fore, th|
|00004e60| 65 20 64 61 74 61 0a 73 | 65 67 6d 65 6e 74 20 69 |e data.s|egment i|
|00004e70| 73 20 64 69 73 61 73 73 | 65 6d 62 6c 65 64 20 61 |s disass|embled a|
|00004e80| 73 20 61 20 62 79 74 65 | 20 73 74 72 65 61 6d 2c |s a byte| stream,|
|00004e90| 20 77 69 74 68 20 6c 6f | 6e 67 0a 73 74 72 65 74 | with lo|ng.stret|
|00004ea0| 63 68 65 73 20 6f 66 20 | 6e 75 6c 6c 20 64 61 74 |ches of |null dat|
|00004eb0| 61 20 72 65 70 72 65 73 | 65 6e 74 65 64 20 62 79 |a repres|ented by|
|00004ec0| 20 61 6e 20 61 70 70 72 | 6f 70 72 69 61 74 65 0a | an appr|opriate.|
|00004ed0| 58 22 2e 7a 65 72 6f 77 | 22 20 70 73 65 75 64 6f |X".zerow|" pseudo|
|00004ee0| 2d 6f 70 2e 20 20 54 68 | 69 73 20 6c 69 6d 69 74 |-op. Th|is limit|
|00004ef0| 61 74 69 6f 6e 20 6e 6f | 74 77 69 74 68 73 74 61 |ation no|twithsta|
|00004f00| 6e 64 69 6e 67 2c 0a 6c | 61 62 65 6c 73 20 28 61 |nding,.l|abels (a|
|00004f10| 73 20 6f 70 70 6f 73 65 | 64 20 74 6f 20 73 79 6d |s oppose|d to sym|
|00004f20| 62 6f 6c 69 63 20 72 65 | 66 65 72 65 6e 63 65 73 |bolic re|ferences|
|00004f30| 29 20 61 72 65 20 61 6c | 77 61 79 73 0a 6f 75 74 |) are al|ways.out|
|00004f40| 70 75 74 20 61 74 20 61 | 70 70 72 6f 70 72 69 61 |put at a|ppropria|
|00004f50| 74 65 20 70 6f 69 6e 74 | 73 20 77 69 74 68 69 6e |te point|s within|
|00004f60| 20 74 68 65 20 64 61 74 | 61 20 73 65 67 6d 65 6e | the dat|a segmen|
|00004f70| 74 2e 0a 58 2e 50 50 0a | 49 66 20 64 69 73 61 73 |t..X.PP.|If disas|
|00004f80| 73 65 6d 62 6c 79 20 6f | 66 20 74 68 65 20 64 61 |sembly o|f the da|
|00004f90| 74 61 20 73 65 67 6d 65 | 6e 74 20 69 73 20 64 69 |ta segme|nt is di|
|00004fa0| 66 66 69 63 75 6c 74 2c | 20 64 69 73 61 73 73 65 |fficult,| disasse|
|00004fb0| 6d 62 6c 79 20 6f 66 20 | 74 68 65 0a 62 73 73 20 |mbly of |the.bss |
|00004fc0| 73 65 67 6d 65 6e 74 20 | 69 73 20 71 75 69 74 65 |segment |is quite|
|00004fd0| 20 65 61 73 79 2c 20 62 | 65 63 61 75 73 65 20 75 | easy, b|ecause u|
|00004fe0| 6e 69 6e 69 74 69 61 6c | 69 7a 65 64 20 64 61 74 |ninitial|ized dat|
|00004ff0| 61 20 69 73 20 61 6c 6c | 0a 7a 65 72 6f 20 62 79 |a is all|.zero by|
|00005000| 20 64 65 66 69 6e 69 74 | 69 6f 6e 2e 20 20 4e 6f | definit|ion. No|
|00005010| 20 64 61 74 61 0a 69 73 | 20 6f 75 74 70 75 74 20 | data.is| output |
|00005020| 69 6e 20 74 68 65 20 62 | 73 73 20 73 65 67 6d 65 |in the b|ss segme|
|00005030| 6e 74 2c 20 62 75 74 20 | 73 79 6d 62 6f 6c 69 63 |nt, but |symbolic|
|00005040| 20 6c 61 62 65 6c 73 20 | 61 72 65 0a 6f 75 74 70 | labels |are.outp|
|00005050| 75 74 20 61 73 20 61 70 | 70 72 6f 70 72 69 61 74 |ut as ap|propriat|
|00005060| 65 2e 0a 58 2e 50 50 0a | 58 46 6f 72 20 65 61 63 |e..X.PP.|XFor eac|
|00005070| 68 20 6f 70 63 6f 64 65 | 20 77 68 69 63 68 20 74 |h opcode| which t|
|00005080| 61 6b 65 73 20 61 6e 20 | 6f 70 65 72 61 6e 64 2c |akes an |operand,|
|00005090| 20 61 20 70 61 72 74 69 | 63 75 6c 61 72 0a 73 79 | a parti|cular.sy|
|000050a0| 6d 62 6f 6c 20 74 79 70 | 65 20 28 74 65 78 74 2c |mbol typ|e (text,|
|000050b0| 20 64 61 74 61 2c 20 6f | 72 20 62 73 73 29 20 69 | data, o|r bss) i|
|000050c0| 73 20 61 70 70 72 6f 70 | 72 69 61 74 65 2e 20 20 |s approp|riate. |
|000050d0| 54 68 69 73 0a 74 69 64 | 79 20 63 6f 72 72 65 73 |This.tid|y corres|
|000050e0| 70 6f 6e 64 65 6e 63 65 | 20 69 73 20 63 6f 6d 70 |pondence| is comp|
|000050f0| 6c 69 63 61 74 65 64 20 | 73 6f 6d 65 77 68 61 74 |licated |somewhat|
|00005100| 2c 20 68 6f 77 65 76 65 | 72 2c 0a 62 79 20 74 68 |, howeve|r,.by th|
|00005110| 65 20 65 78 69 73 74 65 | 6e 63 65 20 6f 66 20 61 |e existe|nce of a|
|00005120| 73 73 65 6d 62 6c 65 72 | 20 73 79 6d 62 6f 6c 69 |ssembler| symboli|
|00005130| 63 20 63 6f 6e 73 74 61 | 6e 74 73 20 61 6e 64 0a |c consta|nts and.|
|00005140| 73 65 67 6d 65 6e 74 20 | 6f 76 65 72 72 69 64 65 |segment |override|
|00005150| 20 6f 70 63 6f 64 65 73 | 2e 20 20 54 68 65 72 65 | opcodes|. There|
|00005160| 66 6f 72 65 2c 20 74 68 | 65 20 64 69 73 61 73 73 |fore, th|e disass|
|00005170| 65 6d 62 6c 65 72 27 73 | 0a 73 79 6d 62 6f 6c 20 |embler's|.symbol |
|00005180| 6c 6f 6f 6b 75 70 20 72 | 6f 75 74 69 6e 65 20 61 |lookup r|outine a|
|00005190| 74 74 65 6d 70 74 73 20 | 74 6f 20 61 70 70 6c 79 |ttempts |to apply|
|000051a0| 20 61 20 63 65 72 74 61 | 69 6e 20 61 6d 6f 75 6e | a certa|in amoun|
|000051b0| 74 0a 6f 66 20 69 6e 74 | 65 6c 6c 69 67 65 6e 63 |t.of int|elligenc|
|000051c0| 65 20 77 68 65 6e 20 69 | 74 20 69 73 20 61 73 6b |e when i|t is ask|
|000051d0| 65 64 20 74 6f 20 66 69 | 6e 64 20 61 20 73 79 6d |ed to fi|nd a sym|
|000051e0| 62 6f 6c 2e 20 20 49 66 | 0a 69 74 20 63 61 6e 6e |bol. If|.it cann|
|000051f0| 6f 74 20 6d 61 74 63 68 | 20 6f 6e 20 61 20 73 79 |ot match| on a sy|
|00005200| 6d 62 6f 6c 20 6f 66 20 | 74 68 65 20 70 72 65 66 |mbol of |the pref|
|00005210| 65 72 72 65 64 20 74 79 | 70 65 2c 20 69 74 0a 6d |erred ty|pe, it.m|
|00005220| 61 79 20 72 65 74 75 72 | 6e 20 61 20 73 79 6d 62 |ay retur|n a symb|
|00005230| 6f 6c 20 6f 66 20 73 6f | 6d 65 20 6f 74 68 65 72 |ol of so|me other|
|00005240| 20 74 79 70 65 2c 20 64 | 65 70 65 6e 64 69 6e 67 | type, d|epending|
|00005250| 20 6f 6e 0a 70 72 65 61 | 73 73 69 67 6e 65 64 20 | on.prea|ssigned |
|00005260| 28 61 6e 64 20 73 6f 6d | 65 77 68 61 74 20 61 72 |(and som|ewhat ar|
|00005270| 62 69 74 72 61 72 79 29 | 20 72 61 6e 6b 69 6e 67 |bitrary)| ranking|
|00005280| 73 20 77 69 74 68 69 6e | 0a 65 61 63 68 20 74 79 |s within|.each ty|
|00005290| 70 65 2e 20 20 46 69 6e | 61 6c 6c 79 2c 20 69 66 |pe. Fin|ally, if|
|000052a0| 20 61 6c 6c 20 65 6c 73 | 65 20 66 61 69 6c 73 2c | all els|e fails,|
|000052b0| 20 69 74 20 72 65 74 75 | 72 6e 73 20 61 0a 73 74 | it retu|rns a.st|
|000052c0| 72 69 6e 67 20 63 6f 6e | 74 61 69 6e 69 6e 67 20 |ring con|taining |
|000052d0| 74 68 65 20 61 64 64 72 | 65 73 73 20 73 6f 75 67 |the addr|ess soug|
|000052e0| 68 74 20 61 73 20 61 20 | 68 65 78 20 63 6f 6e 73 |ht as a |hex cons|
|000052f0| 74 61 6e 74 3b 0a 74 68 | 69 73 20 62 65 68 61 76 |tant;.th|is behav|
|00005300| 69 6f 72 20 61 6c 6c 6f | 77 73 20 63 61 6c 6c 69 |ior allo|ws calli|
|00005310| 6e 67 20 72 6f 75 74 69 | 6e 65 73 20 74 6f 20 75 |ng routi|nes to u|
|00005320| 73 65 20 74 68 65 20 6f | 75 74 70 75 74 0a 6f 66 |se the o|utput.of|
|00005330| 20 74 68 65 20 6c 6f 6f | 6b 75 70 20 66 75 6e 63 | the loo|kup func|
|00005340| 74 69 6f 6e 20 72 65 67 | 61 72 64 6c 65 73 73 20 |tion reg|ardless |
|00005350| 6f 66 20 74 68 65 20 73 | 75 63 63 65 73 73 20 6f |of the s|uccess o|
|00005360| 66 20 69 74 73 0a 73 65 | 61 72 63 68 2e 0a 58 2e |f its.se|arch..X.|
|00005370| 50 50 0a 49 74 20 69 73 | 20 77 6f 72 74 68 20 6e |PP.It is| worth n|
|00005380| 6f 74 69 6e 67 2c 20 61 | 74 20 74 68 69 73 20 70 |oting, a|t this p|
|00005390| 6f 69 6e 74 2c 20 74 68 | 61 74 20 74 68 65 20 73 |oint, th|at the s|
|000053a0| 79 6d 62 6f 6c 20 6c 6f | 6f 6b 75 70 0a 72 6f 75 |ymbol lo|okup.rou|
|000053b0| 74 69 6e 65 20 6f 70 65 | 72 61 74 65 73 20 6c 69 |tine ope|rates li|
|000053c0| 6e 65 61 72 6c 79 2c 20 | 61 6e 64 20 68 61 73 20 |nearly, |and has |
|000053d0| 6e 6f 74 20 62 65 65 6e | 20 6f 70 74 69 6d 69 7a |not been| optimiz|
|000053e0| 65 64 20 69 6e 0a 61 6e | 79 20 77 61 79 2e 20 20 |ed in.an|y way. |
|000053f0| 45 78 65 63 75 74 69 6f | 6e 20 74 69 6d 65 20 69 |Executio|n time i|
|00005400| 73 20 74 68 75 73 20 6c | 69 6b 65 6c 79 20 74 6f |s thus l|ikely to|
|00005410| 20 69 6e 63 72 65 61 73 | 65 0a 67 65 6f 6d 65 74 | increas|e.geomet|
|00005420| 72 69 63 61 6c 6c 79 20 | 77 69 74 68 20 69 6e 70 |rically |with inp|
|00005430| 75 74 20 66 69 6c 65 20 | 73 69 7a 65 2e 20 20 54 |ut file |size. T|
|00005440| 68 65 20 64 69 73 61 73 | 73 65 6d 62 6c 65 72 20 |he disas|sembler |
|00005450| 69 73 0a 69 6e 74 65 72 | 6e 61 6c 6c 79 20 6c 69 |is.inter|nally li|
|00005460| 6d 69 74 65 64 20 74 6f | 20 31 35 30 30 20 73 79 |mited to| 1500 sy|
|00005470| 6d 62 6f 6c 20 74 61 62 | 6c 65 20 65 6e 74 72 69 |mbol tab|le entri|
|00005480| 65 73 20 61 6e 64 20 31 | 35 30 30 0a 72 65 6c 6f |es and 1|500.relo|
|00005490| 63 61 74 69 6f 6e 20 74 | 61 62 6c 65 20 65 6e 74 |cation t|able ent|
|000054a0| 72 69 65 73 3b 20 77 68 | 69 6c 65 20 74 68 65 73 |ries; wh|ile thes|
|000054b0| 65 20 6c 69 6d 69 74 73 | 20 61 72 65 20 67 65 6e |e limits| are gen|
|000054c0| 65 72 6f 75 73 0a 58 28 | 2f 75 6e 69 78 2c 20 69 |erous.X(|/unix, i|
|000054d0| 74 73 65 6c 66 2c 20 68 | 61 73 20 66 65 77 65 72 |tself, h|as fewer|
|000054e0| 20 74 68 61 6e 20 38 30 | 30 20 73 79 6d 62 6f 6c | than 80|0 symbol|
|000054f0| 73 29 2c 20 74 68 65 79 | 20 61 72 65 20 6e 6f 74 |s), they| are not|
|00005500| 0a 67 75 61 72 61 6e 74 | 65 65 64 20 74 6f 20 62 |.guarant|eed to b|
|00005510| 65 20 61 64 65 71 75 61 | 74 65 20 69 6e 20 61 6c |e adequa|te in al|
|00005520| 6c 20 63 61 73 65 73 2e | 20 20 49 66 20 74 68 65 |l cases.| If the|
|00005530| 20 73 79 6d 62 6f 6c 0a | 74 61 62 6c 65 20 6f 72 | symbol.|table or|
|00005540| 20 74 68 65 20 72 65 6c | 6f 63 61 74 69 6f 6e 20 | the rel|ocation |
|00005550| 74 61 62 6c 65 20 6f 76 | 65 72 66 6c 6f 77 73 2c |table ov|erflows,|
|00005560| 20 74 68 65 20 64 69 73 | 61 73 73 65 6d 62 6c 79 | the dis|assembly|
|00005570| 0a 61 62 6f 72 74 73 2e | 0a 58 2e 50 50 0a 58 46 |.aborts.|.X.PP.XF|
|00005580| 69 6e 61 6c 6c 79 2c 20 | 75 73 65 72 73 20 73 68 |inally, |users sh|
|00005590| 6f 75 6c 64 20 62 65 20 | 61 77 61 72 65 20 6f 66 |ould be |aware of|
|000055a0| 20 61 20 62 75 67 20 69 | 6e 20 74 68 65 20 61 73 | a bug i|n the as|
|000055b0| 73 65 6d 62 6c 65 72 2c | 0a 77 68 69 63 68 20 63 |sembler,|.which c|
|000055c0| 61 75 73 65 73 20 69 74 | 20 6e 6f 74 20 74 6f 20 |auses it| not to |
|000055d0| 70 61 72 73 65 20 74 68 | 65 20 22 65 73 63 22 20 |parse th|e "esc" |
|000055e0| 6d 6e 65 6d 6f 6e 69 63 | 2c 20 65 76 65 6e 0a 74 |mnemonic|, even.t|
|000055f0| 68 6f 75 67 68 20 22 65 | 73 63 22 20 69 73 20 61 |hough "e|sc" is a|
|00005600| 20 63 6f 6d 70 6c 65 74 | 65 6c 79 20 6c 65 67 69 | complet|ely legi|
|00005610| 74 69 6d 61 74 65 20 6f | 70 63 6f 64 65 20 77 68 |timate o|pcode wh|
|00005620| 69 63 68 20 69 73 0a 64 | 6f 63 75 6d 65 6e 74 65 |ich is.d|ocumente|
|00005630| 64 20 69 6e 20 61 6c 6c | 20 74 68 65 20 49 6e 74 |d in all| the Int|
|00005640| 65 6c 20 6c 69 74 65 72 | 61 74 75 72 65 2e 20 20 |el liter|ature. |
|00005650| 54 6f 20 61 63 63 6f 6d | 6d 6f 64 61 74 65 0a 74 |To accom|modate.t|
|00005660| 68 69 73 20 64 65 66 69 | 63 69 65 6e 63 79 2c 20 |his defi|ciency, |
|00005670| 74 68 65 20 64 69 73 61 | 73 73 65 6d 62 6c 65 72 |the disa|ssembler|
|00005680| 20 74 72 61 6e 73 6c 61 | 74 65 73 20 6f 70 63 6f | transla|tes opco|
|00005690| 64 65 73 20 6f 66 0a 74 | 68 65 20 22 65 73 63 22 |des of.t|he "esc"|
|000056a0| 20 66 61 6d 69 6c 79 20 | 74 6f 20 2e 62 79 74 65 | family |to .byte|
|000056b0| 20 64 69 72 65 63 74 69 | 76 65 73 2c 20 62 75 74 | directi|ves, but|
|000056c0| 20 6e 6f 74 65 73 20 74 | 68 65 0a 63 6f 72 72 65 | notes t|he.corre|
|000056d0| 63 74 20 6d 6e 65 6d 6f | 6e 69 63 20 69 6e 20 61 |ct mnemo|nic in a|
|000056e0| 20 63 6f 6d 6d 65 6e 74 | 20 66 6f 72 20 72 65 66 | comment| for ref|
|000056f0| 65 72 65 6e 63 65 2e 0a | 58 2e 50 50 0a 49 6e 20 |erence..|X.PP.In |
|00005700| 61 6c 6c 20 63 61 73 65 | 73 2c 20 69 74 20 73 68 |all case|s, it sh|
|00005710| 6f 75 6c 64 20 62 65 20 | 70 6f 73 73 69 62 6c 65 |ould be |possible|
|00005720| 20 74 6f 20 73 75 62 6d | 69 74 20 74 68 65 20 6f | to subm|it the o|
|00005730| 75 74 70 75 74 0a 6f 66 | 20 74 68 65 20 64 69 73 |utput.of| the dis|
|00005740| 61 73 73 65 6d 62 6c 65 | 72 20 70 72 6f 67 72 61 |assemble|r progra|
|00005750| 6d 20 74 6f 20 74 68 65 | 20 61 73 73 65 6d 62 6c |m to the| assembl|
|00005760| 65 72 2c 20 61 6e 64 20 | 61 73 73 65 6d 62 6c 65 |er, and |assemble|
|00005770| 0a 69 74 20 77 69 74 68 | 6f 75 74 20 65 72 72 6f |.it with|out erro|
|00005780| 72 2e 20 20 49 6e 20 6d | 6f 73 74 20 63 61 73 65 |r. In m|ost case|
|00005790| 73 2c 20 74 68 65 20 72 | 65 73 75 6c 74 69 6e 67 |s, the r|esulting|
|000057a0| 20 6f 62 6a 65 63 74 0a | 63 6f 64 65 20 77 69 6c | object.|code wil|
|000057b0| 6c 20 62 65 20 69 64 65 | 6e 74 69 63 61 6c 20 74 |l be ide|ntical t|
|000057c0| 6f 20 74 68 65 20 6f 72 | 69 67 69 6e 61 6c 3b 20 |o the or|iginal; |
|000057d0| 69 6e 20 61 6e 79 20 65 | 76 65 6e 74 2c 20 69 74 |in any e|vent, it|
|000057e0| 0a 77 69 6c 6c 20 62 65 | 20 66 75 6e 63 74 69 6f |.will be| functio|
|000057f0| 6e 61 6c 6c 79 20 65 71 | 75 69 76 61 6c 65 6e 74 |nally eq|uivalent|
|00005800| 2e 0a 58 2e 53 48 20 22 | 53 45 45 20 41 4c 53 4f |..X.SH "|SEE ALSO|
|00005810| 22 0a 61 64 62 28 31 29 | 2c 20 61 73 28 31 29 2c |".adb(1)|, as(1),|
|00005820| 20 63 63 28 31 29 2c 20 | 6c 64 28 31 29 2e 0a 58 | cc(1), |ld(1)..X|
|00005830| 2e 62 72 0a 58 22 41 73 | 73 65 6d 62 6c 65 72 20 |.br.X"As|sembler |
|00005840| 52 65 66 65 72 65 6e 63 | 65 20 4d 61 6e 75 61 6c |Referenc|e Manual|
|00005850| 22 20 69 6e 20 74 68 65 | 20 50 43 2f 49 58 20 50 |" in the| PC/IX P|
|00005860| 72 6f 67 72 61 6d 6d 65 | 72 27 73 0a 47 75 69 64 |rogramme|r's.Guid|
|00005870| 65 2e 0a 58 2e 53 48 20 | 22 44 49 41 47 4e 4f 53 |e..X.SH |"DIAGNOS|
|00005880| 54 49 43 53 22 0a 58 22 | 63 61 6e 27 74 20 61 63 |TICS".X"|can't ac|
|00005890| 63 65 73 73 20 69 6e 70 | 75 74 20 66 69 6c 65 22 |cess inp|ut file"|
|000058a0| 20 69 66 20 74 68 65 20 | 69 6e 70 75 74 20 66 69 | if the |input fi|
|000058b0| 6c 65 20 63 61 6e 6e 6f | 74 20 62 65 0a 66 6f 75 |le canno|t be.fou|
|000058c0| 6e 64 2c 20 6f 70 65 6e | 65 64 2c 20 6f 72 20 72 |nd, open|ed, or r|
|000058d0| 65 61 64 2e 0a 58 2e 73 | 70 0a 58 22 63 61 6e 27 |ead..X.s|p.X"can'|
|000058e0| 74 20 6f 70 65 6e 20 6f | 75 74 70 75 74 20 66 69 |t open o|utput fi|
|000058f0| 6c 65 22 20 69 66 20 74 | 68 65 20 6f 75 74 70 75 |le" if t|he outpu|
|00005900| 74 20 66 69 6c 65 20 63 | 61 6e 6e 6f 74 20 62 65 |t file c|annot be|
|00005910| 0a 63 72 65 61 74 65 64 | 2e 0a 58 2e 73 70 0a 58 |.created|..X.sp.X|
|00005920| 22 77 61 72 6e 69 6e 67 | 3a 20 68 6f 73 74 2f 63 |"warning|: host/c|
|00005930| 70 75 20 63 6c 61 73 68 | 22 20 69 66 20 74 68 65 |pu clash|" if the|
|00005940| 20 70 72 6f 67 72 61 6d | 20 69 73 20 72 75 6e 20 | program| is run |
|00005950| 6f 6e 20 61 0a 6d 61 63 | 68 69 6e 65 20 77 69 74 |on a.mac|hine wit|
|00005960| 68 20 61 20 64 69 66 66 | 65 72 65 6e 74 20 43 50 |h a diff|erent CP|
|00005970| 55 2e 0a 58 2e 73 70 0a | 58 22 69 6e 70 75 74 20 |U..X.sp.|X"input |
|00005980| 66 69 6c 65 20 6e 6f 74 | 20 69 6e 20 6f 62 6a 65 |file not| in obje|
|00005990| 63 74 20 66 6f 72 6d 61 | 74 22 20 69 66 20 74 68 |ct forma|t" if th|
|000059a0| 65 20 6d 61 67 69 63 20 | 6e 75 6d 62 65 72 0a 64 |e magic |number.d|
|000059b0| 6f 65 73 20 6e 6f 74 20 | 63 6f 72 72 65 73 70 6f |oes not |correspo|
|000059c0| 6e 64 20 74 6f 20 74 68 | 61 74 20 6f 66 20 61 20 |nd to th|at of a |
|000059d0| 50 43 2f 49 58 20 6f 62 | 6a 65 63 74 20 66 69 6c |PC/IX ob|ject fil|
|000059e0| 65 2e 0a 58 2e 73 70 0a | 58 22 6e 6f 74 20 61 6e |e..X.sp.|X"not an|
|000059f0| 20 38 30 38 36 2f 38 30 | 38 38 20 6f 62 6a 65 63 | 8086/80|88 objec|
|00005a00| 74 20 66 69 6c 65 22 20 | 69 66 20 74 68 65 20 43 |t file" |if the C|
|00005a10| 50 55 20 49 44 20 6f 66 | 20 74 68 65 0a 66 69 6c |PU ID of| the.fil|
|00005a20| 65 20 68 65 61 64 65 72 | 20 69 73 20 69 6e 63 6f |e header| is inco|
|00005a30| 72 72 65 63 74 2e 0a 58 | 2e 73 70 0a 58 22 72 65 |rrect..X|.sp.X"re|
|00005a40| 6c 6f 63 20 74 61 62 6c | 65 20 6f 76 65 72 66 6c |loc tabl|e overfl|
|00005a50| 6f 77 22 20 69 66 20 74 | 68 65 72 65 20 61 72 65 |ow" if t|here are|
|00005a60| 20 6d 6f 72 65 20 74 68 | 61 6e 20 31 35 30 30 0a | more th|an 1500.|
|00005a70| 65 6e 74 72 69 65 73 20 | 69 6e 20 74 68 65 20 72 |entries |in the r|
|00005a80| 65 6c 6f 63 61 74 69 6f | 6e 20 74 61 62 6c 65 2e |elocatio|n table.|
|00005a90| 0a 58 2e 73 70 0a 58 22 | 73 79 6d 62 6f 6c 20 74 |.X.sp.X"|symbol t|
|00005aa0| 61 62 6c 65 20 6f 76 65 | 72 66 6c 6f 77 22 20 69 |able ove|rflow" i|
|00005ab0| 66 20 74 68 65 72 65 20 | 61 72 65 20 6d 6f 72 65 |f there |are more|
|00005ac0| 20 74 68 61 6e 20 31 35 | 30 30 0a 65 6e 74 72 69 | than 15|00.entri|
|00005ad0| 65 73 20 69 6e 20 74 68 | 65 20 73 79 6d 62 6f 6c |es in th|e symbol|
|00005ae0| 20 74 61 62 6c 65 2e 0a | 58 2e 73 70 0a 58 22 6c | table..|X.sp.X"l|
|00005af0| 73 65 65 6b 20 65 72 72 | 6f 72 22 20 69 66 20 74 |seek err|or" if t|
|00005b00| 68 65 20 69 6e 70 75 74 | 20 66 69 6c 65 20 69 73 |he input| file is|
|00005b10| 20 63 6f 72 72 75 70 74 | 65 64 20 28 73 68 6f 75 | corrupt|ed (shou|
|00005b20| 6c 64 0a 6e 65 76 65 72 | 20 68 61 70 70 65 6e 29 |ld.never| happen)|
|00005b30| 2e 0a 58 2e 73 70 0a 58 | 22 77 61 72 6e 69 6e 67 |..X.sp.X|"warning|
|00005b40| 3a 20 6e 6f 20 73 79 6d | 62 6f 6c 73 22 20 69 66 |: no sym|bols" if|
|00005b50| 20 74 68 65 20 73 79 6d | 62 6f 6c 20 74 61 62 6c | the sym|bol tabl|
|00005b60| 65 20 69 73 20 6d 69 73 | 73 69 6e 67 2e 0a 58 2e |e is mis|sing..X.|
|00005b70| 73 70 0a 58 22 63 61 6e | 27 74 20 72 65 6f 70 65 |sp.X"can|'t reope|
|00005b80| 6e 20 69 6e 70 75 74 20 | 66 69 6c 65 22 20 69 66 |n input |file" if|
|00005b90| 20 74 68 65 20 69 6e 70 | 75 74 20 66 69 6c 65 20 | the inp|ut file |
|00005ba0| 69 73 20 72 65 6d 6f 76 | 65 64 0a 6f 72 20 61 6c |is remov|ed.or al|
|00005bb0| 74 65 72 65 64 20 64 75 | 72 69 6e 67 20 70 72 6f |tered du|ring pro|
|00005bc0| 67 72 61 6d 20 65 78 65 | 63 75 74 69 6f 6e 20 28 |gram exe|cution (|
|00005bd0| 73 68 6f 75 6c 64 20 6e | 65 76 65 72 20 68 61 70 |should n|ever hap|
|00005be0| 70 65 6e 29 2e 0a 58 2e | 53 48 20 22 42 55 47 53 |pen)..X.|SH "BUGS|
|00005bf0| 22 0a 4e 75 6d 65 72 69 | 63 20 63 6f 2d 70 72 6f |".Numeri|c co-pro|
|00005c00| 63 65 73 73 6f 72 20 28 | 69 2e 65 2e 2c 20 38 30 |cessor (|i.e., 80|
|00005c10| 38 37 29 20 6d 6e 65 6d | 6f 6e 69 63 73 20 61 72 |87) mnem|onics ar|
|00005c20| 65 20 6e 6f 74 20 63 75 | 72 72 65 6e 74 6c 79 20 |e not cu|rrently |
|00005c30| 73 75 70 70 6f 72 74 65 | 64 2e 0a 49 6e 73 74 72 |supporte|d..Instr|
|00005c40| 75 63 74 69 6f 6e 73 20 | 66 6f 72 20 74 68 65 20 |uctions |for the |
|00005c50| 63 6f 2d 70 72 6f 63 65 | 73 73 6f 72 20 61 72 65 |co-proce|ssor are|
|00005c60| 0a 64 69 73 61 73 73 65 | 6d 62 6c 65 64 20 61 73 |.disasse|mbled as|
|00005c70| 20 43 50 55 20 65 73 63 | 61 70 65 20 73 65 71 75 | CPU esc|ape sequ|
|00005c80| 65 6e 63 65 73 2c 20 6f | 72 20 61 73 20 69 6e 74 |ences, o|r as int|
|00005c90| 65 72 72 75 70 74 73 2c | 0a 64 65 70 65 6e 64 69 |errupts,|.dependi|
|00005ca0| 6e 67 20 6f 6e 20 68 6f | 77 20 74 68 65 79 20 77 |ng on ho|w they w|
|00005cb0| 65 72 65 20 61 73 73 65 | 6d 62 6c 65 64 20 69 6e |ere asse|mbled in|
|00005cc0| 20 74 68 65 20 66 69 72 | 73 74 20 70 6c 61 63 65 | the fir|st place|
|00005cd0| 2e 0a 58 2e 73 70 0a 44 | 65 73 70 69 74 65 20 74 |..X.sp.D|espite t|
|00005ce0| 68 65 20 70 72 6f 67 72 | 61 6d 27 73 20 62 65 73 |he progr|am's bes|
|00005cf0| 74 20 65 66 66 6f 72 74 | 73 2c 20 61 20 73 79 6d |t effort|s, a sym|
|00005d00| 62 6f 6c 20 72 65 74 72 | 69 65 76 65 64 0a 66 72 |bol retr|ieved.fr|
|00005d10| 6f 6d 20 74 68 65 20 73 | 79 6d 62 6f 6c 20 74 61 |om the s|ymbol ta|
|00005d20| 62 6c 65 20 6d 61 79 20 | 73 6f 6d 65 74 69 6d 65 |ble may |sometime|
|00005d30| 73 20 62 65 20 64 69 66 | 66 65 72 65 6e 74 20 66 |s be dif|ferent f|
|00005d40| 72 6f 6d 0a 74 68 65 20 | 73 79 6d 62 6f 6c 20 75 |rom.the |symbol u|
|00005d50| 73 65 64 20 69 6e 20 74 | 68 65 20 6f 72 69 67 69 |sed in t|he origi|
|00005d60| 6e 61 6c 20 61 73 73 65 | 6d 62 6c 79 2e 0a 58 2e |nal asse|mbly..X.|
|00005d70| 73 70 0a 54 68 65 20 64 | 69 73 61 73 73 65 6d 62 |sp.The d|isassemb|
|00005d80| 6c 65 72 27 73 20 69 6e | 74 65 72 6e 61 6c 20 74 |ler's in|ternal t|
|00005d90| 61 62 6c 65 73 20 61 72 | 65 20 6f 66 20 66 69 78 |ables ar|e of fix|
|00005da0| 65 64 20 73 69 7a 65 2c | 0a 61 6e 64 20 74 68 65 |ed size,|.and the|
|00005db0| 20 70 72 6f 67 72 61 6d | 20 61 62 6f 72 74 73 20 | program| aborts |
|00005dc0| 69 66 20 74 68 65 79 20 | 6f 76 65 72 66 6c 6f 77 |if they |overflow|
|00005dd0| 2e 0a 45 4e 44 5f 4f 46 | 5f 46 49 4c 45 0a 69 66 |..END_OF|_FILE.if|
|00005de0| 20 74 65 73 74 20 36 31 | 37 34 20 2d 6e 65 20 60 | test 61|74 -ne `|
|00005df0| 77 63 20 2d 63 20 3c 27 | 64 69 73 38 38 2e 31 27 |wc -c <'|dis88.1'|
|00005e00| 60 3b 20 74 68 65 6e 0a | 20 20 20 20 65 63 68 6f |`; then.| echo|
|00005e10| 20 73 68 61 72 3a 20 5c | 22 27 64 69 73 38 38 2e | shar: \|"'dis88.|
|00005e20| 31 27 5c 22 20 75 6e 70 | 61 63 6b 65 64 20 77 69 |1'\" unp|acked wi|
|00005e30| 74 68 20 77 72 6f 6e 67 | 20 73 69 7a 65 21 0a 66 |th wrong| size!.f|
|00005e40| 69 0a 23 20 65 6e 64 20 | 6f 66 20 27 64 69 73 38 |i.# end |of 'dis8|
|00005e50| 38 2e 31 27 0a 66 69 0a | 69 66 20 74 65 73 74 20 |8.1'.fi.|if test |
|00005e60| 2d 66 20 27 64 69 73 66 | 70 2e 63 27 20 2d 61 20 |-f 'disf|p.c' -a |
|00005e70| 22 24 7b 31 7d 22 20 21 | 3d 20 22 2d 63 22 20 3b |"${1}" !|= "-c" ;|
|00005e80| 20 74 68 65 6e 20 0a 20 | 20 65 63 68 6f 20 73 68 | then . | echo sh|
|00005e90| 61 72 3a 20 57 69 6c 6c | 20 6e 6f 74 20 63 6c 6f |ar: Will| not clo|
|00005ea0| 62 62 65 72 20 65 78 69 | 73 74 69 6e 67 20 66 69 |bber exi|sting fi|
|00005eb0| 6c 65 20 5c 22 27 64 69 | 73 66 70 2e 63 27 5c 22 |le \"'di|sfp.c'\"|
|00005ec0| 0a 65 6c 73 65 0a 65 63 | 68 6f 20 73 68 61 72 3a |.else.ec|ho shar:|
|00005ed0| 20 45 78 74 72 61 63 74 | 69 6e 67 20 5c 22 27 64 | Extract|ing \"'d|
|00005ee0| 69 73 66 70 2e 63 27 5c | 22 20 5c 28 35 35 38 39 |isfp.c'\|" \(5589|
|00005ef0| 20 63 68 61 72 61 63 74 | 65 72 73 5c 29 0a 73 65 | charact|ers\).se|
|00005f00| 64 20 22 73 2f 5e 58 2f | 2f 22 20 3e 27 64 69 73 |d "s/^X/|/" >'dis|
|00005f10| 66 70 2e 63 27 20 3c 3c | 27 45 4e 44 5f 4f 46 5f |fp.c' <<|'END_OF_|
|00005f20| 46 49 4c 45 27 0a 73 74 | 61 74 69 63 20 63 68 61 |FILE'.st|atic cha|
|00005f30| 72 20 2a 73 63 63 73 69 | 64 20 3d 0a 58 20 20 20 |r *sccsi|d =.X |
|00005f40| 22 40 28 23 29 20 64 69 | 73 66 70 2e 63 2c 20 56 |"@(#) di|sfp.c, V|
|00005f50| 65 72 2e 20 32 2e 31 20 | 63 72 65 61 74 65 64 20 |er. 2.1 |created |
|00005f60| 30 30 3a 30 30 3a 30 30 | 20 38 37 2f 30 39 2f 30 |00:00:00| 87/09/0|
|00005f70| 31 22 3b 0a 58 0a 58 20 | 2f 2a 20 2a 20 2a 20 2a |1";.X.X |/* * * *|
|00005f80| 20 2a 20 2a 20 2a 20 2a | 20 2a 20 2a 20 2a 20 2a | * * * *| * * * *|
|00005f90| 20 2a 20 2a 20 2a 20 2a | 20 2a 20 2a 20 2a 20 2a | * * * *| * * * *|
|00005fa0| 20 2a 20 2a 20 2a 20 2a | 20 2a 20 2a 20 2a 20 2a | * * * *| * * * *|
|00005fb0| 20 2a 20 2a 0a 58 20 20 | 2a 20 20 20 20 20 20 20 | * *.X |* |
|00005fc0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005fd0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005fe0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005ff0| 20 20 2a 0a 58 20 20 2a | 20 20 43 6f 70 79 72 69 | *.X *| Copyri|
|00006000| 67 68 74 20 28 43 29 20 | 31 39 38 37 20 47 2e 20 |ght (C) |1987 G. |
|00006010| 4d 2e 20 48 61 72 64 69 | 6e 67 2c 20 61 6c 6c 20 |M. Hardi|ng, all |
|00006020| 72 69 67 68 74 73 20 72 | 65 73 65 72 76 65 64 20 |rights r|eserved |
|00006030| 20 2a 0a 58 20 20 2a 20 | 20 20 20 20 20 20 20 20 | *.X * | |
|00006040| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00006050| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00006060| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00006070| 2a 0a 58 20 20 2a 20 50 | 65 72 6d 69 73 73 69 6f |*.X * P|ermissio|
|00006080| 6e 20 74 6f 20 63 6f 70 | 79 20 61 6e 64 20 20 72 |n to cop|y and r|
|00006090| 65 64 69 73 74 72 69 62 | 75 74 65 20 69 73 20 68 |edistrib|ute is h|
|000060a0| 65 72 65 62 79 20 67 72 | 61 6e 74 65 64 2c 20 2a |ereby gr|anted, *|
|000060b0| 0a 58 20 20 2a 20 70 72 | 6f 76 69 64 65 64 20 66 |.X * pr|ovided f|
|000060c0| 75 6c 6c 20 73 6f 75 72 | 63 65 20 63 6f 64 65 2c |ull sour|ce code,|
|000060d0| 20 20 77 69 74 68 20 61 | 6c 6c 20 63 6f 70 79 72 | with a|ll copyr|
|000060e0| 69 67 68 74 20 6e 6f 74 | 69 63 65 73 2c 20 2a 0a |ight not|ices, *.|
|000060f0| 58 20 20 2a 20 61 63 63 | 6f 6d 70 61 6e 69 65 73 |X * acc|ompanies|
|00006100| 20 61 6e 79 20 72 65 64 | 69 73 74 72 69 62 75 74 | any red|istribut|
|00006110| 69 6f 6e 2e 20 20 20 20 | 20 20 20 20 20 20 20 20 |ion. | |
|00006120| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 2a 0a 58 | | *.X|
|00006130| 20 20 2a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | * | |
|00006140| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00006150| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00006160| 20 20 20 20 20 20 20 20 | 20 20 20 20 2a 0a 58 20 | | *.X |
|00006170| 20 2a 20 54 68 69 73 20 | 66 69 6c 65 20 63 6f 6e | * This |file con|
|00006180| 74 61 69 6e 73 20 68 61 | 6e 64 6c 65 72 20 72 6f |tains ha|ndler ro|
|00006190| 75 74 69 6e 65 73 20 66 | 6f 72 20 74 68 65 20 6e |utines f|or the n|
|000061a0| 75 6d 65 72 69 63 20 6f | 70 2d 20 2a 0a 58 20 20 |umeric o|p- *.X |
|000061b0| 2a 20 63 6f 64 65 73 20 | 6f 66 20 74 68 65 20 38 |* codes |of the 8|
|000061c0| 30 38 37 20 63 6f 2d 70 | 72 6f 63 65 73 73 6f 72 |087 co-p|rocessor|
|000061d0| 2c 20 20 61 73 20 77 65 | 6c 6c 20 61 73 20 61 20 |, as we|ll as a |
|000061e0| 66 65 77 20 6f 74 68 65 | 72 20 2a 0a 58 20 20 2a |few othe|r *.X *|
|000061f0| 20 6f 70 63 6f 64 65 73 | 20 77 68 69 63 68 20 61 | opcodes| which a|
|00006200| 72 65 20 72 65 6c 61 74 | 65 64 20 74 6f 20 38 30 |re relat|ed to 80|
|00006210| 38 37 20 65 6d 75 6c 61 | 74 69 6f 6e 2e 20 20 20 |87 emula|tion. |
|00006220| 20 20 20 20 20 20 20 20 | 20 2a 0a 58 20 20 2a 20 | | *.X * |
|00006230| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00006240| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00006250| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00006260| 20 20 20 20 20 20 20 20 | 2a 0a 58 20 20 2a 20 2a | |*.X * *|
|00006270| 20 2a 20 2a 20 2a 20 2a | 20 2a 20 2a 20 2a 20 2a | * * * *| * * * *|
|00006280| 20 2a 20 2a 20 2a 20 2a | 20 2a 20 2a 20 2a 20 2a | * * * *| * * * *|
|00006290| 20 2a 20 2a 20 2a 20 2a | 20 2a 20 2a 20 2a 20 2a | * * * *| * * * *|
|000062a0| 20 2a 20 2a 20 2a 20 2a | 2f 0a 58 0a 58 23 69 6e | * * * *|/.X.X#in|
|000062b0| 63 6c 75 64 65 20 22 64 | 69 73 2e 68 22 20 20 20 |clude "d|is.h" |
|000062c0| 20 20 20 20 20 20 20 20 | 20 20 20 2f 2a 20 44 69 | | /* Di|
|000062d0| 73 61 73 73 65 6d 62 6c | 65 72 20 64 65 63 6c 61 |sassembl|er decla|
|000062e0| 72 61 74 69 6f 6e 73 20 | 20 2a 2f 0a 58 0a 58 23 |rations | */.X.X#|
|000062f0| 64 65 66 69 6e 65 20 46 | 50 49 4e 54 30 20 30 78 |define F|PINT0 0x|
|00006300| 64 38 20 20 20 20 20 20 | 20 20 20 20 20 2f 2a 20 |d8 | /* |
|00006310| 46 6c 6f 61 74 69 6e 67 | 2d 70 6f 69 6e 74 20 69 |Floating|-point i|
|00006320| 6e 74 65 72 72 75 70 74 | 73 20 20 2a 2f 0a 58 23 |nterrupt|s */.X#|
|00006330| 64 65 66 69 6e 65 20 46 | 50 49 4e 54 31 20 30 78 |define F|PINT1 0x|
|00006340| 64 39 0a 58 23 64 65 66 | 69 6e 65 20 46 50 49 4e |d9.X#def|ine FPIN|
|00006350| 54 32 20 30 78 64 61 0a | 58 23 64 65 66 69 6e 65 |T2 0xda.|X#define|
|00006360| 20 46 50 49 4e 54 33 20 | 30 78 64 62 0a 58 23 64 | FPINT3 |0xdb.X#d|
|00006370| 65 66 69 6e 65 20 46 50 | 49 4e 54 34 20 30 78 64 |efine FP|INT4 0xd|
|00006380| 63 0a 58 23 64 65 66 69 | 6e 65 20 46 50 49 4e 54 |c.X#defi|ne FPINT|
|00006390| 35 20 30 78 64 64 0a 58 | 23 64 65 66 69 6e 65 20 |5 0xdd.X|#define |
|000063a0| 46 50 49 4e 54 36 20 30 | 78 64 65 0a 58 23 64 65 |FPINT6 0|xde.X#de|
|000063b0| 66 69 6e 65 20 46 50 49 | 4e 54 37 20 30 78 64 66 |fine FPI|NT7 0xdf|
|000063c0| 0a 58 0a 58 20 20 20 20 | 20 20 20 20 20 20 20 20 |.X.X | |
|000063d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000063e0| 20 20 2f 2a 20 54 65 73 | 74 20 66 6f 72 20 66 6c | /* Tes|t for fl|
|000063f0| 6f 61 74 69 6e 67 20 6f | 70 63 6f 64 65 73 20 20 |oating o|pcodes |
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.