Re: How interrupts work (x86 vs. C64)



MJ schrieb:

Hi,

Some time ago I used interrupts at Commodore C-64. When I preset address
of system interrupt (as I know there was only one interrupt available)

The NMI can also be used for a few bytes of code,
so an application can handle two different interrupts.

to my code (which ended with jump to original address of interrupt) the
result was, that my code was repeated continuously (~60 times pre
second, in other 'thread').

The interrupts at x86 seem to work differently.

For different Jobs.

How do they work, and how to 'emulate' behavior of
interrupt from C64 ?

I think you need a look to the timer interrupt(8) and
additional to Port 40h/43h.

cli
mov al, 36h ; 18,2 Hz
out 43h, al
xor al, al
out 40h, al ; low
out 40h, al ; high
sti

Dirk

.



Relevant Pages

  • How interrupts work (x86 vs. C64)
    ... Some time ago I used interrupts at Commodore C-64. ... When I preset address ... of system interrupt ...
    (comp.lang.asm.x86)
  • How interrupts work (x86 vs. C64)
    ... Some time ago I used interrupts at Commodore C-64. ... When I preset address ... of system interrupt ...
    (comp.lang.asm.x86)
  • Re: PCI interrupts issues on x86 - code snippets included
    ... Do you have any Installabe ISR routine with your PCI driver (it should be ... The hardware interrupt is INTA on the PCI bus. ... > event I have associated with the system interrupt and my IST operates as ...
    (microsoft.public.windowsce.platbuilder)
  • PCI interrupts issues on x86 - code snippets included
    ... I have debugged enough to know that the hardware is triggering the hardware ... The hardware interrupt is INTA on the PCI bus. ... event I have associated with the system interrupt and my IST operates as ...
    (microsoft.public.windowsce.platbuilder)
  • RE: PCI interrupts issues on x86 - code snippets included
    ... NKCallIntChain to see if any installed ISR ... handles the interrupt; if no ISR claims the interrupt the the function will ... The hardware interrupt is INTA on the PCI bus. ... > event I have associated with the system interrupt and my IST operates as ...
    (microsoft.public.windowsce.platbuilder)