'>Hxtr2-Doc.bsx D Buckley 20-11-01 '============================================================== 'Meta Commands and Program Headers - Hxtr '============================================================== 'Meta Commands overview '---------------------- ' 'Ultrasonic behaviour rules ' I if selected by the test then includes a Prog/Option, ' first parameter is prognumber, second is Option. ' Return address is stacked. ' "I" can be used to run any program + option including ' US behaviours, however yawn variables values will be ' inherited. ' X if action ="X" then ignore that result. ' J if action ="J" then jump to new program, no stack action ' first parameter is prognumber, second is option ' so we can even run another US behaviour. ' If the Option is 0 then the jumped to Prog will be forced ' to check the stack and so acts as RETURN. ' Yawn ' ---- ' The yawn rules are special in that when an outcome of ' other rules is activated scanning through the rule set is ' terminated, however the "Y" rule only tests whether the ' next rule should be used, and the "y" rule only resets ' the "yawn" variable before the rule following it is used. ' The first parameter byte for "Y" or "y" is the index to ' the yawn variable, 0=>usyawn0, 1=>usyawn1. ' The second parameter byte is the threshold ' Y if selected by the test increments 'usyawnX'. ' If 'usyawnX'> threshold then skip the following rule. ' y if selected then resets 'usyawnX' to 0 ' so select same parameters for rule to be skipped for both Y, y 'Sequences ' z - terminator for sequences ' J - Jump to another Program, where option is selected ' from Program's name table ' "J",,