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 PepeV - 8.04.2014 17:31)
Als Antwort auf Re: Interrupt handling von Torsten - 3.04.2014 20:39
Ich nutze:
Pro-Bot128
> > > 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
> >
>
> Hallo Peter und Pepe,
>
> when I understand it right, we only have to change
> the file "interp128.bin" before we upload it to the
> module? So we have to change the sixth word in the
> file for the fourth external interrupt?
>
> GruÃ? Torsten

Hi Torsten, hi Peter (glad you are back!)

The method Peter sketches does seem rather clumsy.
Is there really no way to determine the location of an assembler routine
during runtime?

My (wild) idea is to mark the beginning of a routine with a characteristic
sequence of (redundant) instructions, e.g. sei sei sei. Then one could
use another routine to search for this sequence (using lpm or elpm?).
Would this be possible?

But I don't see how one could then change the interrupt vectors. Do you?

Any other ideas?

Regards,
Pepe


    Antwort schreiben


Antworten:

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)