Hello i have this annoying error in my code
start.asm(443) : error: coff: invalid relocation size
this error only occurs when I assemble the code using the win64 format
but this is required as i am using a windows 64bit Linker
the code in question is
Code:
extern _portid
extern _res
global _aoutportb
_aoutportb:
mov dx, _portid
in ax, dx
mov [_res], al
_res is declared in my c++ code as
Code:
unsigned char res=0;
and _portid is declared as
Code:
unsigned short portid
(the value varies)
line 443 is in the above asm code
Code:
mov dx, _portid
thanks for any help