Hi,
Now that I released my tool Hack7, I decided to take some time to play with it. Right now, I'm making some tests to figure out how those events are working, and I don't really get it, so I hope somebody will be able to help me.
In the Wiki, for the event PLUS2! (0x77) it is said that the parameter is signed and the result of the addition is capped at 32767.
In fact, when I try this (code from Hack7, $TW600 is a word variable) :
$TW600 = 10;
$TW600 = AddCap16( 32767 );
or this :
$TW600 = 32767;
$TW600 = AddCap16( 10 );
The result is indeed capped at 32767.
However, when I try this :
$TW600 = 42767;
$TW600 = AddCap16( 10 );
or this :
$TW600 = 10;
$TW600 = AddCap16( 42767 );
The result I get is not 32767 as expected, but 42777 instead !!! So, it seems that once the initial value is bigger than 32767, the addition doesn't cap anymore the result ! And it would also mean that the parameter is not signed !
If someone has any idea, please...