Question
1.The following shows the list file of a program with the program memory address, machine language, line number and assembly language source of each line
1.The following shows the list file of a program with the program memory address, machine language, line number and assembly language source of each line displayed.
Please help me to complete these. Thank you anyone who can help :)
Program
Memory Line Source
Address
ORG 0x000040 ( ) 0E32 00011 Main: movlw 0x32 ( ) 6E05 00012 movwf 0x05, A ?????? 0EDF 00013 movlw 0xDF ?????? 2605 00014 addwf 0x05, F, A ?????? 0E34 00015 movlw 0x34 ?????? 6E06 00016 movwf 0x06, A ?????? 0E57 00017 movlw 0x57 ?????? 2206 00018 addwfc 0x06, F, A
a) Fill out the program memory addresses for Lines 11 and 12 in 0xNNNNNN format, where N represents a nibble.
Line 11=
Line 12=
b)Your answers for the following two questions should be in BBB format, where the 1st, 2nd and 3rd B represent the Z, DC and C status bits, respectively.
Referring to program in Question 1:
Determine the values of the status flags Z, DC, C after the execution of Line 14=
Determine the values of the status flags Z, DC, C after the execution of Line 18=
c)Your answers for the following three questions should be in 0xNN format, where N represents a nibble.
Referring to program in Question 1:
What are stored in WREG and File Register 0x006 after the execution of Line 18?
WREG=
0x006=
d)Referring to program in Question 1:
What would be stored in WREG and File Register 0x006 if Line 18 were replaced by "addwfc 0x06, W, A"?
WREG=
0x006=
e)Referring to program in Question 1:
What would be stored in Register 0x006 if Line 18 were replaced by "addwf 0x06, F, A"?
0x006=
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started