Bit Operations

jav284

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.

BeforeInstructionAfter

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.

BeforeInstructionAfter

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.

BeforeInstructionAfter

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.

BeforeInstructionAfter

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.

BeforeInstructionAfter

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.

BeforeInstructionAfter

AX:A8 B5

CL:04

rol ax, cl

AX, CF
 

 

**PLEASE SEE ATTACHMENT**

  • 11 years ago
  • 20
Answer(1)

Purchase the answer to view it

  • bit_operations.docx
Bids(1)