Amineri Posted March 8, 2013 Share Posted March 8, 2013 (edited) Sometimes you see a 24 preceding a value. I've never quite figured out what the difference is between 2c and 24 bytes. And 25 and 26 can be single-byte constants representing 0 or 1. But it may be worth looking around to see if you can find the function where those constants are in use, and modifying them there. Wouldn't 2C be a signed byte (represents -128 to 127) while 24 is an unsigned byte (represents 0 to 256)? Signed bytes use 2's complement to represent negative values (e.g. 0xFF = -1 in 2's complement), so the values from 0 to 127 are identical in each case. So 2C FF -> -127while 24 FF -> 255 That's my read on it at any rate. Edited March 8, 2013 by Amineri Link to comment Share on other sites More sharing options...
johnnylump Posted March 8, 2013 Share Posted March 8, 2013 I like your thinking. But I'm certain 2c variables go up to 255. It's possible 24s are signed, although usually a -1 shows up in the code as 1d ff ff ff ff. The bytecode table says this: 1d = IntConst24 = ByteConst2c = IntConstByte Link to comment Share on other sites More sharing options...
Recommended Posts