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