Explore BrainMass
Share

# Assembly language commands

This content was STOLEN from BrainMass.com - View the original, and get the solution, here!

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

© BrainMass Inc. brainmass.com September 21, 2018, 12:03 am ad1c9bdddf - https://brainmass.com/engineering/electrical-engineering/assembly-language-commands-115910

#### 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) = ...

#### Solution Summary

The following posting helps with problems involving assembly language.

\$2.19