home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / mac / appl / dissbits.sit / inlines.bin < prev    next >
MacBinary  |  1989-09-13  |  6.3 KB  |  [TEXT/MACA]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert AMOS Picture Packer (image/amosPicturePacker) ext Supported
1% dexvert Debian floppy split (archive/debianFloppySplit) ext Unsupported
1% dexvert Sound Images sound sample (audio/soundImagesSoundSample) ext Unsupported
1% dexvert DESI-III drawing (image/desiIIIDrawing) ext Unsupported
1% dexvert MS-DOS PMODE extender executable (executable/msdosPMODEExtenderExecutable) ext Unsupported
1% dexvert Alien Trilogytextures (other/alienTrilogyTextures) ext Unsupported
1% dexvert APT cache data (other/aptCacheData) ext Unsupported
1% dexvert CorelTRACE configuration (other/corelTRACEConfiguration) ext Unsupported
1% dexvert Dreamcast Disc (other/dreamcastDisc) ext Unsupported
1% dexvert EST flat binary (other/estFlatBinary) ext Unsupported
1% dexvert Finale Enigma Binary Format (other/finaleEnigmaBinaryFormat) ext Unsupported
1% dexvert Sega Genesis/Megadrive/32x ROM (other/genesisROM) ext Unsupported
1% dexvert Myth: The Fallen Lords game archive (other/mythTheFallenLordsGameArchive) ext Unsupported
1% dexvert Sound Images Sound Driver (other/soundImagesSoundDriver) ext Unsupported
1% dexvert Symantec/Norton Config (other/symantecNortonConfig) ext Unsupported
1% dexvert Vectrex ROM (other/vectrexROM) ext Unsupported
1% dexvert BIS raP encoded format (other/bisraPEncoded) ext Unsupported
1% dexvert Pascal Script binary (other/pascalScriptBinary) ext Unsupported
1% dexvert 7th Level game data archive (other/seventhLevelGameDataArchive) ext Unsupported
1% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Binary Text (image/binaryText) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary, Sat Jan 26 16:43:24 1985, modified Mon Jan 28 18:05:13 1985, creator MacWrite, type ASCII, 6225 bytes "inlines" default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 1 default (weak)
100% lsar MacBinary default
100% gt2 MAC Bilddatei default (weak)


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[MACA]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 07 69 6e 6c 69 6e 65 | 73 00 00 00 00 00 00 00 |..inline|s.......|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4d 41 43 | 41 00 00 00 00 00 00 00 |.TEXTMAC|A.......|
|00000050| 00 00 00 00 00 18 51 00 | 00 00 00 98 7f 21 fc 98 |......Q.|.....!..|
|00000060| 81 d8 29 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |..).....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000080| 7b 20 20 20 20 20 20 54 | 68 65 73 65 20 70 72 6f |{ T|hese pro|
|00000090| 63 65 64 75 72 65 73 20 | 61 6e 64 20 66 75 6e 63 |cedures |and func|
|000000a0| 74 69 6f 6e 73 20 61 72 | 65 20 64 65 63 6c 61 72 |tions ar|e declar|
|000000b0| 65 64 20 22 69 6e 2d 6c | 69 6e 65 22 20 2d 2d 20 |ed "in-l|ine" -- |
|000000c0| 74 68 65 20 50 61 73 63 | 61 6c 20 63 6f 6d 70 69 |the Pasc|al compi|
|000000d0| 6c 65 72 20 69 73 20 74 | 6f 6c 64 20 77 68 61 74 |ler is t|old what|
|000000e0| 20 69 6e 73 74 72 75 63 | 74 69 6f 6e 73 0d 20 20 | instruc|tions. |
|000000f0| 74 6f 20 65 6d 69 74 20 | 69 6e 73 74 65 61 64 20 |to emit |instead |
|00000100| 6f 66 20 77 68 61 74 20 | 72 6f 75 74 69 6e 65 20 |of what |routine |
|00000110| 74 6f 20 63 61 6c 6c 2e | 20 20 54 68 65 73 65 20 |to call.| These |
|00000120| 70 72 6f 63 65 64 75 72 | 65 73 20 74 61 6b 65 20 |procedur|es take |
|00000130| 75 70 20 61 20 6c 69 74 | 74 6c 65 20 6d 6f 72 65 |up a lit|tle more|
|00000140| 20 72 6f 6f 6d 20 28 75 | 70 20 74 6f 20 65 69 67 | room (u|p to eig|
|00000150| 68 74 20 77 6f 72 64 73 | 0d 20 20 6d 6f 72 65 29 |ht words|. more)|
|00000160| 20 74 68 61 6e 20 6f 72 | 64 69 6e 61 72 79 20 70 | than or|dinary p|
|00000170| 72 6f 63 65 64 75 72 65 | 20 63 61 6c 6c 73 20 6f |rocedure| calls o|
|00000180| 72 20 74 72 61 70 73 20 | 74 6f 20 54 6f 6f 6c 62 |r traps |to Toolb|
|00000190| 6f 78 20 6f 72 20 4f 53 | 20 72 6f 75 74 69 6e 65 |ox or OS| routine|
|000001a0| 73 2e 20 20 42 75 74 20 | 74 68 65 79 27 72 65 20 |s. But |they're |
|000001b0| 76 65 72 79 20 66 61 73 | 74 20 61 6e 64 20 73 6f |very fas|t and so|
|000001c0| 6d 65 20 64 6f 0d 20 20 | 74 68 69 6e 67 73 20 77 |me do. |things w|
|000001d0| 68 69 63 68 20 79 6f 75 | 20 63 61 6e 27 74 20 64 |hich you| can't d|
|000001e0| 6f 20 69 6e 20 50 61 73 | 63 61 6c 2e 0d 20 20 20 |o in Pas|cal.. |
|000001f0| 20 20 20 20 41 6d 6f 6e | 67 20 74 68 65 20 54 6f | Amon|g the To|
|00000200| 6f 6c 62 6f 78 20 75 74 | 69 6c 69 74 79 20 72 6f |olbox ut|ility ro|
|00000210| 75 74 69 6e 65 73 20 77 | 68 69 63 68 20 61 72 65 |utines w|hich are|
|00000220| 20 65 78 61 63 74 6c 79 | 20 72 65 70 6c 61 63 65 | exactly| replace|
|00000230| 64 3a 20 62 69 74 53 65 | 74 2c 20 62 69 74 43 6c |d: bitSe|t, bitCl|
|00000240| 72 2c 20 62 69 74 54 73 | 74 2c 20 62 69 74 41 6e |r, bitTs|t, bitAn|
|00000250| 64 2c 20 62 69 74 4f 72 | 2c 0d 20 20 62 69 74 4e |d, bitOr|,. bitN|
|00000260| 6f 74 2c 20 62 69 74 58 | 6f 72 2c 20 6c 6f 57 6f |ot, bitX|or, loWo|
|00000270| 72 64 20 61 6e 64 20 68 | 69 57 6f 72 64 2e 20 20 |rd and h|iWord. |
|00000280| 49 6e 20 61 64 64 69 74 | 69 6f 6e 2c 20 73 6f 6d |In addit|ion, som|
|00000290| 65 20 65 78 74 65 6e 73 | 69 6f 6e 73 20 61 72 65 |e extens|ions are|
|000002a0| 20 67 69 76 65 6e 3a 20 | 77 6f 72 64 2d 73 69 7a | given: |word-siz|
|000002b0| 65 20 6f 70 65 72 61 74 | 69 6f 6e 73 2c 0d 20 20 |e operat|ions,. |
|000002c0| 61 72 69 74 68 6d 65 74 | 69 63 20 73 68 69 66 74 |arithmet|ic shift|
|000002d0| 73 2c 20 61 6e 64 20 73 | 6f 20 6f 6e 2e 09 20 41 |s, and s|o on.. A|
|000002e0| 6c 73 6f 2c 20 72 6f 75 | 74 69 6e 65 73 20 6c 69 |lso, rou|tines li|
|000002f0| 6b 65 20 22 63 61 6c 6c | 50 72 6f 63 22 20 61 6e |ke "call|Proc" an|
|00000300| 64 20 22 61 62 6f 72 74 | 22 20 70 72 6f 76 69 64 |d "abort|" provid|
|00000310| 65 20 66 75 6e 63 74 69 | 6f 6e 61 6c 69 74 79 20 |e functi|onality |
|00000320| 6e 6f 74 20 66 6f 75 6e | 64 0d 20 20 69 6e 20 50 |not foun|d. in P|
|00000330| 61 73 63 61 6c 20 6f 72 | 20 52 4f 4d 20 72 6f 75 |ascal or| ROM rou|
|00000340| 74 69 6e 65 73 2e 0d 20 | 20 20 20 20 20 20 54 6f |tines.. | To|
|00000350| 20 75 73 65 20 74 68 69 | 73 20 61 73 20 61 20 75 | use thi|s as a u|
|00000360| 6e 69 74 2c 20 6d 6f 76 | 65 20 74 68 65 20 73 6f |nit, mov|e the so|
|00000370| 75 72 63 65 20 74 6f 20 | 61 20 4c 69 73 61 2c 20 |urce to |a Lisa, |
|00000380| 63 6f 6d 70 69 6c 65 20 | 69 74 20 69 6e 20 50 61 |compile |it in Pa|
|00000390| 73 63 61 6c 2c 20 61 6e | 64 20 6e 61 6d 65 20 69 |scal, an|d name i|
|000003a0| 74 20 69 6e 20 74 68 65 | 20 22 75 73 65 73 22 0d |t in the| "uses".|
|000003b0| 20 20 73 65 63 74 69 6f | 6e 20 6f 66 20 79 6f 75 | sectio|n of you|
|000003c0| 72 20 70 72 6f 67 72 61 | 6d 2e 20 20 4f 72 20 79 |r progra|m. Or y|
|000003d0| 6f 75 20 63 61 6e 20 6a | 75 73 74 20 69 6e 63 6c |ou can j|ust incl|
|000003e0| 75 64 65 20 74 68 65 20 | 64 65 63 6c 61 72 61 74 |ude the |declarat|
|000003f0| 69 6f 6e 73 20 79 6f 75 | 20 6e 65 65 64 20 69 6e |ions you| need in|
|00000400| 20 79 6f 75 72 20 70 72 | 6f 67 72 61 6d 3b 20 62 | your pr|ogram; b|
|00000410| 65 20 63 61 72 65 66 75 | 6c 0d 20 20 74 6f 20 74 |e carefu|l. to t|
|00000420| 79 70 65 20 74 68 65 20 | 68 65 78 20 63 6f 64 65 |ype the |hex code|
|00000430| 73 20 63 6f 72 72 65 63 | 74 6c 79 2e 0d 0d 20 20 |s correc|tly... |
|00000440| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 43 6f | | Co|
|00000450| 6d 6d 65 6e 74 73 3f 20 | 20 53 75 67 67 65 73 74 |mments? | Suggest|
|00000460| 69 6f 6e 73 3f 09 20 42 | 75 67 73 3f 20 20 46 61 |ions?. B|ugs? Fa|
|00000470| 6e 20 6d 61 69 6c 3f 0d | 20 20 20 20 20 20 20 20 |n mail?.| |
|00000480| 20 20 20 20 20 20 20 20 | 4d 69 6b 65 20 4d 6f 72 | |Mike Mor|
|00000490| 74 6f 6e 2c 20 36 20 42 | 6c 61 63 6b 77 6f 6f 64 |ton, 6 B|lackwood|
|000004a0| 20 53 74 2e 20 23 31 30 | 32 2c 20 42 6f 73 74 6f | St. #10|2, Bosto|
|000004b0| 6e 2c 20 4d 41 20 20 30 | 32 31 31 35 0d 20 20 20 |n, MA 0|2115. |
|000004c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 56 65 72 | | Ver|
|000004d0| 73 69 6f 6e 20 31 20 2d | 2d 20 33 30 20 4a 61 6e |sion 1 -|- 30 Jan|
|000004e0| 75 61 72 79 20 31 39 38 | 35 2e 09 09 09 09 09 09 |uary 198|5.......|
|000004f0| 09 09 20 20 20 20 7d 0d | 75 6e 69 74 20 69 6e 6c |.. }.|unit inl|
|00000500| 69 6e 65 73 3b 0d 69 6e | 74 65 72 66 61 63 65 0d |ines;.in|terface.|
|00000510| 0d 20 20 20 74 79 70 65 | 20 49 4e 4c 42 79 74 65 |. type| INLByte|
|00000520| 09 20 20 3d 20 20 2d 31 | 32 38 2e 2e 31 32 37 3b |. = -1|28..127;|
|00000530| 20 7b 20 4e 4f 54 45 3a | 20 59 6f 75 20 6d 61 79 | { NOTE:| You may|
|00000540| 20 77 61 6e 74 20 74 6f | 20 63 68 61 6e 67 65 20 | want to| change |
|00000550| 62 69 74 53 65 74 2c 20 | 65 74 63 2e 20 74 6f 20 |bitSet, |etc. to |
|00000560| 61 20 6d 6f 72 65 20 63 | 6f 6d 6d 6f 6e 20 70 6f |a more c|ommon po|
|00000570| 69 6e 74 65 72 20 74 79 | 70 65 2e 20 20 7d 0d 20 |inter ty|pe. }. |
|00000580| 20 20 20 20 20 20 20 49 | 4e 4c 50 74 72 09 20 20 | I|NLPtr. |
|00000590| 3d 20 20 5e 49 4e 4c 42 | 79 74 65 3b 20 20 7b 20 |= ^INLB|yte; { |
|000005a0| 49 27 76 65 20 64 65 63 | 6c 61 72 65 64 20 74 68 |I've dec|lared th|
|000005b0| 65 73 65 20 74 77 6f 20 | 74 79 70 65 73 20 6a 75 |ese two |types ju|
|000005c0| 73 74 20 74 6f 20 61 76 | 6f 69 64 20 64 65 70 65 |st to av|oid depe|
|000005d0| 6e 64 69 6e 67 20 6f 6e | 20 61 6e 79 20 6f 74 68 |nding on| any oth|
|000005e0| 65 72 20 75 6e 69 74 73 | 2e 20 7d 0d 0d 20 20 20 |er units|. }.. |
|000005f0| 70 72 6f 63 65 64 75 72 | 65 20 61 62 6f 72 74 3b |procedur|e abort;|
|00000600| 09 09 09 20 20 49 4e 4c | 49 4e 45 20 24 34 41 46 |... INL|INE $4AF|
|00000610| 43 3b 20 7b 20 49 4c 4c | 45 47 41 4c 20 2d 2d 20 |C; { ILL|EGAL -- |
|00000620| 64 69 65 20 62 61 64 6c | 79 20 6f 6e 20 66 69 6e |die badl|y on fin|
|00000630| 64 69 6e 67 20 61 6e 20 | 69 6e 63 6f 6e 73 69 73 |ding an |inconsis|
|00000640| 74 65 6e 63 79 20 20 7d | 0d 20 20 20 70 72 6f 63 |tency }|. proc|
|00000650| 65 64 75 72 65 20 61 62 | 6f 72 74 41 72 67 20 28 |edure ab|ortArg (|
|00000660| 61 62 6f 54 79 70 65 3a | 20 69 6e 74 65 67 65 72 |aboType:| integer|
|00000670| 29 3b 20 49 4e 4c 49 4e | 45 20 24 34 41 46 43 3b |); INLIN|E $4AFC;|
|00000680| 20 7b 20 49 4c 4c 45 47 | 41 4c 20 2d 2d 20 73 74 | { ILLEG|AL -- st|
|00000690| 61 63 6b 20 61 20 63 6f | 64 65 20 66 69 72 73 74 |ack a co|de first|
|000006a0| 20 66 6f 72 20 64 65 62 | 75 67 67 69 6e 67 09 20 | for deb|ugging. |
|000006b0| 20 20 20 7d 0d 20 20 20 | 70 72 6f 63 65 64 75 72 | }. |procedur|
|000006c0| 65 20 72 61 6e 67 65 43 | 68 6b 20 28 62 6f 75 6e |e rangeC|hk (boun|
|000006d0| 64 2c 20 6e 3a 20 69 6e | 74 65 67 65 72 29 3b 09 |d, n: in|teger);.|
|000006e0| 20 20 20 20 20 20 20 20 | 7b 20 6d 61 6b 65 20 73 | |{ make s|
|000006f0| 75 72 65 20 4e 20 69 73 | 20 69 6e 20 30 2e 2e 62 |ure N is| in 0..b|
|00000700| 6f 75 6e 64 20 69 6e 63 | 6c 75 73 69 76 65 3b 20 |ound inc|lusive; |
|00000710| 64 69 65 20 69 66 20 6e | 6f 74 20 20 7d 0d 20 20 |die if n|ot }. |
|00000720| 20 20 20 20 20 20 20 20 | 20 49 4e 4c 49 4e 45 20 | | INLINE |
|00000730| 24 33 30 31 46 2c 24 34 | 31 39 46 3b 09 09 09 20 |$301F,$4|19F;... |
|00000740| 20 20 20 20 20 20 20 7b | 20 4d 4f 56 45 2e 57 20 | {| MOVE.W |
|00000750| 28 41 37 29 2b 2c 44 30 | 3b 20 43 48 4b 20 28 41 |(A7)+,D0|; CHK (A|
|00000760| 37 29 2b 2c 44 30 09 09 | 09 20 20 20 20 7d 0d 20 |7)+,D0..|. }. |
|00000770| 20 20 70 72 6f 63 65 64 | 75 72 65 20 63 61 6c 6c | proced|ure call|
|00000780| 50 72 6f 63 20 28 61 64 | 64 72 65 73 73 3a 20 6c |Proc (ad|dress: l|
|00000790| 6f 6e 67 69 6e 74 29 3b | 09 20 20 20 20 20 20 20 |ongint);|. |
|000007a0| 20 7b 20 63 61 6c 6c 20 | 61 20 70 72 6f 63 65 64 | { call |a proced|
|000007b0| 75 72 65 20 61 74 20 61 | 6e 79 20 61 64 64 72 65 |ure at a|ny addre|
|000007c0| 73 73 09 09 20 20 20 20 | 7d 0d 20 20 20 20 20 20 |ss.. |}. |
|000007d0| 20 20 20 20 20 49 4e 4c | 49 4e 45 20 24 32 30 35 | INL|INE $205|
|000007e0| 46 2c 24 34 45 39 30 3b | 09 09 09 20 20 20 20 20 |F,$4E90;|... |
|000007f0| 20 20 20 7b 20 4d 4f 56 | 45 2e 4c 20 28 41 37 29 | { MOV|E.L (A7)|
|00000800| 2b 2c 41 30 3b 20 4a 53 | 52 20 28 41 30 29 09 09 |+,A0; JS|R (A0)..|
|00000810| 09 20 20 20 20 7d 0d 0d | 20 20 20 7b 20 42 69 74 |. }..| { Bit|
|00000820| 20 72 6f 75 74 69 6e 65 | 73 20 74 61 6b 65 20 61 | routine|s take a|
|00000830| 20 70 6f 69 6e 74 65 72 | 20 61 6e 64 20 62 69 74 | pointer| and bit|
|00000840| 20 6f 66 66 73 65 74 2e | 20 20 42 69 74 73 20 61 | offset.| Bits a|
|00000850| 72 65 20 6e 75 6d 62 65 | 72 65 64 20 6c 65 66 74 |re numbe|red left|
|00000860| 2d 74 6f 2d 72 69 67 68 | 74 2c 20 6c 69 6b 65 20 |-to-righ|t, like |
|00000870| 74 68 65 20 54 6f 6f 6c | 62 6f 78 20 64 6f 65 73 |the Tool|box does|
|00000880| 2e 20 20 20 7d 0d 20 20 | 20 70 72 6f 63 65 64 75 |. }. | procedu|
|00000890| 72 65 20 62 43 68 61 6e | 67 65 20 28 70 3a 20 49 |re bChan|ge (p: I|
|000008a0| 4e 4c 50 74 72 3b 20 6f | 66 66 73 65 74 3a 20 69 |NLPtr; o|ffset: i|
|000008b0| 6e 74 65 67 65 72 29 3b | 20 20 20 20 20 20 7b 20 |nteger);| { |
|000008c0| 66 6c 69 70 20 73 70 65 | 63 69 66 69 65 64 20 62 |flip spe|cified b|
|000008d0| 69 74 09 09 09 09 20 20 | 20 20 7d 0d 20 20 20 20 |it.... | }. |
|000008e0| 20 20 20 20 20 20 20 49 | 4e 4c 49 4e 45 20 24 33 | I|NLINE $3|
|000008f0| 30 31 46 2c 24 32 30 35 | 46 2c 24 33 32 30 30 2c |01F,$205|F,$3200,|
|00000900| 24 45 36 34 30 2c 24 34 | 36 30 31 2c 24 30 33 37 |$E640,$4|601,$037|
|00000910| 30 2c 24 30 30 30 30 3b | 0d 20 20 20 20 20 20 20 |0,$0000;|. |
|00000920| 20 20 20 20 7b 20 4d 4f | 56 45 2e 57 20 28 41 37 | { MO|VE.W (A7|
|00000930| 29 2b 2c 44 30 3b 20 4d | 4f 56 45 2e 4c 20 28 41 |)+,D0; M|OVE.L (A|
|00000940| 37 29 2b 2c 41 30 3b 20 | 4d 4f 56 45 2e 57 20 44 |7)+,A0; |MOVE.W D|
|00000950| 30 2c 44 31 3b 20 41 53 | 52 2e 57 20 23 33 2c 44 |0,D1; AS|R.W #3,D|
|00000960| 30 3b 20 4e 4f 54 2e 42 | 20 44 31 3b 20 42 43 48 |0; NOT.B| D1; BCH|
|00000970| 47 20 44 31 2c 30 28 41 | 30 2c 44 30 29 09 20 20 |G D1,0(A|0,D0). |
|00000980| 20 20 7d 0d 0d 20 20 20 | 70 72 6f 63 65 64 75 72 | }.. |procedur|
|00000990| 65 20 62 53 65 74 20 28 | 70 3a 20 49 4e 4c 50 74 |e bSet (|p: INLPt|
|000009a0| 72 3b 20 6f 66 66 73 65 | 74 3a 20 69 6e 74 65 67 |r; offse|t: integ|
|000009b0| 65 72 29 3b 09 20 20 20 | 20 20 20 20 20 7b 20 73 |er);. | { s|
|000009c0| 65 74 20 73 70 65 63 69 | 66 69 65 64 20 62 69 74 |et speci|fied bit|
|000009d0| 09 09 09 09 20 20 20 20 | 7d 0d 20 20 20 20 20 20 |.... |}. |
|000009e0| 20 20 20 20 20 49 4e 4c | 49 4e 45 20 24 33 30 31 | INL|INE $301|
|000009f0| 46 2c 24 32 30 35 46 2c | 24 33 32 30 30 2c 24 45 |F,$205F,|$3200,$E|
|00000a00| 36 34 30 2c 24 34 36 30 | 31 2c 24 30 33 46 30 2c |640,$460|1,$03F0,|
|00000a10| 24 30 30 30 30 3b 0d 20 | 20 20 20 20 20 20 20 20 |$0000;. | |
|00000a20| 20 20 7b 09 09 20 20 20 | 20 20 20 20 20 73 61 6d | {.. | sam|
|00000a30| 65 20 61 73 20 66 6f 72 | 20 62 43 68 61 6e 67 65 |e as for| bChange|
|00000a40| 09 09 09 09 20 20 3b 20 | 42 53 45 54 20 44 31 2c |.... ; |BSET D1,|
|00000a50| 30 28 41 30 2c 44 30 29 | 09 20 20 20 20 7d 0d 0d |0(A0,D0)|. }..|
|00000a60| 20 20 20 70 72 6f 63 65 | 64 75 72 65 20 62 43 6c | proce|dure bCl|
|00000a70| 65 61 72 20 28 70 3a 20 | 49 4e 4c 50 74 72 3b 20 |ear (p: |INLPtr; |
|00000a80| 6f 66 66 73 65 74 3a 20 | 69 6e 74 65 67 65 72 29 |offset: |integer)|
|00000a90| 3b 20 20 20 20 20 20 20 | 7b 20 63 6c 65 61 72 20 |; |{ clear |
|00000aa0| 73 70 65 63 69 66 69 65 | 64 20 62 69 74 09 09 09 |specifie|d bit...|
|00000ab0| 09 20 20 20 20 7d 0d 20 | 20 20 20 20 20 20 20 20 |. }. | |
|00000ac0| 20 20 49 4e 4c 49 4e 45 | 20 24 33 30 31 46 2c 24 | INLINE| $301F,$|
|00000ad0| 32 30 35 46 2c 24 33 32 | 30 30 2c 24 45 36 34 30 |205F,$32|00,$E640|
|00000ae0| 2c 24 34 36 30 31 2c 24 | 30 33 42 30 2c 24 30 30 |,$4601,$|03B0,$00|
|00000af0| 30 30 3b 0d 20 20 20 20 | 20 20 20 20 20 20 20 7b |00;. | {|
|00000b00| 09 09 20 20 20 20 20 20 | 20 20 73 61 6d 65 20 61 |.. | same a|
|00000b10| 73 20 66 6f 72 20 62 43 | 68 61 6e 67 65 09 09 09 |s for bC|hange...|
|00000b20| 09 20 20 3b 20 42 43 4c | 52 20 44 31 2c 30 28 41 |. ; BCL|R D1,0(A|
|00000b30| 30 2c 44 30 29 09 20 20 | 20 20 7d 0d 0d 20 20 20 |0,D0). | }.. |
|00000b40| 66 75 6e 63 74 69 6f 6e | 20 62 54 65 73 74 20 28 |function| bTest (|
|00000b50| 70 3a 20 49 4e 4c 50 74 | 72 3b 20 6f 66 66 73 65 |p: INLPt|r; offse|
|00000b60| 74 3a 20 69 6e 74 65 67 | 65 72 29 3a 20 62 6f 6f |t: integ|er): boo|
|00000b70| 6c 65 61 6e 3b 20 7b 20 | 74 65 73 74 20 62 69 74 |lean; { |test bit|
|00000b80| 3b 20 54 52 55 45 20 72 | 65 74 75 72 6e 20 6d 65 |; TRUE r|eturn me|
|00000b90| 61 6e 73 20 62 69 74 20 | 3d 20 31 09 09 20 20 20 |ans bit |= 1.. |
|00000ba0| 20 7d 0d 20 20 20 20 20 | 20 20 20 20 20 20 49 4e | }. | IN|
|00000bb0| 4c 49 4e 45 20 24 33 30 | 31 46 2c 24 32 30 35 46 |LINE $30|1F,$205F|
|00000bc0| 2c 24 33 32 30 30 2c 24 | 45 36 34 30 2c 24 34 36 |,$3200,$|E640,$46|
|00000bd0| 30 31 2c 24 30 33 33 30 | 2c 24 30 30 30 30 2c 24 |01,$0330|,$0000,$|
|00000be0| 35 36 44 37 2c 24 34 34 | 31 37 3b 0d 20 20 20 20 |56D7,$44|17;. |
|00000bf0| 20 20 20 20 20 20 20 7b | 09 09 20 20 20 20 20 20 | {|.. |
|00000c00| 20 20 73 61 6d 65 20 61 | 73 20 66 6f 72 20 62 43 | same a|s for bC|
|00000c10| 68 61 6e 67 65 09 20 20 | 20 20 3b 20 42 54 53 54 |hange. | ; BTST|
|00000c20| 20 44 31 2c 30 28 41 30 | 2c 44 30 29 3b 20 53 4e | D1,0(A0|,D0); SN|
|00000c30| 45 20 28 41 37 29 3b 20 | 4e 45 47 2e 42 20 28 41 |E (A7); |NEG.B (A|
|00000c40| 37 29 09 20 20 20 20 7d | 0d 0d 20 20 20 66 75 6e |7). }|.. fun|
|00000c50| 63 74 69 6f 6e 20 6c 73 | 6c 57 6f 72 64 20 28 61 |ction ls|lWord (a|
|00000c60| 2c 20 73 68 69 66 74 3a | 20 69 6e 74 65 67 65 72 |, shift:| integer|
|00000c70| 29 3a 20 69 6e 74 65 67 | 65 72 3b 20 20 20 20 20 |): integ|er; |
|00000c80| 20 20 7b 20 6c 6f 67 69 | 63 61 6c 2f 61 72 69 74 | { logi|cal/arit|
|00000c90| 68 6d 65 74 69 63 20 73 | 68 69 66 74 20 77 6f 72 |hmetic s|hift wor|
|00000ca0| 64 20 22 61 22 20 6c 65 | 66 74 20 62 79 20 22 73 |d "a" le|ft by "s|
|00000cb0| 68 69 66 74 22 20 7d 0d | 20 20 20 20 20 20 20 20 |hift" }.| |
|00000cc0| 20 20 20 49 4e 4c 49 4e | 45 20 24 34 43 39 46 2c | INLIN|E $4C9F,|
|00000cd0| 24 30 30 30 33 2c 24 45 | 31 36 31 2c 24 33 45 38 |$0003,$E|161,$3E8|
|00000ce0| 31 3b 09 20 20 20 20 20 | 20 20 20 7b 20 4d 4f 56 |1;. | { MOV|
|00000cf0| 45 4d 2e 57 20 28 41 37 | 29 2b 2c 44 30 2f 44 31 |EM.W (A7|)+,D0/D1|
|00000d00| 3b 20 41 53 4c 2e 57 20 | 44 30 2c 44 31 3b 20 4d |; ASL.W |D0,D1; M|
|00000d10| 4f 56 45 2e 57 20 44 31 | 2c 28 41 37 29 20 20 7d |OVE.W D1|,(A7) }|
|00000d20| 0d 0d 20 20 20 66 75 6e | 63 74 69 6f 6e 20 6c 73 |.. fun|ction ls|
|00000d30| 72 57 6f 72 64 20 28 61 | 2c 20 73 68 69 66 74 3a |rWord (a|, shift:|
|00000d40| 20 69 6e 74 65 67 65 72 | 29 3a 20 69 6e 74 65 67 | integer|): integ|
|00000d50| 65 72 3b 20 20 20 20 20 | 20 20 7b 20 6c 6f 67 69 |er; | { logi|
|00000d60| 63 61 6c 20 73 68 69 66 | 74 20 77 6f 72 64 20 22 |cal shif|t word "|
|00000d70| 61 22 20 72 69 67 68 74 | 20 62 79 20 22 73 68 69 |a" right| by "shi|
|00000d80| 66 74 22 09 20 20 20 20 | 7d 0d 20 20 20 20 20 20 |ft". |}. |
|00000d90| 20 20 20 20 20 49 4e 4c | 49 4e 45 20 24 34 43 39 | INL|INE $4C9|
|00000da0| 46 2c 24 30 30 30 33 2c | 24 45 30 36 39 2c 24 33 |F,$0003,|$E069,$3|
|00000db0| 45 38 31 3b 09 20 20 20 | 20 20 20 20 20 7b 20 4d |E81;. | { M|
|00000dc0| 4f 56 45 4d 2e 57 20 28 | 41 37 29 2b 2c 44 30 2f |OVEM.W (|A7)+,D0/|
|00000dd0| 44 31 3b 20 4c 53 52 2e | 57 20 44 30 2c 44 31 3b |D1; LSR.|W D0,D1;|
|00000de0| 20 4d 4f 56 45 2e 57 20 | 44 31 2c 28 41 37 29 20 | MOVE.W |D1,(A7) |
|00000df0| 20 7d 0d 0d 20 20 20 66 | 75 6e 63 74 69 6f 6e 20 | }.. f|unction |
|00000e00| 61 73 72 57 6f 72 64 20 | 28 61 2c 20 73 68 69 66 |asrWord |(a, shif|
|00000e10| 74 3a 20 69 6e 74 65 67 | 65 72 29 3a 20 69 6e 74 |t: integ|er): int|
|00000e20| 65 67 65 72 3b 20 20 20 | 20 20 20 20 7b 20 61 72 |eger; | { ar|
|00000e30| 69 74 68 6d 65 74 69 63 | 20 73 68 69 66 74 20 77 |ithmetic| shift w|
|00000e40| 6f 72 64 20 22 61 22 20 | 72 69 67 68 74 20 62 79 |ord "a" |right by|
|00000e50| 20 22 73 68 69 66 74 22 | 09 20 20 20 20 7d 0d 20 | "shift"|. }. |
|00000e60| 20 20 20 20 20 20 20 20 | 20 20 49 4e 4c 49 4e 45 | | INLINE|
|00000e70| 20 24 34 43 39 46 2c 24 | 30 30 30 33 2c 24 45 30 | $4C9F,$|0003,$E0|
|00000e80| 36 31 2c 24 33 45 38 31 | 3b 09 20 20 20 20 20 20 |61,$3E81|;. |
|00000e90| 20 20 7b 20 4d 4f 56 45 | 4d 2e 57 20 28 41 37 29 | { MOVE|M.W (A7)|
|00000ea0| 2b 2c 44 30 2f 44 31 3b | 20 41 53 52 2e 57 20 44 |+,D0/D1;| ASR.W D|
|00000eb0| 30 2c 44 31 3b 20 4d 4f | 56 45 2e 57 20 44 31 2c |0,D1; MO|VE.W D1,|
|00000ec0| 28 41 37 29 20 20 7d 0d | 0d 20 20 20 66 75 6e 63 |(A7) }.|. func|
|00000ed0| 74 69 6f 6e 20 6c 73 6c | 4c 6f 6e 67 20 28 61 3a |tion lsl|Long (a:|
|00000ee0| 20 6c 6f 6e 67 69 6e 74 | 3b 20 73 68 69 66 74 3a | longint|; shift:|
|00000ef0| 20 69 6e 74 65 67 65 72 | 29 3a 20 6c 6f 6e 67 69 | integer|): longi|
|00000f00| 6e 74 3b 20 7b 20 6c 6f | 67 69 63 61 6c 2f 61 72 |nt; { lo|gical/ar|
|00000f10| 69 74 68 6d 65 74 69 63 | 20 73 68 69 66 74 20 6c |ithmetic| shift l|
|00000f20| 6f 6e 67 20 22 61 22 20 | 6c 65 66 74 20 62 79 20 |ong "a" |left by |
|00000f30| 22 73 68 69 66 74 22 20 | 7d 0d 20 20 20 20 20 20 |"shift" |}. |
|00000f40| 20 20 20 20 20 49 4e 4c | 49 4e 45 20 24 33 32 31 | INL|INE $321|
|00000f50| 46 2c 24 32 30 31 46 2c | 24 45 33 41 30 2c 24 32 |F,$201F,|$E3A0,$2|
|00000f60| 45 38 30 3b 20 20 20 20 | 20 7b 20 4d 4f 56 45 2e |E80; | { MOVE.|
|00000f70| 57 20 28 41 37 29 2b 2c | 44 31 3b 20 4d 4f 56 45 |W (A7)+,|D1; MOVE|
|00000f80| 2e 4c 20 28 41 37 29 2b | 2c 44 30 3b 20 41 53 4c |.L (A7)+|,D0; ASL|
|00000f90| 2e 4c 20 44 31 2c 44 30 | 3b 20 4d 4f 56 45 2e 4c |.L D1,D0|; MOVE.L|
|00000fa0| 20 44 30 2c 28 41 37 29 | 20 7d 0d 0d 20 20 20 66 | D0,(A7)| }.. f|
|00000fb0| 75 6e 63 74 69 6f 6e 20 | 6c 73 72 4c 6f 6e 67 20 |unction |lsrLong |
|00000fc0| 28 61 3a 20 6c 6f 6e 67 | 69 6e 74 3b 20 73 68 69 |(a: long|int; shi|
|00000fd0| 66 74 3a 20 69 6e 74 65 | 67 65 72 29 3a 20 6c 6f |ft: inte|ger): lo|
|00000fe0| 6e 67 69 6e 74 3b 20 7b | 20 6c 6f 67 69 63 61 6c |ngint; {| logical|
|00000ff0| 20 73 68 69 66 74 20 6c | 6f 6e 67 20 22 61 22 20 | shift l|ong "a" |
|00001000| 72 69 67 68 74 20 62 79 | 20 22 73 68 69 66 74 22 |right by| "shift"|
|00001010| 09 20 20 20 20 7d 0d 20 | 20 20 20 20 20 20 20 20 |. }. | |
|00001020| 20 20 49 4e 4c 49 4e 45 | 20 24 33 32 31 46 2c 24 | INLINE| $321F,$|
|00001030| 32 30 31 46 2c 24 45 32 | 41 38 2c 24 32 45 38 30 |201F,$E2|A8,$2E80|
|00001040| 3b 09 09 20 20 20 7b 20 | 73 61 6d 65 20 61 73 20 |;.. { |same as |
|00001050| 66 6f 72 20 6c 73 6c 4c | 6f 6e 67 2c 20 62 75 74 |for lslL|ong, but|
|00001060| 20 4c 53 52 20 69 6e 73 | 74 65 61 64 20 6f 66 20 | LSR ins|tead of |
|00001070| 41 53 4c 20 20 20 20 7d | 0d 0d 20 20 20 66 75 6e |ASL }|.. fun|
|00001080| 63 74 69 6f 6e 20 61 73 | 72 4c 6f 6e 67 20 28 61 |ction as|rLong (a|
|00001090| 3a 20 6c 6f 6e 67 69 6e | 74 3b 20 73 68 69 66 74 |: longin|t; shift|
|000010a0| 3a 20 69 6e 74 65 67 65 | 72 29 3a 20 6c 6f 6e 67 |: intege|r): long|
|000010b0| 69 6e 74 3b 20 7b 20 61 | 72 69 74 68 6d 65 74 69 |int; { a|rithmeti|
|000010c0| 63 20 73 68 69 66 74 20 | 6c 6f 6e 67 20 22 61 22 |c shift |long "a"|
|000010d0| 20 72 69 67 68 74 20 62 | 79 20 22 73 68 69 66 74 | right b|y "shift|
|000010e0| 22 09 20 20 20 20 7d 0d | 20 20 20 20 20 20 20 20 |". }.| |
|000010f0| 20 20 20 49 4e 4c 49 4e | 45 20 24 33 32 31 46 2c | INLIN|E $321F,|
|00001100| 24 32 30 31 46 2c 24 45 | 32 41 30 2c 24 32 45 38 |$201F,$E|2A0,$2E8|
|00001110| 30 3b 09 09 20 20 20 7b | 20 73 61 6d 65 20 61 73 |0;.. {| same as|
|00001120| 20 66 6f 72 20 6c 73 6c | 4c 6f 6e 67 2c 20 62 75 | for lsl|Long, bu|
|00001130| 74 20 41 53 52 20 69 6e | 73 74 65 61 64 20 6f 66 |t ASR in|stead of|
|00001140| 20 41 53 4c 20 20 20 20 | 7d 0d 0d 20 20 20 66 75 | ASL |}.. fu|
|00001150| 6e 63 74 69 6f 6e 20 6c | 6f 77 57 6f 72 64 20 28 |nction l|owWord (|
|00001160| 61 3a 20 6c 6f 6e 67 69 | 6e 74 29 3a 20 69 6e 74 |a: longi|nt): int|
|00001170| 65 67 65 72 3b 09 20 20 | 20 20 20 20 20 20 7b 20 |eger;. | { |
|00001180| 65 78 74 72 61 63 74 20 | 74 68 65 20 6c 6f 77 20 |extract |the low |
|00001190| 31 36 20 62 69 74 73 20 | 6f 66 20 74 68 65 20 6c |16 bits |of the l|
|000011a0| 6f 6e 67 20 61 72 67 75 | 6d 65 6e 74 09 20 20 20 |ong argu|ment. |
|000011b0| 20 7d 0d 20 20 20 20 20 | 20 20 20 20 20 20 49 4e | }. | IN|
|000011c0| 4c 49 4e 45 20 24 32 30 | 31 46 2c 24 33 45 38 30 |LINE $20|1F,$3E80|
|000011d0| 3b 09 09 09 20 20 20 20 | 20 20 20 20 7b 20 4d 4f |;... | { MO|
|000011e0| 56 45 2e 4c 20 28 41 37 | 29 2b 2c 44 30 3b 20 4d |VE.L (A7|)+,D0; M|
|000011f0| 4f 56 45 2e 57 20 44 30 | 2c 28 41 37 29 09 09 20 |OVE.W D0|,(A7).. |
|00001200| 20 20 20 7d 0d 0d 20 20 | 20 66 75 6e 63 74 69 6f | }.. | functio|
|00001210| 6e 20 68 69 67 68 57 6f | 72 64 20 28 61 3a 20 6c |n highWo|rd (a: l|
|00001220| 6f 6e 67 69 6e 74 29 3a | 20 69 6e 74 65 67 65 72 |ongint):| integer|
|00001230| 3b 09 20 20 20 20 20 20 | 20 20 7b 20 65 78 74 72 |;. | { extr|
|00001240| 61 63 74 20 74 68 65 20 | 68 69 67 68 20 31 36 20 |act the |high 16 |
|00001250| 62 69 74 73 20 6f 66 20 | 74 68 65 20 61 72 67 75 |bits of |the argu|
|00001260| 6d 65 6e 74 09 20 20 20 | 20 7d 0d 20 20 20 20 20 |ment. | }. |
|00001270| 20 20 20 20 20 20 49 4e | 4c 49 4e 45 20 24 33 45 | IN|LINE $3E|
|00001280| 39 46 2c 24 33 45 39 46 | 3b 09 09 09 20 20 20 20 |9F,$3E9F|;... |
|00001290| 20 20 20 20 7b 20 4d 4f | 56 45 2e 57 20 28 41 37 | { MO|VE.W (A7|
|000012a0| 29 2b 2c 28 41 37 29 3b | 20 4d 4f 56 45 2e 57 20 |)+,(A7);| MOVE.W |
|000012b0| 28 41 37 29 2b 2c 28 41 | 37 29 09 09 20 20 20 20 |(A7)+,(A|7).. |
|000012c0| 7d 0d 0d 20 20 20 66 75 | 6e 63 74 69 6f 6e 20 6e |}.. fu|nction n|
|000012d0| 6f 74 57 6f 72 64 20 28 | 61 3a 20 69 6e 74 65 67 |otWord (|a: integ|
|000012e0| 65 72 29 3a 20 69 6e 74 | 65 67 65 72 3b 09 20 20 |er): int|eger;. |
|000012f0| 20 20 20 20 20 20 7b 20 | 6c 6f 67 69 63 61 6c 20 | { |logical |
|00001300| 4e 4f 54 20 61 20 77 6f | 72 64 09 09 09 09 20 20 |NOT a wo|rd.... |
|00001310| 20 20 7d 0d 20 20 20 20 | 20 20 20 20 20 20 20 49 | }. | I|
|00001320| 4e 4c 49 4e 45 20 24 33 | 30 31 46 2c 24 34 36 34 |NLINE $3|01F,$464|
|00001330| 30 2c 24 33 45 38 30 3b | 09 09 20 20 20 20 20 20 |0,$3E80;|.. |
|00001340| 20 20 7b 20 4d 4f 56 45 | 2e 57 20 28 41 37 29 2b | { MOVE|.W (A7)+|
|00001350| 2c 44 30 3b 20 4e 4f 54 | 2e 57 20 44 30 3b 20 4d |,D0; NOT|.W D0; M|
|00001360| 4f 56 45 2e 57 20 44 30 | 2c 28 41 37 29 09 20 20 |OVE.W D0|,(A7). |
|00001370| 20 20 7d 0d 0d 20 20 20 | 66 75 6e 63 74 69 6f 6e | }.. |function|
|00001380| 20 61 6e 64 57 6f 72 64 | 20 28 61 2c 20 62 3a 20 | andWord| (a, b: |
|00001390| 69 6e 74 65 67 65 72 29 | 3a 20 69 6e 74 65 67 65 |integer)|: intege|
|000013a0| 72 3b 09 20 20 20 20 20 | 20 20 20 7b 20 41 4e 44 |r;. | { AND|
|000013b0| 20 74 77 6f 20 77 6f 72 | 64 73 09 09 09 09 09 20 | two wor|ds..... |
|000013c0| 20 20 20 7d 0d 20 20 20 | 20 20 20 20 20 20 20 20 | }. | |
|000013d0| 49 4e 4c 49 4e 45 20 24 | 33 30 31 46 2c 24 43 30 |INLINE $|301F,$C0|
|000013e0| 35 46 2c 24 33 45 38 30 | 3b 09 09 20 20 20 20 20 |5F,$3E80|;.. |
|000013f0| 20 20 20 7b 20 4d 4f 56 | 45 2e 57 20 28 41 37 29 | { MOV|E.W (A7)|
|00001400| 2b 2c 44 30 3b 20 41 4e | 44 2e 57 20 28 41 37 29 |+,D0; AN|D.W (A7)|
|00001410| 2b 2c 44 30 3b 20 4d 4f | 56 45 2e 57 20 44 30 2c |+,D0; MO|VE.W D0,|
|00001420| 28 41 37 29 20 20 20 7d | 0d 0d 20 20 20 66 75 6e |(A7) }|.. fun|
|00001430| 63 74 69 6f 6e 20 6f 72 | 57 6f 72 64 20 28 61 2c |ction or|Word (a,|
|00001440| 20 62 3a 20 69 6e 74 65 | 67 65 72 29 3a 20 69 6e | b: inte|ger): in|
|00001450| 74 65 67 65 72 3b 09 20 | 20 20 20 20 20 20 20 7b |teger;. | {|
|00001460| 20 4f 52 20 74 77 6f 20 | 77 6f 72 64 73 09 09 09 | OR two |words...|
|00001470| 09 09 20 20 20 20 7d 0d | 20 20 20 20 20 20 20 20 |.. }.| |
|00001480| 20 20 20 49 4e 4c 49 4e | 45 20 24 33 30 31 46 2c | INLIN|E $301F,|
|00001490| 24 38 30 35 46 2c 24 33 | 45 38 30 3b 09 09 20 20 |$805F,$3|E80;.. |
|000014a0| 20 20 20 20 20 20 7b 20 | 4d 4f 56 45 2e 57 20 28 | { |MOVE.W (|
|000014b0| 41 37 29 2b 2c 44 30 3b | 20 4f 52 2e 57 20 28 41 |A7)+,D0;| OR.W (A|
|000014c0| 37 29 2b 2c 44 30 3b 20 | 4d 4f 56 45 2e 57 20 44 |7)+,D0; |MOVE.W D|
|000014d0| 30 2c 28 41 37 29 20 20 | 20 20 7d 0d 0d 20 20 20 |0,(A7) | }.. |
|000014e0| 66 75 6e 63 74 69 6f 6e | 20 65 6f 72 57 6f 72 64 |function| eorWord|
|000014f0| 20 28 61 2c 20 62 3a 20 | 69 6e 74 65 67 65 72 29 | (a, b: |integer)|
|00001500| 3a 20 69 6e 74 65 67 65 | 72 3b 09 20 20 20 20 20 |: intege|r;. |
|00001510| 20 20 20 7b 20 45 4f 52 | 20 74 77 6f 20 77 6f 72 | { EOR| two wor|
|00001520| 64 73 09 09 09 09 09 20 | 20 20 20 7d 0d 20 20 20 |ds..... | }. |
|00001530| 20 20 20 20 20 20 20 20 | 49 4e 4c 49 4e 45 20 24 | |INLINE $|
|00001540| 33 30 31 46 2c 24 42 31 | 35 37 2c 24 33 45 39 46 |301F,$B1|57,$3E9F|
|00001550| 3b 09 09 20 20 20 20 20 | 20 20 20 7b 20 4d 4f 56 |;.. | { MOV|
|00001560| 45 2e 57 20 28 41 37 29 | 2b 2c 44 30 3b 20 45 4f |E.W (A7)|+,D0; EO|
|00001570| 52 2e 57 20 44 30 2c 28 | 41 37 29 3b 20 4d 4f 56 |R.W D0,(|A7); MOV|
|00001580| 45 2e 57 20 28 41 37 29 | 2b 2c 28 41 37 29 20 7d |E.W (A7)|+,(A7) }|
|00001590| 0d 0d 20 20 20 66 75 6e | 63 74 69 6f 6e 20 6e 6f |.. fun|ction no|
|000015a0| 74 4c 6f 6e 67 20 28 61 | 3a 20 6c 6f 6e 67 69 6e |tLong (a|: longin|
|000015b0| 74 29 3a 20 6c 6f 6e 67 | 69 6e 74 3b 09 20 20 20 |t): long|int;. |
|000015c0| 20 20 20 20 20 7b 20 6c | 6f 67 69 63 61 6c 20 4e | { l|ogical N|
|000015d0| 4f 54 20 61 20 6c 6f 6e | 67 09 09 09 09 20 20 20 |OT a lon|g.... |
|000015e0| 20 7d 0d 20 20 20 20 20 | 20 20 20 20 20 20 49 4e | }. | IN|
|000015f0| 4c 49 4e 45 20 24 32 30 | 31 46 2c 24 34 36 38 30 |LINE $20|1F,$4680|
|00001600| 2c 24 32 45 38 30 3b 09 | 09 20 20 20 20 20 20 20 |,$2E80;.|. |
|00001610| 20 7b 20 4d 4f 56 45 2e | 4c 20 28 41 37 29 2b 2c | { MOVE.|L (A7)+,|
|00001620| 44 30 3b 20 4e 4f 54 2e | 4c 20 44 30 3b 20 4d 4f |D0; NOT.|L D0; MO|
|00001630| 56 45 2e 4c 20 44 30 2c | 28 41 37 29 09 20 20 20 |VE.L D0,|(A7). |
|00001640| 20 7d 0d 0d 20 20 20 66 | 75 6e 63 74 69 6f 6e 20 | }.. f|unction |
|00001650| 61 6e 64 4c 6f 6e 67 20 | 28 61 2c 20 62 3a 20 6c |andLong |(a, b: l|
|00001660| 6f 6e 67 69 6e 74 29 3a | 20 6c 6f 6e 67 69 6e 74 |ongint):| longint|
|00001670| 3b 09 20 20 20 20 20 20 | 20 20 7b 20 41 4e 44 20 |;. | { AND |
|00001680| 74 77 6f 20 6c 6f 6e 67 | 73 09 09 09 09 09 20 20 |two long|s..... |
|00001690| 20 20 7d 0d 20 20 20 20 | 20 20 20 20 20 20 20 49 | }. | I|
|000016a0| 4e 4c 49 4e 45 20 24 32 | 30 31 46 2c 24 43 30 39 |NLINE $2|01F,$C09|
|000016b0| 46 2c 24 32 45 38 30 3b | 09 09 20 20 20 20 20 20 |F,$2E80;|.. |
|000016c0| 20 20 7b 20 4d 4f 56 45 | 2e 4c 20 28 41 37 29 2b | { MOVE|.L (A7)+|
|000016d0| 2c 44 30 3b 20 41 4e 44 | 2e 4c 20 28 41 37 29 2b |,D0; AND|.L (A7)+|
|000016e0| 2c 44 30 3b 20 4d 4f 56 | 45 2e 4c 20 44 30 2c 28 |,D0; MOV|E.L D0,(|
|000016f0| 41 37 29 20 20 20 7d 0d | 0d 20 20 20 66 75 6e 63 |A7) }.|. func|
|00001700| 74 69 6f 6e 20 6f 72 4c | 6f 6e 67 20 28 61 2c 20 |tion orL|ong (a, |
|00001710| 62 3a 20 6c 6f 6e 67 69 | 6e 74 29 3a 20 6c 6f 6e |b: longi|nt): lon|
|00001720| 67 69 6e 74 3b 09 20 20 | 20 20 20 20 20 20 7b 20 |gint;. | { |
|00001730| 4f 52 20 74 77 6f 20 6c | 6f 6e 67 73 09 09 09 09 |OR two l|ongs....|
|00001740| 09 20 20 20 20 7d 0d 20 | 20 20 20 20 20 20 20 20 |. }. | |
|00001750| 20 20 49 4e 4c 49 4e 45 | 20 24 32 30 31 46 2c 24 | INLINE| $201F,$|
|00001760| 38 30 39 46 2c 24 32 45 | 38 30 3b 09 09 20 20 20 |809F,$2E|80;.. |
|00001770| 20 20 20 20 20 7b 20 4d | 4f 56 45 2e 4c 20 28 41 | { M|OVE.L (A|
|00001780| 37 29 2b 2c 44 30 3b 20 | 4f 52 2e 4c 20 28 41 37 |7)+,D0; |OR.L (A7|
|00001790| 29 2b 2c 44 30 3b 20 4d | 4f 56 45 2e 4c 20 44 30 |)+,D0; M|OVE.L D0|
|000017a0| 2c 28 41 37 29 20 20 20 | 20 7d 0d 0d 20 20 20 66 |,(A7) | }.. f|
|000017b0| 75 6e 63 74 69 6f 6e 20 | 65 6f 72 4c 6f 6e 67 20 |unction |eorLong |
|000017c0| 28 61 2c 20 62 3a 20 6c | 6f 6e 67 69 6e 74 29 3a |(a, b: l|ongint):|
|000017d0| 20 6c 6f 6e 67 69 6e 74 | 3b 09 20 20 20 20 20 20 | longint|;. |
|000017e0| 20 20 7b 20 45 4f 52 20 | 74 77 6f 20 6c 6f 6e 67 | { EOR |two long|
|000017f0| 73 09 09 09 09 09 20 20 | 20 20 7d 0d 20 20 20 20 |s..... | }. |
|00001800| 20 20 20 20 20 20 20 49 | 4e 4c 49 4e 45 20 24 32 | I|NLINE $2|
|00001810| 30 31 46 2c 24 42 31 39 | 37 2c 24 32 45 39 46 3b |01F,$B19|7,$2E9F;|
|00001820| 09 09 20 20 20 20 20 20 | 20 20 7b 20 4d 4f 56 45 |.. | { MOVE|
|00001830| 2e 4c 20 28 41 37 29 2b | 2c 44 30 3b 20 45 4f 52 |.L (A7)+|,D0; EOR|
|00001840| 2e 4c 20 44 30 2c 28 41 | 37 29 3b 20 4d 4f 56 45 |.L D0,(A|7); MOVE|
|00001850| 2e 4c 20 28 41 37 29 2b | 2c 28 41 37 29 20 7d 0d |.L (A7)+|,(A7) }.|
|00001860| 0d 69 6d 70 6c 65 6d 65 | 6e 74 61 74 69 6f 6e 0d |.impleme|ntation.|
|00001870| 0d 20 20 20 7b 20 22 54 | 68 69 73 20 73 65 63 74 |. { "T|his sect|
|00001880| 69 6f 6e 20 69 6e 74 65 | 6e 74 69 6f 6e 61 6c 6c |ion inte|ntionall|
|00001890| 79 20 6c 65 66 74 20 62 | 6c 61 6e 6b 2e 22 20 7d |y left b|lank." }|
|000018a0| 0d 0d 65 6e 64 2e 09 09 | 09 09 09 09 20 20 20 20 |..end...|.... |
|000018b0| 20 20 20 20 7b 20 6f 66 | 20 75 6e 69 74 20 22 69 | { of| unit "i|
|000018c0| 6e 6c 69 6e 65 73 22 09 | 09 09 09 20 20 20 20 7d |nlines".|... }|
|000018d0| 0d 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000018e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000018f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+