chore: improve code quality

Removed a lot of magic constants. Gave them descriptive variable names
This commit is contained in:
2021-03-20 20:22:31 -05:00
parent 0f4dec8a38
commit cd0eac9d37
8 changed files with 74 additions and 58 deletions

View File

@@ -1,8 +1,12 @@
pub use cpu::Cpu as LR35902;
pub use instruction::Cycles;
pub const GB_WIDTH: usize = 160;
pub const GB_HEIGHT: usize = 144;
mod bus;
mod cartridge;
pub mod cpu;
mod cpu;
mod high_ram;
mod instruction;
mod interrupt;