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
You have to write a subroutine (assembly language code using NASM) for the following equation.

8237 modes : Intel 8237 can be set to four different type of style of transfer: 1) Single - One transfer at a time,  it allow processor access to the bus between transfers

Instruction set of 8086 : The 8086/8088 instructions are categorized into the following major types. This section describes the function of each of the instructions with approp

Conditional branch Instruction When these type of instructions are executed, they transfer control of execution to the address mention relatively in the instruction, provided t

You have to write a subroutine (assembly language code using NASM) for the following equation. Dx= ax2+(ax-1)+2*(ax+2)/2

Compute the Fibonacci sequence - assembly program: Problem: Fibonacci   In this problem you will write a program that will compute the first 20 numbers in the Fibonacci sequ

8251 Programmable/Communication Interface As an instance of a serial interface device let us suppose Intel's 8251 A programmable communication interfaces. The 8251A is diagram

Using the AddSub program from Ch3 under c:\Masm615\examples as a reference, write a program that subtracts three 16-bit integers using only registers. Insert a call DumpRegs statem

SEG : Segment of a Label:- The SEG operator is which is used to decide the segment address of the, variable, label or procedure and substitutes the segment base address in plac

Opcode : The opcode generally appear in the first byte.but in a few instructions, a register objective is in the first byte and few other instructions may have their 3-bits of