home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Programming / Basic / bb_exa.dms / in.adf / amigamode / ARexx / bpaint.bb < prev    next >
Unknown  |  1995-10-19  |  3.9 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
100% file data default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 80 13 20 61 72 65 78 78 | 72 65 73 2e 62 62 00 00 |.. arexx|res.bb..|
|00000010| 80 cc 00 80 04 20 61 72 | 67 24 28 33 32 29 00 80 |..... ar|g$(32)..|
|00000020| 04 20 61 72 67 28 33 32 | 29 00 3b 2d 2d 20 42 6c |. arg(32|).;-- Bl|
|00000030| 69 74 7a 20 50 61 69 6e | 74 2c 20 41 20 42 61 72 |itz Pain|t, A Bar|
|00000040| 66 79 20 70 61 69 6e 74 | 20 70 72 6f 67 72 61 6d |fy paint| program|
|00000050| 6d 65 20 77 69 74 68 20 | 61 20 41 72 65 78 78 20 |me with |a Arexx |
|00000060| 69 6e 74 65 72 66 61 63 | 65 00 00 3b 46 49 58 45 |interfac|e..;FIXE|
|00000070| 53 20 2d 2d 00 3b 49 20 | 68 61 76 65 20 63 6f 6e |S --.;I |have con|
|00000080| 76 65 72 74 65 64 20 74 | 68 65 20 6c 6f 6f 70 20 |verted t|he loop |
|00000090| 74 6f 20 61 20 72 65 70 | 65 61 74 20 75 6e 74 69 |to a rep|eat unti|
|000000a0| 6c 20 6c 6f 6f 70 20 77 | 68 69 63 68 20 77 6f 72 |l loop w|hich wor|
|000000b0| 6b 73 20 62 65 74 74 65 | 72 00 3b 49 20 68 61 76 |ks bette|r.;I hav|
|000000c0| 65 20 6d 6f 76 65 64 20 | 74 68 65 20 77 61 69 74 |e moved |the wait|
|000000d0| 20 69 6e 74 6f 20 74 68 | 69 73 20 6c 6f 6f 70 20 | into th|is loop |
|000000e0| 54 48 49 53 20 49 53 20 | 57 45 52 45 20 49 54 20 |THIS IS |WERE IT |
|000000f0| 53 48 4f 55 4c 44 20 42 | 45 21 21 00 3b 49 20 68 |SHOULD B|E!!.;I h|
|00000100| 61 76 65 20 61 73 73 69 | 67 6e 65 64 20 65 76 2e |ave assi|gned ev.|
|00000110| 6c 20 73 6f 20 74 68 61 | 74 20 77 65 20 63 61 6e |l so tha|t we can|
|00000120| 20 61 63 74 20 6f 6e 20 | 74 68 65 20 69 6e 74 75 | act on |the intu|
|00000130| 69 6d 65 73 73 61 67 65 | 73 20 61 73 20 77 65 6c |imessage|s as wel|
|00000140| 6c 00 3b 49 20 68 61 76 | 65 20 75 73 65 64 20 49 |l.;I hav|e used I|
|00000150| 73 52 65 78 78 4d 73 67 | 28 29 20 73 6f 20 77 65 |sRexxMsg|() so we|
|00000160| 20 6f 6e 6c 79 20 72 65 | 61 63 74 20 74 6f 20 52 | only re|act to R|
|00000170| 65 78 78 4d 73 67 20 28 | 77 65 20 63 6f 75 6c 64 |exxMsg (|we could|
|00000180| 20 67 65 74 20 61 6e 79 | 74 68 69 6e 67 20 68 65 | get any|thing he|
|00000190| 72 65 3f 29 00 3b 49 20 | 68 61 76 65 20 61 64 64 |re?).;I |have add|
|000001a0| 65 64 20 65 72 72 6f 72 | 20 63 68 65 63 6b 69 6e |ed error| checkin|
|000001b0| 67 20 73 6f 20 74 68 61 | 74 20 77 65 20 6f 6e 6c |g so tha|t we onl|
|000001c0| 79 20 61 74 74 65 6d 70 | 74 20 74 6f 20 67 65 74 |y attemp|t to get|
|000001d0| 00 3b 74 68 65 20 72 65 | 73 75 6c 74 20 73 74 72 |.;the re|sult str|
|000001e0| 69 6e 67 20 77 68 65 6e | 20 74 68 65 72 65 20 69 |ing when| there i|
|000001f0| 73 20 6f 6e 65 20 61 6e | 64 20 6f 6e 6c 79 20 72 |s one an|d only r|
|00000200| 65 70 6c 79 20 74 6f 20 | 6d 65 73 73 61 67 65 73 |eply to |messages|
|00000210| 20 74 68 61 74 20 72 65 | 71 75 69 72 65 20 69 74 | that re|quire it|
|00000220| 00 3b 6f 74 68 65 72 77 | 69 73 65 20 77 65 20 67 |.;otherw|ise we g|
|00000230| 6f 20 61 72 6f 75 6e 64 | 20 69 6e 20 63 69 72 63 |o around| in circ|
|00000240| 6c 65 73 00 3b 49 20 68 | 61 76 65 20 61 64 64 65 |les.;I h|ave adde|
|00000250| 64 20 24 34 30 30 20 74 | 6f 20 74 68 65 20 77 69 |d $400 t|o the wi|
|00000260| 6e 64 6f 77 20 66 6c 61 | 67 73 20 73 6f 20 77 65 |ndow fla|gs so we|
|00000270| 20 63 61 6e 27 74 20 64 | 72 61 77 20 6f 76 65 72 | can't d|raw over|
|00000280| 20 74 68 65 20 62 6f 72 | 64 65 72 73 00 3b 49 20 | the bor|ders.;I |
|00000290| 68 61 76 65 20 61 64 64 | 65 64 20 61 20 77 68 69 |have add|ed a whi|
|000002a0| 6c 65 20 6c 6f 6f 70 20 | 74 6f 20 74 68 65 20 64 |le loop |to the d|
|000002b0| 72 61 77 20 72 6f 75 74 | 69 6e 65 20 74 6f 20 6b |raw rout|ine to k|
|000002c0| 65 65 70 20 69 74 20 67 | 6f 69 6e 67 20 61 73 20 |eep it g|oing as |
|000002d0| 79 6f 75 20 6f 6e 6c 79 | 20 67 65 74 20 6f 6e 65 |you only| get one|
|000002e0| 20 6d 73 67 20 70 65 72 | 20 61 64 76 65 6e 74 20 | msg per| advent |
|000002f0| 77 69 74 68 20 42 42 32 | 00 3b 49 20 43 4f 55 4c |with BB2|.;I COUL|
|00000300| 44 20 4e 4f 54 20 45 56 | 45 4e 20 47 45 54 20 59 |D NOT EV|EN GET Y|
|00000310| 4f 55 52 20 45 58 41 4d | 50 4c 45 53 20 54 4f 20 |OUR EXAM|PLES TO |
|00000320| 43 52 41 53 48 3f 20 20 | 49 20 64 6f 6e 74 20 6b |CRASH? |I dont k|
|00000330| 6e 6f 77 20 77 68 61 74 | 20 77 61 73 20 67 6f 69 |now what| was goi|
|00000340| 6e 67 20 6f 6e 20 74 68 | 65 72 65 3f 20 57 6f 72 |ng on th|ere? Wor|
|00000350| 72 69 65 73 20 6d 65 20 | 61 62 69 74 21 00 00 00 |ries me |abit!...|
|00000360| 00 00 3b 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |..;*****|********|
|00000370| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000380| 2a 20 66 75 6e 63 74 69 | 6f 6e 73 20 61 6e 64 20 |* functi|ons and |
|00000390| 73 74 61 74 65 6d 65 6e | 74 73 20 2a 2a 2a 2a 2a |statemen|ts *****|
|000003a0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000003b0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000003c0| 2a 2a 2a 2a 2a 2a 00 00 | 80 08 20 72 65 71 73 69 |******..|.. reqsi|
|000003d0| 6e 67 6c 65 7b 74 69 24 | 2c 74 65 78 24 2c 74 65 |ngle{ti$|,tex$,te|
|000003e0| 78 32 24 2c 74 65 78 33 | 24 2c 74 65 78 34 7d 00 |x2$,tex3|$,tex4}.|
|000003f0| c6 01 20 31 2c 32 30 30 | 2c 34 38 2c 30 2c 31 2c |.. 1,200|,48,0,1,|
|00000400| 22 54 48 41 4e 4b 53 21 | 22 00 c5 01 20 31 2c 38 |"THANKS!|"... 1,8|
|00000410| 30 2c 31 38 32 2c 34 38 | 30 2c 36 34 2c 24 31 30 |0,182,48|0,64,$10|
|00000420| 30 32 2c 74 69 24 2c 31 | 2c 32 2c 31 00 c5 10 20 |02,ti$,1|,2,1... |
|00000430| 38 2c 36 00 dd 81 20 dc | 96 28 74 65 78 24 2c 35 |8,6... .|.(tex$,5|
|00000440| 37 29 00 c5 10 20 38 2c | 31 36 00 dd 81 20 dc 96 |7)... 8,|16... ..|
|00000450| 28 74 65 78 32 24 2c 35 | 37 29 00 c5 10 20 38 2c |(tex2$,5|7)... 8,|
|00000460| 32 36 00 dd 81 20 dc 96 | 28 74 65 78 33 24 2c 35 |26... ..|(tex3$,5|
|00000470| 37 29 00 80 0b 20 74 69 | 24 3d 22 41 52 65 78 78 |7)... ti|$="ARexx|
|00000480| 20 45 72 72 6f 72 22 00 | 20 20 c5 10 20 32 36 36 | Error".| .. 266|
|00000490| 2c 32 36 3a dd 81 20 74 | 65 78 34 00 80 c0 00 80 |,26:.. t|ex4.....|
|000004a0| bb 00 20 20 80 bb 00 20 | 20 20 20 77 65 76 2e 6c |.. ... | wev.l|
|000004b0| 3d c5 02 00 20 20 80 bc | 20 c5 05 3d 31 00 20 20 |=... ..| ..=1. |
|000004c0| 80 0b 20 77 65 76 3d 36 | 34 00 20 20 20 20 80 0b |.. wev=6|4. ..|
|000004d0| 20 c5 04 3d 31 20 80 21 | 20 80 05 20 65 6e 64 66 | ..=1 .!| .. endf|
|000004e0| 75 6e 63 00 20 20 80 c0 | 00 20 20 80 0b 20 65 76 |unc. ..|. .. ev|
|000004f0| 3d 24 34 30 30 00 20 20 | 20 20 69 24 3d dd 02 00 |=$400. | i$=...|
|00000500| 20 20 20 20 80 0b 20 69 | 24 3d dc 86 28 31 33 29 | .. i|$=..(13)|
|00000510| 20 80 21 20 80 05 20 65 | 6e 64 66 75 6e 63 00 20 | .! .. e|ndfunc. |
|00000520| 20 80 c0 00 80 c7 00 00 | 65 6e 64 66 75 6e 63 00 | .......|endfunc.|
|00000530| 80 2b 20 c5 01 20 31 3a | 80 2c 20 c5 01 20 30 00 |.+ .. 1:|., .. 0.|
|00000540| 80 02 20 80 08 00 00 80 | 08 20 62 72 65 61 6b 6f |.. .....|. breako|
|00000550| 75 74 7b 63 6f 6d 6d 61 | 6e 64 24 7d 00 80 15 20 |ut{comma|nd$}... |
|00000560| 61 72 67 6e 75 6d 00 80 | 15 20 61 72 67 24 28 29 |argnum..|. arg$()|
|00000570| 00 3b 6e 75 6d 73 70 61 | 63 65 3d 30 00 3b 73 74 |.;numspa|ce=0.;st|
|00000580| 65 70 20 31 20 69 64 65 | 6e 74 69 66 79 20 6e 75 |ep 1 ide|ntify nu|
|00000590| 6d 62 65 72 20 6f 66 20 | 61 72 67 75 6d 65 6e 74 |mber of |argument|
|000005a0| 73 20 6e 6f 74 20 6e 65 | 65 64 65 64 20 63 6f 73 |s not ne|eded cos|
|000005b0| 20 6f 66 20 62 75 67 3f | 00 3b 46 6f 72 20 63 6f | of bug?|.;For co|
|000005c0| 75 6e 74 20 3d 20 30 20 | 54 6f 20 4c 65 6e 28 63 |unt = 0 |To Len(c|
|000005d0| 6f 6d 6d 61 6e 64 24 29 | 00 3b 20 20 49 66 20 4d |ommand$)|.; If M|
|000005e0| 69 64 24 28 63 6f 6d 6d | 61 6e 64 24 2c 63 6f 75 |id$(comm|and$,cou|
|000005f0| 6e 74 2c 31 29 3d 43 68 | 72 24 28 33 32 29 00 3b |nt,1)=Ch|r$(32).;|
|00000600| 20 20 20 6e 75 6d 73 70 | 61 63 65 2b 31 00 3b 20 | numsp|ace+1.; |
|00000610| 20 45 6e 64 49 66 00 3b | 4e 65 78 74 20 63 6f 75 | EndIf.;|Next cou|
|00000620| 6e 74 00 3b 44 69 6d 20 | 61 72 67 24 28 6e 75 6d |nt.;Dim |arg$(num|
|00000630| 73 70 61 63 65 29 20 20 | 20 20 20 20 20 20 20 20 |space) | |
|00000640| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000650| 20 20 3b 64 79 6e 61 6d | 69 63 61 6c 6c 79 20 61 | ;dynam|ically a|
|00000660| 6c 6c 6f 63 61 74 65 20 | 61 72 67 75 6d 65 6e 74 |llocate |argument|
|00000670| 20 61 72 72 61 72 79 29 | 00 00 3b 72 69 67 68 74 | arrary)|..;right|
|00000680| 20 6e 6f 77 20 73 65 70 | 65 72 61 74 65 20 74 68 | now sep|erate th|
|00000690| 65 20 6c 69 6c 20 62 61 | 72 73 74 61 72 64 73 00 |e lil ba|rstards.|
|000006a0| 61 72 67 6e 75 6d 3d 30 | 20 20 20 20 20 20 20 20 |argnum=0| |
|000006b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000006c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 3b 52 | | ;R|
|000006d0| 45 53 45 54 20 61 72 67 | 6e 75 6d 00 77 6f 72 64 |ESET arg|num.word|
|000006e0| 70 6f 73 20 3d 20 30 20 | 20 20 20 20 20 20 20 20 |pos = 0 | |
|000006f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000700| 20 20 20 20 20 20 20 20 | 20 20 3b 69 6e 74 65 72 | | ;inter|
|00000710| 6e 61 6c 20 77 6f 72 64 | 70 6f 73 69 74 69 6f 6e |nal word|position|
|00000720| 20 63 6f 75 6e 74 65 72 | 00 80 16 20 63 6f 75 6e | counter|... coun|
|00000730| 74 3d 20 30 20 80 18 20 | dc 8f 28 63 6f 6d 6d 61 |t= 0 .. |..(comma|
|00000740| 6e 64 24 29 20 20 20 20 | 20 20 20 20 20 20 20 20 |nd$) | |
|00000750| 20 20 20 20 20 3b 6c 6f | 6f 70 20 66 6f 72 20 65 | ;lo|op for e|
|00000760| 61 63 68 20 63 68 61 72 | 61 63 74 65 72 00 20 20 |ach char|acter. |
|00000770| 80 0b 20 dc 83 28 63 6f | 6d 6d 61 6e 64 24 2c 77 |.. ..(co|mmand$,w|
|00000780| 6f 72 64 70 6f 73 2c 31 | 29 3d dc 86 28 33 32 29 |ordpos,1|)=..(32)|
|00000790| 20 20 20 20 20 20 20 20 | 3b 61 72 65 20 77 65 20 | |;are we |
|000007a0| 61 74 20 65 6e 64 20 6f | 66 20 77 6f 72 64 00 20 |at end o|f word. |
|000007b0| 20 20 20 61 72 67 24 28 | 61 72 67 6e 75 6d 29 3d | arg$(|argnum)=|
|000007c0| dc 81 28 63 6f 6d 6d 61 | 6e 64 24 2c 28 77 6f 72 |..(comma|nd$,(wor|
|000007d0| 64 70 6f 73 2d 31 29 29 | 20 20 3b 79 65 70 20 74 |dpos-1))| ;yep t|
|000007e0| 68 65 6e 20 67 72 61 62 | 20 77 6f 72 64 20 69 6e |hen grab| word in|
|000007f0| 74 6f 20 61 72 72 61 79 | 00 20 20 20 20 63 6f 6d |to array|. com|
|00000800| 6d 61 6e 64 24 3d dc 91 | 28 63 6f 6d 6d 61 6e 64 |mand$=..|(command|
|00000810| 24 2c 77 6f 72 64 70 6f | 73 29 20 20 20 20 20 20 |$,wordpo|s) |
|00000820| 20 3b 61 6e 64 20 72 65 | 6d 6f 76 65 20 69 74 20 | ;and re|move it |
|00000830| 66 72 6f 6d 20 63 6f 6d | 6d 61 6e 64 24 00 20 20 |from com|mand$. |
|00000840| 20 20 61 72 67 6e 75 6d | 2b 31 20 20 20 20 20 20 | argnum|+1 |
|00000850| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000860| 20 20 20 20 20 20 20 20 | 20 20 20 20 3b 75 70 74 | | ;upt|
|00000870| 6f 20 6e 65 78 74 20 62 | 69 74 20 69 6e 20 61 72 |o next b|it in ar|
|00000880| 72 61 79 00 20 20 20 20 | 77 6f 72 64 70 6f 73 3d |ray. |wordpos=|
|00000890| 30 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |0 | |
|000008a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000008b0| 20 20 3b 72 65 73 65 74 | 20 77 6f 72 64 6c 65 6e | ;reset| wordlen|
|000008c0| 67 74 68 20 63 6f 75 6e | 74 65 72 00 20 20 80 c0 |gth coun|ter. ..|
|000008d0| 00 20 77 6f 72 64 70 6f | 73 2b 31 20 20 20 20 20 |. wordpo|s+1 |
|000008e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000008f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 3b | | ;|
|00000900| 6e 6f 74 20 61 74 20 65 | 6e 64 20 6f 66 20 77 6f |not at e|nd of wo|
|00000910| 72 64 20 73 6f 20 69 6e | 63 20 77 6f 72 64 6c 65 |rd so in|c wordle|
|00000920| 6e 67 74 68 00 80 17 20 | 63 6f 75 6e 74 20 20 20 |ngth... |count |
|00000930| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000940| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000950| 20 3b 61 6e 64 20 6c 6f | 6f 70 20 61 67 61 69 6e | ;and lo|op again|
|00000960| 00 61 72 67 24 28 61 72 | 67 6e 75 6d 29 3d 63 6f |.arg$(ar|gnum)=co|
|00000970| 6d 6d 61 6e 64 24 20 20 | 20 20 20 20 20 20 20 20 |mmand$ | |
|00000980| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 3b | | ;|
|00000990| 74 6f 20 67 65 74 20 68 | 65 72 65 20 6d 75 73 74 |to get h|ere must|
|000009a0| 20 68 61 76 65 20 70 72 | 6f 63 65 73 73 65 64 20 | have pr|ocessed |
|000009b0| 61 6c 6c 20 73 70 61 63 | 65 73 21 00 80 02 20 80 |all spac|es!... .|
|000009c0| 08 00 00 3b 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |...;****|********|
|000009d0| 20 74 68 65 20 70 72 6f | 67 72 61 6d 6d 65 20 2a | the pro|gramme *|
|000009e0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000009f0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 00 |********|*******.|
|00000a00| 2e 73 65 74 75 70 00 cf | 01 20 30 2c 31 30 2c 22 |.setup..|. 0,10,"|
|00000a10| 42 4c 49 54 5a 70 61 69 | 6e 74 20 20 28 70 6f 72 |BLITZpai|nt (por|
|00000a20| 74 20 6e 61 6d 65 20 42 | 50 41 49 4e 54 32 29 22 |t name B|PAINT2)"|
|00000a30| 00 c5 01 20 30 2c 31 32 | 30 2c 31 32 2c 34 30 30 |... 0,12|0,12,400|
|00000a40| 2c 31 35 30 2c 24 38 7c | 24 34 30 30 2c 22 42 6c |,150,$8||$400,"Bl|
|00000a50| 69 74 7a 70 61 69 6e 74 | 22 2c 30 2c 31 2c 30 00 |itzpaint|",0,1,0.|
|00000a60| c5 1f 20 30 00 c5 12 20 | 30 00 00 2e 72 65 78 78 |.. 0... |0...rexx|
|00000a70| 73 74 75 66 66 00 3b 2d | 2d 20 54 68 65 20 61 72 |stuff.;-|- The ar|
|00000a80| 65 78 78 20 69 6e 74 65 | 72 66 61 63 65 00 70 6f |exx inte|rface.po|
|00000a90| 72 74 2e 6c 3d e1 01 28 | 22 42 50 41 49 4e 54 32 |rt.l=..(|"BPAINT2|
|00000aa0| 22 29 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |") | |
|00000ab0| 20 20 20 20 3b 4f 70 65 | 6e 20 6f 75 72 20 6d 65 | ;Ope|n our me|
|00000ac0| 73 73 61 67 65 20 70 6f | 72 74 00 6d 73 67 70 74 |ssage po|rt.msgpt|
|00000ad0| 72 2e 6c 3d ae 01 28 70 | 6f 72 74 2c 22 72 65 78 |r.l=..(p|ort,"rex|
|00000ae0| 78 22 2c 22 42 50 41 49 | 4e 54 32 22 29 20 20 20 |x","BPAI|NT2") |
|00000af0| 20 3b 43 72 65 61 74 65 | 20 6f 75 72 20 72 65 78 | ;Create| our rex|
|00000b00| 78 6d 73 67 20 73 74 72 | 75 63 74 75 72 65 00 ae |xmsg str|ucture..|
|00000b10| 07 20 6d 73 67 70 74 72 | 2c 22 64 68 30 3a 62 62 |. msgptr|,"dh0:bb|
|00000b20| 32 2f 66 69 6e 61 6c 72 | 65 78 78 2f 6d 79 73 74 |2/finalr|exx/myst|
|00000b30| 75 66 66 2f 72 6f 67 65 | 72 33 22 2c 23 52 58 43 |uff/roge|r3",#RXC|
|00000b40| 4f 4d 4d 7c 23 52 58 46 | 46 5f 52 45 53 55 4c 54 |OMM|#RXF|F_RESULT|
|00000b50| 00 00 80 bb 00 20 20 e1 | 03 3a 65 76 2e 6c 3d c5 |..... .|.:ev.l=.|
|00000b60| 03 00 20 20 72 6d 73 67 | 2e 6c 3d fe ba 28 70 6f |.. rmsg|.l=..(po|
|00000b70| 72 74 29 00 20 20 80 0b | 20 ae 0d 28 72 6d 73 67 |rt). ..| ..(rmsg|
|00000b80| 29 20 80 21 20 80 06 20 | 68 61 6e 64 6c 65 72 65 |) .! .. |handlere|
|00000b90| 78 78 00 20 20 80 0b 20 | 65 76 20 3d 20 24 38 3a |xx. .. |ev = $8:|
|00000ba0| 80 0c 20 c5 03 20 3d 20 | 4e 55 4c 4c 3a c5 0b 20 |.. .. = |NULL:.. |
|00000bb0| c5 1a 2c c5 1b 2c 31 3a | 80 c1 3a 80 c0 00 80 bc |..,..,1:|..:.....|
|00000bc0| 20 65 76 20 3d 20 24 32 | 30 30 00 80 02 00 00 68 | ev = $2|00.....h|
|00000bd0| 61 6e 64 6c 65 72 65 78 | 78 00 20 20 80 0b 20 ae |andlerex|x. .. .|
|00000be0| 0d 28 72 6d 73 67 29 00 | 00 20 20 20 20 80 0b 20 |.(rmsg).|. .. |
|00000bf0| ae 09 28 72 6d 73 67 2c | 31 29 00 20 20 20 20 20 |..(rmsg,|1). |
|00000c00| 20 74 65 78 32 24 3d 22 | 45 72 72 6f 72 3a 20 22 | tex2$="|Error: "|
|00000c10| 2b ae 0e 28 ae 09 28 72 | 6d 73 67 2c 32 29 29 00 |+..(..(r|msg,2)).|
|00000c20| 20 20 20 20 20 20 74 65 | 78 33 24 3d 22 53 45 56 | te|x3$="SEV|
|00000c30| 45 52 49 54 59 3a 20 22 | 00 20 20 20 20 20 20 74 |ERITY: "|. t|
|00000c40| 65 78 34 3d ae 09 28 72 | 6d 73 67 2c 31 29 00 20 |ex4=..(r|msg,1). |
|00000c50| 20 20 20 20 20 72 65 71 | 73 69 6e 67 6c 65 20 7b | req|single {|
|00000c60| 22 41 52 65 78 78 20 45 | 72 72 6f 72 22 2c 22 59 |"ARexx E|rror","Y|
|00000c70| 6f 75 72 20 53 63 72 69 | 70 74 20 68 61 73 20 74 |our Scri|pt has t|
|00000c80| 65 72 6d 69 6e 61 74 65 | 64 20 77 69 74 68 22 2c |erminate|d with",|
|00000c90| 74 65 78 32 24 2c 74 65 | 78 33 24 2c 74 65 78 34 |tex2$,te|x3$,tex4|
|00000ca0| 7d 00 20 20 20 20 20 20 | 3b 52 65 74 75 72 6e 00 |}. |;Return.|
|00000cb0| 20 20 20 20 80 c0 00 00 | 20 20 20 20 80 0b 20 ae | ....| .. .|
|00000cc0| 09 28 72 6d 73 67 2c 32 | 29 20 3e 20 32 35 36 00 |.(rmsg,2|) > 256.|
|00000cd0| 20 20 20 20 20 20 20 20 | 74 65 78 32 24 3d ae 0b | |tex2$=..|
|00000ce0| 28 72 6d 73 67 29 00 20 | 20 20 20 20 20 20 20 72 |(rmsg). | r|
|00000cf0| 65 71 73 69 6e 67 6c 65 | 7b 22 53 63 72 69 70 74 |eqsingle|{"Script|
|00000d00| 20 52 65 73 75 6c 74 22 | 2c 22 59 6f 75 72 20 53 | Result"|,"Your S|
|00000d10| 63 72 69 70 74 20 72 65 | 73 75 6c 74 20 69 73 22 |cript re|sult is"|
|00000d20| 2c 74 65 78 32 24 2c 22 | 22 2c 74 65 78 34 7d 00 |,tex2$,"|",tex4}.|
|00000d30| 20 20 20 20 80 22 00 20 | 20 20 20 20 20 80 0b 20 | .". | .. |
|00000d40| ae 09 28 72 6d 73 67 2c | 32 29 00 20 20 20 20 20 |..(rmsg,|2). |
|00000d50| 20 20 20 dd 82 20 22 53 | 65 76 65 72 69 74 79 22 | .. "S|everity"|
|00000d60| 2c ae 09 28 72 6d 73 67 | 2c 31 29 00 20 20 20 20 |,..(rmsg|,1). |
|00000d70| 20 20 80 c0 00 20 20 20 | 20 80 c0 00 00 62 72 65 | ... | ....bre|
|00000d80| 61 6b 6f 75 74 7b ae 0a | 28 72 6d 73 67 2c 31 29 |akout{..|(rmsg,1)|
|00000d90| 7d 00 20 80 0e 20 61 72 | 67 24 28 30 29 00 20 20 |}. .. ar|g$(0). |
|00000da0| 80 0f 20 22 4d 59 42 4f | 58 22 00 20 20 20 20 20 |.. "MYBO|X". |
|00000db0| 20 80 06 20 73 74 72 69 | 6e 74 20 20 20 20 20 20 | .. stri|nt |
|00000dc0| 20 20 20 20 3b 63 6f 6e | 76 65 72 74 20 70 61 72 | ;con|vert par|
|00000dd0| 61 6d 73 20 74 6f 20 69 | 6e 74 27 73 00 20 20 20 |ams to i|nt's. |
|00000de0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000df0| 20 20 20 20 20 20 20 20 | 20 3b 72 65 74 75 72 6e | | ;return|
|00000e00| 65 64 20 69 6e 20 61 72 | 67 28 29 00 20 20 20 20 |ed in ar|g(). |
|00000e10| 20 20 c5 0c 20 61 72 67 | 28 31 29 2c 61 72 67 28 | .. arg|(1),arg(|
|00000e20| 32 29 2c 61 72 67 28 33 | 29 2c 61 72 67 28 34 29 |2),arg(3|),arg(4)|
|00000e30| 2c 31 00 00 20 20 80 0f | 20 22 4d 59 4c 49 4e 45 |,1.. ..| "MYLINE|
|00000e40| 22 00 20 20 20 20 20 20 | 80 06 20 73 74 72 69 6e |". |.. strin|
|00000e50| 74 00 20 20 20 20 20 20 | c5 1e 20 61 72 67 28 31 |t. |.. arg(1|
|00000e60| 29 2c 61 72 67 28 32 29 | 2c 61 72 67 28 33 29 2c |),arg(2)|,arg(3),|
|00000e70| 61 72 67 28 34 29 2c 31 | 00 00 20 20 80 0f 20 22 |arg(4),1|.. .. "|
|00000e80| 4d 59 43 49 52 43 22 00 | 20 20 20 20 20 20 80 06 |MYCIRC".| ..|
|00000e90| 20 73 74 72 69 6e 74 00 | 20 20 20 20 20 20 c5 0d | strint.| ..|
|00000ea0| 20 61 72 67 28 31 29 2c | 61 72 67 28 32 29 2c 61 | arg(1),|arg(2),a|
|00000eb0| 72 67 28 33 29 2c 31 00 | 00 20 20 80 0f 20 22 4d |rg(3),1.|. .. "M|
|00000ec0| 59 50 4c 4f 54 22 00 20 | 20 20 20 20 20 80 06 20 |YPLOT". | .. |
|00000ed0| 73 74 72 69 6e 74 00 20 | 20 20 20 20 20 c5 0b 20 |strint. | .. |
|00000ee0| 61 72 67 28 31 29 2c 61 | 72 67 28 32 29 2c 31 00 |arg(1),a|rg(2),1.|
|00000ef0| 20 80 02 20 80 0e 00 00 | 20 20 20 20 80 0b 20 72 | .. ....| .. r|
|00000f00| 6d 73 67 20 3c 3e 20 6d | 73 67 70 74 72 00 20 20 |msg <> m|sgptr. |
|00000f10| 20 20 20 20 ae 08 20 72 | 6d 73 67 2c 30 2c 30 2c | .. r|msg,0,0,|
|00000f20| 22 41 4c 4c 20 4f 4b 21 | 22 00 20 20 20 20 80 c0 |"ALL OK!|". ..|
|00000f30| 00 80 c0 00 80 07 00 00 | 00 3b 2a 2a 2a 2a 2a 2a |........|.;******|
|00000f40| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000f50| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000f60| 2a 2a 2a 2a 2a 2a 2a 73 | 75 62 72 6f 75 74 69 6e |*******s|ubroutin|
|00000f70| 65 73 00 00 2e 73 74 72 | 69 6e 74 00 80 16 20 69 |es...str|int... i|
|00000f80| 20 3d 20 31 20 80 18 20 | 61 72 67 6e 75 6d 00 20 | = 1 .. |argnum. |
|00000f90| 20 61 72 67 28 69 29 3d | bc 01 28 61 72 67 24 28 | arg(i)=|..(arg$(|
|00000fa0| 69 29 29 00 80 17 20 69 | 00 80 07 00 |i))... i|.... |
+--------+-------------------------+-------------------------+--------+--------+