gb/src/lib.rs

26 lines
452 B
Rust
Raw Normal View History

pub use cpu::Cpu as LR35902;
pub use gui::Egui;
2021-03-27 17:10:18 +00:00
pub use instruction::Cycle;
2021-05-04 04:11:39 +00:00
pub use joypad::ButtonState;
#[cfg(feature = "debug")]
pub use cpu::RegisterPair;
pub const GB_WIDTH: usize = 160;
pub const GB_HEIGHT: usize = 144;
pub const LR35902_CLOCK_SPEED: u32 = 0x400000; // Hz | 4.194304Mhz
mod bus;
mod cartridge;
mod cpu;
mod gui;
2021-01-18 03:13:59 +00:00
mod high_ram;
mod instruction;
mod interrupt;
2021-03-21 02:11:45 +00:00
mod joypad;
mod ppu;
2021-01-19 07:36:44 +00:00
mod serial;
2021-01-03 08:05:46 +00:00
mod sound;
mod timer;
2021-01-03 06:28:07 +00:00
mod work_ram;