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
IMUL: Signed Multiplication: This instruction multiplies a signed byte by a signed bit in source operand e in the register AL or signed word in source operand by signed word in th

Physical Memory Mapped I/O and Port I/O : CPU controlled I/O comes in 2 ways. Simply the difference is whether we utilize the normal memory addresses for I/O, this is mention

write and run a programme using 8086 assembly language that interchange the lower four bits of AL registered with upper four bits.

Program Translation Sequence Developing a software program to accomplish a particular task, the implementer chooses an appropriate language, develops the algorithm (a sequence


SCAS : Scan String Byte or String Word:- This instruction scans a string of words or byte for an operand word or byte specified in the register AL or  register AX. The string i

LABEL :   The Label directive which is used to assign a name to the current content of the location counter. At the beginning of the assembly process, the assembler start a loca

Zero flag: The next line compares the value in register. A with the value 1. If they are equivalent, the Zero flag is set (to 1). The next line then jumps to start: only if th

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

Write an application that does the following: (1) fill an array with 50 random integers; (2) loop through the array, displaying each value, and count the number of negative values;