Difference between revisions of "Template:LSL Hex/Write"

From Second Life Wiki
Jump to navigation Jump to search
Line 1: Line 1:
{{#vardefine:mask|{{#ifexpr:{{{1|0}}}>=0|0123456789ABCDEF|FEDCBA9876543210}}}}<!--{{{1|0}}}>=0-->
{{#vardefine:mask|{{#ifexpr:{{{1|0}}}>=0|0123456789ABCDEF|FEDCBA9876543210}}}}<!--{{{1|0}}}>=0-->
{{#vardefine:len| {{#ifexpr:{{{1|0}}}>=0|0|{{#ifexpr:{{{1|0}}}>=-2147483648|8|16}}}}}}
{{#vardefine:len| {{#ifexpr:{{{1|0}}}>=0|0|{{#ifexpr:{{{1|0}}}>=-2147483648|8|16}}}}}}
{{#vardefine:in|  {{#expr:  {{#ifexpr:{{{1|0}}}<0|1 - }} {{{1|0}}}}}}}
{{#vardefine:in|  {{#expr:  {{#ifexpr:{{{1|0}}}<0|1 + }} {{{1|0}}}}}}}
{{#vardefine:out| {{#ifexpr:{{#var:in}} = 0 and not {{#var:len}}|0}}}}
{{#vardefine:out| {{#ifexpr:{{#var:in}} = 0 and not {{#var:len}}|0}}}}
{{#vardefine:out|{{#ifexpr:{{#var:in}} >= 1 or {{#var:len}} > 0|{{#sub:{{#var:mask}}|{{#expr:{{#var:in}} mod 16}}|1}}}}{{#var:out}}}}{{#vardefine:in|{{#expr:({{#var:in}} / 16) round 0}}}}{{#vardefine:out|{{#ifexpr:{{#var:in}} >= 1 or {{#var:len}} > 1|{{#sub:{{#var:mask}}|{{#expr:{{#var:in}} mod 16}}|1}}}}{{#var:out}}}}{{#vardefine:in|{{#expr:({{#var:in}} / 16) round 0}}}}{{#vardefine:out|{{#ifexpr:{{#var:in}} >= 1 or {{#var:len}} > 2|{{#sub:{{#var:mask}}|{{#expr:{{#var:in}} mod 16}}|1}}}}{{#var:out}}}}{{#vardefine:in|{{#expr:({{#var:in}} / 16) round 0}}}}{{#vardefine:out|{{#ifexpr:{{#var:in}} >= 1 or {{#var:len}} > 3|{{#sub:{{#var:mask}}|{{#expr:{{#var:in}} mod 16}}|1}}}}{{#var:out}}}}{{#vardefine:in|{{#expr:({{#var:in}} / 16) round 0}}}}{{#vardefine:out|{{#ifexpr:{{#var:in}} >= 1 or {{#var:len}} > 4|{{#sub:{{#var:mask}}|{{#expr:{{#var:in}} mod 16}}|1}}}}{{#var:out}}}}{{#vardefine:in|{{#expr:({{#var:in}} / 16) round 0}}}}{{#vardefine:out|{{#ifexpr:{{#var:in}} >= 1 or {{#var:len}} > 5|{{#sub:{{#var:mask}}|{{#expr:{{#var:in}} mod 16}}|1}}}}{{#var:out}}}}{{#vardefine:in|{{#expr:({{#var:in}} / 16) round 0}}}}{{#vardefine:out|{{#ifexpr:{{#var:in}} >= 1 or {{#var:len}} > 6|{{#sub:{{#var:mask}}|{{#expr:{{#var:in}} mod 16}}|1}}}}{{#var:out}}}}{{#vardefine:in|{{#expr:({{#var:in}} / 16) round 0}}}}{{#vardefine:out|{{#ifexpr:{{#var:in}} >= 1 or {{#var:len}} > 7|{{#sub:{{#var:mask}}|{{#expr:{{#var:in}} mod 16}}|1}}}}{{#var:out}}}}{{#vardefine:in|{{#expr:({{#var:in}} / 16) round 0}}}}{{#vardefine:out|{{#ifexpr:{{#var:in}} >= 1 or {{#var:len}} > 8|{{#sub:{{#var:mask}}|{{#expr:{{#var:in}} mod 16}}|1}}}}{{#var:out}}}}{{#vardefine:in|{{#expr:({{#var:in}} / 16) round 0}}}}{{#vardefine:out|{{#ifexpr:{{#var:in}} >= 1 or {{#var:len}} > 9|{{#sub:{{#var:mask}}|{{#expr:{{#var:in}} mod 16}}|1}}}}{{#var:out}}}}{{#vardefine:in|{{#expr:({{#var:in}} / 16) round 0}}}}{{#vardefine:out|{{#ifexpr:{{#var:in}} >= 1 or {{#var:len}} > 10|{{#sub:{{#var:mask}}|{{#expr:{{#var:in}} mod 16}}|1}}}}{{#var:out}}}}{{#vardefine:in|{{#expr:({{#var:in}} / 16) round 0}}}}{{#vardefine:out|{{#ifexpr:{{#var:in}} >= 1 or {{#var:len}} > 11|{{#sub:{{#var:mask}}|{{#expr:{{#var:in}} mod 16}}|1}}}}{{#var:out}}}}{{#vardefine:in|{{#expr:({{#var:in}} / 16) round 0}}}}{{#vardefine:out|{{#ifexpr:{{#var:in}} >= 1 or {{#var:len}} > 12|{{#sub:{{#var:mask}}|{{#expr:{{#var:in}} mod 16}}|1}}}}{{#var:out}}}}{{#vardefine:in|{{#expr:({{#var:in}} / 16) round 0}}}}{{#vardefine:out|{{#ifexpr:{{#var:in}} >= 1 or {{#var:len}} > 13|{{#sub:{{#var:mask}}|{{#expr:{{#var:in}} mod 16}}|1}}}}{{#var:out}}}}{{#vardefine:in|{{#expr:({{#var:in}} / 16) round 0}}}}{{#vardefine:out|{{#ifexpr:{{#var:in}} >= 1 or {{#var:len}} > 14|{{#sub:{{#var:mask}}|{{#expr:{{#var:in}} mod 16}}|1}}}}{{#var:out}}}}{{#vardefine:in|{{#expr:({{#var:in}} / 16) round 0}}}}{{#vardefine:out|{{#ifexpr:{{#var:in}} >= 1 or {{#var:len}} > 15|{{#sub:{{#var:mask}}|{{#expr:{{#var:in}} mod 16}}|1}}}}{{#var:out}}}}{{#vardefine:in|{{#expr:({{#var:in}} / 16) round 0}}}}{{#var:out}}
{{#vardefine:out|{{#ifexpr:{{#var:in}} >= 1 or {{#var:len}} > 0|{{#sub:{{#var:mask}}|{{#expr:{{#var:in}} mod 16}}|1}}}}{{#var:out}}}}{{#vardefine:in|{{#expr:({{#var:in}} / 16) round 0}}}}{{#vardefine:out|{{#ifexpr:{{#var:in}} >= 1 or {{#var:len}} > 1|{{#sub:{{#var:mask}}|{{#expr:{{#var:in}} mod 16}}|1}}}}{{#var:out}}}}{{#vardefine:in|{{#expr:({{#var:in}} / 16) round 0}}}}{{#vardefine:out|{{#ifexpr:{{#var:in}} >= 1 or {{#var:len}} > 2|{{#sub:{{#var:mask}}|{{#expr:{{#var:in}} mod 16}}|1}}}}{{#var:out}}}}{{#vardefine:in|{{#expr:({{#var:in}} / 16) round 0}}}}{{#vardefine:out|{{#ifexpr:{{#var:in}} >= 1 or {{#var:len}} > 3|{{#sub:{{#var:mask}}|{{#expr:{{#var:in}} mod 16}}|1}}}}{{#var:out}}}}{{#vardefine:in|{{#expr:({{#var:in}} / 16) round 0}}}}{{#vardefine:out|{{#ifexpr:{{#var:in}} >= 1 or {{#var:len}} > 4|{{#sub:{{#var:mask}}|{{#expr:{{#var:in}} mod 16}}|1}}}}{{#var:out}}}}{{#vardefine:in|{{#expr:({{#var:in}} / 16) round 0}}}}{{#vardefine:out|{{#ifexpr:{{#var:in}} >= 1 or {{#var:len}} > 5|{{#sub:{{#var:mask}}|{{#expr:{{#var:in}} mod 16}}|1}}}}{{#var:out}}}}{{#vardefine:in|{{#expr:({{#var:in}} / 16) round 0}}}}{{#vardefine:out|{{#ifexpr:{{#var:in}} >= 1 or {{#var:len}} > 6|{{#sub:{{#var:mask}}|{{#expr:{{#var:in}} mod 16}}|1}}}}{{#var:out}}}}{{#vardefine:in|{{#expr:({{#var:in}} / 16) round 0}}}}{{#vardefine:out|{{#ifexpr:{{#var:in}} >= 1 or {{#var:len}} > 7|{{#sub:{{#var:mask}}|{{#expr:{{#var:in}} mod 16}}|1}}}}{{#var:out}}}}{{#vardefine:in|{{#expr:({{#var:in}} / 16) round 0}}}}{{#vardefine:out|{{#ifexpr:{{#var:in}} >= 1 or {{#var:len}} > 8|{{#sub:{{#var:mask}}|{{#expr:{{#var:in}} mod 16}}|1}}}}{{#var:out}}}}{{#vardefine:in|{{#expr:({{#var:in}} / 16) round 0}}}}{{#vardefine:out|{{#ifexpr:{{#var:in}} >= 1 or {{#var:len}} > 9|{{#sub:{{#var:mask}}|{{#expr:{{#var:in}} mod 16}}|1}}}}{{#var:out}}}}{{#vardefine:in|{{#expr:({{#var:in}} / 16) round 0}}}}{{#vardefine:out|{{#ifexpr:{{#var:in}} >= 1 or {{#var:len}} > 10|{{#sub:{{#var:mask}}|{{#expr:{{#var:in}} mod 16}}|1}}}}{{#var:out}}}}{{#vardefine:in|{{#expr:({{#var:in}} / 16) round 0}}}}{{#vardefine:out|{{#ifexpr:{{#var:in}} >= 1 or {{#var:len}} > 11|{{#sub:{{#var:mask}}|{{#expr:{{#var:in}} mod 16}}|1}}}}{{#var:out}}}}{{#vardefine:in|{{#expr:({{#var:in}} / 16) round 0}}}}{{#vardefine:out|{{#ifexpr:{{#var:in}} >= 1 or {{#var:len}} > 12|{{#sub:{{#var:mask}}|{{#expr:{{#var:in}} mod 16}}|1}}}}{{#var:out}}}}{{#vardefine:in|{{#expr:({{#var:in}} / 16) round 0}}}}{{#vardefine:out|{{#ifexpr:{{#var:in}} >= 1 or {{#var:len}} > 13|{{#sub:{{#var:mask}}|{{#expr:{{#var:in}} mod 16}}|1}}}}{{#var:out}}}}{{#vardefine:in|{{#expr:({{#var:in}} / 16) round 0}}}}{{#vardefine:out|{{#ifexpr:{{#var:in}} >= 1 or {{#var:len}} > 14|{{#sub:{{#var:mask}}|{{#expr:{{#var:in}} mod 16}}|1}}}}{{#var:out}}}}{{#vardefine:in|{{#expr:({{#var:in}} / 16) round 0}}}}{{#vardefine:out|{{#ifexpr:{{#var:in}} >= 1 or {{#var:len}} > 15|{{#sub:{{#var:mask}}|{{#expr:{{#var:in}} mod 16}}|1}}}}{{#var:out}}}}{{#vardefine:in|{{#expr:({{#var:in}} / 16) round 0}}}}{{#var:out}}

Revision as of 19:20, 13 February 2007



0

{{LSL_Hex/Write|1843}}


733

{{LSL_Hex/Write|-1}}


FFFFFFFF

{{LSL_Hex/Write|-2}}


FFFFFFF0

{{LSL_Hex/Write|-43}}


FFFFFF29