Lds/les instruction execution-microprocessor, Assembly Language

LDS/LES Instruction execution :

 LAHF: Load AH from Lower Byte of Flag: - This instruction loads the AH register with the lower byte of the flag register. This instruction can be utilized to observe the status of all the condition code flags (except over flow) at a time.

SAHF: Store AH to Lower Byte of Flag Register. This instruction resets or sets the condition code flags (except overflow) in the lower byte of the flag register depending on the equivalent bit positions in AH. If a bit in AH is value1, the flag equivalent to the bit position is set, else it is reset.

PUSHF: Push Flags to Stack: - The push flag instruction pushes the flag register on the stack; first the upper byte and then the lower byte will be pushed on the stack. The SP is decremented by value 2, for each push operation. The basic operation of this instruction is same to the PUSH operation.

POPF: Pop Flags from Stack:-The pop flags instruction loads the flag register totally (both bytes) from the word contents of the memory location currently addressed by SS and SP. The SP is incremented by the value 2 for each pop operation.

Posted Date: 10/12/2012 12:57:52 AM | Location : United States







Related Discussions:- Lds/les instruction execution-microprocessor, Assignment Help, Ask Question on Lds/les instruction execution-microprocessor, Get Answer, Expert's Help, Lds/les instruction execution-microprocessor Discussions

Write discussion on Lds/les instruction execution-microprocessor
Your posts are moderated
Related Questions
Linking a program The DOS linking program LINK.EXE links the different object modules of function library routines and source program to produce an integrated executable code o

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

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

AAD: ASCII Adjust for Division though the names of these 2 instructions (AAM and AAD) seem to be same, there is many difference between their functions. The AAD instruction conver

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 an assembly language program to perform a rot13 1 conversion on characters in a text file.  The program should read charatcers from the input file, perform the rot13 convers

Write a program to evaluate the following expression. You are to evaluate the following equation: num1 - (input + num2) - (num3 + num4) Input will be a hex number input by


Port Mapped I/O or I/O Mapped I/O I/O devices are mapped into a separate address space. This is generally accomplished by having a different set of signal lines to denote a mem

Write a program to mask bits D3D2D1D0 and to set bits D5D4 and to invert bits D7D6 of ax register