Stub Bus, and CPU, implement some opcode decoding.
This commit is contained in:
20
src/bus.rs
Normal file
20
src/bus.rs
Normal file
@@ -0,0 +1,20 @@
|
||||
#[derive(Debug, Copy, Clone)]
|
||||
pub struct MemoryBus {}
|
||||
|
||||
impl MemoryBus {
|
||||
pub fn read_byte(&self, _address: u16) -> u8 {
|
||||
unimplemented!()
|
||||
}
|
||||
|
||||
pub fn write_byte(&mut self, _address: u16) {
|
||||
unimplemented!()
|
||||
}
|
||||
|
||||
pub fn read_word(&self, _address: u16) -> u16 {
|
||||
unimplemented!()
|
||||
}
|
||||
|
||||
pub fn write_word(&mut self, __address: u16) {
|
||||
unimplemented!()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user