Implement basic layout of Gameboy Emulator

This commit is contained in:
2020-08-29 18:38:27 -05:00
parent 0401bb7e49
commit e0235094bb
5 changed files with 299 additions and 0 deletions

21
src/bus.rs Normal file
View File

@@ -0,0 +1,21 @@
#[derive(Debug, Copy, Clone)]
pub struct Bus {
}
impl Bus {
pub fn read_byte(&self, address: u16) -> u8 {
unimplemented!()
}
pub fn write_byte(&mut self, address: u16, byte: u8) {
unimplemented!()
}
pub fn read_word(&self, address: u16) -> u16 {
unimplemented!()
}
pub fn write_word(&mut self, address: u16, word: u16) {
unimplemented!()
}
}