Skip to content

Commit

Permalink
fixed the build post merge :3
Browse files Browse the repository at this point in the history
  • Loading branch information
ava-silver committed Dec 30, 2023
1 parent 902f8a9 commit db1c94e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
17 changes: 11 additions & 6 deletions src/systems/aiie/mod.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
use std::sync::Arc;

use crate::{
cpu::{MemoryIO, Mos6502, Mos6502Variant},
cpu::{
mos6502::{MemoryIO, Mos6502, Mos6502Variant},
Cpu,
},
memory::{BankedMemory, BlockMemory, BranchMemory, LoggingMemory, NullMemory},
platform::{Color, PlatformProvider, WindowConfig},
systems::System,
Expand All @@ -20,7 +23,7 @@ use instant::Duration;

use self::switches::{AiieBankSelectors, AiieSoftSwitches};

use super::SystemBuilder;
use super::BuildableSystem;

const WIDTH: u32 = 40;
const HEIGHT: u32 = 24;
Expand All @@ -30,10 +33,8 @@ const CHAR_WIDTH: u32 = 7;
/// Configuration for a Apple IIe system.
pub struct AiieSystemConfig {}

/// A factory for creating a Commodore 64 system.
pub struct AiieSystemBuilder;

impl SystemBuilder<AiieSystem, AiieSystemRoms, AiieSystemConfig> for AiieSystemBuilder {
/// A factory for creating an Apple IIe system.
impl BuildableSystem<AiieSystemRoms, AiieSystemConfig> for AiieSystem {
fn build(
roms: AiieSystemRoms,
_config: AiieSystemConfig,
Expand Down Expand Up @@ -146,6 +147,10 @@ pub struct AiieSystem {
}

impl System for AiieSystem {
fn get_cpu_mut(&mut self) -> Box<&mut dyn crate::cpu::Cpu> {
Box::new(&mut self.cpu)
}

Check warning on line 152 in src/systems/aiie/mod.rs

View check run for this annotation

Codecov / codecov/patch

src/systems/aiie/mod.rs#L150-L152

Added lines #L150 - L152 were not covered by tests

fn tick(&mut self) -> Duration {
if self.cpu.registers.pc.address() < 0xF800 {
// println!("{:#04x}", self.cpu.registers.pc.address());
Expand Down
4 changes: 2 additions & 2 deletions src/systems/aiie/switches.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use std::{cell::Cell, io::Write, rc::Rc, sync::Arc};

use crate::{
keyboard::{KeyAdapter, SymbolAdapter},
memory::{ActiveInterrupt, Memory, SystemInfo},
memory::{ActiveInterrupt, Memory},
platform::PlatformProvider,
systems::aiie::keyboard::AppleIISymbolAdapter,
};
Expand Down Expand Up @@ -254,7 +254,7 @@ impl Memory for AiieSoftSwitches {
self.bank_ram_select = false;
}

Check warning on line 255 in src/systems/aiie/switches.rs

View check run for this annotation

Codecov / codecov/patch

src/systems/aiie/switches.rs#L237-L255

Added lines #L237 - L255 were not covered by tests

fn poll(&mut self, _cycles: u32, _info: &SystemInfo) -> ActiveInterrupt {
fn poll(&mut self, _cycles_since_poll: u64, _total_cycle_count: u64) -> ActiveInterrupt {
ActiveInterrupt::None
}

Check warning on line 259 in src/systems/aiie/switches.rs

View check run for this annotation

Codecov / codecov/patch

src/systems/aiie/switches.rs#L257-L259

Added lines #L257 - L259 were not covered by tests
}
Expand Down

0 comments on commit db1c94e

Please sign in to comment.