mirror of https://github.com/bsnes-emu/bsnes.git
23 lines
666 B
C++
23 lines
666 B
C++
struct BusCPU : Processor::M68K::Bus {
|
|
auto readByte(uint24 addr) -> uint16 override;
|
|
auto readWord(uint24 addr) -> uint16 override;
|
|
auto writeByte(uint24 addr, uint16 data) -> void override;
|
|
auto writeWord(uint24 addr, uint16 data) -> void override;
|
|
|
|
auto readIO(uint24 addr) -> uint16;
|
|
auto writeIO(uint24 addr, uint16 data) -> void;
|
|
|
|
private:
|
|
uint8 ram[64 * 1024];
|
|
};
|
|
|
|
struct BusAPU : Processor::Z80::Bus {
|
|
auto read(uint16 addr) -> uint8 override;
|
|
auto write(uint16 addr, uint8 data) -> void override;
|
|
auto in(uint8 addr) -> uint8 override;
|
|
auto out(uint8 addr, uint8 data) -> void override;
|
|
};
|
|
|
|
extern BusCPU busCPU;
|
|
extern BusAPU busAPU;
|