bus.rsannotatedbus.rssource11 lines · 214 B · raw
1pub trait BusInterface {
2    fn read(&mut self, address: u16) -> u8;
3
4    fn write(&mut self, address: u16, value: u8);
5
6    fn nmi(&self) -> bool;
7
8    fn acknowledge_nmi(&mut self);
9
10    fn irq(&self) -> bool;
11}