# KEGS

> 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/kegs/

KEGS emulates Apple IIGS and Apple II. It reads 3 files, 1 of them required: without a required file it does not start games. A required file is needed only by the machines that use it. Each file below cites the line of source code that reads it.

**About this profile**

| Detail | Value |
|---|---|
| Type | standalone |
| Classification | Other |
| Source | [https://kegs.sourceforge.net/](https://kegs.sourceforge.net/) |
| Version | 1.38, read from kegs.1.38.zip |
| Releases announced at | [https://kegs.sourceforge.net/](https://kegs.sourceforge.net/) |
| Profiled | 2026-08-08 |
| Profile | [YAML](https://github.com/Abdess/retrobios/blob/main/emulators/kegs.yml), [JSON](https://abdess.github.io/retrobios/api/v1/emulators/kegs.json) |
| Cores | kegs |
| Systems | [Apple IIGS](https://abdess.github.io/retrobios/systems/apple/#apple-iigs), [Apple II](https://abdess.github.io/retrobios/systems/apple/#apple-ii) |

**Technical notes**

Apple IIGS emulator by Kent Dickey, shipped as one zip holding the sources and the KEGSMAC, kegswin.exe and xkegs binaries.

The system ROM is the only file needed to boot. config_load_roms takes the first name that stats across g_kegs_default_paths (config.c:149-151), which covers the current directory, $HOME, $HOME/Library/KEGS, the executable directory and a Mac bundle Resources directory. g_cfg_rom_path is tried first, then the fixed list (config.c:407-410,1105-1109). ROM size selects the machine, 32 KB for an Apple //e, 128 KB for a ROM 01 IIGS and 256 KB for a ROM 03 IIGS, and any other size is refused (config.c:1136-1153). Without a ROM, KEGS raises its config panel instead of starting (config.c:1110-1115).

Three ROMs are compiled in. Slot 7 gets the SmartPort PROM literal g_rom_c700[] (config.c:463,1165-1169). Slot 6 gets a Disk II PROM rebuilt at load time, XORed out of the IIGS ROM through g_rom_c600_rom01_diffs[] (config.c:428,1177-1183) or copied from offset 0x600 of a //e ROM (config.c:1172-1176). The IIGS control panel reaches it by setting slot 6 to "Your Card". Text uses g_font_array[] from kegsfont.h (video.c:272-273, prepared at sim65816.c:667).

Slots 1 to 5 and slot 7 carry empty name lists (config.c:413-417,420), so slot 6 is the only slot that reads a card ROM from disk.

config.kegs carries the disk assignments and the battery RAM, and KEGS creates it when none is found (config.c:638-672).

## Files

**3 files**: 1 required, 2 optional. 2 have an HLE fallback.

In this collection: 2 in repo and 1 missing.

## Required

### `ROM` required in repo

Apple IIGS system ROM

- Aliases: `ROM.01`, `ROM.03`, `APPLE2GS.ROM`, `APPLE2GS.ROM2`, `xgs.rom`, `XGS.ROM`, `Rom03gd`, `342-0077-b`
- Accepted sizes are 32768 (Apple //e), 131072 (ROM 01) and 262144 (ROM 03). -rom on the command line and the g_cfg_rom_path config line both replace the first search name (config.c:1465-1467). A 32 KB //e ROM has to carry the Disk II PROM at offset 0x600, which KEGS reads into slot 6.

- Size: 32.0 KB (32,768 bytes) / 128.0 KB (131,072 bytes) / 256.0 KB (262,144 bytes)
- Collection copy: [`bios/Apple/Apple IIGS/ROM`](https://abdess.github.io/retrobios/systems/apple/#sha1-e4fc7560b69d)
- Platforms: `ROM1`: [Batocera](https://abdess.github.io/retrobios/platforms/batocera/#apple-iigs), [KNULLI](https://abdess.github.io/retrobios/platforms/knulli/#apple-iigs). `APPLE2GS.ROM`: [RetroBat](https://abdess.github.io/retrobios/platforms/retrobat/#apple-iigs). `Apple-IIgs/boot1.rom`: [MiSTer FPGA](https://abdess.github.io/retrobios/platforms/misterfpga/#apple-iigs). `apple2gs1.rom`: [Recalbox](https://abdess.github.io/retrobios/platforms/recalbox/#apple2gs). `bios/APPLE2GS.ROM`: [RetroDECK](https://abdess.github.io/retrobios/platforms/retrodeck/#apple-iigs)

**Validation and source**

- Validation: size
- Source: `config.c:135`, `config.c:407-410`, `config.c:1096-1161`

## Optional

### `c600.rom` optional in repo HLE fallback

Disk II controller PROM for slot 6

- Aliases: `controller.rom`, `disk.rom`, `DISK.ROM`, `diskII.prom`
- Replaces the built-in PROM. The first 256 bytes are read into slot 6 and a shorter file is rejected.

- Size: min 256 B
- Collection copy: [`bios/Apple/Apple II/AppleIIe_DiskII.rom`](https://abdess.github.io/retrobios/systems/apple/#sha1-d4181c9f046a)
- Platforms: `AppleIIe_DiskII.rom`: [BizHawk](https://abdess.github.io/retrobios/platforms/bizhawk/#apple-ii). `AppleIIe_DiskII.rom` and `disk2-16boot.rom`: [RetroBat](https://abdess.github.io/retrobios/platforms/retrobat/#apple-ii)

**Validation and source**

- Validation: size
- Source: `config.c:418-419`, `config.c:1192-1224`

### `<charrom>` optional missing HLE fallback

ROMX-compatible character ROM

- Picked through the F4 config panel, which stores the path in g_cfg_charrom_path, and there is no default name. KEGS reads 4096 bytes at 0x1000 times the selected font number and replaces the built-in text font with them. The 32 fonts it lists span a 131072-byte image.

- Size: min 4.0 KB (4,096 bytes)

**Validation and source**

- Validation: size
- Source: `config.c:136-137`, `config.c:259-276`, `config.c:1070-1093`

## 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.
