Give advantages and disadvantages of 8086 microprocessor
Answers
A procedure is a set of instructions that is written separately and can be used in any part of the entire code that too any number of times just by making a call to it from the mainline program. It has certain advantages and disadvantages.
Advantages of using procedures
Reusability of code:
The procedures provide us an ease in our code by making the set of instructions reusable. So, we need not write the same set of instructions again and again when required.
Less usage of memory:
The procedure is a subprogram which is stored in the memory only one. But it can used as many times as required. So, this occupies less memory space.
Development becomes easier:
By using procedures in a code, the modular programming can be well implemented and so, each part of the code is written in a different module which can be developed by a separate developer. So, this reduces the burden on one developer and the programming becomes simple for each of them.
Reduced development time:
As separate developers can work on different modules of programs separately, multiple developers can work on the project simultaneously which reduces the total development time of the project.
Debugging and error fixing becomes easier:
It becomes easier to detect and fix errors if the program is present in different modules rather than the entire program being present in a single code fragment.
Disadvantages of using procedures
Extra code is required to integrate the procedures:
Every time a procedure is to be implemented in the program, we require CALL and RET instructions to integrate the procedures with the calling program.
Extra time required to link the procedures:
Whenever a call to procedure is made, the control of the processor goes to the procedure code, and then returns to the calling program code. This takes a lot of extra time.
Not efficient way to use for a small set of instructions:
When the number of instructions is much less, then the calling and returning from the procedures itself takes a lot more time than executing the instructions itself. So, it is better to use procedures in cases where the set of instructions to be included in the procedure is large.
The major advantage of 8086 is re usability of code.
Explanation:
8086 : Advantages :
- The code can be reused and the instructions need not be written repeatedly.
- The storage space is less since it is a sub program.
- Developers can re-develop the code with ease since programming has become simple for them and the new developers can change the existing code.
8086 : Disadvantages.
- Everytime a new procedure has to be executed we need to use CALL and RET instructions.
- The CALL and RET instructions takes a lot of time when processing even small instructions.
To Learn More :
1.How physical address is generated in 8086 microprocessor?
https://brainly.in/question/3145181
2.In 8086 microprocessor the address bus is bit wide
https://brainly.in/question/13459008