The old 32-bit registers have been extended to 64 bits, the r
registers (rax
, rbx
, rsp
and so on).
In addition, there s some extra general purpose registers r8
through r15
which can also be accessed as (for example) r8d
, r8w
and r8b
(the lower 32-bit double-word, 16-bit word and 8-bit byte respectively). The b
suffix is the original AMD nomenclature but you ll sometimes see it written as l
(lower case L
) for "low byte".
I tend to prefer the b
suffix myself (even though the current low-byte registers are al
, bl
, and so on) since it matches the d/w = double/word
names and l
could potentially be mistaken for long
. Or, worse, the digit 1
, leading you to question what the heck register number 81
is :-)
The high bytes of the old 16-bit registers are still accessible, under many circumstances, as ah
, bh
, and so on (though this appears to not be the case for the new r8
through r15
registers). There are some new instruction encodings, specifically those using the REX
prefix, that can not access those original high bytes, but others are still free to use them.
In addition, there s some new SSE registers, xmm8
though xmm15
.
The eip
and eflags
registers have also been extended to rip
and rflags
(though the high 32 bits of rflags
are, for now, still unused).
See the wikipedia page and MSDN for more details.
Whether these are supported in the asm
keyword for a particular C compiler, I couldn t say. What little assembly I do (and it s becoming about one day a year) is done in assembly rather than C.
Related: