home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 5 / DATAFILE_PDCD5.iso / utilities / s1 / strongbs / !StrongBS / 3rdParty / DavidSharp / Right / Source < prev   
Unknown  |  1997-06-21  |  11.6 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text


This file was not able to be converted.
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert Truevision Targa Graphic (image/tga) magic Supported
100% file Targa image data - RGB - RLE 8224 x 8224 x 32 +62522 +8224 - top " Example program for use by StrongBS" default (weak)
99% file data default
100% xdgMime image/x-tga default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 0d 00 0a 05 f4 0d 00 14 | 3a f4 20 20 20 20 20 20 |........|:. |
|00000010| 20 20 20 20 20 20 20 20 | 20 20 20 20 45 78 61 6d | | Exam|
|00000020| 70 6c 65 20 70 72 6f 67 | 72 61 6d 20 66 6f 72 20 |ple prog|ram for |
|00000030| 75 73 65 20 62 79 20 53 | 74 72 6f 6e 67 42 53 0d |use by S|trongBS.|
|00000040| 00 1e 3c f4 20 20 20 20 | 20 20 20 20 20 20 20 20 |..<. | |
|00000050| 20 20 20 20 53 68 65 6c | 6c 20 a9 20 4d 6f 68 73 | Shel|l . Mohs|
|00000060| 65 6e 20 41 6c 73 68 61 | 79 65 66 20 32 37 74 68 |en Alsha|yef 27th|
|00000070| 20 4d 61 72 63 68 20 31 | 39 39 37 0d 00 28 3e f4 | March 1|997..(>.|
|00000080| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 44 65 | | De|
|00000090| 6d 6f 20 61 6c 67 6f 72 | 69 74 68 6d 20 a9 20 44 |mo algor|ithm . D|
|000000a0| 61 76 69 64 20 53 68 61 | 72 70 20 39 74 68 20 4d |avid Sha|rp 9th M|
|000000b0| 61 72 63 68 20 31 39 39 | 37 0d 00 32 54 f4 20 3d |arch 199|7..2T. =|
|000000c0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000000d0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000000e0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000000f0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000100| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 0d 00 3c |========|=====..<|
|00000110| 4a f4 20 54 68 69 73 20 | 69 73 20 61 6e 20 65 78 |J. This |is an ex|
|00000120| 61 6d 70 6c 65 20 63 6f | 64 65 20 74 68 61 74 20 |ample co|de that |
|00000130| 62 61 73 69 63 61 6c 6c | 79 20 73 63 61 6e 73 20 |basicall|y scans |
|00000140| 61 20 42 41 53 49 43 20 | 70 72 6f 67 72 61 6d 20 |a BASIC |program |
|00000150| 66 6f 72 20 74 68 65 0d | 00 46 51 f4 20 6f 63 63 |for the.|.FQ. occ|
|00000160| 75 72 65 6e 63 65 20 6f | 66 20 52 49 47 48 54 24 |urence o|f RIGHT$|
|00000170| 28 61 24 2c 31 29 2c 20 | 69 66 20 69 74 20 66 69 |(a$,1), |if it fi|
|00000180| 6e 64 73 20 69 74 2c 20 | 69 74 20 77 69 6c 6c 20 |nds it, |it will |
|00000190| 63 68 61 6e 67 65 20 69 | 74 20 74 6f 20 52 49 47 |change i|t to RIG|
|000001a0| 48 54 24 28 61 24 29 2e | 0d 00 50 05 f4 0d 00 5a |HT$(a$).|..P....Z|
|000001b0| 51 f4 20 49 74 20 74 61 | 6b 65 73 20 61 63 63 6f |Q. It ta|kes acco|
|000001c0| 75 6e 74 20 6f 66 20 61 | 6c 6c 20 64 69 66 66 65 |unt of a|ll diffe|
|000001d0| 72 65 6e 74 20 75 73 65 | 73 20 6f 66 20 74 68 65 |rent use|s of the|
|000001e0| 20 6b 65 79 77 6f 72 64 | 20 52 49 47 48 54 24 20 | keyword| RIGHT$ |
|000001f0| 61 6e 64 20 72 65 63 6f | 67 6e 69 73 65 73 0d 00 |and reco|gnises..|
|00000200| 64 50 f4 20 74 68 65 20 | 6f 63 63 75 72 65 6e 63 |dP. the |occurenc|
|00000210| 65 20 6f 66 20 6f 64 64 | 6c 79 20 70 6c 61 63 65 |e of odd|ly place|
|00000220| 64 20 73 70 61 63 65 73 | 2c 20 6f 72 20 61 6c 72 |d spaces|, or alr|
|00000230| 65 61 64 79 20 63 6f 6d | 70 72 65 73 73 65 64 20 |eady com|pressed |
|00000240| 63 6f 64 65 2e 20 49 6e | 20 66 61 63 74 2c 0d 00 |code. In| fact,..|
|00000250| 6e 4e f4 20 69 74 20 68 | 61 6e 64 6c 65 73 20 61 |nN. it h|andles a|
|00000260| 6e 79 20 66 6f 72 6d 20 | 6f 66 20 42 41 53 49 43 |ny form |of BASIC|
|00000270| 20 70 72 6f 67 72 61 6d | 2e 20 41 6c 6c 20 79 6f | program|. All yo|
|00000280| 75 72 20 63 6f 64 65 20 | 73 68 6f 75 6c 64 20 61 |ur code |should a|
|00000290| 6c 73 6f 20 66 75 6e 63 | 74 69 6f 6e 0d 00 78 15 |lso func|tion..x.|
|000002a0| f4 20 69 6e 20 74 68 69 | 73 20 6d 61 6e 6e 65 72 |. in thi|s manner|
|000002b0| 21 0d 00 82 05 f4 0d 00 | 8c 4c f4 20 49 74 20 69 |!.......|.L. It i|
|000002c0| 73 20 6f 6e 6c 79 20 61 | 20 64 65 6d 6f 20 6f 66 |s only a| demo of|
|000002d0| 20 68 6f 77 20 74 6f 20 | 77 72 69 74 65 20 61 20 | how to |write a |
|000002e0| 63 6f 64 65 20 74 68 61 | 74 20 53 74 72 6f 6e 67 |code tha|t Strong|
|000002f0| 42 53 20 63 61 6e 20 75 | 6e 64 65 72 73 74 61 6e |BS can u|nderstan|
|00000300| 64 2e 0d 00 96 4a f4 20 | 4d 61 6b 65 20 61 20 6e |d....J. |Make a n|
|00000310| 6f 74 65 20 6f 66 20 52 | 30 20 61 6e 64 20 52 31 |ote of R|0 and R1|
|00000320| 20 6f 6e 20 65 6e 74 72 | 79 20 74 6f 20 74 68 65 | on entr|y to the|
|00000330| 20 63 6f 64 65 2e 20 41 | 6e 64 20 73 65 65 20 74 | code. A|nd see t|
|00000340| 68 61 74 20 77 68 65 6e | 20 74 68 65 0d 00 a0 51 |hat when| the...Q|
|00000350| f4 20 70 72 6f 67 72 61 | 6d 20 65 78 69 74 73 20 |. progra|m exits |
|00000360| 69 74 20 72 65 74 75 72 | 6e 73 20 74 68 65 20 65 |it retur|ns the e|
|00000370| 6e 64 20 61 64 64 72 65 | 73 73 20 6f 66 20 74 68 |nd addre|ss of th|
|00000380| 65 20 72 65 73 75 6c 74 | 20 28 54 61 72 67 65 74 |e result| (Target|
|00000390| 29 20 66 69 6c 65 20 69 | 6e 20 52 30 2e 0d 00 aa |) file i|n R0....|
|000003a0| 05 f4 0d 00 b4 4d f4 20 | 54 68 65 20 63 6f 64 65 |.....M. |The code|
|000003b0| 20 74 6f 20 64 6f 20 74 | 68 69 73 20 6a 6f 62 20 | to do t|his job |
|000003c0| 63 6f 75 6c 64 20 68 61 | 76 65 20 62 65 65 6e 20 |could ha|ve been |
|000003d0| 77 72 69 74 74 65 6e 20 | 77 69 74 68 20 68 61 6c |written |with hal|
|000003e0| 66 20 74 68 65 20 73 69 | 7a 65 21 20 62 75 74 0d |f the si|ze! but.|
|000003f0| 00 be 4c f4 20 49 20 68 | 61 76 65 20 75 73 65 64 |..L. I h|ave used|
|00000400| 20 61 20 67 65 6e 65 72 | 61 6c 20 63 6f 64 65 20 | a gener|al code |
|00000410| 74 68 61 74 20 69 6e 63 | 6c 75 64 65 73 20 61 20 |that inc|ludes a |
|00000420| 64 65 62 75 67 20 63 68 | 65 63 6b 2e 20 49 6e 20 |debug ch|eck. In |
|00000430| 6f 74 68 65 72 20 77 6f | 72 64 73 0d 00 c8 47 f4 |other wo|rds...G.|
|00000440| 20 61 20 73 75 62 2d 72 | 6f 75 74 69 6e 65 20 69 | a sub-r|outine i|
|00000450| 73 20 63 61 6c 6c 65 64 | 20 66 6f 72 20 65 61 63 |s called| for eac|
|00000460| 68 20 42 41 53 49 43 20 | 6c 69 6e 65 2e 20 57 68 |h BASIC |line. Wh|
|00000470| 65 6e 20 74 68 65 20 73 | 75 62 2d 72 6f 75 74 69 |en the s|ub-routi|
|00000480| 6e 65 0d 00 d2 4b f4 20 | 72 65 74 75 72 6e 73 2c |ne...K. |returns,|
|00000490| 20 74 68 65 20 6d 61 69 | 6e 20 63 6f 64 65 20 63 | the mai|n code c|
|000004a0| 68 65 63 6b 73 20 74 68 | 61 74 20 74 68 65 20 73 |hecks th|at the s|
|000004b0| 75 62 2d 72 6f 75 74 69 | 6e 65 20 64 69 64 6e 27 |ub-routi|ne didn'|
|000004c0| 74 20 73 63 72 65 77 2d | 75 70 20 62 79 0d 00 dc |t screw-|up by...|
|000004d0| 4d f4 20 65 6e 73 75 72 | 69 6e 67 20 74 68 61 74 |M. ensur|ing that|
|000004e0| 20 74 68 65 20 6e 65 77 | 20 72 65 73 75 6c 74 20 | the new| result |
|000004f0| 6c 69 6e 65 20 63 72 65 | 61 74 65 64 20 69 73 20 |line cre|ated is |
|00000500| 76 61 6c 69 64 20 28 69 | 2e 65 2e 20 63 6f 72 72 |valid (i|.e. corr|
|00000510| 65 63 74 20 6c 65 6e 67 | 74 68 0d 00 e6 2e f4 20 |ect leng|th..... |
|00000520| 61 6e 64 20 68 61 73 20 | 74 68 65 20 63 6f 64 65 |and has |the code|
|00000530| 20 26 44 20 61 74 20 74 | 68 65 20 72 69 67 68 74 | &D at t|he right|
|00000540| 20 70 6c 61 63 65 29 2e | 0d 00 f0 05 f4 0d 00 fa | place).|........|
|00000550| 4d f4 20 59 6f 75 20 63 | 6f 75 6c 64 20 75 73 65 |M. You c|ould use|
|00000560| 20 74 68 69 73 20 63 6f | 64 65 20 61 73 20 61 20 | this co|de as a |
|00000570| 74 65 6d 70 6c 61 74 65 | 2e 20 59 6f 75 20 77 69 |template|. You wi|
|00000580| 6c 6c 20 6f 6e 6c 79 20 | 6e 65 65 64 20 74 6f 20 |ll only |need to |
|00000590| 63 68 61 6e 67 65 20 74 | 68 65 0d 01 04 47 f4 20 |change t|he...G. |
|000005a0| 63 6f 64 65 20 69 6e 20 | 74 68 65 20 73 75 62 2d |code in |the sub-|
|000005b0| 72 6f 75 74 69 6e 65 2c | 20 64 6f 20 6e 6f 74 20 |routine,| do not |
|000005c0| 63 68 61 6e 67 65 20 61 | 6e 79 74 68 69 6e 67 20 |change a|nything |
|000005d0| 69 6e 20 74 68 65 20 6d | 61 69 6e 20 63 6f 64 65 |in the m|ain code|
|000005e0| 2e 0d 01 0e 05 f4 0d 01 | 18 4a f4 20 59 6f 75 20 |........|.J. You |
|000005f0| 6d 61 79 20 6e 6f 74 69 | 63 65 20 74 68 61 74 20 |may noti|ce that |
|00000600| 49 20 61 6d 20 75 73 69 | 6e 67 20 52 45 4d 20 69 |I am usi|ng REM i|
|00000610| 6e 73 69 64 65 20 61 73 | 73 65 6d 62 6c 79 20 69 |nside as|sembly i|
|00000620| 6e 73 74 65 61 64 20 6f | 66 20 3b 20 6f 72 20 5c |nstead o|f ; or \|
|00000630| 0d 01 22 52 f4 20 74 68 | 65 20 72 65 61 73 6f 6e |.."R. th|e reason|
|00000640| 20 69 73 20 74 68 61 74 | 20 61 6e 79 74 68 69 6e | is that| anythin|
|00000650| 67 20 61 66 74 65 72 20 | 74 68 65 20 74 6f 6b 65 |g after |the toke|
|00000660| 6e 20 52 45 4d 20 77 69 | 6c 6c 20 62 65 20 73 68 |n REM wi|ll be sh|
|00000670| 6f 77 6e 20 69 6e 20 61 | 20 64 69 66 66 65 72 65 |own in a| differe|
|00000680| 6e 74 0d 01 2c 4d f4 20 | 63 6f 6c 6f 72 20 77 68 |nt..,M. |color wh|
|00000690| 65 6e 20 75 73 69 6e 67 | 20 21 5a 61 70 20 42 41 |en using| !Zap BA|
|000006a0| 53 49 43 20 65 64 69 74 | 6f 72 20 28 54 68 65 20 |SIC edit|or (The |
|000006b0| 62 65 73 74 20 42 41 53 | 49 43 20 65 64 69 74 6f |best BAS|IC edito|
|000006c0| 72 20 74 6f 20 64 61 74 | 65 2e 2e 2e 2e 2e 29 0d |r to dat|e.....).|
|000006d0| 01 36 05 f4 0d 01 40 54 | f4 20 3d 3d 3d 3d 3d 3d |.6....@T|. ======|
|000006e0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000006f0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000700| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000710| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000720| 3d 3d 3d 3d 3d 3d 3d 3d | 0d 01 4a 4d f4 20 49 74 |========|..JM. It|
|00000730| 20 73 68 6f 75 6c 64 20 | 62 65 20 6e 6f 74 65 64 | should |be noted|
|00000740| 20 74 68 61 74 20 74 68 | 65 72 65 20 61 72 65 20 | that th|ere are |
|00000750| 62 65 74 74 65 72 20 63 | 6f 64 69 6e 67 20 6d 65 |better c|oding me|
|00000760| 74 68 6f 64 73 20 77 68 | 69 63 68 20 6d 61 79 20 |thods wh|ich may |
|00000770| 67 69 76 65 20 0d 01 54 | 4e f4 20 66 61 73 74 65 |give ..T|N. faste|
|00000780| 72 20 72 65 73 75 6c 74 | 73 20 74 68 61 6e 20 74 |r result|s than t|
|00000790| 68 65 20 63 6f 64 65 20 | 70 72 65 73 65 6e 74 65 |he code |presente|
|000007a0| 64 20 68 65 72 65 2e 20 | 54 68 65 20 63 6f 64 65 |d here. |The code|
|000007b0| 20 67 69 76 65 6e 20 68 | 65 72 65 20 69 73 20 6f | given h|ere is o|
|000007c0| 6e 6c 79 0d 01 5e 3a f4 | 20 6f 6e 65 20 70 6f 73 |nly..^:.| one pos|
|000007d0| 73 69 62 6c 65 20 77 61 | 79 20 6f 66 20 74 68 65 |sible wa|y of the|
|000007e0| 20 6d 61 6e 79 20 77 61 | 79 73 20 6f 66 20 64 6f | many wa|ys of do|
|000007f0| 69 6e 67 20 74 68 69 6e | 67 73 21 21 21 0d 01 68 |ing thin|gs!!!..h|
|00000800| 05 f4 0d 01 72 04 0d 01 | 7c 04 0d 01 86 44 f2 61 |....r...||....D.a|
|00000810| 73 73 65 6d 20 20 20 20 | 20 20 20 20 20 20 20 20 |ssem | |
|00000820| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000830| 20 20 20 20 20 20 20 20 | 20 20 3a f4 20 41 73 73 | | :. Ass|
|00000840| 65 6d 62 6c 65 20 74 68 | 65 20 63 6f 64 65 0d 01 |emble th|e code..|
|00000850| 90 04 0d 01 9a 46 66 69 | 6c 65 24 3d 22 43 6f 64 |.....Ffi|le$="Cod|
|00000860| 65 22 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |e" | |
|00000870| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000880| 20 20 20 20 20 3a f4 20 | 44 65 66 61 75 6c 74 20 | :. |Default |
|00000890| 66 69 6c 65 6e 61 6d 65 | 0d 01 a4 04 0d 01 ae 46 |filename|.......F|
|000008a0| f1 22 53 61 76 65 20 63 | 6f 64 65 20 61 73 20 22 |."Save c|ode as "|
|000008b0| 3b 66 69 6c 65 24 3b 22 | 20 28 59 2f 4e 29 20 3f |;file$;"| (Y/N) ?|
|000008c0| 22 3b 20 20 20 20 20 20 | 20 20 20 3a f4 20 52 65 |"; | :. Re|
|000008d0| 71 75 65 73 74 20 74 6f | 20 73 61 76 65 20 66 69 |quest to| save fi|
|000008e0| 6c 65 0d 01 b8 45 f5 3a | 47 3d a5 3a fd 20 47 3d |le...E.:|G=.:. G=|
|000008f0| 97 22 59 22 20 84 20 47 | 3d 97 22 4e 22 20 20 20 |."Y" . G|=."N" |
|00000900| 20 20 20 20 20 3a f4 20 | 77 61 69 74 20 66 6f 72 | :. |wait for|
|00000910| 20 61 20 6b 65 79 20 28 | 6e 6f 20 6c 6f 77 65 72 | a key (|no lower|
|00000920| 20 63 61 73 65 21 29 0d | 01 c2 0e e7 20 47 3d 97 | case!).|.... G=.|
|00000930| 22 59 22 20 8c 0d 01 cc | 26 ff 22 53 41 56 45 20 |"Y" ....|&."SAVE |
|00000940| 22 2b 66 69 6c 65 24 2b | 22 20 22 2b c3 7e 63 6f |"+file$+|" "+.~co|
|00000950| 64 65 2b 22 20 22 2b c3 | 7e 50 25 0d 01 d6 05 cd |de+" "+.|~P%.....|
|00000960| 0d 01 e0 04 0d 01 ea 04 | 0d 01 f4 4c de 20 61 72 |........|...L. ar|
|00000970| 65 61 25 20 32 30 30 3c | 3c 31 30 20 20 20 20 20 |ea% 200<|<10 |
|00000980| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000990| 20 20 20 20 20 20 20 20 | 20 3a f4 20 44 69 6d 65 | | :. Dime|
|000009a0| 6e 73 69 6f 6e 20 61 20 | 6d 65 6d 6f 72 79 20 62 |nsion a |memory b|
|000009b0| 6c 6f 63 6b 0d 01 fe 54 | 61 72 65 61 25 3d 61 72 |lock...T|area%=ar|
|000009c0| 65 61 25 2b 32 35 35 20 | 20 20 20 20 20 20 20 20 |ea%+255 | |
|000009d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000009e0| 20 20 20 20 20 20 20 3a | f4 20 41 6c 69 67 6e 20 | :|. Align |
|000009f0| 69 74 20 74 6f 20 32 35 | 36 20 62 79 74 65 20 62 |it to 25|6 byte b|
|00000a00| 6f 75 6e 64 61 72 79 2e | 0d 02 08 1b 61 72 65 61 |oundary.|....area|
|00000a10| 25 3d 61 72 65 61 25 20 | 80 20 26 46 46 46 46 46 |%=area% |. &FFFFF|
|00000a20| 46 30 30 0d 02 12 04 0d | 02 1c 4e 53 6f 75 72 63 |F00.....|..NSourc|
|00000a30| 65 5f 50 72 6f 67 25 3d | 61 72 65 61 25 2b 28 32 |e_Prog%=|area%+(2|
|00000a40| 30 3c 3c 31 30 29 20 20 | 20 20 20 20 20 20 20 20 |0<<10) | |
|00000a50| 20 20 20 20 20 20 20 20 | 20 20 3a f4 20 41 72 65 | | :. Are|
|00000a60| 61 20 74 6f 20 6c 6f 61 | 64 20 53 6f 75 72 63 65 |a to loa|d Source|
|00000a70| 20 66 69 6c 65 0d 02 26 | 4f 54 61 72 67 65 74 5f | file..&|OTarget_|
|00000a80| 50 72 6f 67 25 3d 61 72 | 65 61 25 20 20 20 20 20 |Prog%=ar|ea% |
|00000a90| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000aa0| 20 20 20 20 20 20 20 20 | 3a f4 20 41 72 65 61 20 | |:. Area |
|00000ab0| 74 6f 20 73 74 6f 72 65 | 20 54 61 72 67 65 74 20 |to store| Target |
|00000ac0| 63 6f 64 65 0d 02 30 04 | 0d 02 3a 08 2a 43 41 54 |code..0.|..:.*CAT|
|00000ad0| 0d 02 44 27 e8 27 22 45 | 6e 74 65 72 20 66 69 6c |..D'.'"E|nter fil|
|00000ae0| 65 6e 61 6d 65 20 74 6f | 20 70 72 6f 63 65 73 73 |ename to| process|
|00000af0| 20 22 66 69 6c 65 24 0d | 02 4e 25 ff 22 4c 4f 41 | "file$.|.N%."LOA|
|00000b00| 44 20 22 2b 66 69 6c 65 | 24 2b 22 20 22 2b c3 7e |D "+file|$+" "+.~|
|00000b10| 53 6f 75 72 63 65 5f 50 | 72 6f 67 25 0d 02 58 37 |Source_P|rog%..X7|
|00000b20| e7 3f 53 6f 75 72 63 65 | 5f 50 72 6f 67 25 3c 3e |.?Source|_Prog%<>|
|00000b30| 31 33 85 32 35 35 2c 22 | 4e 6f 74 20 61 20 74 6f |13.255,"|Not a to|
|00000b40| 6b 65 6e 69 73 65 64 20 | 42 41 53 49 43 20 66 69 |kenised |BASIC fi|
|00000b50| 6c 65 22 0d 02 62 3b f4 | 2d 2d 2d 2d 2d 2d 2d 2d |le"..b;.|--------|
|00000b60| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000b70| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000b80| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 0d 02 |--------|------..|
|00000b90| 6c 04 0d 02 76 04 0d 02 | 80 3d 41 25 3d 53 6f 75 |l...v...|.=A%=Sou|
|00000ba0| 72 63 65 5f 50 72 6f 67 | 25 20 20 20 20 20 20 3a |rce_Prog|% :|
|00000bb0| f4 20 52 30 20 2d 20 53 | 6f 75 72 63 65 20 70 72 |. R0 - S|ource pr|
|00000bc0| 6f 67 72 61 6d 20 73 74 | 61 72 74 20 61 64 64 72 |ogram st|art addr|
|00000bd0| 65 73 73 0d 02 8a 3b 42 | 25 3d 54 61 72 67 65 74 |ess...;B|%=Target|
|00000be0| 5f 50 72 6f 67 25 20 20 | 20 20 20 20 3a f4 20 52 |_Prog% | :. R|
|00000bf0| 31 20 2d 20 41 64 72 73 | 20 74 6f 20 73 74 6f 72 |1 - Adrs| to stor|
|00000c00| 65 20 6e 65 77 20 70 72 | 6f 67 72 61 6d 2e 0d 02 |e new pr|ogram...|
|00000c10| 94 46 45 6e 64 25 3d ba | 20 28 63 6f 64 65 2b 34 |.FEnd%=.| (code+4|
|00000c20| 29 20 20 20 20 3a f4 20 | 52 65 74 75 72 6e 20 52 |) :. |Return R|
|00000c30| 30 20 61 73 20 74 68 65 | 20 65 6e 64 20 61 64 72 |0 as the| end adr|
|00000c40| 73 20 6f 66 20 74 68 65 | 20 72 65 73 75 6c 74 20 |s of the| result |
|00000c50| 66 69 6c 65 0d 02 9e 04 | 0d 02 a8 2c f4 20 43 61 |file....|...,. Ca|
|00000c60| 6c 63 75 6c 61 74 65 20 | 74 68 65 20 6e 65 77 20 |lculate |the new |
|00000c70| 73 69 7a 65 20 6f 66 20 | 74 68 65 20 70 72 6f 67 |size of |the prog|
|00000c80| 72 61 6d 2e 0d 02 b2 1e | 4e 65 77 53 69 7a 65 25 |ram.....|NewSize%|
|00000c90| 3d 45 6e 64 25 2d 54 61 | 72 67 65 74 5f 50 72 6f |=End%-Ta|rget_Pro|
|00000ca0| 67 25 0d 02 bc 26 f1 22 | 4e 65 77 20 73 69 7a 65 |g%...&."|New size|
|00000cb0| 20 6f 66 20 70 72 6f 67 | 72 61 6d 20 3d 20 22 3b | of prog|ram = ";|
|00000cc0| 4e 65 77 53 69 7a 65 25 | 0d 02 c6 04 0d 02 d0 05 |NewSize%|........|
|00000cd0| e0 0d 02 da 04 0d 02 e4 | 40 f4 3d 3d 3d 3d 3d 3d |........|@.======|
|00000ce0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000cf0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000d00| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000d10| 3d 3d 3d 3d 3d 0d 02 ee | 0b dd f2 61 73 73 65 6d |=====...|...assem|
|00000d20| 0d 02 f8 1b f4 20 44 65 | 66 69 6e 65 20 73 6f 6d |..... De|fine som|
|00000d30| 65 20 72 65 67 69 73 74 | 65 72 73 0d 03 02 15 53 |e regist|ers....S|
|00000d40| 6f 75 72 63 65 20 20 20 | 20 20 20 20 3d 20 20 35 |ource | = 5|
|00000d50| 0d 03 0c 15 54 61 72 67 | 65 74 20 20 20 20 20 20 |....Targ|et |
|00000d60| 20 3d 20 20 37 0d 03 16 | 15 54 72 67 4c 65 6e 41 | = 7...|.TrgLenA|
|00000d70| 64 72 20 20 20 20 3d 20 | 20 36 0d 03 20 15 46 6c |dr = | 6.. .Fl|
|00000d80| 61 67 73 20 20 20 20 20 | 20 20 20 3d 20 20 38 0d |ags | = 8.|
|00000d90| 03 2a 15 4c 69 6e 65 53 | 74 61 72 74 20 20 20 20 |.*.LineS|tart |
|00000da0| 3d 20 20 39 0d 03 34 16 | 4c 69 6e 65 45 6e 64 20 |= 9..4.|LineEnd |
|00000db0| 20 20 20 20 20 3d 20 20 | 31 30 0d 03 3e 16 53 6f | = |10..>.So|
|00000dc0| 75 72 63 65 4c 69 6e 65 | 4e 6f 20 3d 20 20 31 31 |urceLine|No = 11|
|00000dd0| 0d 03 48 04 0d 03 52 3c | f4 20 52 65 67 69 73 74 |..H...R<|. Regist|
|00000de0| 65 72 73 20 52 30 2c 20 | 52 31 2c 20 52 32 2c 20 |ers R0, |R1, R2, |
|00000df0| 52 33 2c 20 52 34 2c 20 | 61 6e 64 20 52 31 32 20 |R3, R4, |and R12 |
|00000e00| 61 72 65 20 66 72 65 65 | 20 74 6f 20 75 73 65 2e |are free| to use.|
|00000e10| 0d 03 5c 04 0d 03 66 19 | 51 75 6f 74 65 73 5f 42 |..\...f.|Quotes_B|
|00000e20| 69 74 20 20 20 20 20 3d | 31 3c 3c 32 39 0d 03 70 |it =|1<<29..p|
|00000e30| 04 0d 03 7a 10 de 20 63 | 6f 64 65 20 26 32 30 30 |...z.. c|ode &200|
|00000e40| 30 0d 03 84 04 0d 03 8e | 16 e3 20 70 61 73 73 20 |0.......|.. pass |
|00000e50| 3d 20 30 20 b8 20 32 20 | 88 20 32 0d 03 98 0b 50 |= 0 . 2 |. 2....P|
|00000e60| 25 3d 63 6f 64 65 0d 03 | a2 04 0d 03 ac 0d 5b 4f |%=code..|......[O|
|00000e70| 50 54 20 70 61 73 73 0d | 03 b6 04 0d 03 c0 45 45 |PT pass.|......EE|
|00000e80| 51 55 44 20 20 20 26 30 | 30 30 30 30 30 30 30 20 |QUD &0|0000000 |
|00000e90| 20 20 20 20 20 20 20 20 | 20 f4 20 54 68 69 73 20 | | . This |
|00000ea0| 69 73 20 74 68 65 20 34 | 20 62 79 74 65 20 69 6e |is the 4| byte in|
|00000eb0| 66 6f 72 6d 61 74 69 6f | 6e 20 62 6c 6f 63 6b 2e |formatio|n block.|
|00000ec0| 0d 03 ca 46 20 20 20 20 | 20 20 20 20 20 20 20 20 |...F | |
|00000ed0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 f4 20 | | . |
|00000ee0| 53 74 72 6f 6e 67 42 53 | 20 72 65 61 64 73 20 74 |StrongBS| reads t|
|00000ef0| 68 65 73 65 20 34 20 62 | 79 74 65 73 20 62 65 66 |hese 4 b|ytes bef|
|00000f00| 6f 72 65 20 69 74 0d 03 | d4 46 20 20 20 20 20 20 |ore it..|.F |
|00000f10| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000f20| 20 20 20 20 f4 20 63 61 | 6c 6c 73 20 79 6f 75 72 | . ca|lls your|
|00000f30| 20 63 6f 64 65 2e 20 53 | 6f 20 70 6c 61 63 65 20 | code. S|o place |
|00000f40| 61 6e 79 20 69 6e 66 6f | 20 79 6f 75 0d 03 de 4b |any info| you...K|
|00000f50| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000f60| 20 20 20 20 20 20 20 20 | 20 20 f4 20 77 61 6e 74 | | . want|
|00000f70| 20 74 6f 20 70 61 73 73 | 20 69 6e 20 68 65 72 65 | to pass| in here|
|00000f80| 2e 20 53 65 65 20 74 68 | 65 20 64 6f 63 75 6d 65 |. See th|e docume|
|00000f90| 6e 74 61 74 69 6f 6e 0d | 03 e8 2e 20 20 20 20 20 |ntation.|... |
|00000fa0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000fb0| 20 20 20 20 20 f4 20 66 | 6f 72 20 6d 6f 72 65 20 | . f|or more |
|00000fc0| 69 6e 66 6f 2e 0d 03 f2 | 1e 20 20 20 20 20 20 20 |info....|. |
|00000fd0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000fe0| 20 20 20 0d 03 fc 14 f4 | 20 43 6f 64 65 20 73 74 | .....| Code st|
|00000ff0| 61 72 74 20 6e 6f 77 0d | 04 06 04 0d 04 10 20 f4 |art now.|...... .|
|00001000| 20 6f 6e 20 65 6e 74 72 | 79 20 52 30 3d 73 6f 75 | on entr|y R0=sou|
|00001010| 72 63 65 20 61 64 64 72 | 65 73 73 0d 04 1a 20 f4 |rce addr|ess... .|
|00001020| 20 20 20 20 20 20 20 20 | 20 20 52 31 3d 74 61 72 | | R1=tar|
|00001030| 67 65 74 20 61 64 64 72 | 65 73 73 0d 04 24 3d f4 |get addr|ess..$=.|
|00001040| 20 6f 6e 20 65 78 69 74 | 20 20 52 30 3d 65 6e 64 | on exit| R0=end|
|00001050| 20 61 64 72 73 20 6f 66 | 20 6e 65 77 20 70 72 6f | adrs of| new pro|
|00001060| 67 72 61 6d 20 6f 72 20 | 70 6f 69 6e 74 65 72 20 |gram or |pointer |
|00001070| 74 6f 20 65 72 72 6f 72 | 0d 04 2e 04 0d 04 38 1e |to error|......8.|
|00001080| 53 54 4d 46 44 20 20 20 | 20 52 31 33 21 2c 7b 52 |STMFD | R13!,{R|
|00001090| 30 2d 52 31 32 2c 52 31 | 34 7d 0d 04 42 40 4d 4f |0-R12,R1|4}..B@MO|
|000010a0| 56 20 20 20 20 20 20 53 | 6f 75 72 63 65 2c 52 30 |V S|ource,R0|
|000010b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000010c0| f4 20 53 6f 75 72 63 65 | 3d 73 6f 75 72 63 65 20 |. Source|=source |
|000010d0| 20 52 30 20 61 6e 64 20 | 52 31 0d 04 4c 35 4d 4f | R0 and |R1..L5MO|
|000010e0| 56 20 20 20 20 20 20 54 | 61 72 67 65 74 2c 52 31 |V T|arget,R1|
|000010f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001100| f4 20 54 61 72 67 65 74 | 3d 74 72 61 67 65 74 0d |. Target|=traget.|
|00001110| 04 56 38 4d 4f 56 20 20 | 20 20 20 20 46 6c 61 67 |.V8MOV | Flag|
|00001120| 73 2c 23 30 20 20 20 20 | 20 20 20 20 20 20 20 20 |s,#0 | |
|00001130| 20 20 20 20 20 f4 20 49 | 6e 69 74 69 61 6c 69 73 | . I|nitialis|
|00001140| 65 20 66 6c 61 67 73 0d | 04 60 36 4c 44 52 42 20 |e flags.|.`6LDRB |
|00001150| 20 20 20 20 52 30 2c 5b | 53 6f 75 72 63 65 5d 2c | R0,[|Source],|
|00001160| 23 31 20 20 20 20 20 20 | 20 20 20 20 20 f4 20 63 |#1 | . c|
|00001170| 6f 70 79 20 26 44 20 61 | 63 72 6f 73 73 0d 04 6a |opy &D a|cross..j|
|00001180| 1b 53 54 52 42 20 20 20 | 20 20 52 30 2c 5b 54 61 |.STRB | R0,[Ta|
|00001190| 72 67 65 74 5d 2c 23 31 | 0d 04 74 04 0d 04 7e 0e |rget],#1|..t...~.|
|000011a0| 2e 4d 61 69 6e 5f 4c 6f | 6f 70 0d 04 88 3a 4c 44 |.Main_Lo|op...:LD|
|000011b0| 52 42 20 20 20 20 20 52 | 31 2c 5b 53 6f 75 72 63 |RB R|1,[Sourc|
|000011c0| 65 5d 2c 23 31 20 20 20 | 20 20 20 20 20 20 20 20 |e],#1 | |
|000011d0| f4 20 52 31 3d 6c 69 6e | 65 20 4e 6f 20 48 49 20 |. R1=lin|e No HI |
|000011e0| 62 79 74 65 0d 04 92 39 | 53 54 52 42 20 20 20 20 |byte...9|STRB |
|000011f0| 20 52 31 2c 5b 54 61 72 | 67 65 74 5d 2c 23 31 20 | R1,[Tar|get],#1 |
|00001200| 20 20 20 20 20 20 20 20 | 20 20 f4 20 43 6f 70 79 | | . Copy|
|00001210| 20 69 74 20 74 6f 20 54 | 61 72 67 65 74 0d 04 9c | it to T|arget...|
|00001220| 42 54 45 51 20 20 20 20 | 20 20 52 31 2c 23 26 46 |BTEQ | R1,#&F|
|00001230| 46 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |F | |
|00001240| 20 20 20 f4 20 49 73 20 | 69 74 20 6c 61 73 74 20 | . Is |it last |
|00001250| 62 79 74 65 20 6f 66 20 | 70 72 6f 67 72 61 6d 0d |byte of |program.|
|00001260| 04 a6 49 53 54 52 45 51 | 20 20 20 20 54 61 72 67 |..ISTREQ| Targ|
|00001270| 65 74 2c 5b 52 31 33 5d | 20 20 20 20 20 20 20 20 |et,[R13]| |
|00001280| 20 20 20 20 20 f4 20 54 | 68 65 6e 20 72 65 74 75 | . T|hen retu|
|00001290| 72 6e 20 54 61 72 67 65 | 74 20 45 6e 64 20 61 64 |rn Targe|t End ad|
|000012a0| 72 73 20 69 6e 20 52 30 | 0d 04 b0 30 4c 44 4d 45 |rs in R0|...0LDME|
|000012b0| 51 46 44 20 20 52 31 33 | 21 2c 7b 52 30 2d 52 31 |QFD R13|!,{R0-R1|
|000012c0| 32 2c 50 43 7d 5e 20 20 | 20 20 20 20 20 20 f4 20 |2,PC}^ | . |
|000012d0| 61 6e 64 20 65 78 69 74 | 0d 04 ba 04 0d 04 c4 3a |and exit|.......:|
|000012e0| 4c 44 52 42 20 20 20 20 | 20 52 30 2c 5b 53 6f 75 |LDRB | R0,[Sou|
|000012f0| 72 63 65 5d 2c 23 31 20 | 20 20 20 20 20 20 20 20 |rce],#1 | |
|00001300| 20 20 f4 20 52 30 3d 6c | 69 6e 65 20 4e 6f 20 4c | . R0=l|ine No L|
|00001310| 4f 20 62 79 74 65 0d 04 | ce 39 53 54 52 42 20 20 |O byte..|.9STRB |
|00001320| 20 20 20 52 30 2c 5b 54 | 61 72 67 65 74 5d 2c 23 | R0,[T|arget],#|
|00001330| 31 20 20 20 20 20 20 20 | 20 20 20 20 f4 20 43 6f |1 | . Co|
|00001340| 70 79 20 69 74 20 74 6f | 20 54 61 72 67 65 74 0d |py it to| Target.|
|00001350| 04 d8 3d 41 44 44 20 20 | 20 20 20 20 53 6f 75 72 |..=ADD | Sour|
|00001360| 63 65 4c 69 6e 65 4e 6f | 2c 52 30 2c 52 31 2c 4c |ceLineNo|,R0,R1,L|
|00001370| 53 4c 23 38 20 f4 20 43 | 61 6c 63 75 6c 61 74 65 |SL#8 . C|alculate|
|00001380| 20 6c 69 6e 65 20 6e 75 | 6d 62 65 72 0d 04 e2 04 | line nu|mber....|
|00001390| 0d 04 ec 44 4c 44 52 42 | 20 20 20 20 20 52 30 2c |...DLDRB| R0,|
|000013a0| 5b 53 6f 75 72 63 65 5d | 2c 23 31 20 20 20 20 20 |[Source]|,#1 |
|000013b0| 20 20 20 20 20 20 f4 20 | 47 65 74 20 73 6f 75 72 | . |Get sour|
|000013c0| 63 65 20 6c 69 6e 65 20 | 6c 65 6e 67 74 68 20 69 |ce line |length i|
|000013d0| 6e 20 52 30 0d 04 f6 44 | 4d 4f 56 20 20 20 20 20 |n R0...D|MOV |
|000013e0| 20 54 72 67 4c 65 6e 41 | 64 72 2c 54 61 72 67 65 | TrgLenA|dr,Targe|
|000013f0| 74 20 20 20 20 20 20 20 | 20 20 f4 20 72 65 6d 65 |t | . reme|
|00001400| 6d 62 65 72 20 6c 69 6e | 65 20 6c 65 6e 67 74 68 |mber lin|e length|
|00001410| 20 61 64 64 72 65 73 73 | 0d 05 00 48 41 44 44 20 | address|...HADD |
|00001420| 20 20 20 20 20 54 61 72 | 67 65 74 2c 54 61 72 67 | Tar|get,Targ|
|00001430| 65 74 2c 23 31 20 20 20 | 20 20 20 20 20 20 f4 20 |et,#1 | . |
|00001440| 53 6b 69 70 20 74 68 65 | 20 74 61 72 67 65 74 20 |Skip the| target |
|00001450| 6c 69 6e 65 20 6c 65 6e | 67 74 68 20 61 64 72 73 |line len|gth adrs|
|00001460| 0d 05 0a 04 0d 05 14 2b | f4 20 63 68 65 63 6b 20 |.......+|. check |
|00001470| 74 6f 20 73 65 65 20 69 | 66 20 74 68 65 20 6c 69 |to see i|f the li|
|00001480| 6e 65 20 65 6e 64 73 20 | 77 69 74 68 20 26 44 0d |ne ends |with &D.|
|00001490| 05 1e 4d f4 20 65 6c 73 | 65 20 62 61 64 20 73 6f |..M. els|e bad so|
|000014a0| 75 72 63 65 20 70 72 6f | 67 72 61 6d 2e 20 44 6f |urce pro|gram. Do|
|000014b0| 20 74 68 69 73 20 63 68 | 65 63 6b 20 66 6f 72 20 | this ch|eck for |
|000014c0| 65 61 63 68 20 6c 69 6e | 65 20 61 6c 6f 6e 67 20 |each lin|e along |
|000014d0| 74 68 65 20 74 68 65 20 | 77 61 79 2e 0d 05 28 04 |the the |way...(.|
|000014e0| 0d 05 32 28 41 44 44 20 | 20 20 20 20 20 4c 69 6e |..2(ADD | Lin|
|000014f0| 65 45 6e 64 2c 53 6f 75 | 72 63 65 2c 52 30 20 20 |eEnd,Sou|rce,R0 |
|00001500| 20 20 20 20 20 20 f4 20 | 0d 05 3c 4a 53 55 42 20 | . |..<JSUB |
|00001510| 20 20 20 20 20 4c 69 6e | 65 45 6e 64 2c 4c 69 6e | Lin|eEnd,Lin|
|00001520| 65 45 6e 64 2c 23 33 20 | 20 20 20 20 20 20 f4 20 |eEnd,#3 | . |
|00001530| 4c 69 6e 65 45 6e 64 3d | 65 6e 64 20 61 64 64 72 |LineEnd=|end addr|
|00001540| 65 73 73 20 6f 66 20 73 | 6f 75 72 63 65 20 6c 69 |ess of s|ource li|
|00001550| 6e 65 0d 05 46 40 4c 44 | 52 42 20 20 20 20 20 52 |ne..F@LD|RB R|
|00001560| 30 2c 5b 4c 69 6e 65 45 | 6e 64 2c 23 2d 31 5d 20 |0,[LineE|nd,#-1] |
|00001570| 20 20 20 20 20 20 20 20 | f4 20 47 65 74 20 74 68 | |. Get th|
|00001580| 65 20 62 79 74 65 20 61 | 74 20 6c 69 6e 65 20 65 |e byte a|t line e|
|00001590| 6e 64 0d 05 50 52 54 45 | 51 20 20 20 20 20 20 52 |nd..PRTE|Q R|
|000015a0| 30 2c 23 31 33 20 20 20 | 20 20 20 20 20 20 20 20 |0,#13 | |
|000015b0| 20 20 20 20 20 20 20 20 | f4 20 49 66 20 6e 6f 74 | |. If not|
|000015c0| 20 26 44 2c 20 74 68 65 | 6e 20 73 75 62 2d 72 6f | &D, the|n sub-ro|
|000015d0| 75 74 69 6e 65 20 68 61 | 73 20 73 63 72 65 77 65 |utine ha|s screwe|
|000015e0| 64 2d 75 70 0d 05 5a 55 | 42 4e 45 20 20 20 20 20 |d-up..ZU|BNE |
|000015f0| 20 42 61 64 50 72 6f 67 | 20 20 20 20 20 20 20 20 | BadProg| |
|00001600| 20 20 20 20 20 20 20 20 | 20 20 f4 20 53 6f 20 65 | | . So e|
|00001610| 72 72 6f 72 2c 20 61 20 | 62 75 67 20 69 73 20 64 |rror, a |bug is d|
|00001620| 69 73 63 6f 76 65 72 65 | 64 20 69 6e 20 73 75 62 |iscovere|d in sub|
|00001630| 2d 72 6f 75 74 69 6e 65 | 21 0d 05 64 04 0d 05 6e |-routine|!..d...n|
|00001640| 4f 4d 4f 56 20 20 20 20 | 20 20 4c 69 6e 65 53 74 |OMOV | LineSt|
|00001650| 61 72 74 2c 53 6f 75 72 | 63 65 20 20 20 20 20 20 |art,Sour|ce |
|00001660| 20 20 20 f4 20 4c 69 6e | 65 53 74 61 72 74 20 3d | . Lin|eStart =|
|00001670| 73 74 61 72 74 20 61 64 | 64 72 65 73 73 20 6f 66 |start ad|dress of|
|00001680| 20 73 6f 75 72 63 65 20 | 6c 69 6e 65 0d 05 78 46 | source |line..xF|
|00001690| 42 4c 20 20 20 20 20 20 | 20 43 6f 6e 76 65 72 74 |BL | Convert|
|000016a0| 4f 50 54 5f 53 75 62 5f | 52 6f 75 74 69 6e 65 20 |OPT_Sub_|Routine |
|000016b0| 20 20 f4 20 43 61 6c 6c | 20 73 75 62 2d 72 6f 75 | . Call| sub-rou|
|000016c0| 74 69 6e 65 20 66 6f 72 | 20 6f 6e 65 20 6c 69 6e |tine for| one lin|
|000016d0| 65 2e 0d 05 82 43 4d 4f | 56 20 20 20 20 20 20 53 |e....CMO|V S|
|000016e0| 6f 75 72 63 65 2c 4c 69 | 6e 65 45 6e 64 20 20 20 |ource,Li|neEnd |
|000016f0| 20 20 20 20 20 20 20 20 | f4 20 73 6f 75 72 63 65 | |. source|
|00001700| 20 61 64 64 72 65 73 73 | 20 6f 66 20 6e 65 78 74 | address| of next|
|00001710| 20 6c 69 6e 65 0d 05 8c | 20 53 55 42 20 20 20 20 | line...| SUB |
|00001720| 20 20 52 31 2c 54 61 72 | 67 65 74 2c 54 72 67 4c | R1,Tar|get,TrgL|
|00001730| 65 6e 41 64 72 0d 05 96 | 3d 41 44 44 20 20 20 20 |enAdr...|=ADD |
|00001740| 20 20 52 31 2c 52 31 2c | 23 32 20 20 20 20 20 20 | R1,R1,|#2 |
|00001750| 20 20 20 20 20 20 20 20 | 20 20 20 f4 20 52 31 3d | | . R1=|
|00001760| 74 61 72 67 65 74 20 6c | 69 6e 65 20 6c 65 6e 67 |target l|ine leng|
|00001770| 74 68 0d 05 a0 1b 53 54 | 52 42 20 20 20 20 20 52 |th....ST|RB R|
|00001780| 31 2c 5b 54 72 67 4c 65 | 6e 41 64 72 5d 0d 05 aa |1,[TrgLe|nAdr]...|
|00001790| 16 42 20 20 20 20 20 20 | 20 20 4d 61 69 6e 5f 4c |.B | Main_L|
|000017a0| 6f 6f 70 0d 05 b4 28 f4 | 3d 3d 3d 3d 3d 3d 3d 3d |oop...(.|========|
|000017b0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000017c0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 0d 05 be 0c 2e |========|===.....|
|000017d0| 42 61 64 50 72 6f 67 0d | 05 c8 41 4d 4f 56 20 20 |BadProg.|..AMOV |
|000017e0| 20 20 20 20 52 31 2c 23 | 30 20 20 20 20 20 20 20 | R1,#|0 |
|000017f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 f4 20 65 | | . e|
|00001800| 72 72 6f 72 20 30 20 3d | 20 63 6f 72 72 75 70 74 |rror 0 =| corrupt|
|00001810| 20 70 72 6f 67 72 61 6d | 0d 05 d2 18 2e 66 61 69 | program|.....fai|
|00001820| 6c 65 64 5f 72 65 74 75 | 72 6e 5f 65 72 72 6f 72 |led_retu|rn_error|
|00001830| 0d 05 dc 36 4d 4f 56 20 | 20 20 20 20 20 52 30 2c |...6MOV | R0,|
|00001840| 53 6f 75 72 63 65 4c 69 | 6e 65 4e 6f 20 20 20 20 |SourceLi|neNo |
|00001850| 20 20 20 20 20 20 f4 20 | 52 30 3d 6c 69 6e 65 20 | . |R0=line |
|00001860| 6e 75 6d 62 65 72 0d 05 | e6 45 4d 4f 56 20 20 20 |number..|.EMOV |
|00001870| 20 20 20 52 30 2c 52 30 | 2c 4c 53 4c 20 23 38 20 | R0,R0|,LSL #8 |
|00001880| 20 20 20 20 20 20 20 20 | 20 20 20 20 f4 20 4c 69 | | . Li|
|00001890| 6e 65 20 6e 75 6d 62 65 | 72 73 20 69 6e 20 62 79 |ne numbe|rs in by|
|000018a0| 74 65 73 20 31 20 61 6e | 64 20 32 0d 05 f0 35 84 |tes 1 an|d 2...5.|
|000018b0| 52 20 20 20 20 20 20 52 | 30 2c 52 30 2c 23 31 3c |R R|0,R0,#1<|
|000018c0| 3c 33 31 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |<31 | |
|000018d0| f4 20 49 6e 64 69 63 61 | 74 65 20 65 72 72 6f 72 |. Indica|te error|
|000018e0| 0d 05 fa 3a 84 52 20 20 | 20 20 20 20 52 30 2c 52 |...:.R | R0,R|
|000018f0| 30 2c 52 31 20 20 20 20 | 20 20 20 20 20 20 20 20 |0,R1 | |
|00001900| 20 20 20 20 20 f4 20 72 | 65 74 75 72 6e 20 65 72 | . r|eturn er|
|00001910| 72 6f 72 20 6e 75 6d 62 | 65 72 0d 06 04 15 53 54 |ror numb|er....ST|
|00001920| 52 20 20 20 20 20 20 52 | 30 2c 5b 52 31 33 5d 0d |R R|0,[R13].|
|00001930| 06 0e 1e 4c 44 4d 46 44 | 20 20 20 20 52 31 33 21 |...LDMFD| R13!|
|00001940| 2c 7b 52 30 2d 52 31 32 | 2c 50 43 7d 5e 0d 06 18 |,{R0-R12|,PC}^...|
|00001950| 56 f4 20 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |V. =====|========|
|00001960| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00001970| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00001980| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00001990| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000019a0| 3d 3d 3d 0d 06 22 4a f4 | 20 54 68 65 20 66 6f 6c |===.."J.| The fol|
|000019b0| 6c 6f 77 69 6e 67 20 69 | 73 20 61 20 73 75 62 2d |lowing i|s a sub-|
|000019c0| 72 6f 75 74 69 6e 65 20 | 74 68 61 74 20 70 72 6f |routine |that pro|
|000019d0| 63 65 73 73 65 73 20 6f | 6e 65 20 6c 69 6e 65 20 |cesses o|ne line |
|000019e0| 6f 66 20 74 68 65 20 73 | 6f 75 72 63 65 0d 06 2c |of the s|ource..,|
|000019f0| 35 f4 20 70 72 6f 67 72 | 61 6d 2e 20 59 6f 75 20 |5. progr|am. You |
|00001a00| 63 61 6e 20 72 65 70 6c | 61 63 65 20 69 74 20 77 |can repl|ace it w|
|00001a10| 69 74 68 20 79 6f 75 72 | 20 6f 77 6e 20 63 6f 64 |ith your| own cod|
|00001a20| 65 2e 0d 06 36 05 f4 0d | 06 40 40 f4 20 4f 6e 20 |e...6...|.@@. On |
|00001a30| 65 6e 74 72 79 20 20 20 | 53 6f 75 72 63 65 20 20 |entry |Source |
|00001a40| 20 20 2d 20 70 6f 69 6e | 74 73 20 61 74 20 74 68 | - poin|ts at th|
|00001a50| 65 20 73 74 61 72 74 20 | 6f 66 20 73 6f 75 72 63 |e start |of sourc|
|00001a60| 65 20 6c 69 6e 65 2e 0d | 06 4a 56 f4 20 3d 3d 3d |e line..|.JV. ===|
|00001a70| 3d 3d 3d 3d 3d 20 20 20 | 4c 69 6e 65 53 74 61 72 |===== |LineStar|
|00001a80| 74 20 2d 20 70 6f 69 6e | 74 73 20 61 74 20 73 74 |t - poin|ts at st|
|00001a90| 61 72 74 20 6f 66 20 73 | 6f 75 72 63 65 20 6c 69 |art of s|ource li|
|00001aa0| 6e 65 20 28 61 66 74 65 | 72 20 6c 69 6e 65 20 6e |ne (afte|r line n|
|00001ab0| 6f 2e 20 61 6e 64 20 6c | 65 6e 67 74 68 0d 06 54 |o. and l|ength..T|
|00001ac0| 3d f4 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |=. | |
|00001ad0| 20 20 20 20 20 20 20 20 | 20 20 62 79 74 65 73 29 | | bytes)|
|00001ae0| 2c 69 2e 65 20 73 74 61 | 72 74 20 6f 66 20 61 63 |,i.e sta|rt of ac|
|00001af0| 74 75 61 6c 20 64 61 74 | 61 2e 0d 06 5e 48 f4 20 |tual dat|a...^H. |
|00001b00| 20 20 20 20 20 20 20 20 | 20 20 20 4c 69 6e 65 45 | | LineE|
|00001b10| 6e 64 20 20 20 2d 20 70 | 6f 69 6e 74 73 20 61 74 |nd - p|oints at|
|00001b20| 20 74 68 65 20 65 6e 64 | 20 6f 66 20 73 6f 75 72 | the end| of sour|
|00001b30| 63 65 20 6c 69 6e 65 20 | 28 61 66 74 65 72 20 26 |ce line |(after &|
|00001b40| 44 29 0d 06 68 56 f4 20 | 20 20 20 20 20 20 20 20 |D)..hV. | |
|00001b50| 20 20 20 54 61 72 67 65 | 74 20 20 20 20 2d 20 70 | Targe|t - p|
|00001b60| 6f 69 6e 74 73 20 61 74 | 20 73 74 61 72 74 20 6f |oints at| start o|
|00001b70| 66 20 54 61 72 67 65 74 | 20 6c 69 6e 65 20 28 61 |f Target| line (a|
|00001b80| 66 74 65 72 20 6c 69 6e | 65 20 6e 6f 2e 20 61 6e |fter lin|e no. an|
|00001b90| 64 20 6c 65 6e 67 74 68 | 0d 06 72 40 f4 20 20 20 |d length|..r@. |
|00001ba0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001bb0| 20 20 20 20 20 62 79 74 | 65 73 29 2c 69 2e 65 20 | byt|es),i.e |
|00001bc0| 73 74 61 72 74 20 61 64 | 72 73 20 74 6f 20 73 74 |start ad|rs to st|
|00001bd0| 6f 72 65 20 64 61 74 61 | 0d 06 7c 05 f4 0d 06 86 |ore data|..|.....|
|00001be0| 40 f4 20 4f 6e 20 65 78 | 69 74 20 20 20 20 4c 69 |@. On ex|it Li|
|00001bf0| 6e 65 53 74 61 72 74 20 | 2d 20 55 70 64 61 74 65 |neStart |- Update|
|00001c00| 64 20 74 6f 20 70 6f 69 | 6e 74 20 61 74 20 73 6f |d to poi|nt at so|
|00001c10| 75 72 63 65 20 6c 69 6e | 65 20 65 6e 64 0d 06 90 |urce lin|e end...|
|00001c20| 40 f4 20 3d 3d 3d 3d 3d | 3d 3d 20 20 20 20 54 61 |@. =====|== Ta|
|00001c30| 72 67 65 74 20 20 20 20 | 2d 20 55 70 64 61 74 65 |rget |- Update|
|00001c40| 64 20 74 6f 20 70 6f 69 | 6e 74 20 61 74 20 54 61 |d to poi|nt at Ta|
|00001c50| 72 67 65 74 20 6c 69 6e | 65 20 65 6e 64 0d 06 9a |rget lin|e end...|
|00001c60| 26 f4 20 20 20 20 20 20 | 20 20 20 20 20 20 53 6f |&. | So|
|00001c70| 75 72 63 65 20 20 20 20 | 2d 20 70 72 65 73 65 72 |urce |- preser|
|00001c80| 76 65 64 0d 06 a4 26 f4 | 20 20 20 20 20 20 20 20 |ved...&.| |
|00001c90| 20 20 20 20 4c 69 6e 65 | 45 6e 64 20 20 20 2d 20 | Line|End - |
|00001ca0| 70 72 65 73 65 72 76 65 | 64 0d 06 ae 55 f4 20 3d |preserve|d...U. =|
|00001cb0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00001cc0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00001cd0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00001ce0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00001cf0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 0d 06 |========|======..|
|00001d00| b8 05 f4 0d 06 c2 04 0d | 06 cc 1b 2e 43 6f 6e 76 |........|....Conv|
|00001d10| 65 72 74 4f 50 54 5f 53 | 75 62 5f 52 6f 75 74 69 |ertOPT_S|ub_Routi|
|00001d20| 6e 65 0d 06 d6 17 53 54 | 4d 46 44 20 20 20 20 52 |ne....ST|MFD R|
|00001d30| 31 33 21 2c 7b 52 31 34 | 7d 0d 06 e0 3d 42 49 43 |13!,{R14|}...=BIC|
|00001d40| 20 20 20 20 20 20 46 6c | 61 67 73 2c 46 6c 61 67 | Fl|ags,Flag|
|00001d50| 73 2c 23 51 75 6f 74 65 | 73 5f 42 69 74 20 20 f4 |s,#Quote|s_Bit .|
|00001d60| 20 43 6c 65 61 72 20 74 | 68 65 20 71 75 6f 74 65 | Clear t|he quote|
|00001d70| 73 20 66 6c 61 67 0d 06 | ea 04 0d 06 f4 16 2e 53 |s flag..|.......S|
|00001d80| 6b 69 70 4c 65 61 64 69 | 6e 67 53 70 61 63 65 73 |kipLeadi|ngSpaces|
|00001d90| 0d 06 fe 33 4c 44 52 42 | 20 20 20 20 20 52 30 2c |...3LDRB| R0,|
|00001da0| 5b 4c 69 6e 65 53 74 61 | 72 74 5d 20 20 20 20 20 |[LineSta|rt] |
|00001db0| 20 20 20 20 20 20 20 f4 | 20 67 65 74 20 61 20 62 | .| get a b|
|00001dc0| 79 74 65 0d 07 08 33 54 | 45 51 20 20 20 20 20 20 |yte...3T|EQ |
|00001dd0| 52 30 2c 23 97 22 20 22 | 20 20 20 20 20 20 20 20 |R0,#." "| |
|00001de0| 20 20 20 20 20 20 20 20 | f4 20 69 73 20 69 74 20 | |. is it |
|00001df0| 73 70 61 63 65 3f 0d 07 | 12 1b 53 54 52 45 51 42 |space?..|..STREQB|
|00001e00| 20 20 20 52 30 2c 5b 54 | 61 72 67 65 74 5d 2c 23 | R0,[T|arget],#|
|00001e10| 31 0d 07 1c 55 41 44 44 | 45 51 20 20 20 20 4c 69 |1...UADD|EQ Li|
|00001e20| 6e 65 53 74 61 72 74 2c | 4c 69 6e 65 53 74 61 72 |neStart,|LineStar|
|00001e30| 74 2c 23 31 20 20 20 20 | f4 20 74 68 65 6e 20 63 |t,#1 |. then c|
|00001e40| 6f 70 79 20 69 74 20 28 | 74 68 69 73 20 72 6f 75 |opy it (|this rou|
|00001e50| 74 69 6e 65 20 64 6f 65 | 73 27 6e 74 20 73 6b 69 |tine doe|s'nt ski|
|00001e60| 70 20 73 70 73 29 0d 07 | 26 1e 42 45 51 20 20 20 |p sps)..|&.BEQ |
|00001e70| 20 20 20 53 6b 69 70 4c | 65 61 64 69 6e 67 53 70 | SkipL|eadingSp|
|00001e80| 61 63 65 73 0d 07 30 04 | 0d 07 3a 35 54 45 51 20 |aces..0.|..:5TEQ |
|00001e90| 20 20 20 20 20 52 30 2c | 23 26 44 43 20 20 20 20 | R0,|#&DC |
|00001ea0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 f4 | | .|
|00001eb0| 20 49 66 20 44 41 54 41 | 20 6c 69 6e 65 0d 07 44 | If DATA| line..D|
|00001ec0| 34 54 45 51 4e 45 20 20 | 20 20 52 30 2c 23 26 46 |4TEQNE | R0,#&F|
|00001ed0| 34 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |4 | |
|00001ee0| 20 20 20 20 f4 20 6f 72 | 20 52 45 4d 20 6c 69 6e | . or| REM lin|
|00001ef0| 65 0d 07 4e 4a 42 45 51 | 20 20 20 20 20 20 43 6f |e..NJBEQ| Co|
|00001f00| 70 79 41 6c 6c 4c 69 6e | 65 20 20 20 20 20 20 20 |pyAllLin|e |
|00001f10| 20 20 20 20 20 20 20 20 | f4 20 74 68 65 6e 20 63 | |. then c|
|00001f20| 6f 70 79 20 74 68 65 20 | 77 68 6f 6c 65 20 6c 69 |opy the |whole li|
|00001f30| 6e 65 20 61 6e 64 20 65 | 78 69 74 0d 07 58 04 0d |ne and e|xit..X..|
|00001f40| 07 62 11 2e 47 65 74 5f | 4f 6e 65 5f 42 79 74 65 |.b..Get_|One_Byte|
|00001f50| 0d 07 6c 34 4c 44 52 42 | 20 20 20 20 20 52 30 2c |..l4LDRB| R0,|
|00001f60| 5b 4c 69 6e 65 53 74 61 | 72 74 5d 2c 23 31 20 20 |[LineSta|rt],#1 |
|00001f70| 20 20 20 20 20 20 20 20 | f4 20 67 65 74 20 61 20 | |. get a |
|00001f80| 62 79 74 65 0d 07 76 3c | 53 54 52 42 20 20 20 20 |byte..v<|STRB |
|00001f90| 20 52 30 2c 5b 54 61 72 | 67 65 74 5d 2c 23 31 20 | R0,[Tar|get],#1 |
|00001fa0| 20 20 20 20 20 20 20 20 | 20 20 20 20 f4 20 53 74 | | . St|
|00001fb0| 6f 72 65 20 69 74 20 69 | 6e 20 54 61 72 67 65 74 |ore it i|n Target|
|00001fc0| 0d 07 80 04 0d 07 8a 39 | 54 45 51 20 20 20 20 20 |.......9|TEQ |
|00001fd0| 20 52 30 2c 23 26 32 32 | 20 20 20 20 20 20 20 20 | R0,#&22| |
|00001fe0| 20 20 20 20 20 20 20 20 | 20 20 20 20 f4 20 57 61 | | . Wa|
|00001ff0| 73 20 69 74 20 61 20 71 | 75 6f 74 65 3f 0d 07 94 |s it a q|uote?...|
|00002000| 43 82 45 51 20 20 20 20 | 46 6c 61 67 73 2c 46 6c |C.EQ |Flags,Fl|
|00002010| 61 67 73 2c 23 51 75 6f | 74 65 73 5f 42 69 74 20 |ags,#Quo|tes_Bit |
|00002020| 20 20 20 f4 20 59 65 73 | 2c 20 74 68 65 6e 20 74 | . Yes|, then t|
|00002030| 6f 67 67 6c 65 20 71 75 | 6f 74 65 20 66 6c 61 67 |oggle qu|ote flag|
|00002040| 0d 07 9e 3b 42 45 51 20 | 20 20 20 20 20 47 65 74 |...;BEQ | Get|
|00002050| 5f 4f 6e 65 5f 42 79 74 | 65 20 20 20 20 20 20 20 |_One_Byt|e |
|00002060| 20 20 20 20 20 20 20 20 | f4 20 61 6e 64 20 67 65 | |. and ge|
|00002070| 74 20 6e 65 78 74 20 62 | 79 74 65 0d 07 a8 04 0d |t next b|yte.....|
|00002080| 07 b2 47 54 45 51 20 20 | 20 20 20 20 52 30 2c 23 |..GTEQ | R0,#|
|00002090| 31 33 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |13 | |
|000020a0| 20 20 20 20 20 20 20 f4 | 20 57 61 73 20 69 74 20 | .| Was it |
|000020b0| 65 6e 64 20 6f 66 20 6c | 69 6e 65 20 28 69 2e 65 |end of l|ine (i.e|
|000020c0| 2e 20 26 44 29 3f 0d 07 | bc 43 42 45 51 20 20 20 |. &D)?..|.CBEQ |
|000020d0| 20 20 20 49 73 49 74 45 | 6e 64 4f 66 4c 69 6e 65 | IsItE|ndOfLine|
|000020e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 f4 20 | | . |
|000020f0| 59 65 73 2c 20 73 6f 20 | 63 68 65 63 6b 20 65 6e |Yes, so |check en|
|00002100| 64 20 6f 66 20 6c 69 6e | 65 0d 07 c6 04 0d 07 d0 |d of lin|e.......|
|00002110| 44 54 53 54 20 20 20 20 | 20 20 46 6c 61 67 73 2c |DTST | Flags,|
|00002120| 23 51 75 6f 74 65 73 5f | 42 69 74 20 20 20 20 20 |#Quotes_|Bit |
|00002130| 20 20 20 20 20 f4 20 41 | 72 65 20 77 65 20 73 74 | . A|re we st|
|00002140| 69 6c 6c 20 69 6e 73 69 | 64 65 20 71 75 6f 74 65 |ill insi|de quote|
|00002150| 73 0d 07 da 3f 42 4e 45 | 20 20 20 20 20 20 47 65 |s...?BNE| Ge|
|00002160| 74 5f 4f 6e 65 5f 42 79 | 74 65 20 20 20 20 20 20 |t_One_By|te |
|00002170| 20 20 20 20 20 20 20 20 | 20 f4 20 59 65 73 2c 20 | | . Yes, |
|00002180| 73 6f 20 67 65 74 20 6e | 65 78 74 20 62 79 74 65 |so get n|ext byte|
|00002190| 0d 07 e4 04 0d 07 ee 25 | f4 20 3d 3d 3d 3d 3d 20 |.......%|. ===== |
|000021a0| 54 68 69 73 20 69 73 20 | 6d 79 20 63 6f 64 65 20 |This is |my code |
|000021b0| 3d 3d 3d 3d 3d 3d 3d 3d | 5c 0d 07 f8 29 f4 20 43 |========|\...). C|
|000021c0| 6f 6e 76 65 72 74 73 20 | 52 49 47 48 54 24 28 61 |onverts |RIGHT$(a|
|000021d0| 24 2c 31 29 20 54 4f 20 | 52 49 47 48 54 24 28 61 |$,1) TO |RIGHT$(a|
|000021e0| 24 29 0d 08 02 04 0d 08 | 0c 36 43 4d 50 20 20 20 |$)......|.6CMP |
|000021f0| 20 20 20 52 30 2c 23 26 | 43 32 20 20 20 20 20 20 | R0,#&|C2 |
|00002200| 20 20 20 f4 20 63 68 65 | 63 6b 20 66 6f 72 20 52 | . che|ck for R|
|00002210| 49 47 48 54 24 28 20 74 | 6f 6b 65 6e 0d 08 16 32 |IGHT$( t|oken...2|
|00002220| 42 4e 45 20 20 20 20 20 | 20 49 73 49 74 45 6e 64 |BNE | IsItEnd|
|00002230| 4f 66 4c 69 6e 65 20 20 | 20 f4 20 69 66 20 6e 6f |OfLine | . if no|
|00002240| 74 20 74 68 65 6e 20 67 | 65 74 20 6f 75 74 0d 08 |t then g|et out..|
|00002250| 20 04 0d 08 2a 4e f4 20 | 73 74 72 75 63 74 75 72 | ...*N. |structur|
|00002260| 65 20 66 6f 72 20 4c 45 | 46 54 24 20 61 6e 64 20 |e for LE|FT$ and |
|00002270| 52 49 47 48 54 24 20 69 | 73 20 69 64 65 6e 74 69 |RIGHT$ i|s identi|
|00002280| 63 61 6c 2c 20 73 6f 20 | 77 65 20 63 61 6e 20 75 |cal, so |we can u|
|00002290| 73 65 20 74 68 65 20 73 | 61 6d 65 20 63 6f 64 65 |se the s|ame code|
|000022a0| 0d 08 34 04 0d 08 3e 3e | 54 45 51 20 20 20 20 20 |..4...>>|TEQ |
|000022b0| 20 46 6c 61 67 73 2c 23 | 51 75 6f 74 65 73 5f 42 | Flags,#|Quotes_B|
|000022c0| 69 74 20 20 20 20 20 20 | 20 20 20 20 f4 20 61 72 |it | . ar|
|000022d0| 65 20 77 65 20 69 6e 73 | 69 64 65 20 71 75 6f 74 |e we ins|ide quot|
|000022e0| 65 73 0d 08 48 40 42 4c | 4e 45 20 20 20 20 20 53 |es..H@BL|NE S|
|000022f0| 6b 69 70 53 70 61 63 65 | 73 20 20 20 20 20 20 20 |kipSpace|s |
|00002300| 20 20 20 20 20 20 20 20 | 20 20 f4 20 69 66 20 6e | | . if n|
|00002310| 6f 74 20 73 6b 69 70 20 | 61 6e 79 20 73 70 61 63 |ot skip |any spac|
|00002320| 65 73 0d 08 52 04 0d 08 | 5c 0f 2e 63 6f 6d 6d 61 |es..R...|\..comma|
|00002330| 5f 66 69 6e 64 0d 08 66 | 34 4c 44 52 42 20 20 20 |_find..f|4LDRB |
|00002340| 20 20 52 30 2c 5b 4c 69 | 6e 65 53 74 61 72 74 5d | R0,[Li|neStart]|
|00002350| 2c 23 31 20 20 20 20 20 | 20 20 20 20 20 f4 20 67 |,#1 | . g|
|00002360| 65 74 20 61 20 62 79 74 | 65 0d 08 70 3c 53 54 52 |et a byt|e..p<STR|
|00002370| 42 20 20 20 20 20 52 30 | 2c 5b 54 61 72 67 65 74 |B R0|,[Target|
|00002380| 5d 2c 23 31 20 20 20 20 | 20 20 20 20 20 20 20 20 |],#1 | |
|00002390| 20 f4 20 53 74 6f 72 65 | 20 69 74 20 69 6e 20 54 | . Store| it in T|
|000023a0| 61 72 67 65 74 0d 08 7a | 43 4d 4f 56 20 20 20 20 |arget..z|CMOV |
|000023b0| 20 20 52 32 2c 4c 69 6e | 65 53 74 61 72 74 20 20 | R2,Lin|eStart |
|000023c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 f4 20 73 | | . s|
|000023d0| 74 6f 72 65 20 62 61 73 | 65 20 66 6f 72 20 69 66 |tore bas|e for if|
|000023e0| 20 65 78 69 74 69 6e 67 | 0d 08 84 04 0d 08 8e 3e | exiting|.......>|
|000023f0| 54 45 51 20 20 20 20 20 | 20 46 6c 61 67 73 2c 23 |TEQ | Flags,#|
|00002400| 51 75 6f 74 65 73 5f 42 | 69 74 20 20 20 20 20 20 |Quotes_B|it |
|00002410| 20 20 20 20 f4 20 61 72 | 65 20 77 65 20 69 6e 73 | . ar|e we ins|
|00002420| 69 64 65 20 71 75 6f 74 | 65 73 0d 08 98 40 42 4c |ide quot|es...@BL|
|00002430| 4e 45 20 20 20 20 20 53 | 6b 69 70 53 70 61 63 65 |NE S|kipSpace|
|00002440| 73 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |s | |
|00002450| 20 20 f4 20 69 66 20 6e | 6f 74 20 73 6b 69 70 20 | . if n|ot skip |
|00002460| 61 6e 79 20 73 70 61 63 | 65 73 0d 08 a2 04 0d 08 |any spac|es......|
|00002470| ac 38 54 45 51 20 20 20 | 20 20 20 52 30 2c 23 26 |.8TEQ | R0,#&|
|00002480| 32 32 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |22 | |
|00002490| 20 20 20 20 20 20 f4 20 | 57 61 73 20 69 74 20 61 | . |Was it a|
|000024a0| 20 71 75 6f 74 65 0d 08 | b6 43 82 45 51 20 20 20 | quote..|.C.EQ |
|000024b0| 20 46 6c 61 67 73 2c 46 | 6c 61 67 73 2c 23 51 75 | Flags,F|lags,#Qu|
|000024c0| 6f 74 65 73 5f 42 69 74 | 20 20 20 20 f4 20 59 65 |otes_Bit| . Ye|
|000024d0| 73 2c 20 74 68 65 6e 20 | 74 6f 67 67 6c 65 20 71 |s, then |toggle q|
|000024e0| 75 6f 74 65 20 66 6c 61 | 67 0d 08 c0 39 42 45 51 |uote fla|g...9BEQ|
|000024f0| 20 20 20 20 20 20 63 6f | 6d 6d 61 5f 66 69 6e 64 | co|mma_find|
|00002500| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002510| 20 f4 20 69 66 20 73 6f | 20 74 68 65 6e 20 6c 6f | . if so| then lo|
|00002520| 6f 70 0d 08 ca 04 0d 08 | d4 34 54 45 51 20 20 20 |op......|.4TEQ |
|00002530| 20 20 20 52 30 2c 23 26 | 44 20 20 20 20 20 20 20 | R0,#&|D |
|00002540| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 f4 20 | | . |
|00002550| 57 61 73 20 69 74 20 45 | 4f 4c 0d 08 de 46 ec 51 |Was it E|OL...F.Q|
|00002560| 20 20 20 20 4c 69 6e 65 | 53 74 61 72 74 2c 52 32 | Line|Start,R2|
|00002570| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 f4 | | .|
|00002580| 20 69 66 20 73 6f 20 74 | 68 65 6e 20 72 65 73 74 | if so t|hen rest|
|00002590| 6f 72 65 20 72 65 61 64 | 20 70 6f 69 6e 74 65 72 |ore read| pointer|
|000025a0| 0d 08 e8 42 42 45 51 20 | 20 20 20 20 20 49 73 49 |...BBEQ | IsI|
|000025b0| 74 45 6e 64 4f 66 4c 69 | 6e 65 20 20 20 20 20 20 |tEndOfLi|ne |
|000025c0| 20 20 20 20 20 20 20 20 | f4 20 69 66 20 73 6f 20 | |. if so |
|000025d0| 74 68 65 6e 20 6c 65 61 | 76 65 20 74 65 73 74 69 |then lea|ve testi|
|000025e0| 6e 67 0d 08 f2 04 0d 08 | fc 35 54 45 51 20 20 20 |ng......|.5TEQ |
|000025f0| 20 20 20 52 30 2c 23 97 | 22 2c 22 20 20 20 20 20 | R0,#.|"," |
|00002600| 20 20 20 20 20 20 20 20 | 20 20 20 20 f4 20 69 73 | | . is|
|00002610| 20 69 74 20 61 20 63 6f | 6d 6d 61 0d 09 06 3a 42 | it a co|mma...:B|
|00002620| 4e 45 20 20 20 20 20 20 | 63 6f 6d 6d 61 5f 66 69 |NE |comma_fi|
|00002630| 6e 64 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |nd | |
|00002640| 20 20 20 f4 20 69 66 20 | 6e 6f 74 20 74 68 65 6e | . if |not then|
|00002650| 20 6c 6f 6f 70 0d 09 10 | 45 54 45 51 45 51 20 20 | loop...|ETEQEQ |
|00002660| 20 20 46 6c 61 67 73 2c | 23 51 75 6f 74 65 73 5f | Flags,|#Quotes_|
|00002670| 42 69 74 20 20 20 20 20 | 20 20 20 20 20 f4 20 69 |Bit | . i|
|00002680| 66 20 73 6f 2c 20 61 72 | 65 20 77 65 20 69 6e 73 |f so, ar|e we ins|
|00002690| 69 64 65 20 71 75 6f 74 | 65 73 0d 09 1a 39 42 45 |ide quot|es...9BE|
|000026a0| 51 20 20 20 20 20 20 63 | 6f 6d 6d 61 5f 66 69 6e |Q c|omma_fin|
|000026b0| 64 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |d | |
|000026c0| 20 20 f4 20 69 66 20 73 | 6f 20 74 68 65 6e 20 6c | . if s|o then l|
|000026d0| 6f 6f 70 0d 09 24 04 0d | 09 2e 4a f4 20 68 65 72 |oop..$..|..J. her|
|000026e0| 65 2c 20 77 65 20 68 61 | 76 65 20 6a 75 73 74 20 |e, we ha|ve just |
|000026f0| 63 6f 70 69 65 64 20 61 | 63 72 6f 73 73 20 61 20 |copied a|cross a |
|00002700| 63 6f 6d 6d 61 20 61 6e | 64 20 69 74 20 69 73 20 |comma an|d it is |
|00002710| 6e 6f 74 20 69 6e 73 69 | 64 65 20 71 75 6f 74 65 |not insi|de quote|
|00002720| 73 0d 09 38 04 0d 09 42 | 34 4c 44 52 42 20 20 20 |s..8...B|4LDRB |
|00002730| 20 20 52 30 2c 5b 4c 69 | 6e 65 53 74 61 72 74 5d | R0,[Li|neStart]|
|00002740| 2c 23 31 20 20 20 20 20 | 20 20 20 20 20 f4 20 67 |,#1 | . g|
|00002750| 65 74 20 61 20 62 79 74 | 65 0d 09 4c 31 54 45 51 |et a byt|e..L1TEQ|
|00002760| 20 20 20 20 20 20 52 30 | 2c 23 97 22 31 22 20 20 | R0|,#."1" |
|00002770| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 f4 | | .|
|00002780| 20 69 73 20 69 74 20 61 | 20 31 0d 09 56 4a 4d 4f | is it a| 1..VJMO|
|00002790| 56 4e 45 20 20 20 20 4c | 69 6e 65 53 74 61 72 74 |VNE L|ineStart|
|000027a0| 2c 52 32 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |,R2 | |
|000027b0| 20 20 f4 20 69 66 20 6e | 6f 74 20 74 68 65 6e 20 | . if n|ot then |
|000027c0| 72 65 73 74 6f 72 65 20 | 72 65 61 64 20 70 6f 69 |restore |read poi|
|000027d0| 6e 74 65 72 0d 09 60 43 | 42 4e 45 20 20 20 20 20 |nter..`C|BNE |
|000027e0| 20 49 73 49 74 45 6e 64 | 4f 66 4c 69 6e 65 20 20 | IsItEnd|OfLine |
|000027f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 f4 20 69 66 | | . if|
|00002800| 20 6e 6f 74 20 74 68 65 | 6e 20 6c 65 61 76 65 20 | not the|n leave |
|00002810| 74 65 73 74 69 6e 67 0d | 09 6a 04 0d 09 74 3e 54 |testing.|.j...t>T|
|00002820| 45 51 20 20 20 20 20 20 | 46 6c 61 67 73 2c 23 51 |EQ |Flags,#Q|
|00002830| 75 6f 74 65 73 5f 42 69 | 74 20 20 20 20 20 20 20 |uotes_Bi|t |
|00002840| 20 20 20 f4 20 61 72 65 | 20 77 65 20 69 6e 73 69 | . are| we insi|
|00002850| 64 65 20 71 75 6f 74 65 | 73 0d 09 7e 40 42 4c 4e |de quote|s..~@BLN|
|00002860| 45 20 20 20 20 20 53 6b | 69 70 53 70 61 63 65 73 |E Sk|ipSpaces|
|00002870| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002880| 20 f4 20 69 66 20 6e 6f | 74 20 73 6b 69 70 20 61 | . if no|t skip a|
|00002890| 6e 79 20 73 70 61 63 65 | 73 0d 09 88 04 0d 09 92 |ny space|s.......|
|000028a0| 34 4c 44 52 42 20 20 20 | 20 20 52 30 2c 5b 4c 69 |4LDRB | R0,[Li|
|000028b0| 6e 65 53 74 61 72 74 5d | 2c 23 31 20 20 20 20 20 |neStart]|,#1 |
|000028c0| 20 20 20 20 20 f4 20 67 | 65 74 20 61 20 62 79 74 | . g|et a byt|
|000028d0| 65 0d 09 9c 31 54 45 51 | 20 20 20 20 20 20 52 30 |e...1TEQ| R0|
|000028e0| 2c 23 97 22 29 22 20 20 | 20 20 20 20 20 20 20 20 |,#.")" | |
|000028f0| 20 20 20 20 20 20 20 f4 | 20 69 73 20 69 74 20 61 | .| is it a|
|00002900| 20 29 0d 09 a6 4a 4d 4f | 56 4e 45 20 20 20 20 4c | )...JMO|VNE L|
|00002910| 69 6e 65 53 74 61 72 74 | 2c 52 32 20 20 20 20 20 |ineStart|,R2 |
|00002920| 20 20 20 20 20 20 20 20 | 20 20 f4 20 69 66 20 6e | | . if n|
|00002930| 6f 74 20 74 68 65 6e 20 | 72 65 73 74 6f 72 65 20 |ot then |restore |
|00002940| 72 65 61 64 20 70 6f 69 | 6e 74 65 72 0d 09 b0 43 |read poi|nter...C|
|00002950| 42 4e 45 20 20 20 20 20 | 20 49 73 49 74 45 6e 64 |BNE | IsItEnd|
|00002960| 4f 66 4c 69 6e 65 20 20 | 20 20 20 20 20 20 20 20 |OfLine | |
|00002970| 20 20 20 20 f4 20 69 66 | 20 6e 6f 74 20 74 68 65 | . if| not the|
|00002980| 6e 20 6c 65 61 76 65 20 | 74 65 73 74 69 6e 67 0d |n leave |testing.|
|00002990| 09 ba 04 0d 09 c4 4d 53 | 55 42 20 20 20 20 20 20 |......MS|UB |
|000029a0| 54 61 72 67 65 74 2c 54 | 61 72 67 65 74 2c 23 31 |Target,T|arget,#1|
|000029b0| 20 20 20 20 20 20 20 20 | 20 20 20 f4 20 6d 6f 76 | | . mov|
|000029c0| 65 20 62 61 63 6b 20 73 | 6f 20 6f 76 65 72 20 63 |e back s|o over c|
|000029d0| 6f 6d 6d 61 20 69 6e 20 | 64 65 73 74 20 6d 65 6d |omma in |dest mem|
|000029e0| 0d 09 ce 3a 4d 4f 56 20 | 20 20 20 20 20 52 30 2c |...:MOV | R0,|
|000029f0| 23 97 22 29 22 20 20 20 | 20 20 20 20 20 20 20 20 |#.")" | |
|00002a00| 20 20 20 20 20 20 f4 20 | 6f 76 65 72 77 72 69 74 | . |overwrit|
|00002a10| 65 20 77 69 74 68 20 61 | 20 29 0d 09 d8 37 53 54 |e with a| )...7ST|
|00002a20| 52 42 20 20 20 20 20 52 | 30 2c 5b 54 61 72 67 65 |RB R|0,[Targe|
|00002a30| 74 5d 2c 23 31 20 20 20 | 20 20 20 20 20 20 20 20 |t],#1 | |
|00002a40| 20 20 f4 20 73 74 6f 72 | 65 20 62 72 61 63 6b 65 | . stor|e bracke|
|00002a50| 74 0d 09 e2 04 0d 09 ec | 04 0d 09 f6 04 0d 0a 00 |t.......|........|
|00002a60| 04 0d 0a 0a 04 0d 0a 14 | 04 0d 0a 1e 2b f4 3d 3d |........|....+.==|
|00002a70| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00002a80| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00002a90| 3d 3d 3d 5c 0d 0a 28 04 | 0d 0a 32 04 0d 0a 3c 12 |===\..(.|..2...<.|
|00002aa0| 2e 49 73 49 74 45 6e 64 | 4f 66 4c 69 6e 65 0d 0a |.IsItEnd|OfLine..|
|00002ab0| 46 52 43 4d 50 20 20 20 | 20 20 20 4c 69 6e 65 53 |FRCMP | LineS|
|00002ac0| 74 61 72 74 2c 4c 69 6e | 65 45 6e 64 20 20 20 20 |tart,Lin|eEnd |
|00002ad0| 20 20 20 20 20 20 f4 20 | 44 69 64 20 77 65 20 72 | . |Did we r|
|00002ae0| 65 61 63 68 20 74 68 65 | 20 65 6e 64 20 6f 66 20 |each the| end of |
|00002af0| 74 68 65 20 73 6f 75 72 | 63 65 20 6c 69 6e 65 3f |the sour|ce line?|
|00002b00| 0d 0a 50 41 42 4c 4f 20 | 20 20 20 20 20 47 65 74 |..PABLO | Get|
|00002b10| 5f 4f 6e 65 5f 42 79 74 | 65 20 20 20 20 20 20 20 |_One_Byt|e |
|00002b20| 20 20 20 20 20 20 20 20 | f4 20 4e 6f 3f 20 73 6f | |. No? so|
|00002b30| 20 67 65 74 20 61 6e 6f | 74 68 65 72 20 62 79 74 | get ano|ther byt|
|00002b40| 65 0d 0a 5a 3f 4c 44 4d | 46 44 20 20 20 20 52 31 |e..Z?LDM|FD R1|
|00002b50| 33 21 2c 7b 50 43 7d 5e | 20 20 20 20 20 20 20 20 |3!,{PC}^| |
|00002b60| 20 20 20 20 20 20 20 20 | 20 f4 20 45 6c 73 65 20 | | . Else |
|00002b70| 6f 6e 65 20 6c 69 6e 65 | 20 69 73 20 64 6f 6e 65 |one line| is done|
|00002b80| 0d 0a 64 04 0d 0a 6e 0f | 2e 53 6b 69 70 53 70 61 |..d...n.|.SkipSpa|
|00002b90| 63 65 73 0d 0a 78 17 53 | 54 4d 46 44 20 20 20 20 |ces..x.S|TMFD |
|00002ba0| 52 31 33 21 2c 7b 52 31 | 34 7d 0d 0a 82 12 2e 53 |R13!,{R1|4}.....S|
|00002bb0| 6b 69 70 53 70 61 63 65 | 73 5f 4c 70 0d 0a 8c 1c |kipSpace|s_Lp....|
|00002bc0| 4c 44 52 42 20 20 20 20 | 20 52 31 34 2c 5b 4c 69 |LDRB | R14,[Li|
|00002bd0| 6e 65 53 74 61 72 74 5d | 0d 0a 96 16 54 45 51 20 |neStart]|....TEQ |
|00002be0| 20 20 20 20 20 52 31 34 | 2c 23 97 22 20 22 0d 0a | R14|,#." "..|
|00002bf0| a0 23 41 44 44 45 51 20 | 20 20 20 4c 69 6e 65 53 |.#ADDEQ | LineS|
|00002c00| 74 61 72 74 2c 4c 69 6e | 65 53 74 61 72 74 2c 23 |tart,Lin|eStart,#|
|00002c10| 31 0d 0a aa 1a 42 45 51 | 20 20 20 20 20 20 53 6b |1....BEQ| Sk|
|00002c20| 69 70 53 70 61 63 65 73 | 5f 4c 70 0d 0a b4 17 4c |ipSpaces|_Lp....L|
|00002c30| 44 4d 46 44 20 20 20 20 | 52 31 33 21 2c 7b 50 43 |DMFD |R13!,{PC|
|00002c40| 7d 5e 0d 0a be 04 0d 0a | c8 2a f4 20 2d 2d 2d 2d |}^......|.*. ----|
|00002c50| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002c60| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002c70| 0d 0a d2 27 f4 20 54 68 | 65 20 66 6f 6c 6c 6f 77 |...'. Th|e follow|
|00002c80| 69 6e 67 20 73 75 62 2d | 72 6f 75 74 69 6e 65 20 |ing sub-|routine |
|00002c90| 69 73 20 75 73 65 64 0d | 0a dc 29 f4 20 74 6f 20 |is used.|..). to |
|00002ca0| 63 6f 70 79 20 74 68 65 | 20 72 65 73 74 20 6f 66 |copy the| rest of|
|00002cb0| 20 74 68 65 20 73 6f 75 | 72 63 65 20 6c 69 6e 65 | the sou|rce line|
|00002cc0| 0d 0a e6 2b f4 20 74 6f | 20 74 68 65 20 54 61 72 |...+. to| the Tar|
|00002cd0| 67 65 74 20 61 6e 64 20 | 72 65 74 75 72 6e 73 20 |get and |returns |
|00002ce0| 74 6f 20 74 68 65 20 6d | 61 69 6e 0d 0a f0 0e f4 |to the m|ain.....|
|00002cf0| 20 70 72 6f 67 72 61 6d | 2e 0d 0a fa 28 f4 20 55 | program|....(. U|
|00002d00| 73 65 20 69 74 20 77 68 | 65 6e 20 79 6f 75 20 65 |se it wh|en you e|
|00002d10| 6e 63 6f 75 6e 74 65 72 | 20 61 20 52 45 4d 20 6f |ncounter| a REM o|
|00002d20| 72 0d 0b 04 28 f4 20 44 | 41 54 41 20 73 74 61 74 |r...(. D|ATA stat|
|00002d30| 65 6d 65 6e 74 20 69 6e | 20 74 68 65 20 73 6f 75 |ement in| the sou|
|00002d40| 72 63 65 20 6c 69 6e 65 | 2e 0d 0b 0e 2a f4 20 2d |rce line|....*. -|
|00002d50| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002d60| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002d70| 2d 2d 2d 0d 0b 18 04 0d | 0b 22 10 2e 43 6f 70 79 |---.....|."..Copy|
|00002d80| 41 6c 6c 4c 69 6e 65 0d | 0b 2c 1e 4c 44 52 42 20 |AllLine.|.,.LDRB |
|00002d90| 20 20 20 20 52 30 2c 5b | 4c 69 6e 65 53 74 61 72 | R0,[|LineStar|
|00002da0| 74 5d 2c 23 31 0d 0b 36 | 1b 53 54 52 42 20 20 20 |t],#1..6|.STRB |
|00002db0| 20 20 52 30 2c 5b 54 61 | 72 67 65 74 5d 2c 23 31 | R0,[Ta|rget],#1|
|00002dc0| 0d 0b 40 1e 43 4d 50 20 | 20 20 20 20 20 4c 69 6e |..@.CMP | Lin|
|00002dd0| 65 53 74 61 72 74 2c 4c | 69 6e 65 45 6e 64 0d 0b |eStart,L|ineEnd..|
|00002de0| 4a 18 42 4c 4f 20 20 20 | 20 20 20 43 6f 70 79 41 |J.BLO | CopyA|
|00002df0| 6c 6c 4c 69 6e 65 0d 0b | 54 17 4c 44 4d 46 44 20 |llLine..|T.LDMFD |
|00002e00| 20 20 20 52 31 33 21 2c | 7b 50 43 7d 5e 0d 0b 5e | R13!,|{PC}^..^|
|00002e10| 04 0d 0b 68 0e 2e 63 6f | 70 79 72 69 67 68 74 0d |...h..co|pyright.|
|00002e20| 0b 72 27 45 51 55 53 20 | 22 a9 20 44 61 76 69 64 |.r'EQUS |". David|
|00002e30| 20 53 68 61 72 70 20 39 | 74 68 20 4d 61 72 63 68 | Sharp 9|th March|
|00002e40| 20 31 39 39 37 22 0d 0b | 7c 32 45 51 55 53 20 22 | 1997"..||2EQUS "|
|00002e50| 43 6f 72 72 65 63 74 65 | 64 20 32 31 2f 30 36 2f |Correcte|d 21/06/|
|00002e60| 31 39 39 37 20 62 79 20 | 4d 6f 68 73 65 6e 20 41 |1997 by |Mohsen A|
|00002e70| 6c 73 68 61 79 65 66 22 | 0d 0b 86 09 41 4c 49 47 |lshayef"|....ALIG|
|00002e80| 4e 0d 0b 90 04 0d 0b 9a | 05 5d 0d 0b a4 05 ed 0d |N.......|.]......|
|00002e90| 0b ae 05 e1 0d ff | |...... | |
+--------+-------------------------+-------------------------+--------+--------+