Hello Adam, I think you're supposed to take our crt.s and modifiy it to your needs with the missing jumps. https://sourceforge.net/p/sdcc/code/HEAD/tree/trunk/sdcc/device/lib/z80/crt0.s
Assemble it and then link it with the rest of your application. Maarten > 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 ------------------------------------------------------------------------------ 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