Exercise Problems · Q4
Q.Write a program to add two 8-bit number and store it in R6. The numbers are 01EH and 01CH.
Karnataka PUCTextbookNumericImportance★★★★★est
17% · 20/115 Questions
You're viewing a preview — the full solution, concept, methods & PYQ mapping are locked.
Start your 14-day free trial to unlock the full solution →[!TLDR]
Add 01EH and 01CH in A and move the sum 3AH into R6.
Concept. Addition is done in the accumulator (ADD A, source); the result is then moved to the required register R6.
Program:
MOV A, #01EH ; A = 1EH
ADD A, #01CH ; A = A + 1CH
MOV R6, A ; R6 = A
``` …
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.