// SPDX-FileCopyrightText: 2026 Jeffrey C. Ollie // // SPDX-License-Identifier: MIT //! The memory models a 65816 can be given. //! //! Separate from `memory.zig` because an address here is twenty-four bits and //! there it is sixteen, and that difference is not worth generalising over: //! the narrow type is what makes an out-of-range address on the 8-bit machines //! a compile error rather than something to check for. Flat is the only model //! so far; a IIgs, with its shadowing and its two clock domains, would go //! alongside it. pub const bus = @import("memory16/bus.zig"); pub const Options = bus.Options; pub const Cycle = bus.Cycle; pub const Flat = @import("memory16/flat.zig").Flat; /// An Apple IIgs, as far as it goes, which is not far yet. See the header of /// memory16/apple2gs.zig for what is there and what is next. pub const AppleIIgs = @import("memory16/apple2gs.zig").AppleIIgs; /// How big one bank of the sixteen-bit address space is, which is what memory /// on this machine is counted in. pub const bank_size = @import("memory16/apple2gs.zig").bank_size; test { _ = bus; _ = @import("memory16/flat.zig"); _ = @import("memory16/apple2gs.zig"); }