I'm writing a program for 68k processor in ASM.
And I need to make something like that
if (D0 > D1) {
do_some_stuff();
do_some_stuff();
do_some_stuff();
do_some_stuff();
} else {
do_some_stuff();
do_some_stuff();
do_some_stuff();
do_some_stuff();
}
But the problem is that it only allows me to either branch to some pointer or continue execution.
Like so:
CMP.L D0,D1 ; compare
BNE AGAIN ; move to a pointer
What is the easiest way to make such construction as above?