Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

What is the last mnemonic in ISR for an interrupt in 8085?

Status
Not open for further replies.

rednewguy

Full Member level 2
Full Member level 2
Joined
Jun 3, 2005
Messages
123
Helped
2
Reputation
4
Reaction score
0
Trophy points
1,296
Activity points
2,413
INTERRUPT-8085

what is the last mnemonic in the ISR for an interrupt in 8085. is it RET. how will the processor differentiate a return from a subroutine and an interrupt.

thanks
 

Re: INTERRUPT-8085

I asked my programmer about your question (old 8085 guy) and got this response. Hope this helps.

dfullmer

Since interrupt support is built into 8085, it handles
interrupts much like called subroutines.

Process:
Interrupt pin goes active (ex. 5.5)
8085 jumps to vector address (02CH for 5.5 int.)
Return address is automatically push onto stack so
return is easy and automatic.
Address of ISR in 02CH causes jump to ISR
Interrupts are now disabled
ISR performed
You must now manually re-enable interrupts and return
That is, last two op codes in ISR should be:
EI
RET
that's it.
I suppose if you wanted recursive or nested
interrupts, you could re-enable interrupts earlier in
the ISR.
 

    rednewguy

    Points: 2
    Helpful Answer Positive Rating
Re: INTERRUPT-8085

Does the ISR saves only return address or both (return address and register values). should we have to explicitly store the register values? or the interrupt handler will itself do it?
 

Re: INTERRUPT-8085

Only the return address is saved ..

If you need to preserv the registers' values you need to do it in the very beginning of the ISR by using PUSH (and then POP) instruction ..
Of course, if a register is not used during interrupt you don't need to worry obout its value ..

Regards,
IanP
 

    rednewguy

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top