Implement more instructions
This commit is contained in:
13
src/bus.rs
13
src/bus.rs
@@ -1,21 +1,20 @@
|
||||
#[derive(Debug, Copy, Clone)]
|
||||
pub struct Bus {
|
||||
}
|
||||
pub struct Bus {}
|
||||
|
||||
impl Bus {
|
||||
pub fn read_byte(&self, address: u16) -> u8 {
|
||||
pub fn read_byte(&self, addr: u16) -> u8 {
|
||||
unimplemented!()
|
||||
}
|
||||
|
||||
pub fn write_byte(&mut self, address: u16, byte: u8) {
|
||||
pub fn write_byte(&mut self, addr: u16, byte: u8) {
|
||||
unimplemented!()
|
||||
}
|
||||
|
||||
pub fn read_word(&self, address: u16) -> u16 {
|
||||
pub fn read_word(&self, addr: u16) -> u16 {
|
||||
unimplemented!()
|
||||
}
|
||||
|
||||
pub fn write_word(&mut self, address: u16, word: u16) {
|
||||
pub fn write_word(&mut self, addr: u16, word: u16) {
|
||||
unimplemented!()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user