What i want to do, is to turn off the interrupts, and then enable them again when i'm done. Here's the assembly code:
And then the C prototype(The compiler adds the underscore prefix, tried several variants of this):
_intrst proc flag:word
When i try to use any of the assembly functions, i get the following errors:
extern unsigned short cdecl intoff();
Error! E2028: _intoff is an undefined reference
file com.obj(C:\_src\cpp\Test\com.c): undefined symbol _intoff
Any suggestions/other compilers/assemblers i could try?