aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples/fib.rs
diff options
context:
space:
mode:
authorJohannes Stoelp <johannes.stoelp@gmail.com>2024-12-13 22:07:18 +0100
committerJohannes Stoelp <johannes.stoelp@gmail.com>2024-12-13 22:07:18 +0100
commite744d0d1d27a0cf4fb7cc50bce09fc2aea9eeafe (patch)
tree537447240d4dcc8046343af0789871b17d32621e /examples/fib.rs
parentaa72571bb90dc60239f03f3467e481acb29924af (diff)
downloadjuicebox-asm-e744d0d1d27a0cf4fb7cc50bce09fc2aea9eeafe.tar.gz
juicebox-asm-e744d0d1d27a0cf4fb7cc50bce09fc2aea9eeafe.zip
fib: only use caller saved registers
Diffstat (limited to 'examples/fib.rs')
-rw-r--r--examples/fib.rs2
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));