I just finished my HVM code for evaluating the bitwise XOR between two operands.
However I got an Integer overflow as server response because I used 2^31 in my code which is of course simply too large when the 32-bit integer is signed.
So my question is: can I always surely assume that the MSB (Bit 31) of the two operands in all the tests I have to pass is zero, which means that the integer is positive?
The questions says
so I assumed the MSB is always zero, but maybe this sentence means those two operands are seen as unsigned integers and it could be that the MSB is set?You have to XOR two positive integers placed in memory locations 0 and 1.
Greetings,
theStack