8 Concisely describe the effect of each of the following ins

8. Concisely describe the effect of each of the following instructions, individually.

a. xor ah,ah

b. not dx

c. xor al,80h

d. or al,80h

e. and cl,Ofh

Solution

a. xor ah,ah this Instruction makes value in ah register 0 and store it in register ah.

b. not dx this instruction reverse the bits in register and store in register dx

c. xor al,80h

this instruction sets the output of two bits to 0 if both are 0\'s or 1\'s otherwise put 1 as output and store in register al.

d. or al,80h

if any one of the input is 1 then result is 1 otherwise it is 0.

so, after OR operation result is stored in al register.

e. and cl,Ofh if both the inputs are 1\' the result is 1 otherwise result is 0. in this instruction AND is operated on register cl and hexvalue Ofh are result will be stored in cl register.

8. Concisely describe the effect of each of the following instructions, individually. a. xor ah,ah b. not dx c. xor al,80h d. or al,80h e. and cl,OfhSolutiona.

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site