Hi I am just playing around in 64 bit assembly but my compiler keeps throwing :(13: Invalid combination of opcode and operands) can anyone explain why this is happening thanks.
10: myfunc:
11: mov rax, rcx
12: xor rdx, rdx
13: idiv 10
14: mov rax, rdx
15: ret
For people that doesn't read assembly this is similar to:
int myfunc(int a)
{
return a % 10;
}