From e744d0d1d27a0cf4fb7cc50bce09fc2aea9eeafe Mon Sep 17 00:00:00 2001 From: Johannes Stoelp Date: Fri, 13 Dec 2024 22:07:18 +0100 Subject: fib: only use caller saved registers --- examples/fib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/fib.rs') diff --git a/examples/fib.rs b/examples/fib.rs index c7505bb..b495067 100644 --- a/examples/fib.rs +++ b/examples/fib.rs @@ -45,7 +45,7 @@ fn main() { let sum = Reg64::rax; let tmp = Reg64::rcx; - let prv = Reg64::rbx; + let prv = Reg64::rdx; asm.mov(tmp, Imm64::from(0)); asm.mov(prv, Imm64::from(1)); -- cgit v1.2.3