I am trying to convert some c code to assmebly and I need help.
char encode(char plain){
__asm{
mov eax, plain
add eax, 2
ret
}
}
The first problem is that the visual studio complains that the register size does not match, i.e. eax is too small / large for char. I got the impression that they were both FARDS. Also, if I leave the variable in eax and ret in the assembly, it really will return that variable, right?
source
share