mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-10-04 16:11:37 +02:00
- Major source code cleanup - Completely rewrote memory mapper to support runtime MMCs - Updated S-DD1 MMC to use new memory mapping interface - Improved S-DD1 emulation, thanks to information from orwannon - Added support for SameGame -- load via "Load Special -> Load BS-X Slotted Cart" menu option - Completely rewrote cartridge loader to support BS-X, BS-X slotted carts and ST carts - Created custom dialog windows for multicart loading - Improved generic memory mapper, which eliminates the need for cart.db [Nach] - Added BS-X slotted cart detection to generic memory mapper [Nach] - Linux port will now ignore keypresses when window is inactive - Linux port will use much less CPU power when idle - Added detailed compilation instructions to Makefile for Linux port - Added "make install" target and PNG program icon for Linux port - Switched Windows compiler to MinGW/GCC4 - Windows executable is now packed with UPX to decrease filesize - Removed .ufo, .gd7 and .078 ROM extensions; added .bs extension - Added preliminary support for the BS-X base unit, BS-X base cartridge + MMC, and BS-X flash I/O
45 lines
775 B
C++
45 lines
775 B
C++
class DSP2 : public Memory {
|
|
public:
|
|
struct {
|
|
bool waiting_for_command;
|
|
uint command;
|
|
uint in_count, in_index;
|
|
uint out_count, out_index;
|
|
|
|
uint8 parameters[512];
|
|
uint8 output[512];
|
|
|
|
uint8 op05transparent;
|
|
bool op05haslen;
|
|
int op05len;
|
|
bool op06haslen;
|
|
int op06len;
|
|
uint16 op09word1;
|
|
uint16 op09word2;
|
|
bool op0dhaslen;
|
|
int op0doutlen;
|
|
int op0dinlen;
|
|
} status;
|
|
|
|
void init();
|
|
void enable();
|
|
void power();
|
|
void reset();
|
|
|
|
uint8 read(uint addr);
|
|
void write(uint addr, uint8 data);
|
|
|
|
DSP2();
|
|
~DSP2();
|
|
|
|
protected:
|
|
void op01();
|
|
void op03();
|
|
void op05();
|
|
void op06();
|
|
void op09();
|
|
void op0d();
|
|
};
|
|
|
|
extern DSP2 dsp2;
|