2012-05-09 23:35:29 +00:00
|
|
|
struct MSU1 : Coprocessor {
|
2010-08-09 13:28:56 +00:00
|
|
|
static void Enter();
|
|
|
|
void enter();
|
|
|
|
void init();
|
Update to v075 release.
byuu says:
This release brings improved Super Game Boy emulation, the final SHA256
hashes for the DSP-(1,1B,2,3,4) and ST-(0010,0011) coprocessors, user
interface improvements, and major internal code restructuring.
Changelog (since v074):
- completely rewrote memory sub-system to support 1-byte granularity in
XML mapping
- removed Memory inheritance and MMIO class completely, any address can
be mapped to any function now
- SuperFX: removed SuperFXBus : Bus, now implemented manually
- SA-1: removed SA1Bus : Bus, now implemented manually
- entire bus mapping is now static, happens once on cartridge load
- as a result, read/write handlers now handle MMC mapping; slower
average case, far faster worst case
- namespace memory is no more, RAM arrays are stored inside the chips
they are owned by now
- GameBoy: improved CPU HALT emulation, fixes Zelda: Link's Awakening
scrolling
- GameBoy: added serial emulation (cannot connect to another GB yet),
fixes Shin Megami Tensei - Devichil
- GameBoy: improved LCD STAT emulation, fixes Sagaia
- ui: added fullscreen support (F11 key), video settings allows for
three scale settings
- ui: fixed brightness, contrast, gamma, audio volume, input frequency
values on program startup
- ui: since Qt is dead, config file becomes bsnes.cfg once again
- Super Game Boy: you can now load the BIOS without a game inserted to
see a pretty white box
- ui-gameboy: can be built without SNES components now
- libsnes: now a UI target, compile with 'make ui=ui-libsnes'
- libsnes: added WRAM, APURAM, VRAM, OAM, CGRAM access (cheat search,
etc)
- source: removed launcher/, as the Qt port is now gone
- source: Makefile restructuring to better support new ui targets
- source: lots of other internal code cleanup work
2011-01-27 08:52:34 +00:00
|
|
|
void load();
|
|
|
|
void unload();
|
2010-08-09 13:28:56 +00:00
|
|
|
void power();
|
|
|
|
void reset();
|
|
|
|
|
2012-05-29 12:20:46 +00:00
|
|
|
void data_open();
|
|
|
|
void audio_open();
|
|
|
|
|
2010-08-09 13:28:56 +00:00
|
|
|
uint8 mmio_read(unsigned addr);
|
|
|
|
void mmio_write(unsigned addr, uint8 data);
|
|
|
|
|
|
|
|
void serialize(serializer&);
|
|
|
|
|
|
|
|
private:
|
2012-05-29 12:20:46 +00:00
|
|
|
bool boot;
|
2010-08-09 13:28:56 +00:00
|
|
|
file datafile;
|
|
|
|
file audiofile;
|
|
|
|
|
|
|
|
enum Flag {
|
|
|
|
DataBusy = 0x80,
|
|
|
|
AudioBusy = 0x40,
|
|
|
|
AudioRepeating = 0x20,
|
|
|
|
AudioPlaying = 0x10,
|
2012-05-26 08:18:42 +00:00
|
|
|
AudioError = 0x08,
|
2010-08-09 13:28:56 +00:00
|
|
|
Revision = 0x01,
|
|
|
|
};
|
|
|
|
|
|
|
|
struct MMIO {
|
|
|
|
uint32 data_offset;
|
|
|
|
uint32 audio_offset;
|
2010-09-01 13:20:05 +00:00
|
|
|
uint32 audio_loop_offset;
|
|
|
|
|
2010-08-09 13:28:56 +00:00
|
|
|
uint16 audio_track;
|
|
|
|
uint8 audio_volume;
|
2010-09-01 13:20:05 +00:00
|
|
|
|
2010-08-09 13:28:56 +00:00
|
|
|
bool data_busy;
|
|
|
|
bool audio_busy;
|
|
|
|
bool audio_repeat;
|
|
|
|
bool audio_play;
|
2012-05-26 08:18:42 +00:00
|
|
|
bool audio_error;
|
2010-08-09 13:28:56 +00:00
|
|
|
} mmio;
|
|
|
|
};
|
|
|
|
|
|
|
|
extern MSU1 msu1;
|