Assembly language commands
Not what you're looking for?
7. Assume that 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.
Note: The operations are independent of each other.
(a) ANL A, #45H
(b) ORL A, B
(c) XRL A, #76H
(d) ANL A, R1
(e) XRL A, R1
(f) ORL A, R1
(g) ANL #0FFh
(h) ORL A, #99H
Purchase this Solution
Solution Summary
The following posting helps with problems involving assembly language.
Solution Preview
A = F0, B = 56, and R1 = 90.
(a)ANL A, #45H
Solution : Logically AND the contents of accumulator with the immediate data #45(H). The result will be stored in the accumulator
A = F0 = 1111 0000, 45(H) = 0100 0101
Result = 0100 0000 = 40(H)
(b) ORL A, B
Solution : Logically OR the contents of accumulator with the contents of register B. The result will be stored in the accumulator.
A = F0(H) = 1111 0000 , B = 56(H) = ...
Purchase this Solution
Free BrainMass Quizzes
Air Pollution Control - Environmental Science
Working principle of ESP
Architectural History
This quiz is intended to test the basics of History of Architecture- foundation for all architectural courses.