# Eternal Computer

> Built from commit 3effc4a043e0 on 2026-11-24. The current build: https://abdess.github.io/retrobios/version.json

Source: https://abdess.github.io/retrobios/emulators/eternal/

Eternal Computer emulates Eternal Software Initiative computer.

**About this profile**

| Detail | Value |
|---|---|
| Type | libretro |
| Classification | Community fork |
| Source | [https://codeberg.org/iyzsong/eternal-libretro](https://codeberg.org/iyzsong/eternal-libretro) |
| Upstream | [https://github.com/adriancable/eternal](https://github.com/adriancable/eternal) |
| Version | 0.0, stated in [`libretro.c`](https://codeberg.org/iyzsong/eternal-libretro/src/commit/13adf143aea822ebc1ee23722a80e93a7979e4c9/libretro.c) |
| Revision | [iyzsong/eternal-libretro@13adf143aea8](https://codeberg.org/iyzsong/eternal-libretro/commit/13adf143aea822ebc1ee23722a80e93a7979e4c9), [adriancable/eternal@23d4d6c7c9f9](https://github.com/adriancable/eternal/commit/23d4d6c7c9f930fa72568ce795c9147af09d56ee) |
| Run by | [EmuDeck](https://abdess.github.io/retrobios/platforms/emudeck/), [Lakka](https://abdess.github.io/retrobios/platforms/lakka/), [RetroArch](https://abdess.github.io/retrobios/platforms/retroarch/), [RetroDECK](https://abdess.github.io/retrobios/platforms/retrodeck/), [RetroPie](https://abdess.github.io/retrobios/platforms/retropie/) |
| Profiled | 2026-09-17 |
| Profile | [YAML](https://github.com/Abdess/retrobios/blob/main/emulators/eternal.yml), [JSON](https://abdess.github.io/retrobios/api/v1/emulators/eternal.json) |
| Cores | eternal |
| Systems | Eternal Software Initiative computer |

**Technical notes**

Virtual machine for the Eternal Software Initiative architecture, a Subleq variant with indirect operands, a keyboard port, a console port, a wall clock at word 64 and a timer interrupt through word 0. Adrian Cable's reference machines are vm/vm.c (SDL3 framebuffer) and vm/vm_console.c, and the libretro core by iyzsong carries the same loop in libretro.c:186-222.

Machine memory is a static array of 3<<27 words, 1.5 GiB, cleared again when the content is unloaded (libretro.c:360-364). The framebuffer is its last 800x512 words (libretro.c:9-13, 22-23), pushed to the frontend as XRGB8888 on every retro_run (libretro.c:330-334).

The content is the whole machine image. retro_load_game copies the buffer the frontend hands over to word 0, refuses an image larger than memory and starts the interpreter on a thread (libretro.c:302-314). need_fullpath is false and the accepted extensions are capsule and bootimage (libretro.c:275-282). The upstream machines fread the same file into mem ([`vm/vm.c:45-48`](https://github.com/adriancable/eternal/blob/23d4d6c7c9f930fa72568ce795c9147af09d56ee/vm/vm.c#L45-L48), [`vm/vm_console.c:32`](https://github.com/adriancable/eternal/blob/23d4d6c7c9f930fa72568ce795c9147af09d56ee/vm/vm_console.c#L32)).

A boot image comes out of tools/make_boot_image.py applied to a Subleq ELF: a boot block of text_start bytes, with the interrupt vector at word 0, the saved PC at word 1, the initial stack pointer at word 4, the framebuffer word address at word 6 and the constants 0, -1 and 1 at words 36, 38 and 39, followed by the flat binary ([`tools/make_boot_image.py:34-68`](https://github.com/adriancable/eternal/blob/23d4d6c7c9f930fa72568ce795c9147af09d56ee/tools/make_boot_image.py#L34-L68)). The upstream repository ships capsules/vmlinux.bootimage.xz, ESI Linux with busybox, Doom, nano, lynx and htop in its initramfs, 110 MiB once decompressed. The frontend does not open xz, so the image is decompressed before loading.

Nothing else is read. retro_set_environment registers the log interface and the keyboard callback and nothing more (libretro.c:238-249), and the core never asks for a system, save or content directory and opens no file itself. Keyboard events are translated to USB HID usage IDs and queued eight deep (libretro.c:36-184). Console output goes to the host stdout with write (libretro.c:205-206). A fetched C of zero halts the machine and asks the frontend to shut down (libretro.c:196-199). No savestate (libretro.c:336-339), no memory map, no audio.

No BIOS or firmware files required.

## Next steps

- [Get the files](https://abdess.github.io/retrobios/which-pack/), for the setup in use
- [Every system](https://abdess.github.io/retrobios/systems/), and the files each one needs
- [When a game does not start](https://abdess.github.io/retrobios/wiki/troubleshooting/)

Data as of 24 November 2026.
