answersLogoWhite

0


Best Answer

The registers that are pushed and popped from the stack during interrupt servicing depend on the processor architecture and whether or not a specific register is used by the service routine.

Automatically pushed and popped registers include the program counter, flags, and (often) the accumulator. Manually pushed and popped registers include any others that are used, i.e. modified, by the routine. Some programmers push and pop all registers, but that can be unnecessary and wasteful (of time) if some registers are not modified.

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: When interrupts occur which registers are pushed and popped from the stack?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

What is an interrupt How are multiple interrupts dealt with?

An interrupt is a request to execute different code, initiated usually by a hardware condition such as data-ready or operation-complete, but also sometimes initiated by the running program. The processor saves its immediate state, IP and Flags, on the stack and loads a new IP value, effectively doing a CALL sequence to some interrupt service routine. The routine does whatever processing is required, and returns, restoring the running program. Under normal conditions, the interrupt response sequence disables further interrupts, so that recursive entry does not occur. The service routine reenables interrupts just before returning, so that pending or further interrupts can be processed. If multiple interrupt levels are to be supported, such as in the 8085, the interrupt service routine can set the interrupt mask, blocking the level in progress, and then reenable interrupts. This way, a second interrupt on a higher level can be processed while the first interrupt is being processed. On return, the lower level interrupt disables interrupts, restores the mask, and then reenables interrupts prior to return.


What is a TrapHandler?

A trap handler, also called an interrupt handler or interrupt service routine (ISR) is a program that executes when predefined events occur in a computer. There are software and hardware interrupts. An interrupt causes the computer's processor to stop running its current task and immediately run the trap handler to service the interrupt.


What is most likely going to occur if an organism was allergic to proteins?

Death would occur


When does generally declaration syntax error occur?

All syntax errors occur at compile time.


When does plastic strain occur?

when this and that meets that and this

Related questions

What is multiple interrupts?

Multiple interrupts refers to errors that may occur when a system is operational. The interrupts may be caused by a single error repeatedly or by different errors.


Why does an ocean trench occur?

oceanic trenches occur where tectonic plates collide and one is pushed underneath the other.


How do some volcanoes occur where one plate sinks beneath the other?

The plates get pushed up, then the the plate that gets pushed, pushes land up then you have a volcano.


When an ordinary balloon is filled with air is pushed under waterwhat changes to the balloon will occur why?

it will grow hair


How do dislocation occur?

dislocations can occur by your bone being hit with a high amount of pressure and your bone being pushed back slightly so it is not in line with your other bone and there is a gap between them


What can occur at places where one plate is pushed below another plate?

It is called subduction. Usually it will form coastal volcanoes.


Interrupt initiated transfer and data transfer under program control?

Program control Interrupt:-Program interrupt can be described as a transfer of program control form a currently running program to another service program on a request generated externally or internally. After the service program is executed the control returns to the original program. It is imperative for the CPU to return to the same state that it was when interrupt occurred after the program interrupted and the service routine has been executed. The state of the CPU at the end of the executive cycle(when the interrupt is recognized )is determined from:1. The content of the program counter. 2. The content of all processor registers. 3. The content of certain status conditions.Interrupts can be classified into the major types as below:-1. External interrupts:- this is come from input output devices, from a timing device, from a circuit monitoring the power supply, or from any other external source. 2. Internal Interrupts:- this is arise when an instruction or data is used illegally or erroneously. These interrupts are also known as traps. 3.Software interrupts:-external and internal interrupts r occur in the hardware of the CPU. A software interrupt is initiated during execution of an instruction. Software interrupts is a special call instruction that behaves like an interrupt rather than a subroutine call. It can be called to function by the programmer to intitiate an interrupt procedure at any desired pointing the program.ReagrdsRaj Choudhary (kajla 9950645563)


What is an interrupt How are multiple interrupts dealt with?

An interrupt is a request to execute different code, initiated usually by a hardware condition such as data-ready or operation-complete, but also sometimes initiated by the running program. The processor saves its immediate state, IP and Flags, on the stack and loads a new IP value, effectively doing a CALL sequence to some interrupt service routine. The routine does whatever processing is required, and returns, restoring the running program. Under normal conditions, the interrupt response sequence disables further interrupts, so that recursive entry does not occur. The service routine reenables interrupts just before returning, so that pending or further interrupts can be processed. If multiple interrupt levels are to be supported, such as in the 8085, the interrupt service routine can set the interrupt mask, blocking the level in progress, and then reenable interrupts. This way, a second interrupt on a higher level can be processed while the first interrupt is being processed. On return, the lower level interrupt disables interrupts, restores the mask, and then reenables interrupts prior to return.


When did Mt. Stromboli occur?

2000 years ago, when the two plate tectonics pushed up against each other and made mount Stromboli


How do disaster occur?

because the earths plaits are pushed together to create stuff like volcanoes ,giant waves and earthquakes.gale force winds are created by space and


What is a pulled muscle?

When a muscle is pushed to far with exertion, small tears can occur in the muscle tissue. The pain associated with this damage when the muscle is used is called a pulled muscle.


What are clouds pushed along by the jet stream?

The only type of clouds that occur high enough to be propelled by the jet stream are cirrus clouds, which are composed mostly of ice crystals.