I am trying to divide a number between 10 in assembly language and I do not know why it does not save the result in the EAX register, I leave the piece of code to see if something is wrong.
_asm {
mov eax, w //w=123
mov ebx, 10
div ebx
mov r,eax
}