Hi,

I'm developing a program in C for the Z80 and compiling using SDCC. I can't
figure out how to create interrupt handlers for the NMI interrupt that
starts at 0x0066 and the IM1 interrupt that starts at 0x0038. I'm using
these calls:

void IM1_InterruptHandler(void) __interrupt
and
void NMI_InterruptHandler (void) __critical __interrupt

and the resulting assembly looks about right but they aren't located at the
proper addresses. I did spot this thread:

https://sourceforge.net/p/sdcc/feature-requests/519/

but can't figure out how to use the above example crt0.s file with SDCC for
a Z80 target. Using the --use-crt switch doesn't seem to work.

unknown compiler option '--use-crt=crt0.s' ignored

Anyone experienced with Z80 development with SDCC that can provide some
guidance?
Perhaps I'm doing something incorrectly.

Thanks!
-Adam
"Please don't judge my God by my inability to follow him"  - Chris Mollins
===============
www.onecircuit.com
www.mapleridge.net
===============
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to