The .K3D
directive was added to MASM in version 6.13.
From http://www.amd-k6.com/wp-content/uploads/2012/07/22621.pdf page 8:
To enable MMX instructions, use the .MMX
directive.
To enable 3DNow! instructions, use the .K3D
directive after using the .MMX directive.
It is order dependent.
If I read the AMD docs correctly you need to enable .MMX
prior to enabling .K3D
.
The etymology of the term is as follows:
AMD labelled its processors K5, K6, K7 etc.
This aligned with the P5, P6 that Intel used.
Thus the K stands for 'AMD-K' series and the 3D maps to '3D-Now'.
The Masm release notes for 6.13 are just as sparse as the docs:
.K3D Directive in MASM 6.13
---------------------------------------------------------------------
The .K3D directive enables assembly of K3D instructions. Users can
check to see that @Version is 613 or higher to tell if the version
of MASM being used supports the .K3D directive and K3D instructions.