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.
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950// SPDX-FileCopyrightText: 2026 Jeffrey C. Ollie <jeff@ocjtech.us>//// SPDX-License-Identifier: MIT
//! The memory a processor sees.//!//! A model is a function from the processor type to the model, because a model//! needs to name the processor it belongs to in order to reach its clock. Each//! offers init, reset, peek, poke, read and write; the processor and every//! instruction are written against that and nothing more, so which machine is//! underneath is invisible to them.
pub const bus = @import("memory8/bus.zig");
/// What a model should do beyond being memory: see `bus.Options`.pub const Options = bus.Options;
/// Sixty-four kilobytes and nothing else.pub const Flat = @import("memory8/flat.zig").Flat;
/// An Apple II Plus: 48K, the ROM, and a language card./// The Apple II and II Plus module itself, for the names their options use./// The 1976 machine, which has a terminal where the others have a text page.pub const AppleI = @import("memory8/apple1.zig").AppleI;pub const apple2plus = @import("memory8/apple2plus.zig");pub const AppleII = apple2plus.AppleII;pub const AppleIIPlus = @import("memory8/apple2plus.zig").AppleIIPlus;
/// An Apple IIe: the above plus 64K of auxiliary memory and the switches/// that page it in.pub const apple2e = @import("memory8/apple2e.zig");pub const AppleIIe = apple2e.AppleIIe;
/// An Apple IIc: the same machine with the slots soldered down.pub const AppleIIc = @import("memory8/apple2e.zig").AppleIIc;pub const apple3 = @import("memory8/apple3.zig");pub const AppleIII = apple3.AppleIII;
test { _ = Flat; _ = AppleI; _ = AppleII; _ = AppleIIPlus; _ = AppleIIe; _ = AppleIIc; _ = @import("memory8/apple2plus.zig"); _ = @import("memory8/apple2e.zig"); _ = @import("memory8/apple3.zig");}