CoSMOS
Documentation
×
Menu

readBit

Description:

 
Returns the decimal representation of a bit range from a given address
 

Command Parameters:

 
Parameter
Type
Description
Address
string / Int64
Address to read from
Start bit
Int32
 
Length
Int32
 
 

Returns:

 
Type
Description
Int32
Decimal value of bit range
 

Examples:

 
local value = readBit(0x7F0000, 0, 7)
print(value)
local value = readBit('kernel32.dll+500', 0, 7)
print(value)