Skip to content

Commit aaa60c8

Browse files
committed
wip: Make Bus, Segment, MemoryMapping take config
1 parent a7f881f commit aaa60c8

File tree

4 files changed

+232
-175
lines changed

4 files changed

+232
-175
lines changed

sim/aviron/src/lib/Cpu.zig

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ const bus = @import("bus.zig");
44

55
const Flash = bus.Flash;
66
const IO = bus.IO;
7-
const Bus = bus.Bus;
7+
const DataBus = bus.DataBus;
8+
const IOBus = bus.IOBus;
89

910
const Cpu = @This();
1011

@@ -56,8 +57,8 @@ code_model: CodeModel,
5657
instruction_set: InstructionSet,
5758
sio: SpecialIoRegisters,
5859
flash: Flash,
59-
data: Bus,
60-
io: Bus,
60+
data: DataBus,
61+
io: IOBus,
6162

6263
// State
6364
pc: u24 = 0,

0 commit comments

Comments
 (0)