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
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 :

64-bit integer calculator, which processes using 16-bits at a time (reg/mem16 operands)


ADD:  Add :- This instruction adds an immediate contents of a memory location specified in the a register ( source ) or instruction to the contents of another register (destinat

When Seen in the choir, Terry was the picture of an angelic devil. I have to underline the predicate twice

Write an assembly language program that will: accept keyboard input of a positive integer value N; compute the sum S= 1+ 2 + 3 + ... + N; print (output) the computed su

CALL : Unconditional Call:- This instruction is utilized to call a subroutine from a basic program. In case of assembly language programming, the term procedure is utilized int

There are two parts to this assignment. The first part has you reading 4 integers representing; #QUARTERS, #DIMES, #NICKELS & #PENNIES, respectively. Your program should compute t

INT N : Interrupt Type N:- In the interrupt structure of 8086/8088, 256 interrupts are distinct equivalent to the types from OOH to FFH. When an instruction INT N is executed,

Using the following table as a guide, write a program that asks the user to enter an integer test score between 0 and 100. The program should display the appropriate letter grade.