Linked by Thom Holwerda on Fri 5th Apr 2013 16:04 UTC
General Development "For years, PC programmers used x86 assembly to write performance-critical code. However, 32-bit PCs are being replaced with 64-bit ones, and the underlying assembly code has changed. This white paper is an introduction to x64 assembly. No prior knowledge of x86 code is needed, although it makes the transition easier."
Permalink for comment 557952
To read all comments associated with this story, please click here.
RE[4]: 64-bit Asm Quiz
by TempleOS on Mon 8th Apr 2013 16:48 UTC in reply to "RE[3]: 64-bit Asm Quiz"
TempleOS
Member since:
2013-04-03

You have no choice but to use 32-bit because there are only 32-bit immediates, mostly.

The only 64-bit immediate is for any register but only like this

MOV R8,0x1234567890ABCDEF

All other addressing modes have 32-bit immediates.

CALL REL32

No

CALL REL64

If you want long call?

MOV RAX,0x123456789ABCDEF
CALL RAX

Edited 2013-04-08 16:49 UTC

Reply Parent Score: 1