In my program i take input of a option and if input is equal to 1 I want do d+1. I have looked at the EQ condition syntax but cant get my head around it. Pseudo code:
if choice=1 do d+1
What i have done:
INPUT_FUNCTION:
MOVE.B #4,D0
TRAP #15
All structured statements translate into assembly using the style of if-goto-label.
For an if-statement, a conditional goto (if-goto) is used to skip what you don't want to do when you don't want to do it, and otherwise execute the then-part.
This if-goto is easily translated into assembly: