Hey guys i’m on a project where i’ve to port my 32 bit driver to 64 bit platform. I’ve ported almost 95% of the code but now stuck with inline assembly code which was written for 32 Bit architecture. But now on 64 Bit Architecture when i try to build my ported driver i get ‘__asm’ keyword not >supported on this architecture error.
Can somebody help me to get through this problem please?
This is my inline asm code ,which i have to compile with 64 Bit driver.
_asm
{
Mov Ax, DiPlus11
Mov Cl, 4
Shr Ax, Cl
Mov Cx, Ax
Mov Ax, DiPlus16
Shl Ax, 1
Add Ax, Cx
Xor Cx, Cx
Cmp Ah, DiPlus18
Jnb ReturnWithError
Div Byte Ptr DiPlus18
Xchg Cl, Ah
Cmp Ah, DiPlus1A
Jnb ReturnWithError
Div Byte Ptr DiPlus1A
Mov ch, al
Mov dh, ah
Inc Cx
Mov CxR, Cx
Mov DxR , Dx
}
Please suggest me an approach to get through this problem.