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: Select all
extern _portid
extern _res
global _aoutportb
_aoutportb:
mov dx, _portid
in ax, dx
mov [_res], al
Code: Select all
unsigned char res=0;
and _portid is declared as
Code: Select all
unsigned short portid
line 443 is in the above asm code
Code: Select all
mov dx, _portid