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.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176% SPDX-FileCopyrightText: 2026 Jeffrey C. Ollie <jeff@ocjtech.us>% SPDX-License-Identifier: MIT%% The README's bibliography, in BibTeX. Regenerate the README from it with% `zig build references`; do not edit that section of the README by hand.
@reference{apple-computer-inc-nd-a-0, author = {Apple Computer, Inc.}, year = {n.d.-a}, title = {Apple Disk II technical procedures}, url = {https://mirrors.apple2.org.za/Apple%20II%20Documentation%20Project/Peripherals/Disk%20Drives/Apple%20Disk%20II/Manuals/Apple%20Disk%20II%20Technical%20Procedures.pdf}, annotation = {The service manual for the drive itself rather than for the card: how themechanism is put together, what each adjustment does, and the alignmentprocedures. Nothing in the source cites it — the drive is modelled from thecard's side, where Sather and the WOZ reference say what the card sees — butit is where the parts behind that behaviour are described: the four magnets,the speed, the head, and the ones this does not model at all.},}
@reference{apple-computer-inc-1985a-svc-1, author = {Apple Computer, Inc.}, year = {1985a-svc}, title = {Apple IIc flat panel monitor technical procedures}, url = {https://archive.org/download/a-list-list-of-appleii-manuals/AppleService%20Technical%20Procedures%20-%20Apple%20IIc%20Flat%20Panel%20Monitor%20KBS.pdf}, annotation = {The service manual for the IIc's optional liquid crystal display: what itsmodules are, how they fail, how the case comes apart, and the part numbers.It describes the panel as hardware and says nothing about what software seesof it, so it settles questions about the product and none about the machine —which turns out to be the whole story rather than a shortcoming, becausethere is nothing about the panel for software to see. It hangs off the videoexpansion connector, which carries video and timing signals and no registers,so `--monitor flat-panel` is a monitor and not a device. Here rather than inthe reference list because nothing in the source cites it: what it would havesettled — what the panel looked like — is the one thing it does not say, sothe two colours in `picture.Monitor.ink` are a choice and say so.},}
@reference{apple-computer-inc-1985–1986-2, author = {Apple Computer, Inc.}, year = {1985–1986}, title = {Cortland documentation set}, url = {https://www.brutaldeluxe.fr/documentation/cortland/}, annotation = {Thirty-odd documents published under the IIgs's codename, before it had itsname. Three bear on this: the Cortland Hardware Reference, which is theearlier draft of the Apple IIgs hardware reference; Cortland I/O Timing,which is where the 2.8 MHz processor and the 1.024 MHz Mega II are setagainst each other; and the Vegas ROM Diagnostics, which describes thepower-on self-test this project spends its time watching — though the scan ofthat one is typescript and the OCR of it is close to unreadable.},}
@reference{mos-technology-inc-1976-3, author = {MOS Technology, Inc.}, year = {1976}, title = {MCS6500 family hardware manual}, edition = {Publication 6500-10A}, url = {https://archive.org/details/MCS6500_Family_Hardware_Manual}, annotation = {Nothing in the source cites it: it is about pin assignments, bus timing andthe support chips rather than the instruction set, and mentions NOP once inpassing. Listed because it is the companion volume to the programming manualand is where the timing behind the cycle counts is set out. The[PDF](https://archive.org/download/MCS6500_Family_Hardware_Manual/MCS6500_Family_Hardware_Manual.pdf)is searchable; the[scan at 6502.org](https://6502.org/documents/books/mcs6500_family_hardware_manual.pdf)is the better image but carries no text layer, so it cannot be.},}
@reference{videx-1983-4, author = {Videx.}, year = {1983}, title = {UltraTerm quick reference guide}, url = {https://archive.org/download/Videx-UltraTerm_Quick_Reference_Guide/Videx-UltraTerm_Quick_Reference_Guide.pdf}, annotation = {Two sides of one card, and the companion to the UltraTerm manual in thereference list — the same year, the same publisher, and dated by its own"Copyright 1983 Videx Inc." rather than by association with the manual. Itlists what a user or a program sends the card: the input commands and thescreen editing on one side, the rest of the output commands and theoperating system commands as typed from BASIC on the other, with theattribute escape set out as a lead-in followed by two digits, the firstchoosing the standard attribute set and the second the alternate. Nothing inthe source cites it because the manual says all of it at greater length andis the better thing to quote; it is here because it is the form the card'sowner actually had beside the machine, and because a one-page summary is aquick way to check that a command list is complete.},}
@reference{sidhu-g-s-andrews-r-f-oppenheime-1990-5, author = {Sidhu, G. S., Andrews, R. F., & Oppenheimer, A. B.}, year = {1990}, title = {Inside AppleTalk}, edition = {2nd ed.}, publisher = {Addison-Wesley.}, url = {https://vintageapple.org/macbooks/pdf/Inside_AppleTalk_Second_Edition_1990.pdf}, annotation = {The protocol specification proper, from the wire up: LLAP's frame, itsfour control types, the dynamic node assignment, the inter-frame andinter-dialog gaps, and every layer above. Nothing in the source cites itbecause Zilog's application note carried what the chip's model needed andthe firmware carried the rest; it is where to look for anything the bridgein `src/localtalk.zig` does not yet do, which is most of the protocol.},}
@reference{brock-d-nd-6, author = {Brock, D.}, year = {n.d.}, title = {GSplus}, type = {Computer software}, publisher = {GitHub.}, url = {https://github.com/digarok/gsplus}, annotation = {A cross-platform build of KEGS wrapped in SDL, which is how KEGS is run on amachine that is not the one Kent Dickey used. Consulted for the same IIgsbehaviour KEGS is, where a modern build was easier to check against.},}
@reference{dickey-k-nd-7, author = {Dickey, K.}, year = {n.d.}, title = {KEGS: Kent's emulated GS}, edition = {Version 1.34}, type = {Computer software}, url = {https://kegs.sourceforge.net/}, annotation = {The reference for the Apple IIgs, cycle accurate where it matters: thespeaker click, the Ensoniq's thirty-two oscillators, low-level 3.5- and5.25-inch drive access a nibble copier survives, and every graphics modeincluding the border. Where a question about the IIgs is not settled byApple's own documents, this is where the answer is checked.},}
@reference{juiced-gs-2024-8, author = {Juiced.GS.}, year = {2024}, title = {Emulation evaluation 2024}, url = {https://juiced.gs/emulators/}, annotation = {A survey of the Apple II and IIgs emulators in use, each with whatdistinguishes it, and the checklist the reviewers hold them to — storage,save states, debugging, sound, networking, joystick and paddle, videofidelity. The starting point for deciding what zig65 ought to have next.},}
@reference{mamedev-nd-9, author = {MAMEdev.}, year = {n.d.}, title = {MAME}, type = {Computer software}, url = {https://www.mamedev.org/}, annotation = {The widest net: a driver for the IIgs and for dozens of the cards and clones,written to preserve the hardware rather than to be convenient. Where a cardor a machine this does not have is described as code, MAME is often the onlyplace it is.},}
@reference{openemulator-nd-10, author = {OpenEmulator.}, year = {n.d.}, title = {OpenEmulator}, type = {Computer software}, publisher = {GitHub.}, url = {https://github.com/openemulator/openemulator}, annotation = {The fullest model of the analog side of the machine: the composite signal,the monitor, and the way a real display made colour out of a dot stream.`--monitor ntsc` here demodulates the same signal; OpenEmulator is where themore complete treatment of the tube is, for a front end that has a realscreen rather than a terminal.},}
@reference{putter-g-nd-11, author = {Putter, G.}, year = {n.d.}, title = {Virtual II}, type = {Computer software}, url = {https://virtualii.com/}, annotation = {A polished macOS emulator of the II, II Plus and IIe, and the one that mountsa host folder as a ProDOS disk rather than wanting an image — the convenience`src/prodos.zig` could grow into, since it already builds a volume fromscratch.},}