Test-logical instruction-microprocessor, Assembly Language

TEST : Logical Compare Instruction: The TEST instruction performs bit by bit logical AND operation on the 2 operands. Each bit of the result is then set to value I, if the equivalent bits of both operands are I, else the result bit is reset to  value 0. The result of this ending operation is not available for further use) but flags are affected. The affected flags are CF, OF, WF, SF and PF. The operands might be registers, immediate data or memory. The instance of this instruction are as follows:

Example :

 

1.  TEST       AX,         BX

2.  TEST       [0500], 06H

3.  TEST       [BX]       [Dl],       CX

Posted Date: 10/12/2012 2:41:30 AM | Location : United States







Related Discussions:- Test-logical instruction-microprocessor, Assignment Help, Ask Question on Test-logical instruction-microprocessor, Get Answer, Expert's Help, Test-logical instruction-microprocessor Discussions

Write discussion on Test-logical instruction-microprocessor
Your posts are moderated
Related Questions
This is a short program to practice assembly language loops and if/else statements. You will use various jump commands and the cmp instruction. The program will generate a random

Interrupt Table Each interrupt level has a booked memory location, called an interrupt vector.  All these vectors (or pointers) are stored in the interrupt table. Table lies at

NOT : Logical Invert: The NOT instruction complements (inverts) the contents of an a memory location or operand register bit by bit. The instance are as following: Example :

Write a 68hc11 assembly language program which generation of the following waveforms connected to your DAC i)   Square wave ii)  Saw tooth waveform iii) Sine wave iv) U

Write an assembly language program to find the maximum of: y = x 6 - 14x 2 + 56x for the range -2 ≤ x ≤ 4, by stepping one by one through the range. The program should in

(1) Write a program that will: (a) display "Enter Your Name:" (b) convert the entered name to Capital letters (if small), If any other character is entered, the program wil


Machine Coding the Programs So far we have describe five programs which were  written  for hand coding  by a programmer. In this, we will now have a deep look at how these prog

OR: Logical OR: The OR instruction carries out the OR operation in the similar way as described in case of the AND operation. The restriction on source and destination operands ar

Register Organization of 8086 8086  has  a great  set  of registers  containing  special  purpose and general  purpose  registers.  All the 8086 resisters are 16-bit registers.