Re: How interrupts work (x86 vs. C64)
- From: Dirk Wolfgang Glomp <spamtrap@xxxxxxxxxx>
- Date: Wed, 25 Oct 2006 12:10:59 +0200
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
.
- References:
- How interrupts work (x86 vs. C64)
- From: MJ
- How interrupts work (x86 vs. C64)
- Prev by Date: Re: How interrupts work (x86 vs. C64)
- Next by Date: Re: Do "nops" add to the latency of a program?
- Previous by thread: How interrupts work (x86 vs. C64)
- Next by thread: Yasm Label question
- Index(es):
Relevant Pages
|