![]() ![]() This is normally used to compare the operands bit by bit. ![]() Hence TEST instruction only affects the flag register (OF, CF, SF, ZF, PF) and AF undefined which indicates the result of the operation without changing any operand. These instructions compare two string byte or two string word with another string. The TEST instruction performs bit by bit logical AND operation on the source and destination operand but does not load the destination operand with result i.e., this instruction performs bit by bit AND and sets the corresponding Flag. String Instructions MOVS / MOVSB / MOVSW: It causes moving of byte or word from one string to another. NOT operand Example for NOT Instruction : Instruction The logical AND operation gives output as TRUE (logic 1) only when both the inputs are TRUE i.e., logic 1, otherwise, the output will be FALSE (logic 0) as shown in the below truth table. The AND instruction performs bit by bit logical AND operation between source operand and destination operand, and stores the result in the destination operand. In this article let us learn about the logical instructions of the 8086 microprocessor. While the shift instructions group includes SHR, SHL, SAR, and SAL instructions, and rotate instructions include ROL, ROR, RCR, and RCL instructions. The logical group includes AND, OR, XOR, NOT, and TEST instructions. In 8086 microprocessor instruction set, the bit manipulation instructions are divided into three groups. These instructions are also known as Bit Manipulation Instructions. Logical instructions are one among the instruction set of 8086 microprocessor. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |