ionutdinulescu
Programmer
I have the following asm routine compiled with tasm:
PUBLIC _restore_flags
_restore_flags PROC
PUSH BP
bla, bla, bla
RET
_restore_flags ENDP
I want to call the above routine from bc++. In BC I declare the function:
extern void restore_flags(short savedFlags);
The problem is that the linker does not find the definition of the routine. I included the obj and cpp in a project but it still doesn't work.
I also tried by removing the paramter, but same result.
I know that tasm adds or removes a trailing _ to the routine names, but i'm not not sure how this exactly works. Does anyone have a working example ?
Thanks.
PUBLIC _restore_flags
_restore_flags PROC
PUSH BP
bla, bla, bla
RET
_restore_flags ENDP
I want to call the above routine from bc++. In BC I declare the function:
extern void restore_flags(short savedFlags);
The problem is that the linker does not find the definition of the routine. I included the obj and cpp in a project but it still doesn't work.
I also tried by removing the paramter, but same result.
I know that tasm adds or removes a trailing _ to the routine names, but i'm not not sure how this exactly works. Does anyone have a working example ?
Thanks.