Skip to content

Commit d16e74f

Browse files
committed
chore: rename core.rs -> cpu.rs
1 parent 223479b commit d16e74f

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

src/apu/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
mod pulse_register;
22

3-
use crate::core::Mem;
3+
use crate::cpu::Mem;
44

55
use pulse_register::PulseRegister;
66

src/bus.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use crate::{apu::Apu, core::Mem, gamepad::GamepadRegister, ppu::Ppu, rom::Rom};
1+
use crate::{apu::Apu, cpu::Mem, gamepad::GamepadRegister, ppu::Ppu, rom::Rom};
22

33
const RAM: u16 = 0x0000;
44
const RAM_MIRROR_END: u16 = 0x2000;

src/core.rs renamed to src/cpu.rs

File renamed without changes.

src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use core::Cpu;
1+
use cpu::Cpu;
22
use std::collections::HashMap;
33
use std::env;
44
use std::error::Error;
@@ -8,7 +8,7 @@ use std::process::exit;
88
mod addr_register;
99
mod apu;
1010
mod bus;
11-
mod core;
11+
mod cpu;
1212
mod gamepad;
1313
mod macros;
1414
mod ops;

src/ops.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use core::fmt;
22

3-
use crate::core::AddressingMode;
3+
use crate::cpu::AddressingMode;
44

55
#[allow(clippy::upper_case_acronyms)]
66
#[derive(Debug, PartialEq, Eq)]

src/rom.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use crate::core::CPU_START;
1+
use crate::cpu::CPU_START;
22

33
#[derive(PartialEq, Eq, Debug, Copy, Clone)]
44
pub enum Mirroring {

0 commit comments

Comments
 (0)