Kommentar: Einfügen von HTML im Kommentar: Link einfügen: <a href="LINKURL" target="_blank">LINKTITEL</a> Bild einfügen: <img src="BILDURL"> Text formatieren: <b>fetter Text</b> <i>kursiver Text</i> <u>unterstrichener Text</u> Kombinationen sind auch möglich z.B.: <b><i>fetter & kursiver Text</i></b> C Quellcode formatieren: <code>Quellcode</code> BASIC Quellcode formatieren: <basic>Quellcode</basic> (Innerhalb eines Quellcodeabschnitts ist kein html möglich.) Wichtig: Bitte mache Zeilenumbrüche, bevor Du am rechten Rand des Eingabefeldes ankommst ! -> I > Hi all, > > I am trying to find out if and how assembly routines are interrupted > by the bytecode interpreter. The reason is that when my Probot128 > records or plays sounds, it remains in an assembly routine for many > seconds. If possible it should at the same time keep track of > the pulses from the wheel encoders via external interrupts. > > Now I found out that during an assembly routine, when interrupts are > not disabled with cli, when an interrupt occurs, the byte code > increases a counter associated with that particular interrupt. (It is > that counter that is read and reset with Irq_GetCount.) It seems that > is the only thing that happens. In any case, no user written ISR is > carried out. > > If interrupts are disabled with cli, any interrupt that occurs is > remembered by the hardware. When the assembly routine is left and > interrupts are enabled again with sei, the bytecode interpreter > increases the counter and jumps to the user defined ISR. > > Is that correct? > > Would it be possible to locate the address of the routine that > increases the interrupt counter? > > Would it be possible to replace that routine with another one, e.g. > by changing the interrupt vector? > > I would be grateful for your ideas and insights. > > Regards, > Pepe > >