home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Almathera Ten Pack 4: Demo 1
/
almathera_demo1.bin
/
sourcecode
/
german
/
irq.s
< prev
next >
Wrap
Text File
|
1995-03-17
|
552b
|
35 lines
initirq:
move.w #$4000,$dff09a
move.l $6c,OldVector
move.l #Neuirq,$6c
move.w #$c000,$dff09a
wait:
andi.b #64,$bfe001
bne wait
move.w #$4000,$dff09a
move.l OldVector,$6c
move.w #$c000,$dff09a
ILLEGAL
rts
Neuirq:
movem.l d0-d2/a0-a1,-(a7)
move SR,-(sp)
move.w $dff01e,d0
btst #5,d0
bne.s makeirq
bra Endirq
Makeirq:
move.w #$fff,$dff180
Endirq:
move (sp)+,SR
movem.l (sp)+,d0-d2/a0-a1
DC.W $4ef9
OldVector: DC.L $0000