Zur Übersicht - INFO - Neueste 50 Beiträge - Neuer Beitrag - Suchen - Zum C-Control-I-Forum - Zum C-Control-II-Forum

Re: Interrupt handling Kategorie: Programmierung Assembler (von PeterS - 3.04.2014 11:39)
Als Antwort auf Re: Interrupt handling von Torsten - 31.03.2014 20:44

>
> > > > Would it be possible to replace that routine with another one, e.g.
> > > > by changing the interrupt vector?
> > >
> > > I would warn urgently against that unless you knows the system
> > > very exactly. For polling the interrupt flag you need only few
> > > system clocks.
> >
> > You are right, changing the interrupt vectors can have ugly side effects.
> > But except the timer interrupt that is used for multitasking, servo and clock,
> > experimenting with the other interrupts should not be fatal.
> >
> > Regards,
> >
> > Peter
>
> Hallo Peter,
>
> that would mean, Pepe's proposal is possible?

Yes. You must know what you are going to do and write the right assembler
code. These modified interrupts are of course then no longer supported
from the interpreter.

Also it is a clumsy solution, because with every recompile you have to check
where the assembler routines are, and then patch the vectors at the beginning
of the interpreter to the addresses.

Regards, Peter

>
> GruÃ? Torsten


    Antwort schreiben


Antworten:

Re: Interrupt handling (von Torsten - 3.04.2014 20:39)
    Re: Interrupt handling (von PeterS - 13.04.2014 10:44)
    Re: Interrupt handling (von PepeV - 8.04.2014 17:31)
        Re: Interrupt handling (von Torsten - 8.04.2014 20:37)
            Re: Interrupt handling (von PepeV - 9.04.2014 20:14)
                Re: Interrupt handling (von Torsten - 14.04.2014 20:10)