I am working on the program attached in assembly x86 and I’m stuck in adding or subtracting two negative numbers or even showing the negative sign in the result, for example:
My program works like this:
2 + 4 = 6
-2 – 3 = 5 NOT -5
6 * -4 = 24
20 / -5 = 4 ….etc I need help with showing the negative sign. also the error check for zero in division part. when the user devides by zero he should get an error message. I don’t know also how to do it.
** Please, I need a code that works right.