You are on page 1of 4

Tutorial

Register and physical memory table is given as in the Table below.


Determine the changes (if any) made to contents of the register and the
physical memory when the following is executed.

MOVE.L #2222, D0.


D0 = $0000 08AE

MOVE.W (A0),D1
A0 = $0000 2222
D1 = $5555 7777
MOVE.W (A0)+,(A1)
Content of Memory location $ 3333 will change to $6666
A0 = $0000 2226
ADD.B D0,D1
D1 = $5555 66AA
Identify the type of addressing mode used in the following instruction

MOVE.L #2222, D0.


Immediate addressing mode

MOVE.W (A0),D1
Predecrement Register indirect addressing mode

MOVE.W (A0)+,(A1)
Post increment Register Indirect

ADD.B D0,D1
Data Register direct
What will be the contents of the memory when
the following program is executed $1000
...
$1020 FA FA
...
$1040 12 34
...
$2000 00 AA
$2002 00 BB
$2004 00 CC
$2006 00 DD
$2008
$200A
$200C
$200E 'A' ''
$2010 'B'

You might also like