Skip to content

Commit

Permalink
fib: only use caller saved registers
Browse files Browse the repository at this point in the history
  • Loading branch information
johannst committed Dec 13, 2024
1 parent aa72571 commit e744d0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/fib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit e744d0d

Please sign in to comment.