I am working on a project in Pep8 and this is the given pseudo-code for one block of code:
If ((Num2 is negative AND Result is negative) OR (Num2 is negative and Result is positive)) Change the sign of Result
I'm not sure how to write translate this into assembly since there are two conditionals in one statement. Also, how would you go about changing the sign of an integer?
Thank you
EDIT:
For future reference: So all I had to do was load 0 into the accumulator, and then subtract the number by that.
LDA 0,i
SUBA num1,d
STA num1