Signed division in C
Posted: Tue Nov 11, 2008 7:11 am
How to write such code in C:
Temporary = AX / Source; //signed division
AL = Temporary;
AH = AX % Source; //signed modulus
I get ax, al, ah values which is by default unsigned, to perform signed divide i just need to convert them to signed and that's all ?
Temporary = AX / Source; //signed division
AL = Temporary;
AH = AX % Source; //signed modulus
I get ax, al, ah values which is by default unsigned, to perform signed divide i just need to convert them to signed and that's all ?