X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=doc%2Fsdccman.lyx;h=ef0a41a26f0fe767ef4dbcaaf1f0abb8e45ccfe9;hb=f1c40004ae349f7cd3a1a5c5c85f62f695196370;hp=75d1494ef8bb49deac8011ad008494bc1f4b2cd2;hpb=ff4443fc53c2baa488803080c0949f44c6f39844;p=fw%2Fsdcc diff --git a/doc/sdccman.lyx b/doc/sdccman.lyx index 75d1494e..ef0a41a2 100644 --- a/doc/sdccman.lyx +++ b/doc/sdccman.lyx @@ -1957,6 +1957,21 @@ make install prefix=$(HOME)/local/sdcc \layout Standard Of course this doesn't change the search paths compiled into the binaries. +\newline + +\newline +Moreover the install path can be changed by defining DESTDIR +\begin_inset LatexCommand \index{DESTDIR} + +\end_inset + +: +\layout LyX-Code + +make install DESTDIR=$(HOME)/sdcc.rpm/ +\layout Standard + +Please note that DESTDIR must have a trailing slash! \layout Section Search Paths @@ -10340,6 +10355,41 @@ Since the number of interrupts available is chip specific and the interrupt \end_inset for details on customizing startup. +\layout Subsection + +Z80 Interrupt Service Routines +\layout Standard + +The Z80 uses several different methods for determining the correct interrupt + vector depending on the hardware implementation. + Therefore, SDCC ignores the optional interrupt number and does not attempt + to generate an interrupt vector table. +\layout Standard + +By default, SDCC generates code for a maskable interrupt, which uses an + RETI instruction to return from the interrupt. + To write an interrupt handler for the non-maskable interrupt, which needs + an RETN instruction instead, add the +\emph on +critical +\emph default + keyword: +\layout Verse + + +\family typewriter +void nmi_isr (void) critical interrupt +\newline +{ +\newline +\SpecialChar ~ +\SpecialChar ~ +\SpecialChar ~ +\SpecialChar ~ +... + +\newline +} \layout Section Enabling and Disabling Interrupts