Skip to content
Snippets Groups Projects
Verified Commit 39c53488 authored by João Magalhães's avatar João Magalhães :rocket:
Browse files

chore: improved overall module structure

parent de772996
No related branches found
No related tags found
No related merge requests found
Pipeline #4668 passed
//! CPU instructions implementation for the Sharp LR35902.
use crate::cpu::Cpu; use crate::cpu::Cpu;
pub const INSTRUCTIONS: [Instruction; 256] = [ pub const INSTRUCTIONS: [Instruction; 256] = [
......
...@@ -14,7 +14,7 @@ pub mod gb; ...@@ -14,7 +14,7 @@ pub mod gb;
pub mod gen; pub mod gen;
pub mod info; pub mod info;
pub mod inst; pub mod inst;
pub mod license; pub mod licensee;
pub mod macros; pub mod macros;
pub mod mmu; pub mod mmu;
pub mod pad; pub mod pad;
......
//! Game Boy licensee vendors information and static enumerations.
use std::fmt::{self, Display, Formatter}; use std::fmt::{self, Display, Formatter};
#[cfg(feature = "wasm")] #[cfg(feature = "wasm")]
......
//! Cartridge (ROM) related functions and structures.
use core::fmt; use core::fmt;
use std::{ use std::{
cmp::max, cmp::max,
...@@ -10,7 +12,7 @@ use crate::{ ...@@ -10,7 +12,7 @@ use crate::{
debugln, debugln,
error::Error, error::Error,
gb::GameBoyMode, gb::GameBoyMode,
license::Licensee, licensee::Licensee,
mmu::BusComponent, mmu::BusComponent,
util::read_file, util::read_file,
warnln, warnln,
......
...@@ -80,7 +80,7 @@ mod tests { ...@@ -80,7 +80,7 @@ mod tests {
}, },
data::BootRom, data::BootRom,
gb::GameBoyMode, gb::GameBoyMode,
license::Licensee, licensee::Licensee,
rom::{RamSize, Region, RomSize}, rom::{RamSize, Region, RomSize},
}; };
......
//! Timer functions and structures.
use crate::{ use crate::{
consts::{DIV_ADDR, TAC_ADDR, TIMA_ADDR, TMA_ADDR}, consts::{DIV_ADDR, TAC_ADDR, TIMA_ADDR, TMA_ADDR},
mmu::BusComponent, mmu::BusComponent,
......
//! Assorted utility functions and structures.
use std::{ use std::{
cell::RefCell, cell::RefCell,
fs::File, fs::File,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment