vikramaditya234
December 16th, 2008, 03:17 AM
I am working on a 64bit processor (Linux platform) and i have a small code which is not working on that processor, but works good on 32bit processor.
Code:
asm("movl $0x564D5868, %eax");
asm("movw $0x0A, %cx");
asm("movw $0x5658, %dx");
asm("inl %dx, %eax");
Please tell me how can make it work it on the 64bit processor.
Thanks
Code:
asm("movl $0x564D5868, %eax");
asm("movw $0x0A, %cx");
asm("movw $0x5658, %dx");
asm("inl %dx, %eax");
Please tell me how can make it work it on the 64bit processor.
Thanks