Difference between revisions of ".focuseye"

From WikiManual
Jump to: navigation, search
(Created .focuseye page. Based on EricL's summary.)
 
(Minor copyediting.)
 
Line 1: Line 1:
.focuseye is a read/write sysvar (mem location 511). Indicates which of the bot's 9 eyes should be used to populate the refvars. A value of 0 indicates .eye5 should be used. A value of -1 indicates .eye4, and value of +1 indicates .eye6 and so on for values from -4 to +4 inclusive. If a value outside this range is stored to the location, it is MODed in such a way that the value refers to one of the 9 eyes. A value of -5 corrosponds to .eye9 for example, a value of 5 to .eye1 and so on. The refvars are updated using the specifried eye during the same cycle .focuseye is modified. Values stored into .focuseye persist across cycles, can be read by bot DNA and the specified eye will be used for refvars until a new value is stored into .focuseye.
+
.focuseye is a read/write sysvar (mem location 511). It indicates which of the bots 9 eyes should be used to populate the [[RefVar|refvars]]. A value of 0 indicates [[.eye5]] should be used. A value of -1 indicates .eye4, and value of +1 indicates .eye6 and so on for values from -4 to +4 inclusive. If a value outside this range is stored to the location, it is MODed in such a way that the value refers to one of the 9 eyes. A value of -5 corresponds to .eye9 for example, a value of 5 to .eye1 and so on.The refvars are updated using the specified eye during the same cycle .focuseye is modified. Values stored into .focuseye persist across cycles, can be read by bot [[Robot_DNA|DNA]] and the specified eye will be used for refvars until a new value is stored into .focuseye.

Latest revision as of 23:16, 7 June 2008

.focuseye is a read/write sysvar (mem location 511). It indicates which of the bots 9 eyes should be used to populate the refvars. A value of 0 indicates .eye5 should be used. A value of -1 indicates .eye4, and value of +1 indicates .eye6 and so on for values from -4 to +4 inclusive. If a value outside this range is stored to the location, it is MODed in such a way that the value refers to one of the 9 eyes. A value of -5 corresponds to .eye9 for example, a value of 5 to .eye1 and so on.The refvars are updated using the specified eye during the same cycle .focuseye is modified. Values stored into .focuseye persist across cycles, can be read by bot DNA and the specified eye will be used for refvars until a new value is stored into .focuseye.