First page Back Continue Last page Overview Graphics

Laboratory 2.1 : Part 2


Notes:

switch .data
var0: ds.b 4
cons1: equ $806
var1: dc.w $1122,$3344,$5566,$7788
  switch .text
start: ldd #cons1 ;Instruction 1
ldd cons1 ;Instruction 2
ldd var1+1 ;Instruction 3
nop
end

Build and step through this program using the debugger.
What are the contents of Accumulator D after execution of instruction 1? __________
What type of addressing is used in instruction 1? __________
What is the address (could be in code or data) that the data came from? _________
What are the contents of Accumulator D after execution of instruction 2? ___________
What type of addressing is used in instruction 2? __________
What is the address that the data came from? _________
What are the contents of Accumulator D after execution of instruction 3? ___________
What type of addressing is used in instruction 3? __________
What is the address that the data came from? _________