I have been beating myself up for the last couple of hours trying to figure this out. It seems so simple but I really am missing something.
I have a function that I am sending a MD DWord and I need to return just am MB Byte. The value will never be more than +/-500 in the DWord. I have a return bit for negative and a return bit for overflow.
In: DWord value +/- 500
Out: Byte value 0-255, Negative bit, Overflow bit.
Attached is a picture of the latst attempt. I have tried ABS, MOD, AD, (SQR:SQRT), all with the same result.
Assuming I input -38 I would expect 38 in the byte, the negative bit on, the overflow off. I get the negative bit but the byte holds 218.
Please help me to undestand this. Thanks.
I have a function that I am sending a MD DWord and I need to return just am MB Byte. The value will never be more than +/-500 in the DWord. I have a return bit for negative and a return bit for overflow.
In: DWord value +/- 500
Out: Byte value 0-255, Negative bit, Overflow bit.
Attached is a picture of the latst attempt. I have tried ABS, MOD, AD, (SQR:SQRT), all with the same result.
Assuming I input -38 I would expect 38 in the byte, the negative bit on, the overflow off. I get the negative bit but the byte holds 218.
Please help me to undestand this. Thanks.