aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples/add.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/add.rs')
-rw-r--r--examples/add.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/add.rs b/examples/add.rs
index ba887c4..6935803 100644
--- a/examples/add.rs
+++ b/examples/add.rs
@@ -21,9 +21,9 @@ fn main() {
// rdi -> first argument
// rsi -> second argument
// rax -> return value
- //
+
asm.mov(rsi, Imm64::from(42));
- asm.mov(rax, Imm64::from(add as u64));
+ asm.mov(rax, Imm64::from(add as usize));
asm.call(rax);
asm.ret();