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:
Code:
.model large,c
.code
_inton proc
sti
ret
_inton endp
_intoff proc
pushf
pop ax
cli
ret
_intoff endp
_intrst proc flag:word
mov ax,flag
push ax
popf
ret
_intrst endp
_nop proc
ret
_nop endp
end
And then the C prototype(The compiler adds the underscore prefix, tried several variants of this):
Code:
extern unsigned short cdecl intoff();
When i try to use any of the assembly functions, i get the following errors:
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?