aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-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();