Found 409 Articles for Microcontroller

Program execution transfer instructions in 8086 microprocessor

Chandu yadav
Updated on 30-Jul-2019 22:30:25

9K+ Views

These instructions are used to transfer/branch the instructions during an execution. There are two types of branching instructions. The unconditional branch and conditional branch.The Unconditional Program execution transfer instructions are as follows.OpcodeOperandDescriptionCALLaddressUsed to call a procedure and save their return address to the stack.RET----Used to return from the procedure to the main program.JMPaddressUsed to jump to the provided address to proceed to the next instruction.LOOPaddressUsed to loop a group of instructions until the condition satisfies, i.e., CX = 0 Now let us see the Conditional Program execution transfer instructions.OpcodeOperandDescriptionJCaddressUsed to jump if carry flag CY = 1JNCaddressUsed to jump if no ... Read More

String manipulation instructions in 8086 microprocessor

George John
Updated on 30-Jul-2019 22:30:25

9K+ Views

String is a group of bytes/words and their memory is always allocated in a sequential order. String is either referred as byte string or word string. Here we will see some instructions which are used to manipulate the string related operations.The String manipulation instructions are as follows.OpcodeOperandDescriptionREPInstructionUsed to repeat the given instruction till CX ≠ 0.REPE/REPZInstructionUsed to repeat the given instruction until CX = 0 or zero flag ZF = 1.REPNE/REPNZInstructionUsed to repeat the given instruction until CX = 0 or zero flag ZF = 1.MOVS/MOVSB/MOVSW----Used to move the byte/word from one string to another.COMS/COMPSB/COMPSW----Used to compare two string bytes/words.INS/INSB/INSW----Used ... Read More

Process control instructions in 8086 microprocessor

Chandu yadav
Updated on 30-Jul-2019 22:30:25

2K+ Views

These instructions are used to control the processor action by setting/resetting the flag values.These are the process/processor control instructions.OpcodeOperandDescriptionSTC----Used to set carry flag CY to 1CLC----Used to clear/reset carry flag CY to 0CMC----Used to put complement at the state of carry flag CY.STD----Used to set the direction flag DF to 1CLD----Used to clear/reset the direction flag DF to 0STI----Used to set the interrupt enable flag to 1, i.e., enable INTR input.CLI----Used to clear the interrupt enable flag to 0, i.e., disable INTR input.  

Data transfer instructions in 8086 microprocessor

Arjun Thakur
Updated on 30-Jul-2019 22:30:25

5K+ Views

These instructions are used to transfer the data from the source operand to the destination operand. These are also known as copy instructions.Let us see the data transfer instructions of 8086 microprocessor. Here the D and S are destination and source respectively. D and S can be either register, data or memory address.OpcodeOperandDescriptionMOVD, SUsed to copy the byte or word from the provided source to the provided destination.PUSHDUsed to put a word at the top of the stack.POPDUsed to get a word from the top of the stack to the provided location.PUSHA----Used to put all the registers into the stack.POPA----Used ... Read More

Logical instructions in 8086 microprocessor

Ankith Reddy
Updated on 30-Jul-2019 22:30:25

7K+ Views

These instructions are used to perform operations where data bits are involved, i.e. operations like logical, shift, etc. We can say that these instructions are logical instructions. In 8086, the destination register may or may not the Accumulator.Let us see the logical instructions of 8086 microprocessor. Here the D, S and C are destination and source and count respectively. D, S and C can be either register, data or memory address.OpcodeOperandDescriptionANDD, SUsed for adding each bit in a byte/word with the corresponding bit in another byte/word.ORD, SUsed to multiply each bit in a byte/word with the corresponding bit in another ... Read More

Arithmetic instructions in 8086 microprocessor

George John
Updated on 30-Jul-2019 22:30:25

14K+ Views

These instructions are used to perform arithmetic operations like addition, subtraction, multiplication, division, etc. In 8086 the destination address is need not to be the accumulator.Let us see the arithmetic instructions of 8086 microprocessor. Here the D and S are destination and source respectively. D and S can be either register, data or memory address.OpcodeOperandDescriptionADDD, SUsed to add the provided byte to byte/word to word.ADCD, SUsed to add with carry.INCDUsed to increment the provided byte/word by 1.AAA----Used to adjust ASCII after addition.DAA----Used to adjust the decimal after the addition/subtraction operation.SUBD, SUsed to subtract the byte from byte/word from word.SBBD, SUsed ... Read More

Addressing modes in 8086 microprocessor

Chandu yadav
Updated on 30-Jul-2019 22:30:25

2K+ Views

In this section we will see the addressing modes of Intel 8086 microprocessor.There are eight addressing modes in 8086 MPU. These modes are:Immediate Addressing ModeRegister Addressing ModeDirect Addressing ModeRegister Indirect Addressing ModeBased Addressing ModeIndexed Addressing ModeBased-Index Addressing ModeBased-Index with displacement addressing modeImmediate AddressingThe addressing mode in which the data operand is a part of the instruction itself is known as immediate addressing mode.MOV CX, 4929 H, ADD AX, 2387 H, MOV AL, FFH  Register AddressingIt means that the register is the source of an operand for an instruction.MOV CX, AX; copies the contents of the 16-bit AX register into; the ... Read More

Flag register of 8086 microprocessor

Arjun Thakur
Updated on 06-Sep-2023 13:34:45

43K+ Views

The flag register is one of the special purpose register. The flag bits are changed to 0 or 1 depending upon the value of result after arithmetic or logical operations.8086 has 16-bit flag register, and there are 9 valid flag bits. The format of flag register is like below.BitsD15D14D13D12D11D10D9D8D7D6D5D4D3D2D1D0Flags    ODITSZ AC P CY We can divide the flag bits into two sections. The Status Flags, and the Control Flags.Status FlagsIn 8086 there are 6 different flags which are set or reset after 8-bit or 16-bit operations. These flags and their functions are listed below.Flag BitFunctionSAfter any operation if the MSB is 1, then it indicates ... Read More

General purpose registers in 8086 microprocessor

Ankith Reddy
Updated on 30-Jul-2019 22:30:25

13K+ Views

The general purpose registers are used to store temporary data in the time of different operations in microprocessor. 8086 has eight general purpose registers. The description of these general purpose registersRegisterFunctionAXThis is the accumulator. It is 16-bit registers, but it is divided into two 8-bit registers. These registers are AH and AL. AX generally used for arithmetic or logical instructions, but it is not mandatory in 8086.BXBX is another register pair consisting of BH and BL. This register is used to store the offset values.CXCX is generally used as control register. It has two parts CH and CL. For different looping ... Read More

Pin diagram of 8086 microprocessor

George John
Updated on 30-Jul-2019 22:30:25

11K+ Views

The Intel 8086 is 40 pin DIP Microprocessor. Here we will see the actual pin level diagram of 8086 MPU.8086 was the first 16-bit microprocessor available in 40-pin DIP (Dual Inline Package) chip. Let us now discuss in detail the pin configuration of a 8086 Microprocessor.This is the actual pin diagram of 8086 Microprocessor.Now let us see the Pin functions of the 8086 microprocessor.PinsFunctionAD15 – AD0These are 16 address/data bus. AD0-AD7 carries low order byte data and AD8AD15 carries higher order byte data. During the first clock cycle, it carries 16-bit address and after that it carries 16-bit data.A16 – ... Read More

Advertisements