Hi,

Looking in the code generator it seems that __interrupt should turn a
normal function into an ISR and generates some PUSHes/POPs and a RETI. But
it also seems that unless you make it callee-saves it forgets half of the
registers.

If the __interrupt function is also __critical it will use RETN for the NMI.

Unfortunately there is no implementation for generation of the Interrupt
Vector Table (IVT) in SDCC for the Z80.

Interrupts are also not tested in the regression tests for Z80
(critical.c/interrupt.c).

Maarten

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to