Jump to content

signed 2's complement


Recommended Posts

gg.loadResults(values)
instructionSet = gg.getResults(2)
if instructionSet[2].value == 0x28 then  -- 0x28
print("32 bit")
elseif instructionSet[2].value == -0x49 then -- 0xB7 | -73 signed 2's complement
print("64 bit")
end

Comparing hex value results in 2's complement, but this is extra struggle because i have to do conversion. I just want to do this:

elseif instructionSet[2].value == 0xB7 then

Possible?

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.