Assume hat these registers contain the following A F0 B 56
Assume (hat these registers contain the following: A = F0, B = 56, and R1 = 90. Perform the following operations. Indicate the result and the register where it is stored. ANL A, #45H ORL A, B XRL A, #76H ANL A, R1 XRL A, R1 ORL A, R1 ANL A, #OFFH ORL A, #99H XRL A, #0EEH XRL A, #0AAH
Solution
a. ANL stands for a logical AND operation.
ANL A, #45H. This instruction is equal to A = A and #45H = F0H and 45H = 40H.
Therefore, the value 40H will be stored in the accumulator.
e. XRL stands for a logical XOR operation.
XRL A, R1. This instruction is equal to A = A xor R1 = F0H xor 90H = 60H.
Therefore, the value 60H will be stored in the accumulator.
h. ORL stands for a logical OR operation.
ORL A, #99H. This instruction is equal to A = A or #99H = F0H or #99H = F9H.
Therefore, the value F9H will be stored in the accumulator.
