An interrupt in the 8085, like in most computers, is a request to execute code out of sequence, usually by an external event, such as a signal from an IO device. In the 8085, an interrupt is almost exactly like a CALL instruction, except that the accumulator and flags register is also pushed on the stack. (Recall that the CALL instruction only pushes the return address on the stack.)This means that to return from an interrupt you must also pop the accumulator and flags, and this is done simply with the IRET instruction, as opposed to the RET instruction. In the 8085, the interrupt addresses are located in low memory, though the actual interrupt address could be anywhere if the interrupting device is capable of generating the three byte CALL sequence instead of the simpler INTx sequence, or the even simpler INTx.5 sequence.
Copyright © 2026 eLLeNow.com All Rights Reserved.