From d3e1eff9593501ff8677b9399e1f0625f415ec78 Mon Sep 17 00:00:00 2001 From: johannst Date: Thu, 7 Dec 2023 23:53:44 +0000 Subject: deploy: b5aea3fb5fcce31599e3d7397d5413a934132231 --- src/add/add.rs.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/add') diff --git a/src/add/add.rs.html b/src/add/add.rs.html index 112d0f1..dc8c566 100644 --- a/src/add/add.rs.html +++ b/src/add/add.rs.html @@ -44,9 +44,9 @@ #[cfg(not(any(target_arch = "x86_64", target_os = "linux")))] compile_error!("Only supported on x86_64 with SystemV abi"); -use juicebox_asm::prelude::*; +use juicebox_asm::insn::*; use juicebox_asm::Runtime; -use Reg64::*; +use juicebox_asm::{Asm, Imm64, Reg64::*}; extern "C" fn add(a: u32, b: u32) -> u32 { a + b @@ -59,9 +59,9 @@ // 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(); -- cgit v1.2.3