// SPDX-FileCopyrightText: 2026 Jeffrey C. Ollie // // 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"); }