mirror of https://github.com/bsnes-emu/bsnes.git
40 lines
912 B
C++
40 lines
912 B
C++
struct HitachiDSP : Processor::HG51B, Coprocessor {
|
|
MappedRAM rom;
|
|
MappedRAM ram;
|
|
|
|
#include "mmio.hpp"
|
|
|
|
static auto Enter() -> void;
|
|
auto enter() -> void;
|
|
|
|
auto init() -> void;
|
|
auto load() -> void;
|
|
auto unload() -> void;
|
|
auto power() -> void;
|
|
auto reset() -> void;
|
|
|
|
//HG51B read/write
|
|
auto bus_read(uint24 addr) -> uint8;
|
|
auto bus_write(uint24 addr, uint8 data) -> void;
|
|
|
|
//CPU ROM read/write
|
|
auto rom_read(uint addr, uint8 data) -> uint8;
|
|
auto rom_write(uint addr, uint8 data) -> void;
|
|
|
|
//CPU RAM read/write
|
|
auto ram_read(uint addr, uint8 data) -> uint8;
|
|
auto ram_write(uint addr, uint8 data) -> void;
|
|
|
|
//CPU MMIO read/write
|
|
auto dsp_read(uint addr, uint8 data) -> uint8;
|
|
auto dsp_write(uint addr, uint8 data) -> void;
|
|
|
|
auto firmware() const -> vector<uint8>;
|
|
auto serialize(serializer&) -> void;
|
|
|
|
uint Frequency;
|
|
uint Roms;
|
|
};
|
|
|
|
extern HitachiDSP hitachidsp;
|