I’m experimenting with the Intel x86 Hardware Lock Elision feature using assembly language and the MASM Assembler. I’m getting the following errors;
error A2008: syntax error : MOV
error A2008: syntax error : RET
The code is;
COMMENT '
Hardware Lock Elision Test 1.
'
.686P
.MMX
.MODEL FLAT
.CODE
_main:
XACQUIRE MOV EAX, 10h
XRELEASE RET
END
It compiles fine without the XACQUIRE and XRELEASE prefixes.