Add(MainForm,6016793,42,35) { Width=403 Height=241 } Add(IndexToChanel,11631242,567,-28) { Count=18 link(onEvent12,6674507:doWork2,[]) link(onEvent13,7934983:doWork2,[]) link(onEvent14,1245562:doWork2,[]) link(onEvent15,12747404:doWork2,[]) link(onEvent16,9874699:doWork2,[]) link(onEvent17,9874699:doWork3,[(627,90)]) link(onEvent18,11633699:doWork2,[(658,97)(658,62)]) } Add(If_else,416891,616,182) { Type=3 Op2=Integer(16) link(onTrue,1694203:doWork1,[]) link(onFalse,9520171:doWork1,[(663,195)]) AddHint(-1,37,27,13,Op2) } Add(If_else,5161824,679,231) { Op2=Integer(17) link(onTrue,1694203:doWork2,[(723,237)(723,195)]) AddHint(-2,36,27,13,Op2) } Add(HubEx,9520171,659,231) { link(onEvent,5161824:doCompare,[]) } Add(If_else,9788377,567,182) { Type=4 Op2=Integer(11) link(onTrue,416891:doCompare,[]) link(onFalse,9520171:doWork2,[(607,195)(607,237)]) AddHint(-2,38,27,13,Op2) } Add(ChanelToIndex,1694203,735,182) { link(onIndex,10400535:doValue,[]) } Add(ChanelToIndex,11633699,679,49) { link(onIndex,11403340:doValue,[]) } Add(HubEx,6674507,623,49) { link(onEvent,11633699:doWork1,[]) } Add(HubEx,7934983,623,56) { Angle=3 link(onEvent,6674507:doWork3,[]) } Add(HubEx,1245562,623,63) { Angle=3 link(onEvent,7934983:doWork3,[]) } Add(HubEx,12747404,623,70) { Angle=3 link(onEvent,1245562:doWork3,[]) } Add(HubEx,9874699,623,77) { Angle=3 link(onEvent,12747404:doWork3,[]) } Add(TimeCounter,7414212,273,35) { Precision=1 link(onStart,13989793:doFor,[]) link(onStop,10448880:doText,[(313,48)(313,90)]) } Add(For,13989793,322,35) { Start=1 End=100000 link(onEvent,9853830:doFor,[]) link(onStop,7414212:doStop,[(366,48)(366,19)(259,19)(259,48)]) } Add(Button,6531240,105,35) { Left=125 Top=60 link(onClick,10379623:doEvent1,[]) } Add(Memory,11403340,735,49) { Default=Integer(0) } Add(Memory,10400535,784,182) { Default=Integer(0) } Add(Label,10448880,322,84) { Left=200 Top=65 } Add(TimeCounter,11725473,280,182) { Precision=1 link(onStart,6755417:doFor,[]) link(onStop,14469705:doText,[(320,195)(320,237)]) } Add(For,6755417,329,182) { Start=1 End=100000 link(onEvent,9176190:doFor,[]) link(onStop,11725473:doStop,[(373,195)(373,166)(266,166)(266,195)]) } Add(Label,14469705,329,231) { Left=200 Top=85 } Add(Hub,10379623,182,35) { OutCount=4 link(onEvent1,7414212:doStart,[]) link(onEvent2,11725473:doStart,[(223,48)(223,188)]) link(onEvent3,67066:doStart,[(215,55)(215,335)]) link(onEvent4,4082358:doStart,[(206,62)(206,461)]) } Add(For,9853830,392,35) { Start=1 End=18 link(onEvent,11631242:doEvent,[(492,41)(492,-22)]) } Add(For,9176190,392,182) { Start=1 End=18 link(onEvent,9788377:doCompare,[]) } Add(FTCG_Tools,1744119,532,329) { } BEGIN_SDK Add(EditMultiEx,1754439,21,21) { WorkCount=#9:doCompare| EventCount=#11:onEventData| VarCount=#5:Value| Width=475 Height=347 link(doCompare,7947835:doCompare,[(77,27)(77,139)]) link(Value,6936366:Value,[(27,263)(412,263)]) } Add(FT_If_else,7947835,133,133) { Type=4 Op2=Integer(11) link(onTrue,336565:doCompare,[]) link(onFalse,11436735:doWork2,[(177,146)(177,188)]) } Add(FT_If_else,336565,189,133) { Type=3 Op2=Integer(16) link(onTrue,16236819:doData,[]) link(onFalse,11436735:doWork1,[(235,146)]) } Add(FT_If_else,10995659,252,182) { Op2=Integer(17) link(onTrue,16006813:doData,[]) } Add(HubEx,11436735,231,182) { link(onEvent,10995659:doCompare,[]) } Add(FT_DoData,16236819,322,133) { Data=Integer(0) link(onEventData,13868993:doWork2,[]) } Add(FT_DoData,16006813,322,182) { Data=Integer(1) link(onEventData,13868993:doWork3,[(376,188)]) } Add(HubEx,13868993,372,133) { link(onEvent,6936366:doValue,[]) } Add(FT_Memory,6936366,406,133) { } END_SDK Add(TimeCounter,67066,280,329) { Precision=1 link(onStart,4401617:doFor,[]) link(onStop,2348341:doText,[(320,342)(320,384)]) } Add(For,4401617,329,329) { Start=1 End=100000 link(onEvent,1038125:doFor,[]) link(onStop,67066:doStop,[(373,342)(373,313)(266,313)(266,342)]) } Add(Label,2348341,329,378) { Left=200 Top=105 } Add(For,1038125,392,329) { Start=1 End=18 link(onEvent,1744119:doCompare,[]) } Add(InlineCode,8947214,336,455) { WorkPoints=#7:doStart| EventPoints=#6:onStop|5:onRes| Code=#15:unit HiAsmUnit;|12:// Autor Tad|0:|9:interface|0:|21:uses kol,Share,Debug;|0:|4:type|28: THiAsmClass = class(TDebug)|10: private|10: k:byte;|9: public|27: onRes, onStop:THI_Event;|50: procedure doStart(var _Data:TData; Index:Word);|47: procedure vRes(var _Data:TData; Index:Word);|5: end;|0:|14:implementation|31: procedure THiAsmClass.doStart;|18: var i, n:integer;|6: Begin|23: for i:=1 to 100000 do|21: for n:=1 to 18 do|10: begin|24: If n=17 then k:=1;|35: If(n>=11)and(n<=16) then k:=0|9: end;|25: _hi_onEvent(onStop); |5: End;|0:|27:procedure THiAsmClass.vRes;|5:begin|22: dtInteger(_Data,k)|5:end; |4:end.| link(onStop,4082358:doStop,[(379,461)(379,443)(261,443)(261,468)]) } Add(Label,5463166,336,525) { Left=200 Top=125 } Add(TimeCounter,4082358,273,455) { Precision=1 link(onStart,8947214:doStart,[]) link(onStop,5463166:doText,[(321,468)(321,531)]) }