41. What are the values of the condition flags N, Z, V, and C in the CCR after e
ID: 3653073 • Letter: 4
Question
41. What are the values of the condition flags N, Z, V, and C in the CCR after executing the instruction SUBA #$78, given that [A] = $00 and N = 0, C = 0, Z = 1, and V = 0 before the instruction is executed?
a. N = 1, Z = 1, V = 0, C = 0
b. N = 1, Z = 0, V = 0, C = 1
c. N = 1, Z = 0, V = 1, C = 0
d. N = 1, Z = 0, V = 1, C = 1
42. What are the values of the condition flags N, Z, V, and C in the CCR after executing the instruction ROLA, given that [A] = $00 and N = 0, C = 0, Z = 1, and V = 0 before the instruction is executed?
a. N = 1, Z = 1, V = 0, C = 0
b. N = 0, Z = 1, V = 0, C = 1
c. N = 0, Z = 1, V = 0, C = 0
d. N = 0, Z = 1, V = 1, C = 1
43. If register A contains $44, what branch instruction is activated after execution on SUBA #$20
a. BPL b. BEQ c. BVS d. BMI
44. What type of memory organization is used by the HCS12 stack?
a. LIFO b. FIFO c. LILO d. FILO
45. The best way to write a code to compute the following equation: y=x2 +2x+1, is by using:
a. Sinx b. series c. loop d. look-up table
46. BSET DDRB,000011 will force bits _______ of DDRB to go ________?
a. 7,6,1,0 HIGH
b. 5,4,3,2 HIGH
c. 7,6,1,0 LOW
d. 5,4,3,2 LOW
47. BCLR DDRB,111100 will force bits _______ of DDRB to go ________?
a. 7,6,1,0 HIGH
b. 5,4,3,2 HIGH
c. 7,6,1,0 LOW
d. 5,4,3,2 LOW
e.
48. A subroutine will always end with the ENDM instruction.
a. True b. False
49. A MACRO will always end with the RTS instruction.
a. True b. False
50. The advantage of MACROS over SUBROUTINES is
a. They run faster b. They expand and make the code less populated
c. They are more flexible with passing parameter d. none of the previous
Explanation / Answer
41.d 42. c 43.c 44.b 45.d 46.a 47.a 48.a 49.d 50.b
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.