Am 19.09.2002 22:17:11, schrieb Chris Liechti <[email protected]>:
>Am 19.09.2002 21:36:53, schrieb dimmy <[email protected]>:
>
>>> MSPGCC has _BIC_SR and BIS_SR, but is there a construct equivalent to
>>> _BIC_SR_IRQ in the IAR and Quadravox packages?
>>
>>Has anybody any suggestions about the code output? Or some additional
>>futures... ?
heh, in doc.txt this is descibed on line 1076.....
i think this macros works for this purpose (at least it did in my experiments):
#define _BIC_SR_IRQ(x)\
__asm__ __volatile__ (\
"bic %0, .L__FrameOffset_" __FUNCTION__ "(r1)"\
:: "i" (x)\
)
#define _BIS_SR_IRQ(x)\
__asm__ __volatile__ (\
"bis %0, .L__FrameOffset_" __FUNCTION__ "(r1)"\
:: "i" (x)\
)
any comments, anyone volunteers to test it?
chris