Something went wrong. Try again.
A cycle-accurate Apple II and Apple IIgs emulator written in Zig, usable as both a program and a library.
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435363738394041// SPDX-FileCopyrightText: 2026 Jeffrey C. Ollie <jeff@ocjtech.us>//// SPDX-License-Identifier: MIT
// An Apple IIgs with a system disk on its hard disk.//// zig65 --config examples/iigs.ziggy//// One program emulates every machine, so which one this is has to be said, and// .machine is what says it. Otherwise it is the same format and mostly the// same fields as the 8-bit machines read: each takes the settings that apply// to it. A IIgs has its drives built in rather than on a card, so a disk goes// in .disk1 here rather than in a controller's entry in .slots.
.machine = "iigs",
.rom = "roms/Apple IIGS ROM 01 - 342-0077-B.bin",
// An 800K disk in the 3.5-inch drive. Which drive a floppy goes in is settled// by how big it is, so this field is just "the disk"..disk1 = "disks/boot800.po",
.monitor = "monochrome",.text = "pixels",
// The block device and both its drives. Any image up to thirty-two megabytes,// which is as far as a sixteen-bit block number reaches. A 2IMG says which way// round its sectors are and is believed; a bare image leaves that to its name.//// A IIgs has seven real slots, and this is the one card modelled in them. Its// own ports -- the disk port, the two serial ports -- are not cards but// choices in the Control Panel, so they are not here..slots = [ .{ .slot = 7, .card = "block", .image = "disks/system.2mg", .image2 = "disks/work.po", },]