Files
unicorn/bindings/zig
Fernando d755a8bed9 bindings/zig: Fix sample_riscv_zig partial writes and logging (#2133)
- Use full code length (instead of subtracting 1) when writing instructions.
- Uniformly zero-pad addresses in logs and print hexadecimal.
- Correct the instruction-hook callback in test_riscv2.
2025-03-16 11:05:17 +08:00
..
2023-08-04 11:24:00 -03:00
2025-03-10 11:32:14 +08:00

Unicorn-engine-Zig

Zig bindings for the Unicorn emulator with utility functions.

Unicorn is a lightweight multi-platform, multi-architecture CPU emulator framework based on QEMU.

How to use

Using the Zig Build System, you can include the following into your local build.zig.zon

.{
    .dependencies = .{
        .unicorn = .{
            .url = "https://github.com/unicorn-engine/unicorn/archive/<ref SHA>.tar.gz",
            .hash = "<hash>",
        }
    },
}

Note that currently the only module exported publicly is unicorn-sys