when I try to compile movd
instruction it is showing error as
error A2085:instruction or register not accepted in current CPU mode
My code is as follows:
.386
.model flat, c
.code
add_func_asm PROC
movd eax, ebx
ret
add_func_asm endp
END
this is .asm
file and I called this function from a C
file
I fixed it by using below code
.586
.mmx
.model flat, c
.code
add_func_asm PROC
movd mm1, ebx
ret
add_func_asm endp
END