0
在课堂上给出了下面的代码,并且假设每一行在注释中的含义都是正确的。它是否正确?将汇编语言翻译成英语(EASy68K)
MOVE.B #20,D0 //Move 20 into D0
MOVEA.L #$1000,A0 //Move the contents of address 1000 into A0
CLR.B D1 //Set D1 to 0
Again CMP.B (A0)+,D2 //Compare A0 to D2, then increment A0 by 1
BNE NEXT //If A0 and D2 are not equal, go to NEXT, otherwise continue
ADD.B #1,D1 //Add 1 to D1
NEXT SUB.B #1,D0 //Subtract 1 from D0
BNE Again //Branch to AGAIN if contents of A0 is not equal to D2
你为什么不问你的导师? – 2013-10-22 22:20:54
如果我有导师,我会问他们。谢谢您的帮助。 – Brett
真的吗?你有没有导师的课? – 2013-10-22 22:23:15