1. An instruction at location $5000 branches to location $F42AB. Which command s
ID: 3653072 • Letter: 1
Question
1. An instruction at location $5000 branches to location $F42AB. Which command
should be used?
a. CALL b. JSR c. BRA d. LBRA
2. What is the contents of memory location $3FFF after the JSR DELAY is executed?
ORG $4000
ENTRY LDS $4000 ;3-byte instruction
NOP ;1-byte
JSR DELAY ;3-byte instruction
a. $40 b.0 c. 7 d. 8 e. none of the previous
3. If D = $1234 and X = $79BD, what is in accumulator A after the commands:
PSHD, PSHX, PULB, PULX, PULA?
a. $12 b. $34 c. $79 d. $BD
4. If accumulator A contains $59, what is the value after performing LSLA?
a. 10110011 b. 00101100 c. 10110010 d. 10101100
5. What is the content of register A after the following instructions are completed?
LDAA #$AA
ADDA #$55
a. $AA b. $55 c. $00 d. $FF
6. Which of the following instructions is illegal?
a. LDD #60000 b. LDD #$FFFF c. LDD #64538 d. LDD #00
7. Which assembly code can be used to clear bit 0 in register A and leave the other 7 bits unchanged?
a. ANDA #$FE b. ANDA #$01 c. ORA #$FE d. ORA #$01
8. Which of the following is not an advantage of assembly programming compared to C programming for the HCS12?
a. faster execution
b. better resolution on timing loops
c. simpler code for 16-bit arithmetic
d. more efficient code
9. Find the values for the carry and zero flags after the operations:
LDD #3721
ABA
a. Z = 0, C = 0 b. Z = 0, C = 1 c. Z = 1, C = 0 d. Z = 1, C = 1
10. Find the values for the carry and zero flags after the operations:
LDAA #$9C
ADDA #$64
a. Z = 0, C = 0 b. Z = 0, C = 1 c. Z = 1, C = 0 d. Z = 1, C = 1
Explanation / Answer
1. c 2. a 3. c 4.d 5.d 6.a 7.a 8.b 9.c 10.d
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.