Trying to write assembler x64 code. Found a problem:linker says
Relocation type ADDR32 is invalid without /LARGEADDRESSAWARE:NO, for symbol 'hInstance'
about such code:
.data
hInstance dq ?
.code
main proc
...
mov rcx, hInstance ; ...
It is because some problems of addressing and writing parameters of 'mov' instruction.
I can use parameter /LARGEADDRESSAWARE:NO, and error will disappear.
But how should I write instruction 'mov' and it's parameters, if I just want to get a value from memory and put it into general purpose register, in 'pure' x64, not using x32?
Something like this question was asked here:
http://forum.pellesc.de/index.php?topic=2920.msg11064but forum recommended me to post a new topic, not reply in existing.