我如何使用摩托罗拉 68000 将下面的 Java 代码翻译成汇编语言的伪代码:
if(x > y && y < 100) {
x++;
y--;
} // end if
else if(x < y) {
x--;
y++;
} // end else if
else {
x=0;
y=0;
} // end else
我认为我可能在正确的轨道上只是不确定:
IF:
if(x <= y) goto end if
if(y <= 100) goto end if
x++;
y--;
goto IF
ELSE IF:
if(x >= y) goto end else if
x--;
y++;
goto ELSE IF
x = 0;
y = 0;
goto DONE
DONE: