Reference no: EM13859326
1. The following 68000 assembly language instructions are all incorrect. In each case, what specifically is the error? (Hint: Consult the instruction set manual.)
a. ADDO.L #12,D2
b. SWAP A4
c. CLR.L A2
d. movnA.a #4,A3
e. ANDI D4,D5 £ LEA.B #4,A3 •7. EOR.W (A2)+,04
h. RTS.B
i. ASL.L ff9,133
j. BRA.B 2741
2. Translate the following fragment of high-level language into 68000 assembly language. Assume the labels T, 'X', and er have already been defined as references to specific memory addresses.
if T is .5
Then X 4
Else Y 6
End If
3. Explain what the following 68000 program does. Your explanation should not only include a description for each line of code, but it should also describe the overall effect of this program.
MOVE.B #20,D0
MOVE.L #$1000,A0
GOPHERS CLR.B (AO)
ADD.L #1,A0
SUB.B #1,D0
BNE COHERE
STOP #$2700