Difficulty: Easy
Correct Answer: 2B H
Explanation:
Introduction / Context:
This checks understanding of the ORL instruction and the difference between immediate and direct addressing. ORing any value with 00H (immediate) leaves the value unchanged; ORing with a direct address would depend on that RAM location's content.
Given Data / Assumptions:
Concept / Approach:
OR rules: x OR 0 = x. Immediate addressing (prefixed with #) uses the literal constant. Therefore, A remains 0x2B after ORL A, #00H.
Step-by-Step Solution:
Verification / Alternative check:
Binary check: 0010 1011 OR 0000 0000 = 0010 1011 (unchanged).
Why Other Options Are Wrong:
Common Pitfalls:
Confusing immediate with direct addressing. Without the #, ORL A, 00H would OR with RAM location 00H (R0 in Bank 0), yielding an unknown result unless that memory value is specified.
Final Answer:
2B H
Discussion & Comments