pub mod chips;
mod memory;
pub struct Ibm5150 {
cpu: chips::Intel8088,
memory: memory::Memory,
}
impl Ibm5150 {
pub fn new(bios_rom: chips::Rom, cassette_basic: Option<[chips::Rom; 4]>) -> Self {
Self {
cpu: chips::Intel8088::default(),
memory: memory::Memory::new(bios_rom, cassette_basic),
}
}
pub fn run(&mut self) {
self.cpu.reset();
self.cpu.run(&mut self.memory);
}
}