answersLogoWhite

0

Why flags are used in 8086 processors?

Updated: 8/20/2019
User Avatar

Wiki User

10y ago

Best Answer

Flags are used in CPUs to return the status of mathematical computations. They are used so conditional operations will work. Flags will set under conditions such as a result being negative, the result being zero, a comparison being equal, whether there is an overflow (number too big for the register), and whether there is a mathematical carry operation.

Here is an example of how flags are used in Assembly:


Cmp AX, 0 ;Is it zero?

Jnz Skip ;If not, skip past next instruction.

Sub AX, 1 ;Subtract one from the AX register.

:Skip ;Label to skip to.


So when the comparison is made, the zero flag may be set. Then Jnz (jump if not zero) is a conditional jump which only works when the zero flag is not set. There is also the Jz command to jump if zero. The flags register itself is rarely accessed directly, but many computations and opcodes affect or rely on the flags.

User Avatar

Wiki User

8y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Why flags are used in 8086 processors?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Why 8088 is slower than 8086?

The 8088 is slower than the 8086 because the 8088 is running an 8-bit bus, while the 8086 runs a 16-bit bus. The two processors are the same, 16-bit processors, but the 8088 requires twice as many memory accesses to do the same amount of work as the 8086.


A generic name for Intel processors released after the original 8086 processor is?

x86


Why 8086micro processors are called co- procossers?

The 8086 is not a co-processor. The 8087 is. The 8087 is intended to be coupled to an 8086/8088 to do math co-processing.


What micro controllers for a digital control system?

for dcs 8086 and 8085 are usually used as base microcontroller as these have indication flags which r signaled to registers


When does the overflow flag in 8086 set?

In the 8086/8088, the overflow flag is set when the result of an arithmetic instruction exceeds the bounds of the signed representation of a number. This is not the same as the carry flag, which is used for the unsigned representation. Both flags get set as needed. You decide which one to pay attention to.


Which IC is used as clock generator in 8086?

The 8086 Microprocessor operate to require frequency that is provided by clock generator to 8086 Microprocessor and also Synchronization various component of 8086.


What is the relationship of MS-DOS to CPM?

MS-DOS is a look-alike and work-alike of CP/M, only it was written for 8086/8088 processors. CP/M was originally written for 8080 processors.


Can a program written in 8085 microprocessor run in 8086 microprocessor?

No. They have a different instruction set. However, the processors are sufficiently similar that an 8086 assembler could assemble an 8085 program, given appropriate constants and macros. Some things, however, such as RIM, SIM, RST, etc. do not have equivalents in the 8086.


What is the difference between microprocessors 85 and 86?

85 is a 8 bit processor,number of flags are 5 and memory capacity is 64KB while 86 is a 16 bit processor ,number of flags are 9 and memory capacity is 1 MB.The main difference between 8085 and 8086 is that 8086 uses pipelining.


Arlier Pentiums used DIP socket with pins aligned in uniform rows around the socket?

No Pentium processors used DIP sockets. Only Intel chips earlier than that, such as a very small number of specialized 486 processors, 386 processors, 286 processors, 8086, 8087, 8084, 8080, and 4040 processors. DIP became largely abandoned for use in the CPU as the processor manufacturing market became larger- It became too cost inefficient to replace most or all of a computer when a single component (the CPU) went bad.


What are speed of buses of Intel boards like 8086 8088?

The Intel 8086 and 8088 motherboards had the system bus speed, which is 5-10 MHz However, the processors for the motherboards had different external data bus widths with the 8088 CPU featuring an 8-bit bus and the 8086 a 16-bit bus.


What was introduced in 1986 an became the most popular os among IBM and IBM compatible computers using the Intel 8086 processors?

MS-DOS