2018-12-03 12:26:02 +01:00
|
|
|
/*****************************************************************************\
|
|
|
|
Snes9x - Portable Super Nintendo Entertainment System (TM) emulator.
|
|
|
|
This file is licensed under the Snes9x License.
|
|
|
|
For further information, consult the LICENSE file in the root directory.
|
|
|
|
\*****************************************************************************/
|
2008-09-10 07:57:37 +02:00
|
|
|
|
2009-11-30 09:14:38 +01:00
|
|
|
|
2008-08-06 03:09:59 +02:00
|
|
|
#ifndef _FXEMU_H_
|
2010-01-27 23:08:56 +01:00
|
|
|
#define _FXEMU_H_
|
2008-08-06 03:09:59 +02:00
|
|
|
|
2011-01-17 14:54:34 +01:00
|
|
|
#define FX_BREAKPOINT (-1)
|
|
|
|
#define FX_ERROR_ILLEGAL_ADDRESS (-2)
|
2008-08-06 03:09:59 +02:00
|
|
|
|
2010-01-27 23:08:56 +01:00
|
|
|
// The FxInfo_s structure, the link between the FxEmulator and the Snes Emulator
|
|
|
|
struct FxInfo_s
|
2008-08-06 03:09:59 +02:00
|
|
|
{
|
2010-01-27 23:08:56 +01:00
|
|
|
uint32 vFlags;
|
|
|
|
uint8 *pvRegisters; // 768 bytes located in the memory at address 0x3000
|
|
|
|
uint32 nRamBanks; // Number of 64kb-banks in GSU-RAM/BackupRAM (banks 0x70-0x73)
|
|
|
|
uint8 *pvRam; // Pointer to GSU-RAM
|
|
|
|
uint32 nRomBanks; // Number of 32kb-banks in Cart-ROM
|
|
|
|
uint8 *pvRom; // Pointer to Cart-ROM
|
2008-08-06 03:09:59 +02:00
|
|
|
uint32 speedPerLine;
|
|
|
|
bool8 oneLineDone;
|
|
|
|
};
|
|
|
|
|
2010-01-27 23:08:56 +01:00
|
|
|
extern struct FxInfo_s SuperFX;
|
2008-08-06 03:09:59 +02:00
|
|
|
|
2010-01-27 23:08:56 +01:00
|
|
|
void S9xInitSuperFX (void);
|
2011-01-17 14:54:34 +01:00
|
|
|
void S9xResetSuperFX (void);
|
|
|
|
void S9xSuperFXExec (void);
|
2010-01-27 23:08:56 +01:00
|
|
|
void S9xSetSuperFX (uint8, uint16);
|
|
|
|
uint8 S9xGetSuperFX (uint16);
|
|
|
|
void fx_flushCache (void);
|
|
|
|
void fx_computeScreenPointers (void);
|
|
|
|
uint32 fx_run (uint32);
|
2008-08-06 03:09:59 +02:00
|
|
|
|
2010-01-27 23:08:56 +01:00
|
|
|
#endif
|