rn Im playing a bit with the assembly language. I want to write a program which takes two int inputs and then multiplies those too and returns the result. But whatever I type in as an input, the program always multiplies the first input with 10 and returns that result.
Why is that? and which register holds my input?
moving constants into rax and rid is fine. but with my own inputs its not correct. Thats btw my code currently:
global gauss
gauss:
mov rax, rdi
mul rsi
ret