2002-11-15 18:45:47 +00:00
\S1{intinst} Integer Support
2002-09-18 16:34:39 +00:00
2004-10-21 21:32:27 +00:00
\S2{intfmt} IntFmt
2002-09-18 16:34:39 +00:00
2002-10-26 19:23:10 +00:00
\c user_var(output) format numberstring
2002-09-18 16:34:39 +00:00
2002-10-26 19:23:10 +00:00
Formats the number in "numberstring" using the format "format", and sets the output to user variable $x. Example format strings include "%08X" "%u"
2002-09-18 16:34:39 +00:00
2004-10-10 18:41:43 +00:00
\c IntFmt $0 "0x%08X" 195948557
\c IntFmt $0 "%c" 0x41
2004-10-21 21:32:27 +00:00
\S2{intop} IntOp
2002-09-18 16:34:39 +00:00
2002-10-26 19:23:10 +00:00
\c user_var(output) value1 OP [value2]
2002-09-18 16:34:39 +00:00
2006-08-04 15:35:24 +00:00
Combines value1 and (depending on OP) value2 into the specified user variable (\c{user_var}). OP is defined as one of the following:
2002-09-18 16:34:39 +00:00
2002-10-26 19:23:10 +00:00
\b \e{+} ADDs value1 and value2
2002-09-18 16:34:39 +00:00
2002-10-26 19:23:10 +00:00
\b \e{-} SUBTRACTs value2 from value1
2002-09-18 16:34:39 +00:00
2002-10-26 19:23:10 +00:00
\b \e{*} MULTIPLIEs value1 and value2
2002-09-18 16:34:39 +00:00
2002-10-26 19:23:10 +00:00
\b \e{/} DIVIDEs value1 by value2
2002-09-18 16:34:39 +00:00
2002-10-26 19:23:10 +00:00
\b \e{%} MODULUSs value1 by value2
2002-09-18 16:34:39 +00:00
2002-10-26 19:23:10 +00:00
\b \e{|} BINARY ORs value1 and value2
2002-09-18 16:34:39 +00:00
2002-10-26 19:23:10 +00:00
\b \e{&} BINARY ANDs value1 and value2
2002-09-18 16:34:39 +00:00
2002-10-26 19:23:10 +00:00
\b \e{^} BINARY XORs value1 and value2
2002-09-18 16:34:39 +00:00
2004-09-28 21:25:08 +00:00
\b \e{<<} LEFT SHIFTs value1 by value2
2017-10-08 15:26:54 +00:00
\b \e{>>} ARITHMETIC RIGHT SHIFTs value1 by value2
\b \e{>>>} LOGICALLY RIGHT SHIFTs value1 by value2
2005-11-11 21:37:44 +00:00
\b \e{~} BITWISE NEGATEs value1 (i.e. 7 becomes 4294967288)
2002-09-18 16:34:39 +00:00
2002-10-26 19:23:10 +00:00
\b \e{!} LOGICALLY NEGATEs value1 (i.e. 7 becomes 0)
2002-09-18 16:34:39 +00:00
2002-10-26 19:23:10 +00:00
\b \e{||} LOGICALLY ORs value1 and value2
2002-10-01 13:53:23 +00:00
2002-10-26 19:23:10 +00:00
\b \e{&&} LOGICALLY ANDs value1 and value2
2004-10-10 18:41:43 +00:00
\c IntOp $0 1 + 1
\c IntOp $0 $0 + 1
\c IntOp $0 $0 << 2
\c IntOp $0 $0 ~
\c IntOp $0 $0 & 0xF
2017-10-13 21:23:33 +00:00
\S2{intptrop} IntPtrOp
\c user_var(output) value1 OP [value2]
Combines value1 and (depending on OP) value2 into the specified user variable (\c{user_var}). OP is the same list of operators as supported by \c{IntOp}.
\c IntPtrOp $FieldAddress $MyBuffer + $FieldOffset