From d3e1eff9593501ff8677b9399e1f0625f415ec78 Mon Sep 17 00:00:00 2001 From: johannst Date: Thu, 7 Dec 2023 23:53:44 +0000 Subject: deploy: b5aea3fb5fcce31599e3d7397d5413a934132231 --- juicebox_asm/index.html | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'juicebox_asm/index.html') diff --git a/juicebox_asm/index.html b/juicebox_asm/index.html index d3198b3..d6639eb 100644 --- a/juicebox_asm/index.html +++ b/juicebox_asm/index.html @@ -1,7 +1,8 @@ -juicebox_asm - Rust

Crate juicebox_asm

source ·
Expand description

A simple x64 jit assembler with a minimal runtime to execute emitted code for fun.

+juicebox_asm - Rust

Crate juicebox_asm

source ·
Expand description

A simple x64 jit assembler with a minimal runtime to execute emitted code for fun.

The following is an fibonacci example implementation.

-
use juicebox_asm::prelude::*;
+
use juicebox_asm::{Asm, Reg64, Imm64, Label};
+use juicebox_asm::insn::*;
 use juicebox_asm::Runtime;
 
 const fn fib_rs(n: u64) -> u64 {
@@ -69,4 +70,4 @@
         assert_eq!(fib_jit, fib_rs(n));
     }
 }
-

Modules

  • Crate prelude, which can be used to import the most important types at once.

Structs

  • x64 jit assembler.
  • Type representing an 8 bit immediate.
  • Type representing a 16 bit immediate.
  • Type representing a 32 bit immediate.
  • Type representing a 64 bit immediate.
  • A label which is used as target for jump instructions.
  • A simple mmaped runtime with executable pages.

Enums

  • Type representing a memory operand.
  • Definition of 8 bit registers.
  • Definition of 16 bit registers.
  • Definition of 32 bit registers.
  • Definition of 64 bit registers.
\ No newline at end of file +

Modules

  • Trait definitions of various instructions.

Structs

  • x64 jit assembler.
  • Type representing an 8 bit immediate.
  • Type representing a 16 bit immediate.
  • Type representing a 32 bit immediate.
  • Type representing a 64 bit immediate.
  • A label which is used as target for jump instructions.
  • A simple mmaped runtime with executable pages.

Enums

  • Type representing a memory operand.
  • Definition of 8 bit registers.
  • Definition of 16 bit registers.
  • Definition of 32 bit registers.
  • Definition of 64 bit registers.
\ No newline at end of file -- cgit v1.2.3