explain sar instructions in 8086 family with


Explain SAR instructions in 8086 family with example and their effect on flag.

SAR: Shift each bit of operand right through given number of bits, this instruction shifts every bit of the operand that is contained in an 8-bit or memory locations or 16-bit register, right by the given number of bits. The least significant bits of the operand are shifted in carry flag. The most significant bit that is a sign bit for the sign operand is retained into MSB position.

        Flags affected as: OF, ZF, SF, CF and PF.

Request for Solution File

Ask an Expert for Answer!!
Electrical Engineering: explain sar instructions in 8086 family with
Reference No:- TGS0288649

Expected delivery within 24 Hours