← All projects
Project record2 mentions
Originally shared on Hacker News

Zig64

Zig64 is a Zig library for developing N64 homebrew. It provides low-level control of the console's hardware, including framebuffer output, and is adding support for the RDP (the N64's rasterizing GPU component) so programs can draw triangles. It defines packed structs for all RDP commands with documentation, and builds a CommandList struct that constructs RDP command lists and validates them (correct subcommand ordering for triangle/rectangle rendering, framebuffer rendering target present, synchronization commands in place).

Last shared
01 / Source history

Shared over time

Each entry reflects what was shared on that date. Details may have changed since then.

  1. Zig64

    Zig64 is a Zig library for developing N64 homebrew. It provides low-level control of the console's hardware, including framebuffer output, and is adding support for the RDP (the N64's rasterizing GPU component) so programs can draw triangles. It defines packed structs for all RDP commands with documentation, and builds a CommandList struct that constructs RDP command lists and validates them (correct subcommand ordering for triangle/rectangle rendering, framebuffer rendering target present, synchronization commands in place).

    Posted by @yellowapple · Original source ↗

    Source text · @yellowapple · · Source ↗

    I've been resuming work on a Zig library for developing N64 homebrew¹. Previous milestone was getting a framebuffer onto the screen, and after achieving that I took an overly-long break. Current goal, which I've been working on for a bit more than a week now, is to add support for controlling the RDP (the part of the N64's GPU that actually does all the rasterization), such that programs can actually draw triangles.
  2. Zig64

    This project provides Zig-native APIs for building Nintendo 64 ROMs and interfacing with the N64's memory-mapped hardware, with implementing interrupt handlers as the next planned milestone.

    Posted by @yellowapple · Original source ↗

    Source text · @yellowapple · · Source ↗

    Last month I demonstrated the ability to build Nintendo 64 ROMs with Zig¹, making some headway on Zig-native APIs for interfacing with the N64's memory-mapped hardware.