Exercise Problems · Q1
Q.Write the instructions to move value 34H into register A and value 3FH into register B, then add them together.
Karnataka PUCTextbookNumericImportance★★★★★est
2% · 2/115 Questions
✓ Free question
[!TLDR]
Load 34H into A and 3FH into B, then ADD A,B; the accumulator holds their sum 73H.
Concept. Immediate MOVs place the two constants in A and B; because B is a directly-addressable special-function register, ADD A, B computes A = A + B.
Program:
MOV A, #34H ; A = 34H
MOV B, #3FH ; B = 3FH
ADD A, B ; A = A + B
Working: 34H = 52 and 3FH = 63, so the sum is 115 decimal = 73H, with no carry out of bit 7 (CY = 0).
[!ANSWER]
A = 73H (115 decimal), CY = 0.
Unlock everything free for 14 days
- Full step-by-step solutions
- Concept-first explanations
- Methods, shortcuts & mistakes
- PYQ mapping + timed mock tests
Full access for 14 days. No credit card required.