diff options
author | Johannes Stoelp <johannes.stoelp@gmail.com> | 2024-12-13 22:07:18 +0100 |
---|---|---|
committer | Johannes Stoelp <johannes.stoelp@gmail.com> | 2024-12-13 22:07:18 +0100 |
commit | e744d0d1d27a0cf4fb7cc50bce09fc2aea9eeafe (patch) | |
tree | 537447240d4dcc8046343af0789871b17d32621e | |
parent | aa72571bb90dc60239f03f3467e481acb29924af (diff) | |
download | juicebox-asm-e744d0d1d27a0cf4fb7cc50bce09fc2aea9eeafe.tar.gz juicebox-asm-e744d0d1d27a0cf4fb7cc50bce09fc2aea9eeafe.zip |
fib: only use caller saved registers
-rw-r--r-- | examples/fib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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)); |