home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Meeting Pearls 3
/
Meeting_Pearls_III.iso
/
Pearls
/
disk
/
Misc
/
medianotify
/
irq.a
< prev
next >
Wrap
Text File
|
1995-05-04
|
820b
|
34 lines
********************************************************************************
*
* IRQ.asm
*
* a really simple interrupt handler. since we won't do anything complex
* within here, we just signal the main task what's going on. the status
* of the device must be asked by the main task; i don't believe that you
* could change media within milliseconds ;-) - so this is an appropriate
* solution.
*
********************************************************************************
; INCLUDE "exec/types.i"
; INCLUDE "exec/io.i"
; INCLUDE "devices/inputevent.i"
SECTION IRQCODE,CODE
XDEF @ChangeNotifier
XREF _signal
@ChangeNotifier:
move.l a0,-(sp) ; cpu register a1 contains a pointer to the task to be signalled
moveq #0,d0
move.l _signal,d1
bset d1,d0
jsr -324(a6) ; Signal()
move.l (sp)+,d0
rts
END