Hardware Reference
In-Depth Information
3.12 Lab Exercises and Assignments
L3.1 Turn on the PC and start the MiniIDE (or AsmIDE) program to connect to a demo board
with the D-Bug12 monitor. Perform the following operations:
a. Enter a command to set the contents of the memory locations from $1000 to
$10FF to 0.
b. Display the contents of the memory locations from $1000 to $10FF.
c. Set the contents of the memory locations $1000,$1003 to 1, 2, 3, and 4, respectively.
d. Verify that the contents of memory locations $1000,$1003 have been set correctly.
L3.2 Enter monitor commands to display the breakpoints. Set new breakpoints at memory
locations $1520 and $1550. Delete breakpoints at $1550, and redisplay the breakpoints.
L3.3 Enter commands to place $10 and $0 in accumulators A and B.
L3.4 Use appropriate D-Bug12 commands to perform the following operations:
a. Set the contents of the memory location at $1000 to 3.
b. Set the contents of the memory location at $1001 to 4, and redisplay the location
$1000.
c. Set the contents of the memory location at $1002 to 5, and redisplay the same
location.
d. Set the contents of the memory location at $1003 to 6, and return to the D-Bug12
command prompt.
L3.5 Invoke the one-line assembler to enter the following instructions to the demo board: start-
ing from address $1500, trace through the program, and examine the contents of the memory
locations at $1000 and $1001.
ldd
#$0000
std
$1000
ldab
#$00
incb
ldx
$1000
abx
stx
$1000
cmpb
#$14
bne
$1508
swi
L3.6 Use the text editor of MiniIDE (or AsmIDE) to enter the following assembly program as a
fi le with the fi lename lab03_6.asm:
org
$1000
sum rmb
1
arcnt rmb
1
org
$1500
ldaa
#20
staa
arcnt
ldx
#array
clr
sum
 
Search WWH ::




Custom Search