home *** CD-ROM | disk | FTP | other *** search
view JSON data
|
view as text
|
open on a Mac
|
open on a PC
This file was processed as: AMOS Basic Source Code Archive
(archive/amosSrc).
You can browse this item here: Interface_Example6.AMOS
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 41 4d 4f 53 20 50 72 6f | 31 30 31 76 00 00 00 00 |AMOS Pro|101v....|
|00000010| 00 00 07 a8 2a 01 06 52 | 00 4c 3d 3d 3d 3d 3d 3d |....*..R|.L======|
|00000020| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000030| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000040| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000050| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000060| 3d 3d 3d 3d 3d 20 00 00 | 0f 01 06 52 00 16 20 49 |===== ..|...R.. I|
|00000070| 6e 74 65 72 66 61 63 65 | 20 65 78 61 6d 70 6c 65 |nterface| example|
|00000080| 20 36 2e 20 00 00 02 00 | 00 00 16 01 06 52 00 24 | 6. ....|.....R.$|
|00000090| 20 57 72 69 74 74 65 6e | 20 62 79 20 41 6e 64 79 | Written| by Andy|
|000000a0| 20 53 6d 69 74 68 20 66 | 6f 72 20 41 6d 6f 73 7a | Smith f|or Amosz|
|000000b0| 69 6e 65 20 00 00 2a 01 | 06 52 00 4c 3d 3d 3d 3d |ine ..*.|.R.L====|
|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 20 | 00 00 02 00 00 00 02 00 |======= |........|
|00000110| 00 00 12 01 28 ee 00 3e | 00 00 00 00 00 5c 00 3e |....(..>|.....\.>|
|00000120| 00 00 02 80 00 5c 00 3e | 00 00 01 00 00 5c 00 3e |.....\.>|.....\.>|
|00000130| 00 00 00 00 00 00 15 01 | 00 06 00 00 02 02 61 00 |........|......a.|
|00000140| ff a2 00 06 00 00 02 02 | 61 00 ff c0 00 26 00 0d |........|a....&..|
|00000150| 42 41 73 65 20 32 30 30 | 2c 31 30 30 3b 00 00 00 |BAse 200|,100;...|
|00000160| 18 01 00 06 00 00 02 02 | 61 00 ff a2 00 06 00 00 |........|a.......|
|00000170| 02 02 61 00 ff c0 00 26 | 00 14 53 49 7a 65 20 32 |..a....&|..SIze 2|
|00000180| 35 30 2c 35 30 3b 20 53 | 41 76 65 20 31 3b 00 00 |50,50; S|Ave 1;..|
|00000190| 17 01 00 06 00 00 02 02 | 61 00 ff a2 00 06 00 00 |........|a.......|
|000001a0| 02 02 61 00 ff c0 00 26 | 00 11 42 4f 78 20 30 2c |..a....&|..BOx 0,|
|000001b0| 30 2c 31 2c 32 35 30 2c | 35 30 3b 00 00 00 21 01 |0,1,250,|50;...!.|
|000001c0| 00 06 00 00 02 02 61 00 | ff a2 00 06 00 00 02 02 |......a.|........|
|000001d0| 61 00 ff c0 00 26 00 25 | 50 52 69 6e 74 20 31 30 |a....&.%|PRint 10|
|000001e0| 2c 32 2c 27 45 6e 74 65 | 72 20 73 6f 6d 65 20 74 |,2,'Ente|r some t|
|000001f0| 65 78 74 20 62 65 6c 6f | 77 27 2c 37 3b 00 00 00 |ext belo|w',7;...|
|00000200| 02 00 00 00 28 01 06 52 | 00 48 20 54 68 65 20 4c |....(..R|.H The L|
|00000210| 49 6e 65 20 63 6f 6d 6d | 61 6e 64 20 64 72 61 77 |Ine comm|and draw|
|00000220| 73 20 61 20 6c 69 6e 65 | 20 66 72 6f 6d 20 67 72 |s a line| from gr|
|00000230| 61 70 68 69 63 20 65 6c | 65 6d 65 6e 74 73 20 63 |aphic el|ements c|
|00000240| 6f 6e 74 61 69 6e 65 64 | 20 77 69 74 68 20 74 68 |ontained| with th|
|00000250| 65 20 00 00 1c 01 06 52 | 00 30 20 72 65 73 6f 75 |e .....R|.0 resou|
|00000260| 72 63 65 20 62 61 6e 6b | 2e 20 20 49 74 73 20 70 |rce bank|. Its p|
|00000270| 61 72 61 6d 65 74 65 72 | 73 20 61 72 65 20 61 73 |arameter|s are as|
|00000280| 20 66 6f 6c 6c 6f 77 73 | 3a 20 00 00 02 00 00 00 | follows|: ......|
|00000290| 0d 01 06 52 00 12 20 54 | 68 65 20 58 20 63 6f 6f |...R.. T|he X coo|
|000002a0| 72 64 69 6e 61 74 65 20 | 00 00 0d 01 06 52 00 12 |rdinate |.....R..|
|000002b0| 20 54 68 65 20 59 20 63 | 6f 6f 72 64 69 6e 61 74 | The Y c|oordinat|
|000002c0| 65 20 00 00 18 01 06 52 | 00 28 20 54 68 65 20 69 |e .....R|.( The i|
|000002d0| 6d 61 67 65 20 6e 75 6d | 62 65 72 20 66 72 6f 6d |mage num|ber from|
|000002e0| 20 74 68 65 20 72 65 73 | 6f 75 72 63 65 20 62 61 | the res|ource ba|
|000002f0| 6e 6b 00 00 0f 01 06 52 | 00 16 20 54 68 65 20 77 |nk.....R|.. The w|
|00000300| 69 64 74 68 20 6f 66 20 | 74 68 65 20 6c 69 6e 65 |idth of |the line|
|00000310| 00 00 02 00 00 00 17 01 | 00 06 00 00 02 02 61 00 |........|......a.|
|00000320| ff a2 00 06 00 00 02 02 | 61 00 ff c0 00 26 00 11 |........|a....&..|
|00000330| 4c 49 6e 65 20 38 2c 31 | 35 2c 31 37 2c 32 34 30 |LIne 8,1|5,17,240|
|00000340| 3b 00 00 00 02 00 00 00 | 2a 01 06 52 00 4c 20 54 |;.......|*..R.L T|
|00000350| 68 65 20 45 44 69 74 20 | 63 6f 6d 6d 61 6e 64 20 |he EDit |command |
|00000360| 66 6f 6c 6c 6f 77 73 20 | 62 65 6c 6f 77 2e 20 20 |follows |below. |
|00000370| 49 74 20 73 65 74 73 20 | 75 70 20 61 6e 20 65 64 |It sets |up an ed|
|00000380| 69 74 20 7a 6f 6e 65 20 | 77 68 65 72 65 20 74 6f |it zone |where to|
|00000390| 20 63 61 6e 20 74 79 70 | 65 20 00 00 17 01 06 52 | can typ|e .....R|
|000003a0| 00 26 20 74 65 78 74 2e | 20 20 54 68 65 20 70 61 |.& text.| The pa|
|000003b0| 72 61 6d 65 74 65 72 73 | 20 61 72 65 20 28 69 6e |rameters| are (in|
|000003c0| 20 6f 72 64 65 72 29 3a | 00 00 02 00 00 00 1e 01 | order):|........|
|000003d0| 06 52 00 34 20 49 64 65 | 6e 74 69 66 69 63 61 74 |.R.4 Ide|ntificat|
|000003e0| 69 6f 6e 20 6e 75 6d 62 | 65 72 20 77 68 69 63 68 |ion numb|er which|
|000003f0| 20 72 61 6e 67 65 73 20 | 66 72 6f 6d 20 31 20 75 | ranges |from 1 u|
|00000400| 70 77 61 72 64 73 2e 20 | 00 00 0d 01 06 52 00 12 |pwards. |.....R..|
|00000410| 20 54 68 65 20 58 20 63 | 6f 6f 72 64 69 6e 61 74 | The X c|oordinat|
|00000420| 65 20 00 00 0d 01 06 52 | 00 12 20 54 68 65 20 59 |e .....R|.. The Y|
|00000430| 20 63 6f 6f 72 64 69 6e | 61 74 65 20 00 00 2a 01 | coordin|ate ..*.|
|00000440| 06 52 00 4c 20 54 68 65 | 20 6d 61 78 69 6d 75 6d |.R.L The| maximum|
|00000450| 20 61 6d 6f 75 6e 74 20 | 6f 66 20 63 68 61 72 61 | amount |of chara|
|00000460| 63 74 65 72 73 20 74 68 | 61 74 20 63 61 6e 20 62 |cters th|at can b|
|00000470| 65 20 64 69 73 70 6c 61 | 79 65 64 20 69 6e 20 74 |e displa|yed in t|
|00000480| 68 65 20 7a 6f 6e 65 20 | 61 74 20 6f 6e 63 65 20 |he zone |at once |
|00000490| 00 00 1f 01 06 52 00 36 | 20 54 68 65 20 6d 61 78 |.....R.6| The max|
|000004a0| 69 6d 75 6d 20 61 6d 6f | 75 6e 74 20 6f 66 20 63 |imum amo|unt of c|
|000004b0| 68 61 72 61 63 74 65 72 | 73 20 74 68 61 74 20 63 |haracter|s that c|
|000004c0| 61 6e 20 62 65 20 65 6e | 74 65 72 65 64 20 00 00 |an be en|tered ..|
|000004d0| 29 01 06 52 00 4a 20 41 | 20 73 74 72 69 6e 67 2e |)..R.J A| string.|
|000004e0| 20 20 49 6e 20 74 68 69 | 73 20 63 61 73 65 20 27 | In thi|s case '|
|000004f0| 43 68 61 6e 67 65 20 6d | 65 27 20 69 73 20 64 69 |Change m|e' is di|
|00000500| 73 70 6c 61 79 65 64 2e | 20 20 54 68 69 73 20 77 |splayed.| This w|
|00000510| 69 6c 6c 20 62 65 20 64 | 69 73 70 6c 61 79 65 64 |ill be d|isplayed|
|00000520| 00 00 18 01 06 52 00 28 | 20 20 20 20 77 68 65 6e |.....R.(| when|
|00000530| 20 74 68 65 6e 20 74 68 | 65 20 7a 6f 6e 65 20 69 | then th|e zone i|
|00000540| 73 20 66 69 72 73 74 20 | 73 65 74 20 75 70 2e 20 |s first |set up. |
|00000550| 00 00 0d 01 06 52 00 12 | 20 54 68 65 20 70 61 70 |.....R..| The pap|
|00000560| 65 72 20 63 6f 6c 6f 75 | 72 20 00 00 0c 01 06 52 |er colou|r .....R|
|00000570| 00 10 20 54 68 65 20 70 | 65 6e 20 63 6f 6c 6f 75 |.. The p|en colou|
|00000580| 72 20 00 00 02 00 00 00 | 20 01 00 06 00 00 02 02 |r ......| .......|
|00000590| 61 00 ff a2 00 06 00 00 | 02 02 61 00 ff c0 00 26 |a.......|..a....&|
|000005a0| 00 23 45 44 69 74 20 31 | 2c 31 36 2c 31 39 2c 32 |.#EDit 1|,16,19,2|
|000005b0| 36 2c 38 30 2c 27 43 68 | 61 6e 67 65 20 6d 65 27 |6,80,'Ch|ange me'|
|000005c0| 2c 30 2c 37 3b 00 00 00 | 02 00 00 00 11 01 00 06 |,0,7;...|........|
|000005d0| 00 00 02 02 61 00 ff a2 | 00 06 00 00 02 02 61 00 |....a...|......a.|
|000005e0| ff c0 00 26 00 05 45 58 | 69 74 3b 00 00 00 02 00 |...&..EX|it;.....|
|000005f0| 00 00 0b 01 27 20 00 3e | 00 00 00 01 00 5c 00 06 |....' .>|.....\..|
|00000600| 00 00 02 02 61 00 00 00 | 02 00 00 00 0d 01 00 06 |....a...|........|
|00000610| 00 06 02 00 72 00 ff a2 | 27 6c 00 74 00 3e 00 00 |....r...|'l.t.>..|
|00000620| 00 01 00 7c 00 00 04 01 | 02 50 00 3c 00 00 0f 04 |...|....|.P.<....|
|00000630| 00 06 00 0c 06 00 62 75 | 74 74 6f 6e ff a2 27 96 |......bu|tton..'.|
|00000640| 00 74 00 3e 00 00 00 01 | 00 7c 00 00 0d 01 02 5c |.t.>....|.|.....\|
|00000650| 00 06 00 0c 06 00 62 75 | 74 74 6f 6e ff 66 00 3e |......bu|tton.f.>|
|00000660| 00 00 00 00 00 00 02 00 | 00 00 2a 01 06 52 00 4c |........|..*..R.L|
|00000670| 20 54 68 65 20 52 64 69 | 61 6c 6f 67 24 20 66 75 | The Rdi|alog$ fu|
|00000680| 6e 63 74 69 6f 6e 20 72 | 65 74 75 72 6e 73 20 61 |nction r|eturns a|
|00000690| 20 73 74 72 69 6e 67 20 | 66 72 6f 6d 20 61 20 7a | string |from a z|
|000006a0| 6f 6e 65 2e 20 20 49 74 | 73 20 70 61 72 61 6d 65 |one. It|s parame|
|000006b0| 74 65 72 73 20 61 72 65 | 20 61 73 20 00 00 09 01 |ters are| as ....|
|000006c0| 06 52 00 0a 20 66 6f 6c | 6c 6f 77 73 3a 20 00 00 |.R.. fol|lows: ..|
|000006d0| 02 00 00 00 0e 01 06 52 | 00 14 20 54 68 65 20 63 |.......R|.. The c|
|000006e0| 68 61 6e 6e 65 6c 20 6e | 75 6d 62 65 72 20 00 00 |hannel n|umber ..|
|000006f0| 2a 01 06 52 00 4c 20 54 | 68 65 20 7a 6f 6e 65 2e |*..R.L T|he zone.|
|00000700| 20 20 57 68 69 63 68 20 | 63 6f 72 72 65 73 70 6f | Which |correspo|
|00000710| 6e 64 73 20 74 6f 20 74 | 68 65 20 69 6e 74 65 72 |nds to t|he inter|
|00000720| 66 61 63 65 20 70 72 6f | 67 72 61 6d 2e 20 20 5a |face pro|gram. Z|
|00000730| 6f 6e 65 20 31 20 69 73 | 20 74 68 65 20 45 44 69 |one 1 is| the EDi|
|00000740| 74 20 00 00 09 01 06 52 | 00 0a 20 20 20 20 7a 6f |t .....R|.. zo|
|00000750| 6e 65 2e 20 00 00 02 00 | 00 00 14 01 00 06 00 12 |ne. ....|........|
|00000760| 08 02 6d 65 73 73 61 67 | 65 00 ff a2 27 e6 00 74 |..messag|e...'..t|
|00000770| 00 3e 00 00 00 01 00 5c | 00 3e 00 00 00 01 00 7c |.>.....\|.>.....||
|00000780| 00 00 02 00 00 00 06 01 | 27 64 00 3e 00 00 00 01 |........|'d.>....|
|00000790| 00 00 02 00 00 00 13 01 | 04 76 00 26 00 0c 59 6f |........|.v.&..Yo|
|000007a0| 75 20 74 79 70 65 64 20 | 3a 20 00 64 00 06 00 12 |u typed |: .d....|
|000007b0| 08 02 6d 65 73 73 61 67 | 65 00 00 00 41 6d 42 73 |..messag|e...AmBs|
|000007c0| 00 00 | |.. | |
+--------+-------------------------+-------------------------+--------+--------+