Puedes seguirnos en

BUSCADOR

Engineering

ADD/ADC instructions in 8086

The ADD instruction performs the basic operation of adding a number from the source and a number from the destination. It is like any basic addition that we perform in our day to day life, no difference what so ever. But the ADC instruction on the other hand, adds the carry flag into the result. The ADC instruction is basically adding the carry which is generated by a particular operation into the result.

ADD AX,BX  : This is register addressing mode instruction that adds the content of BX to AX
ADC AX, 1234H: This is immediate addressing mode instruction that adds the immediate number 1234H to AX with the carry 
and stores the result in AX

The source may be an immediate number, register or simply a memory location. The source can be specified in any of the 24 addressing modes available in the 8086 microprocessor. But the thing change when it comes to the specification of the destination part of the instruction. The destination can only be an register or a memory location, addressed in any of the 24 addressing mode, but it cannot be an immediate number, because the 8086 microprocessor simply cannot operate on two immediate data, at least one of them has to stored in a memory location or a register.

Anuncio publicitario

Valid: ADC AX,BX
Not Valid: ADC 1234H,0254H

The source and the destination must be of the same type in the ADD and ADC instructions. Basically they both can be a byte or word but cannot be different from each other. There is no need to mention that they both cannot be memory locations at the same time.

Anuncio publicitario
Escrito por

Administrador de ENGGDRCAOS. Canal dedicado especialmente a la formación del estudiante que aspira a ser ingeniero. Todos los videos son Ingles. Apasionado del universo Apple, estudiante de Ingeniería y Gamer por vocación.

Publicidad

ARTÍCULOS RELACIONADOS

Engineering

The microprocessor 8086 can be operated in two modes, minimum mode and maximum mode. In minimum modes, all control signals are generated by the...

Engineering

The 8086 instructions are grouped into following main types: Data transfer / Copy instruction: These types of instructions are used to transfer data from...

Engineering

The 8086 Processor is divided into two parts: Execution Unit and the Bus interface unit. Below are mentioned the features of the Bus Interface...

Engineering

The 8086 Processor is divided into two parts: Execution Unit and the Bus interface unit. Functions of Execution Unit Control system inside the execution...