ECE243 Practice Question Website


Main Assembly Programming Input/Output Memory Computer Architecture Advanced Topics

Assembly Programming Questions





Question 6

Given the following data, what is the result of the operation on it?

Registers:
d0 = $98237654 d1 = $A68B3237 d2 = $000300FF d5 = $0D358B45
d6 = $00000010 d7 = $FF00F2D0 a0 = $00000001 a7 = $00001000

Memory:
Addr Data
$00000000 $F0394124
$00000004 $FF000087
$00000008 $00000004
$0000000C $00000002
$00000010 $B4FE8224

Indicate all memory locations and registers that change values after the following instruction is executed, and the new values.

Eg.

	and.l d2,d0
    Result: d0 = $00030054

If the instruction is illegal or the result cannot be determined with the information given, clearly state the reason. Indicate values in memory as M[$addr] = $xxx and show longwords as in the tables above.

Operation:
	and.l d2,d0
    Result: d0 = $00030054

If the instruction is illegal or the result cannot be determined with the information given, clearly state the reason. Indicate values in memory as M[$addr] = $xxx and show longwords as in the tables above.

Operation:
	add.b	d0, d5
	

Answer

d5=$0D358B99