Language file for the Maltese language.
[AROS.git] / rom / cia / addicrvector.c
blob340451e6beb65a165b074bcbe5fb4a039e760764
1 /*
2 Copyright © 2010, The AROS Development Team. All rights reserved.
3 $Id:$
5 Desc: AddICRVector() function.
6 Lang: english
7 */
9 #include <exec/interrupts.h>
10 #include <proto/cia.h>
11 #include <proto/exec.h>
13 #include "cia_intern.h"
15 AROS_LH2(struct Interrupt *, AddICRVector,
16 AROS_LHA(LONG, iCRBit, D0),
17 AROS_LHA(struct Interrupt *, interrupt, A1),
18 struct Library *, resource, 6, Cia)
20 AROS_LIBFUNC_INIT
22 struct CIABase *CiaBase = (struct CIABase *)resource;
23 struct Interrupt *old;
25 Disable();
26 old = CiaBase->Vectors[iCRBit];
27 if (!old)
28 CiaBase->Vectors[iCRBit] = interrupt;
29 Enable();
30 return old;
32 AROS_LIBFUNC_EXIT