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

EVOLUTION OF MICROPROCESSOR : The digital circuits and systems may be broken into two part: 1) Sequential Circuit and 2) Combinational Circuits     Norm

which uses BIOS interrupt INT 21 to read current system time and displays it on the top-left corner of screen.

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

i have trying to do the homework but there is a mistake. (Counting positive and negative numbers and computing the average of numbers) write a program that reads an unspecified nu

SHL/SAL : Shift logical/Arithmetic Left: These instructions shift the operand byte or word bit by bit to the left and insert 0 in the newly introduced least significant bits. In c

assembly language program to find larges number in an array

Will be needing help with assembly language assignments over the course of 4 weeks

hey ,, I need to know how to let a symbol moves with mouse ??

Write a MC68H12 assembly language program to find the largest number in an array of ten 8-bit numbers. The array is stored in memory locations starting at address $1100. Use branch