# The Apple IIgs (a later, separate board) Read for planning only; nothing here is checked to cycle level. The IIgs is a 16-bit machine with a whole Apple IIe inside one chip, and its own Phase 0 detail should be done when the IIe rows of this board pass their milestones. ## The machine (DOC: GSHR ch. 2-7; OCR quality of the pinned scan is poor in places) | Part | What | Family piece | | --- | --- | --- | | CPU | WDC 65C816 at 2.8 MHz ("fast") or 1.024 MHz ("slow", when the Mega II side or I/O is accessed); MAME lists "WDC W65C816 @ 2.86 MHz" (OBSERVED) | `65816-python` (rungs 0-5 pass) | | **Mega II** | "combines the functions of several circuits found in the Apple IIe": the IIe's video, MMU and IOU logic, on the 1 MHz side (DOC: GSHR ch. 2, "The Mega II custom IC") | in board: the IIe's model from this board, recast | | **FPI** (Fast Processor Interface) | runs fast RAM, the ROM and refresh, and synchronises the CPU with the 1 MHz side by stretching its cycles (DOC: GSHR ch. 2, "The FPI custom IC") | in board | | **VGC** | the video graphics controller: Super Hi-Res 320/640 modes, border colour, an interrupt register at $C023 and its clear register at $C032 (DOC: GSHR ch. 4, Figures 4-3, 4-4; the OCR of the second address is unclear: verify) | in board | | Sound | the Sound GLU and the **Ensoniq 5503 DOC** with its own sound RAM (DOC: GSHR ch. 5, "The Ensoniq DOC"; the oscillator count and RAM size to be read there) | a new chip; also used in the Ensoniq Mirage/ESQ-1 (outside the family's plans); in board under the chip rule | | Disk | the **IWM** (5.25" and 3.5", SmartPort) (DOC: GSHR; MAME `fdc`, OBSERVED) | shared with the IIc rows of this board | | Serial | Zilog 8530 SCC (DOC: GSHR ch. 7, Tables 7-10..7-12) | in board | | Keyboard, mouse | ADB through a GLU and a keyboard microcontroller (an M50740-family part, to be confirmed: U14) | a 6502-derived MCU: if it is run from its own ROM it is a CPU and would get a core (`m50740-python` on `6502-python`'s frame), or a functional ADB model | | Slots | seven Apple II slots, the same signals as the IIe | this board's slot sockets | ## Shape Proposal (open decision 1): a separate board `apple2gs-python` that pins `apple2-python` for the Mega II side (video modes, soft switches, slots, the Disk II and IWM, the Mockingboard), as sega32x-python pins megadrive-python, and adds the 65C816, the FPI's two-speed timing, the VGC, the DOC and the ADB. Its census already exists in part ([census.md](census.md): the eXo IIgs set, the laserdisc-port images, the IIgs ROMs by SHA-1). ## Domains (first guess) One crystal drives the CPU, the Mega II and the DOC in the hardware as documented (to verify: U14), so the order of record can stay serial; the DOC is the natural `-fast` thread (a pure producer from register writes and its RAM, which the CPU reaches only through the Sound GLU's registers: a channel). ## Sources for its Phase 0 GSHR (pinned), the IIgs Firmware Reference, the Ensoniq 5503 data sheet (to find and check), Clock Signal's `Machines/Apple/AppleIIgs/` (MIT, pinned sparse, tier 5), MAME's `apple2gs` (BSD-3-Clause by its `license:` line, closed box in this phase), KEGS and GSplus (GPL: closed boxes, built in emu-tools-gpl if wanted).