bit operations

Answer the following questions:

a. For each part of this problem, assume the “before” values when the given instruction is executed. Give the requested “after” values.

Before Instruction After

AX:FA 75

and ax, 000fh

AX, SF, ZF

b. For each part of this problem, assume the “before” values when the given instruction is executed. Give the requested “after” values.

Before Instruction After

AX:FA 75

or ax, 0fff0h

AX, SF, ZF

c. For each part of this problem, assume the “before” values when the given instruction is executed. Give the requested “after” values.

Before Instruction After

AX:FA 75

or ax, 0ffffh

AX, SF, ZF

d. For each part of this problem, assume the “before” values when the given instruction is executed. Give the requested “after” values.

Before Instruction After

AX:A8 B5

shr ax, 1

AX, CF, OF
 

e. For each part of this problem, assume the “before” values when the given instruction is executed. Give the requested “after” values.

Before Instruction After

AX:A8 B5

ror ax, 1

AX, CF
 

f. For each part of this problem, assume the “before” values when the given instruction is executed. Give the requested “after” values.

Before Instruction After

AX:A8 B5

CL:04

rol ax, cl

AX, CF
 

 

**PLEASE SEE ATTACHMENT**

"Is this question part of your assignment? We can help"

ORDER NOW