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
Assembly Language: Inside the 8085, instructions are really stored like binary numbers, not a very good manner to look at them and very difficult to decipher. An assembler is

Develop an assembly language program for the system and simulate it using MPLAB. From this produce a demo program (in Assembly language) that will run on the MatrixMultimedia Devel

REP : Repeat Instruction Prefix :- This instruction is utilized as a prefix to other instructions. The instruction in which the REP prefix is provided, is executed repetitively

write a programme the addition two 3*3 matrix and stored in from list

Internal Hardware-Interrupts Internal hardware-interrupts are the outcome of sure situations that occur during the execution of a program, for example. Divide by 0. The interru

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

Explain the architecture of the file transfer protocol ftp in terms of clients, servers, sockets

Machine Coding the Programs So far we have describe five programs which were  written  for hand coding  by a programmer. In this, we will now have a deep look at how these prog

errorlevel -302 ;prevents error code for this chipset __config 0x373A ;chip config PIC spec page 146 processor 16F877A ;chipset reset code

INC: Increment : - This instruction increments the contents of the particular memory or register location by the value 1. All the condition code flags are affected except the carry