# 1. Using the machine language described in Appendix C, write programs to perform each of the…

1. Using the machine language described in Appendix C, write

programs to perform each of the following tasks:(2P)

a.

Copy the bit pattern stored in

memory location 44 into memory location BB.

b.

Change the least significant 4 bits

in the memory cell at location 34 to 0s while leaving the other bits unchanged.

c.

Copy the least significant 4 bits

from memory location B4 into the least significant 4 bits of location B6 while

leaving the other bits at location B6 unchanged.

d.

Copy the least significant 4 bits

from memory location A4 into the most significant 4 bits of A4. (Thus, the

first 4 bits in A4 will be the same as the last 4 bits.)

2. Identify both the mask and the logical operation needed to

accomplish each of the following objectives:(2P)

a.

Put 1s in the upper4 bits of an

8-bit pattern without disturbing the other bits.

b.

Complement the most significant bit

of an 8-bit pattern without changing the other bits.

c.

Complement a pattern of 8 bits.

d.

Put a 0 in the least significant

bit of an 8-bit pattern without disturbing the other bits.

Attachments: