Assume that registers and memory contain the values of the f

Assume that registers and memory contain the values of the following tables at the START of EACH of the following instructions. Give the register or memory location that is modified by the instruction and its new value. mov [--W1], W0 mov W1, [W0+W4] mov.b [--W1], W0 mov [++W1], W1 mov[Wl], [W0++] mov.b [W1], [W0++] mov.b Wl, [W0+3] mov [W0-4], W1 push W1 pop W2

Solution

Let start with the basics, how it works.

direct :MOV W1, W2, then W2 <= W1

Indirect: MOV [W1], [W2] then memory[W1] <= memory[W2]

MOV [--W1],[--W2] then W1=W1-1, W2=W2-1 so memory W2 <-- memory W1

Solution:

1. mov[--W1],W0

2. mov W1, [W0+W4]

3. mov.b[--W1],W0

4.mov[++W1],W1

 Assume that registers and memory contain the values of the following tables at the START of EACH of the following instructions. Give the register or memory loc

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site