I want to make a near, relative call to a function from another object file:
; a.asm
global _func
_func:
; [..]
; b.asm
extern _func
; [..]
call _func
Unfortunately, the code above doesn't work. I need to load _func
into a register:
mov eax, _func
call eax
Both files are compiled to COFF object files. Is there any way to make a near, relative call without loading the function address into a register?