First pass at name change
This commit is contained in:
parent
dafe1cf94f
commit
388cc91c3d
2
makefile
2
makefile
|
@ -1,4 +1,4 @@
|
|||
# Main Makefile for FB Alpha, execute an appropriate system-specific makefile
|
||||
# Main Makefile for FB Neo, execute an appropriate system-specific makefile
|
||||
|
||||
export
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# Makefile for FBA, for use with GNU make & GCC (MinGW)
|
||||
# Makefile for FBNeo, for use with GNU make & GCC (MinGW)
|
||||
#
|
||||
# The first pass makes sure all intermediary targets are present. The second pass updates
|
||||
# any targets, if necessary. (Intermediary) targets which have their own unique rules
|
||||
|
@ -20,7 +20,7 @@ DEPEND = 1
|
|||
#
|
||||
|
||||
# Specify the name of the executable file, without ".exe"
|
||||
NAME = fba
|
||||
NAME = fbneo
|
||||
COMPILENAME = 3
|
||||
|
||||
ifdef BUILD_X64_EXE
|
||||
|
@ -212,7 +212,7 @@ ifdef FASTCALL
|
|||
endif
|
||||
|
||||
ifdef DEBUG
|
||||
DEF := $(DEF) -DFBA_DEBUG
|
||||
DEF := $(DEF) -DFBNEO_DEBUG
|
||||
endif
|
||||
|
||||
ifdef ROM_VERIFY
|
||||
|
|
|
@ -20,7 +20,7 @@ DEPEND = 1
|
|||
#
|
||||
|
||||
# Specify the name of the executable file, without ".exe"
|
||||
NAME = fba
|
||||
NAME = fbneo
|
||||
COMPILENAME = 3
|
||||
|
||||
ifdef BUILD_X64_EXE
|
||||
|
@ -319,7 +319,7 @@ endif
|
|||
ifdef GCC452
|
||||
CFLAGS += -mconsole
|
||||
endif
|
||||
DEF := $(DEF) -DFBA_DEBUG
|
||||
DEF := $(DEF) -DFBNEO_DEBUG
|
||||
endif
|
||||
|
||||
ifdef ROM_VERIFY
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
#
|
||||
|
||||
# Specify the name of the executable file, without ".exe"
|
||||
NAME = fbasdl
|
||||
NAME = fbneosdl
|
||||
EXE = $(NAME)
|
||||
INSTALLDIR = /usr/local/games/fba/
|
||||
ROMDIR = /usr/local/share/roms/
|
||||
|
|
|
@ -16,7 +16,7 @@ unexport
|
|||
#
|
||||
|
||||
# Specify the name of the executable file, without ".exe"
|
||||
NAME = fba
|
||||
NAME = fbneo
|
||||
COMPILENAME = 3
|
||||
|
||||
ifdef BUILD_X64_EXE
|
||||
|
@ -194,7 +194,7 @@ ifdef FASTCALL
|
|||
endif
|
||||
|
||||
ifdef DEBUG
|
||||
DEF := $(DEF) /DFBA_DEBUG
|
||||
DEF := $(DEF) /DFBNEO_DEBUG
|
||||
endif
|
||||
|
||||
ifdef ROM_VERIFY
|
||||
|
|
|
@ -43,7 +43,7 @@ GEN = $$SRC/dep/generated
|
|||
|
||||
# We need ld
|
||||
FBA_LD = ld
|
||||
DEFINES += FBA_DEBUG
|
||||
DEFINES += FBNEO_DEBUG
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Dynamic recompilers
|
||||
|
|
|
@ -1545,7 +1545,7 @@ rm build_details.exe
|
|||
<Optimization>Disabled</Optimization>
|
||||
<AdditionalIncludeDirectories>..\..\src\dep\libs\lib7z;..\..\src\burner\win32\resource;..\..\src\burn\drv\taito;..\..\src\burn\drv\misc_post90s;..\..\src\burn\devices;generated;..\..\src\intf\audio\win32;..\..\src\intf\audio;..\..\src\intf\;..\..\src\intf\video\scalers;..\..\src\intf\video\win32;..\..\src\intf\video;..\..\src\intf\perfcount\win32;..\..\src\intf\perfcount;..\..\src\intf\input\win32;..\..\src\intf\input;..\..\src\intf\cd\win32;..\..\src\intf\cd;..\..\src\intf;..\..\src\burner\win32;..\..\src\dep\libs\zlib;..\..\src\dep\libs\libpng;..\..\src\dep\libs;..\..\src\dep\kaillera\client;..\..\src\dep\kaillera;..\..\src\burn\snd;..\..\src\cpu;..\..\src\burner;..\..\src\burn;..\..\src\cpu\z80;..\..\src\cpu\sh2;..\..\src\cpu\s2650;..\..\src\cpu\nec;..\..\src\cpu\m6809;..\..\src\cpu\m6805;..\..\src\cpu\m6800;..\..\src\cpu\m6502;..\..\src\cpu\m68k;..\..\src\cpu\i8039;..\..\src\cpu\konami;..\..\src\cpu\hd6309;..\..\src\cpu\h6280;..\..\src\cpu\arm7;..\..\src\cpu\arm;..\..\src\cpu\g65816;..\..\src\cpu\spc700;..\..\src\cpu\i8051;..\..\src\cpu\tms32010;..\..\src\cpu\tms34010;..\..\src\cpu\i8x41;..\..\src\burn\drv\sega;..\..\src\burn\drv\dataeast;..\..\src\burn\drv\konami;..\..\src\cpu\z180;..\..\src\burn\drv\irem;..\..\src\cpu\upd7810;..\..\src\cpu\v60;..\..\src\cpu\upd7725;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<CompileAs>Default</CompileAs>
|
||||
<PreprocessorDefinitions>BUILD_WIN32;FASTCALL;_DEBUG;FBA_DEBUG;LSB_FIRST;INLINE=__inline static;INCLUDE_LIB_PNGH;C_INLINE=__inline;MAME_INLINE=__inline static;_CRT_SECURE_NO_WARNINGS;WINAPI_FAMILY=WINAPI_FAMILY_DESKTOP_APP;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<PreprocessorDefinitions>BUILD_WIN32;FASTCALL;_DEBUG;FBNEO_DEBUG;LSB_FIRST;INLINE=__inline static;INCLUDE_LIB_PNGH;C_INLINE=__inline;MAME_INLINE=__inline static;_CRT_SECURE_NO_WARNINGS;WINAPI_FAMILY=WINAPI_FAMILY_DESKTOP_APP;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
|
|
|
@ -1602,7 +1602,7 @@ del build_details.exe
|
|||
<Optimization>Disabled</Optimization>
|
||||
<AdditionalIncludeDirectories>..\..\src\dep\libs\lib7z;..\..\src\burner\win32\resource;..\..\src\burn\drv\taito;..\..\src\burn\drv\misc_post90s;..\..\src\burn\devices;generated;..\..\src\intf\audio\win32;..\..\src\intf\audio;..\..\src\intf\;..\..\src\intf\video\scalers;..\..\src\intf\video\win32;..\..\src\intf\video;..\..\src\intf\perfcount\win32;..\..\src\intf\perfcount;..\..\src\intf\input\win32;..\..\src\intf\input;..\..\src\intf\cd\win32;..\..\src\intf\cd;..\..\src\intf;..\..\src\burner\win32;..\..\src\dep\libs\zlib;..\..\src\dep\libs\libpng;..\..\src\dep\libs;..\..\src\dep\kaillera\client;..\..\src\dep\kaillera;..\..\src\burn\snd;..\..\src\cpu;..\..\src\burner;..\..\src\burn;..\..\src\cpu\z80;..\..\src\cpu\sh2;..\..\src\cpu\s2650;..\..\src\cpu\nec;..\..\src\cpu\m6809;..\..\src\cpu\m6805;..\..\src\cpu\m6800;..\..\src\cpu\m6502;..\..\src\cpu\m68k;..\..\src\cpu\i8039;..\..\src\cpu\konami;..\..\src\cpu\hd6309;..\..\src\cpu\h6280;..\..\src\cpu\arm7;..\..\src\cpu\arm;..\..\src\cpu\g65816;..\..\src\cpu\spc700;..\..\src\cpu\i8051;..\..\src\cpu\tms32010;..\..\src\cpu\tms34010;..\..\src\cpu\i8x41;..\..\src\burn\drv\sega;..\..\src\burn\drv\dataeast;..\..\src\burn\drv\konami;..\..\src\cpu\z180;..\..\src\burn\drv\irem;..\..\src\cpu\upd7810;..\..\src\cpu\v60;..\..\src\cpu\upd7725;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<CompileAs>Default</CompileAs>
|
||||
<PreprocessorDefinitions>BUILD_WIN32;FASTCALL;_DEBUG;FBA_DEBUG;LSB_FIRST;INLINE=__inline static;INCLUDE_LIB_PNGH;C_INLINE=__inline;MAME_INLINE=__inline static;_CRT_SECURE_NO_WARNINGS;WINAPI_FAMILY=WINAPI_FAMILY_DESKTOP_APP;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<PreprocessorDefinitions>BUILD_WIN32;FASTCALL;_DEBUG;FBNEO_DEBUG;LSB_FIRST;INLINE=__inline static;INCLUDE_LIB_PNGH;C_INLINE=__inline;MAME_INLINE=__inline static;_CRT_SECURE_NO_WARNINGS;WINAPI_FAMILY=WINAPI_FAMILY_DESKTOP_APP;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<EnablePREfast>true</EnablePREfast>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
|
@ -1624,7 +1624,7 @@ del build_details.exe
|
|||
<Optimization>Disabled</Optimization>
|
||||
<AdditionalIncludeDirectories>..\..\src\dep\libs\lib7z;..\..\src\burner\win32\resource;..\..\src\burn\drv\taito;..\..\src\burn\drv\misc_post90s;..\..\src\burn\devices;generated;..\..\src\intf\audio\win32;..\..\src\intf\audio;..\..\src\intf\;..\..\src\intf\video\scalers;..\..\src\intf\video\win32;..\..\src\intf\video;..\..\src\intf\perfcount\win32;..\..\src\intf\perfcount;..\..\src\intf\input\win32;..\..\src\intf\input;..\..\src\intf\cd\win32;..\..\src\intf\cd;..\..\src\intf;..\..\src\burner\win32;..\..\src\dep\libs\zlib;..\..\src\dep\libs\libpng;..\..\src\dep\libs;..\..\src\dep\kaillera\client;..\..\src\dep\kaillera;..\..\src\burn\snd;..\..\src\cpu;..\..\src\burner;..\..\src\burn;..\..\src\cpu\z80;..\..\src\cpu\sh2;..\..\src\cpu\s2650;..\..\src\cpu\nec;..\..\src\cpu\m6809;..\..\src\cpu\m6805;..\..\src\cpu\m6800;..\..\src\cpu\m6502;..\..\src\cpu\m68k;..\..\src\cpu\i8039;..\..\src\cpu\konami;..\..\src\cpu\hd6309;..\..\src\cpu\h6280;..\..\src\cpu\arm7;..\..\src\cpu\arm;..\..\src\cpu\g65816;..\..\src\cpu\spc700;..\..\src\cpu\i8051;..\..\src\cpu\tms32010;..\..\src\cpu\tms34010;..\..\src\cpu\i8x41;..\..\src\burn\drv\sega;..\..\src\burn\drv\dataeast;..\..\src\burn\drv\konami;..\..\src\cpu\z180;..\..\src\burn\drv\irem;..\..\src\cpu\upd7810;..\..\src\cpu\v60;..\..\src\cpu\upd7725;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<CompileAs>Default</CompileAs>
|
||||
<PreprocessorDefinitions>FBA_DEBUG;BUILD_WIN32;FASTCALL;_MBCS;LSB_FIRST;INLINE=__inline static;INCLUDE_LIB_PNGH;C_INLINE=__inline;MAME_INLINE=__inline static;_CRT_SECURE_NO_WARNINGS;WINAPI_FAMILY=WINAPI_FAMILY_DESKTOP_APP;BUILD_X64_EXE;XBYAK_NO_OP_NAMES;MIPS3_X64_DRC;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<PreprocessorDefinitions>FBNEO_DEBUG;BUILD_WIN32;FASTCALL;_MBCS;LSB_FIRST;INLINE=__inline static;INCLUDE_LIB_PNGH;C_INLINE=__inline;MAME_INLINE=__inline static;_CRT_SECURE_NO_WARNINGS;WINAPI_FAMILY=WINAPI_FAMILY_DESKTOP_APP;BUILD_X64_EXE;XBYAK_NO_OP_NAMES;MIPS3_X64_DRC;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
|
|
|
@ -26,7 +26,13 @@ bool bBurnUseMMX;
|
|||
bool bBurnUseASMCPUEmulation = false;
|
||||
#endif
|
||||
|
||||
#if defined (FBA_DEBUG)
|
||||
// Just so we can start using FBNEO_DEBUG and keep backwards compatablity should whatever is left of FB Alpha rise from it's grave.
|
||||
#if defined (FBNEO_DEBUG) && (!defined FBA_DEBUG)
|
||||
#define FBA_DEBUG 1
|
||||
#endif
|
||||
|
||||
|
||||
#if defined (FBNEO_DEBUG)
|
||||
clock_t starttime = 0;
|
||||
#endif
|
||||
|
||||
|
@ -594,7 +600,7 @@ extern "C" INT32 BurnDrvInit()
|
|||
return 1;
|
||||
}
|
||||
|
||||
#if defined (FBA_DEBUG)
|
||||
#if defined (FBNEO_DEBUG)
|
||||
{
|
||||
TCHAR szText[1024] = _T("");
|
||||
TCHAR* pszPosition = szText;
|
||||
|
@ -650,7 +656,7 @@ extern "C" INT32 BurnDrvInit()
|
|||
|
||||
nCurrentFrame = 0;
|
||||
|
||||
#if defined (FBA_DEBUG)
|
||||
#if defined (FBNEO_DEBUG)
|
||||
if (!nReturnValue) {
|
||||
starttime = clock();
|
||||
nFramesEmulated = 0;
|
||||
|
@ -666,7 +672,7 @@ extern "C" INT32 BurnDrvInit()
|
|||
// Exit game emulation
|
||||
extern "C" INT32 BurnDrvExit()
|
||||
{
|
||||
#if defined (FBA_DEBUG)
|
||||
#if defined (FBNEO_DEBUG)
|
||||
if (starttime) {
|
||||
clock_t endtime;
|
||||
clock_t nElapsedSecs;
|
||||
|
@ -692,7 +698,7 @@ extern "C" INT32 BurnDrvExit()
|
|||
INT32 nRet = pDriver[nBurnDrvActive]->Exit(); // Forward to drivers function
|
||||
|
||||
BurnExitMemoryManager();
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
DebugTrackerExit();
|
||||
#endif
|
||||
|
||||
|
@ -717,7 +723,7 @@ INT32 BurnDrvCartridgeSetup(BurnCartrigeCommand nCommand)
|
|||
|
||||
BurnExtCartridgeSetupCallback(CART_INIT_END);
|
||||
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
bprintf(PRINT_NORMAL, _T(" * Loading"));
|
||||
#endif
|
||||
|
||||
|
@ -927,7 +933,7 @@ double BurnGetTime()
|
|||
// ----------------------------------------------------------------------------
|
||||
// Wrapper for MAME logerror calls
|
||||
|
||||
#if defined (FBA_DEBUG) && defined (MAME_USE_LOGERROR)
|
||||
#if defined (FBNEO_DEBUG) && defined (MAME_USE_LOGERROR)
|
||||
void logerror(char* szFormat, ...)
|
||||
{
|
||||
static char szLogMessage[1024];
|
||||
|
@ -945,7 +951,7 @@ void logerror(char* szFormat, ...)
|
|||
}
|
||||
#endif
|
||||
|
||||
#if defined (FBA_DEBUG)
|
||||
#if defined (FBNEO_DEBUG)
|
||||
void BurnDump_(char *filename, UINT8 *buffer, INT32 bufsize)
|
||||
{
|
||||
FILE *f = fopen(filename, "wb+");
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// FB Alpha FB - Emulator for MC68000/Z80 based arcade games
|
||||
// FinalBurn Neo - Emulator for MC68000/Z80 based arcade games
|
||||
// Refer to the "license.txt" file for more info
|
||||
|
||||
// Burner emulation library
|
||||
|
@ -312,7 +312,7 @@ INT32 BurnSynchroniseStream(INT32 nSoundRate);
|
|||
double BurnGetTime();
|
||||
|
||||
// Handy debug binary-file dumper
|
||||
#if defined (FBA_DEBUG)
|
||||
#if defined (FBNEO_DEBUG)
|
||||
void BurnDump_(char *filename, UINT8 *buffer, INT32 bufsize);
|
||||
#define BurnDump(fn, b, bs) do { \
|
||||
bprintf(0, _T("Dumping %S (0x%x bytes) to %S\n"), #b, bs, #fn); \
|
||||
|
|
|
@ -12,7 +12,7 @@ static struct bitmap_struct bitmaps[MAX_BITMAPS];
|
|||
// allocate bitmap and optionally allocate priority map - memory allicated is nWidth * nHeight * sizeof(UINT16)
|
||||
void BurnBitmapAllocate(INT32 nBitmapNumber, INT32 nWidth, INT32 nHeight, bool use_primap)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
// verify nBitmapNumber is a sane number
|
||||
if (nBitmapNumber >= MAX_BITMAPS) {
|
||||
bprintf (0, _T("BurnBitmapAllocate(UINT16 **, INT32, INT32) too many bitmaps allocated %d, max: (^d)\n"), nBitmapNumber, MAX_BITMAPS);
|
||||
|
@ -27,7 +27,7 @@ void BurnBitmapAllocate(INT32 nBitmapNumber, INT32 nWidth, INT32 nHeight, bool u
|
|||
|
||||
bitmap_struct *ptr = &bitmaps[nBitmapNumber];
|
||||
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
// verify this entry in the struct hasn't been initialized already!
|
||||
if (ptr->nFlags & FLAG_INITIALIZED)
|
||||
{
|
||||
|
@ -61,7 +61,7 @@ void BurnBitmapAllocate(INT32 nBitmapNumber, INT32 nWidth, INT32 nHeight, bool u
|
|||
// get pointer to clip dimensions
|
||||
clip_struct *BurnBitmapClipDims(INT32 nBitmapNumber)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
// verify nBitmapNumber is a sane number
|
||||
if (nBitmapNumber >= MAX_BITMAPS) {
|
||||
bprintf (0, _T("BurnBitmapClipdims(%d) called with invalid bitmap number. Max (%d)\n"), nBitmapNumber, MAX_BITMAPS);
|
||||
|
@ -71,7 +71,7 @@ clip_struct *BurnBitmapClipDims(INT32 nBitmapNumber)
|
|||
|
||||
bitmap_struct *ptr = &bitmaps[nBitmapNumber];
|
||||
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
// verify this entry in the struct has been initialized!
|
||||
if ((ptr->nFlags & FLAG_INITIALIZED) == 0) {
|
||||
bprintf (0, _T("BurnBitmapClipDims(%d) called without itialized bitmap!\n"), nBitmapNumber);
|
||||
|
@ -85,7 +85,7 @@ clip_struct *BurnBitmapClipDims(INT32 nBitmapNumber)
|
|||
// set clip dimensions
|
||||
void BurnBitmapSetClipDims(INT32 nBitmapNumber, INT32 nMinx, INT32 nMaxx, INT32 nMiny, INT32 nMaxy)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
// verify nBitmapNumber is a sane number
|
||||
if (nBitmapNumber >= MAX_BITMAPS) {
|
||||
bprintf (0, _T("BurnBitmapSetClipDims(%d, INT32, INT32, INT32, INT32) called with invalid bitmap number. Max (%d)\n"), nBitmapNumber, MAX_BITMAPS);
|
||||
|
@ -95,7 +95,7 @@ void BurnBitmapSetClipDims(INT32 nBitmapNumber, INT32 nMinx, INT32 nMaxx, INT32
|
|||
|
||||
bitmap_struct *ptr = &bitmaps[nBitmapNumber];
|
||||
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
// verify this entry in the struct has been initialized!
|
||||
if ((ptr->nFlags & FLAG_INITIALIZED) == 0) {
|
||||
bprintf (0, _T("BurnBitmapSetClipDims(%d, INT32, INT32, INT32, INT32) called without itialized bitmap!\n"), nBitmapNumber);
|
||||
|
@ -118,7 +118,7 @@ void BurnBitmapSetClipDims(INT32 nBitmapNumber, INT32 nMinx, INT32 nMaxx, INT32
|
|||
// get bitmap clips
|
||||
void BurnBitmapGetClipDims(INT32 nBitmapNumber, INT32 *nMinx, INT32 *nMaxx, INT32 *nMiny, INT32 *nMaxy)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
// verify nBitmapNumber is a sane number
|
||||
if (nBitmapNumber >= MAX_BITMAPS) {
|
||||
bprintf (0, _T("BurnBitmapGetClipDims(%d, INT32*, INT32*, INT32* INT32*) called with invalid bitmap number. Max (%d)\n"), nBitmapNumber, MAX_BITMAPS);
|
||||
|
@ -128,7 +128,7 @@ void BurnBitmapGetClipDims(INT32 nBitmapNumber, INT32 *nMinx, INT32 *nMaxx, INT3
|
|||
|
||||
bitmap_struct *ptr = &bitmaps[nBitmapNumber];
|
||||
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
// verify this entry in the struct has been initialized!
|
||||
if ((ptr->nFlags & FLAG_INITIALIZED) == 0) {
|
||||
bprintf (0, _T("BurnBitmapGetClipDims(%d, INT32*, INT32*, INT32* INT32*) called without itialized bitmap!\n"), nBitmapNumber);
|
||||
|
@ -145,7 +145,7 @@ void BurnBitmapGetClipDims(INT32 nBitmapNumber, INT32 *nMinx, INT32 *nMaxx, INT3
|
|||
// get pointer to bitmap memory
|
||||
UINT16 *BurnBitmapGetBitmap(INT32 nBitmapNumber)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
// verify nBitmapNumber is a sane number
|
||||
if (nBitmapNumber >= MAX_BITMAPS) {
|
||||
bprintf (0, _T("BurnBitmapGetBitmap(%d) called with invalid bitmap number. Max (%d)\n"), nBitmapNumber, MAX_BITMAPS);
|
||||
|
@ -155,7 +155,7 @@ UINT16 *BurnBitmapGetBitmap(INT32 nBitmapNumber)
|
|||
|
||||
bitmap_struct *ptr = &bitmaps[nBitmapNumber];
|
||||
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
// verify this entry in the struct has been initialized!
|
||||
if ((ptr->nFlags & FLAG_INITIALIZED) == 0) {
|
||||
bprintf (0, _T("BurnBitmapGetBitmap(%d) called without itialized bitmap!\n"), nBitmapNumber);
|
||||
|
@ -170,7 +170,7 @@ UINT16 *BurnBitmapGetBitmap(INT32 nBitmapNumber)
|
|||
// get pointer to priority map memory
|
||||
UINT8 *BurnBitmapGetPriomap(INT32 nBitmapNumber)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
// verify nBitmapNumber is a sane number
|
||||
if (nBitmapNumber >= MAX_BITMAPS) {
|
||||
bprintf (0, _T("BurnBitmapGetPriomap(%d) called with invalid bitmap number. Max (%d)\n"), nBitmapNumber, MAX_BITMAPS);
|
||||
|
@ -180,7 +180,7 @@ UINT8 *BurnBitmapGetPriomap(INT32 nBitmapNumber)
|
|||
|
||||
bitmap_struct *ptr = &bitmaps[nBitmapNumber];
|
||||
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
// verify this bitmap has a priority map
|
||||
if ((ptr->nFlags & FLAG_HAS_PRIMAP) == 0) {
|
||||
bprintf (0, _T("BurnBitmapGetPriomap(%d) called without initialized Primap!\n"), nBitmapNumber);
|
||||
|
@ -195,7 +195,7 @@ UINT8 *BurnBitmapGetPriomap(INT32 nBitmapNumber)
|
|||
// get dimensions of the bitmap
|
||||
void BurnBitmapGetDimensions(INT32 nBitmapNumber, INT32 *nWidth, INT32 *nHeight)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
// verify nBitmapNumber is a sane number
|
||||
if (nBitmapNumber >= MAX_BITMAPS) {
|
||||
bprintf (0, _T("BurnBitmapGetDimensions(%d, INT32, INT32) called with invalid bitmap number. Max (%d)\n"), nBitmapNumber, MAX_BITMAPS);
|
||||
|
@ -205,7 +205,7 @@ void BurnBitmapGetDimensions(INT32 nBitmapNumber, INT32 *nWidth, INT32 *nHeight)
|
|||
|
||||
bitmap_struct *ptr = &bitmaps[nBitmapNumber];
|
||||
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
// verify this entry in the struct has been initialized!
|
||||
if ((ptr->nFlags & FLAG_INITIALIZED) == 0) {
|
||||
bprintf (0, _T("BurnBitmapGetDimensions(%d, INT32 *, INT32 *) called without itialized bitmap!\n"), nBitmapNumber);
|
||||
|
@ -221,7 +221,7 @@ void BurnBitmapGetDimensions(INT32 nBitmapNumber, INT32 *nWidth, INT32 *nHeight)
|
|||
// get bitmap pointer at a set position, has bounds checking
|
||||
UINT16 *BurnBitmapGetPosition(INT32 nBitmapNumber, INT32 nStartX, INT32 nStartY)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
// verify nBitmapNumber is a sane number
|
||||
if (nBitmapNumber >= MAX_BITMAPS) {
|
||||
bprintf (0, _T("BurnBitmapGetPosition(%d, INT32, INT32) called with invalid bitmap number. Max (%d)\n"), nBitmapNumber, MAX_BITMAPS);
|
||||
|
@ -231,7 +231,7 @@ UINT16 *BurnBitmapGetPosition(INT32 nBitmapNumber, INT32 nStartX, INT32 nStartY)
|
|||
|
||||
bitmap_struct *ptr = &bitmaps[nBitmapNumber];
|
||||
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
// verify this entry in the struct has been initialized!
|
||||
if ((ptr->nFlags & FLAG_INITIALIZED) == 0) {
|
||||
bprintf (0, _T("BurnBitmapGetPosition(%d, INT32, INT32) called without itialized bitmap!\n"), nBitmapNumber);
|
||||
|
@ -250,7 +250,7 @@ UINT16 *BurnBitmapGetPosition(INT32 nBitmapNumber, INT32 nStartX, INT32 nStartY)
|
|||
// get bitmap pointer at a set position, has bounds checking
|
||||
UINT8 *BurnBitmapGetPrimapPosition(INT32 nBitmapNumber, INT32 nStartX, INT32 nStartY)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
// verify nBitmapNumber is a sane number
|
||||
if (nBitmapNumber >= MAX_BITMAPS) {
|
||||
bprintf (0, _T("BurnBitmapGetPrimapPosition(%d, INT32, INT32) called with invalid bitmap number. Max (%d)\n"), nBitmapNumber, MAX_BITMAPS);
|
||||
|
@ -260,7 +260,7 @@ UINT8 *BurnBitmapGetPrimapPosition(INT32 nBitmapNumber, INT32 nStartX, INT32 nSt
|
|||
|
||||
bitmap_struct *ptr = &bitmaps[nBitmapNumber];
|
||||
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
// verify this bitmap has a priority map
|
||||
if ((ptr->nFlags & FLAG_HAS_PRIMAP) == 0) {
|
||||
bprintf (0, _T("BurnBitmapGetPrimapPosition(%d, INT32, INT32) called without initialized Primap!\n"), nBitmapNumber);
|
||||
|
@ -279,7 +279,7 @@ UINT8 *BurnBitmapGetPrimapPosition(INT32 nBitmapNumber, INT32 nStartX, INT32 nSt
|
|||
// fill bitmap with a value (use for clearing)
|
||||
void BurnBitmapFill(INT32 nBitmapNumber, INT32 nFillValue)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
// verify nBitmapNumber is a sane number
|
||||
if (nBitmapNumber >= MAX_BITMAPS) {
|
||||
bprintf (0, _T("BurnBitmapFill(%d, INT32) called with invalid bitmap number. Max (%d)\n"), nBitmapNumber, MAX_BITMAPS);
|
||||
|
@ -289,7 +289,7 @@ void BurnBitmapFill(INT32 nBitmapNumber, INT32 nFillValue)
|
|||
|
||||
bitmap_struct *ptr = &bitmaps[nBitmapNumber];
|
||||
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if ((ptr->nFlags & FLAG_INITIALIZED) == 0) {
|
||||
bprintf (0, _T("BurnBitmapFill(%d, INT32) called without itialized bitmap!\n"), nBitmapNumber);
|
||||
return;
|
||||
|
@ -305,7 +305,7 @@ void BurnBitmapFill(INT32 nBitmapNumber, INT32 nFillValue)
|
|||
// zero-fill priority bitmap
|
||||
void BurnBitmapPrimapClear(INT32 nBitmapNumber)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
// verify nBitmapNumber is a sane number
|
||||
if (nBitmapNumber >= MAX_BITMAPS) {
|
||||
bprintf (0, _T("BurnBitmapPrimapClear(%d) called with invalid bitmap number. Max (%d)\n"), nBitmapNumber, MAX_BITMAPS);
|
||||
|
@ -315,7 +315,7 @@ void BurnBitmapPrimapClear(INT32 nBitmapNumber)
|
|||
|
||||
bitmap_struct *ptr = &bitmaps[nBitmapNumber];
|
||||
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if ((ptr->nFlags & FLAG_HAS_PRIMAP) == 0) {
|
||||
bprintf (0, _T("BurnBitmapPrimapClear(%d) called without initialized Primap!\n"), nBitmapNumber);
|
||||
return;
|
||||
|
@ -328,7 +328,7 @@ void BurnBitmapPrimapClear(INT32 nBitmapNumber)
|
|||
// copy bitmap with scrolling and transparency
|
||||
void BurnBitmapCopy(INT32 nBitmapNumber, UINT16 *pDest, UINT8 *pPrio, INT32 nScrollX, INT32 nScrollY, INT32 nPixelMask, INT32 nTransColor)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
// verify nBitmapNumber is a sane number
|
||||
if (nBitmapNumber >= MAX_BITMAPS) {
|
||||
bprintf (0, _T("BurnBitmapCopy(%d, ...) called with invalid bitmap number. Max (%d)\n"), nBitmapNumber, MAX_BITMAPS);
|
||||
|
@ -338,7 +338,7 @@ void BurnBitmapCopy(INT32 nBitmapNumber, UINT16 *pDest, UINT8 *pPrio, INT32 nScr
|
|||
|
||||
bitmap_struct *ptr = &bitmaps[nBitmapNumber];
|
||||
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
// verify nBitmapNumber is a sane number
|
||||
if ((ptr->nFlags & FLAG_INITIALIZED) == 0) {
|
||||
bprintf (0, _T("BurnBitmapFill(%d, INT32) called without itialized bitmap!\n"), nBitmapNumber);
|
||||
|
|
|
@ -83,7 +83,7 @@ void BurnGunSetCoords(INT32 player, INT32 x, INT32 y)
|
|||
|
||||
UINT8 BurnGunReturnX(INT32 num)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!Debug_BurnGunInitted) bprintf(PRINT_ERROR, _T("BurnGunReturnX called without init\n"));
|
||||
if (num >= nBurnGunNumPlayers) bprintf(PRINT_ERROR, _T("BurnGunReturnX called with invalid player %x\n"), num);
|
||||
#endif
|
||||
|
@ -96,7 +96,7 @@ UINT8 BurnGunReturnX(INT32 num)
|
|||
|
||||
UINT8 BurnGunReturnY(INT32 num)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!Debug_BurnGunInitted) bprintf(PRINT_ERROR, _T("BurnGunReturnY called without init\n"));
|
||||
if (num >= nBurnGunNumPlayers) bprintf(PRINT_ERROR, _T("BurnGunReturnY called with invalid player %x\n"), num);
|
||||
#endif
|
||||
|
@ -113,7 +113,7 @@ static INT32 PaddleLastB[MAX_GUNS];
|
|||
|
||||
BurnDialINF BurnPaddleReturnA(INT32 num)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!Debug_BurnGunInitted) bprintf(PRINT_ERROR, _T("BurnPaddleReturnA called without init\n"));
|
||||
if (num >= nBurnGunNumPlayers) bprintf(PRINT_ERROR, _T("BurnPaddleReturnA called with invalid player %x\n"), num);
|
||||
#endif
|
||||
|
@ -140,7 +140,7 @@ BurnDialINF BurnPaddleReturnA(INT32 num)
|
|||
|
||||
BurnDialINF BurnPaddleReturnB(INT32 num)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!Debug_BurnGunInitted) bprintf(PRINT_ERROR, _T("BurnPaddleReturnB called without init\n"));
|
||||
if (num >= nBurnGunNumPlayers) bprintf(PRINT_ERROR, _T("BurnPaddleReturnB called with invalid player %x\n"), num);
|
||||
#endif
|
||||
|
@ -297,7 +297,7 @@ void BurnPaddleSetWrap(INT32 num, INT32 xmin, INT32 xmax, INT32 ymin, INT32 ymax
|
|||
|
||||
void BurnPaddleMakeInputs(INT32 num, INT16 x, INT16 y)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!Debug_BurnGunInitted) bprintf(PRINT_ERROR, _T("BurnGunMakeInputs called without init\n"));
|
||||
if (num >= nBurnGunNumPlayers) bprintf(PRINT_ERROR, _T("BurnGunMakeInputs called with invalid player %x\n"), num);
|
||||
#endif
|
||||
|
@ -336,7 +336,7 @@ void BurnPaddleMakeInputs(INT32 num, INT16 x, INT16 y)
|
|||
|
||||
void BurnGunMakeInputs(INT32 num, INT16 x, INT16 y)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!Debug_BurnGunInitted) bprintf(PRINT_ERROR, _T("BurnGunMakeInputs called without init\n"));
|
||||
if (num >= nBurnGunNumPlayers) bprintf(PRINT_ERROR, _T("BurnGunMakeInputs called with invalid player %x\n"), num);
|
||||
#endif
|
||||
|
@ -398,7 +398,7 @@ void BurnGunInit(INT32 nNumPlayers, bool bDrawTargets)
|
|||
|
||||
void BurnGunExit()
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!Debug_BurnGunInitted) bprintf(PRINT_ERROR, _T("BurnGunExit called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -419,7 +419,7 @@ void BurnGunExit()
|
|||
|
||||
void BurnGunScan()
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!Debug_BurnGunInitted) bprintf(PRINT_ERROR, _T("BurnGunScan called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -441,7 +441,7 @@ void BurnGunScan()
|
|||
|
||||
void BurnGunDrawTarget(INT32 num, INT32 x, INT32 y)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!Debug_BurnGunInitted) bprintf(PRINT_ERROR, _T("BurnGunDrawTarget called without init\n"));
|
||||
if (num >= nBurnGunNumPlayers) bprintf(PRINT_ERROR, _T("BurnGunDrawTarget called with invalid player %x\n"), num);
|
||||
#endif
|
||||
|
|
|
@ -104,7 +104,7 @@ static void set_led_draw_position()
|
|||
|
||||
void BurnLEDSetFlipscreen(INT32 flip)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!Debug_BurnLedInitted) bprintf(PRINT_ERROR, _T("BurnLEDSetFlipscreen called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -118,7 +118,7 @@ void BurnLEDSetFlipscreen(INT32 flip)
|
|||
|
||||
void BurnLEDReset()
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!Debug_BurnLedInitted) bprintf(PRINT_ERROR, _T("BurnLEDReset called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -148,7 +148,7 @@ void BurnLEDInit(INT32 num, INT32 position, INT32 size, INT32 color, INT32 trans
|
|||
|
||||
void BurnLEDSetStatus(INT32 led, UINT32 status)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!Debug_BurnLedInitted) bprintf(PRINT_ERROR, _T("BurnLEDSetStatus called without init\n"));
|
||||
if (led >= led_count) bprintf(PRINT_ERROR, _T("BurnLEDSetStatus called with invalid led %x\n"), led);
|
||||
#endif
|
||||
|
@ -164,7 +164,7 @@ void BurnLEDSetStatus(INT32 led, UINT32 status)
|
|||
|
||||
void BurnLEDExit()
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!Debug_BurnLedInitted) bprintf(PRINT_ERROR, _T("BurnLEDExit called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -193,7 +193,7 @@ void BurnLEDExit()
|
|||
|
||||
void BurnLEDRender()
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!Debug_BurnLedInitted) bprintf(PRINT_ERROR, _T("BurnLEDRender called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -242,7 +242,7 @@ void BurnLEDRender()
|
|||
|
||||
INT32 BurnLEDScan(INT32 nAction, INT32 *pnMin)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!Debug_BurnLedInitted) bprintf(PRINT_ERROR, _T("BurnLEDScan called without init\n"));
|
||||
#endif
|
||||
|
||||
|
|
|
@ -83,7 +83,7 @@ void BurnExitMemoryManager()
|
|||
for (INT32 i = 0; i < MAX_MEM_PTR; i++)
|
||||
{
|
||||
if (memptr[i] != NULL) {
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
bprintf(PRINT_ERROR, _T("BurnExitMemoryManager had to free mem pointer %i (%d bytes)\n"), i, memsize[i]);
|
||||
#endif
|
||||
free (memptr[i]);
|
||||
|
|
|
@ -206,7 +206,7 @@ static void set_shift_draw_position()
|
|||
|
||||
void BurnShiftSetFlipscreen(INT32 flip)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!Debug_BurnShiftInitted) bprintf(PRINT_ERROR, _T("BurnShiftSetFlipscreen called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -220,7 +220,7 @@ void BurnShiftSetFlipscreen(INT32 flip)
|
|||
|
||||
void BurnShiftReset()
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!Debug_BurnShiftInitted) bprintf(PRINT_ERROR, _T("BurnShiftReset called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -273,7 +273,7 @@ INT32 BurnShiftInputCheckToggle(UINT8 shiftinput)
|
|||
|
||||
void BurnShiftSetStatus(UINT32 status)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!Debug_BurnShiftInitted) bprintf(PRINT_ERROR, _T("BurnShiftSetStatus called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -306,7 +306,7 @@ void BurnShiftSetStatus(UINT32 status)
|
|||
|
||||
void BurnShiftExit()
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!Debug_BurnShiftInitted) bprintf(PRINT_ERROR, _T("BurnShiftExit called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -334,7 +334,7 @@ void BurnShiftExit()
|
|||
|
||||
void BurnShiftRender()
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!Debug_BurnShiftInitted) bprintf(PRINT_ERROR, _T("BurnShiftRender called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -385,7 +385,7 @@ void BurnShiftRender()
|
|||
|
||||
void BurnShiftRenderDoubleSize()
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!Debug_BurnShiftInitted) bprintf(PRINT_ERROR, _T("BurnShiftRender called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -441,7 +441,7 @@ void BurnShiftRenderDoubleSize()
|
|||
|
||||
INT32 BurnShiftScan(INT32 nAction)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!Debug_BurnShiftInitted) bprintf(PRINT_ERROR, _T("BurnShiftScan called without init\n"));
|
||||
#endif
|
||||
|
||||
|
|
|
@ -158,7 +158,7 @@ static UINT8 ppi8255_read_port(ppi8255 *chip, INT32 port, INT32 chipnum)
|
|||
|
||||
void ppi8255_set_read_port(INT32 which, INT32 port, PPIPortRead pr)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugDev_8255PPIInitted) bprintf(PRINT_ERROR, _T("ppi8255_set_read_port called without init\n"));
|
||||
if (which > nNumChips) bprintf(PRINT_ERROR, _T("ppi8255_set_read_port called with invalid chip %x\n"), which);
|
||||
#endif
|
||||
|
@ -173,7 +173,7 @@ void ppi8255_set_read_port(INT32 which, INT32 port, PPIPortRead pr)
|
|||
|
||||
void ppi8255_set_read_ports(INT32 which, PPIPortRead a, PPIPortRead b, PPIPortRead c)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugDev_8255PPIInitted) bprintf(PRINT_ERROR, _T("ppi8255_set_read_ports called without init\n"));
|
||||
if (which > nNumChips) bprintf(PRINT_ERROR, _T("ppi8255_set_read_ports called with invalid chip %x\n"), which);
|
||||
#endif
|
||||
|
@ -186,7 +186,7 @@ void ppi8255_set_read_ports(INT32 which, PPIPortRead a, PPIPortRead b, PPIPortRe
|
|||
|
||||
void ppi8255_set_write_port(INT32 which, INT32 port, PPIPortWrite pw)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugDev_8255PPIInitted) bprintf(PRINT_ERROR, _T("ppi8255_set_write_port called without init\n"));
|
||||
if (which > nNumChips) bprintf(PRINT_ERROR, _T("ppi8255_set_write_port called with invalid chip %x\n"), which);
|
||||
#endif
|
||||
|
@ -201,7 +201,7 @@ void ppi8255_set_write_port(INT32 which, INT32 port, PPIPortWrite pw)
|
|||
|
||||
void ppi8255_set_write_ports(INT32 which, PPIPortWrite a, PPIPortWrite b, PPIPortWrite c)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugDev_8255PPIInitted) bprintf(PRINT_ERROR, _T("ppi8255_set_write_ports called without init\n"));
|
||||
if (which > nNumChips) bprintf(PRINT_ERROR, _T("ppi8255_set_write_ports called with invalid chip %x\n"), which);
|
||||
#endif
|
||||
|
@ -214,7 +214,7 @@ void ppi8255_set_write_ports(INT32 which, PPIPortWrite a, PPIPortWrite b, PPIPor
|
|||
|
||||
UINT8 ppi8255_r(INT32 which, INT32 offset)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugDev_8255PPIInitted) bprintf(PRINT_ERROR, _T("ppi8255_r called without init\n"));
|
||||
if (which > nNumChips) bprintf(PRINT_ERROR, _T("ppi8255_r called with invalid chip %x\n"), which);
|
||||
#endif
|
||||
|
@ -327,7 +327,7 @@ static void set_mode(INT32 which, INT32 data, INT32 call_handlers)
|
|||
|
||||
void ppi8255_w(INT32 which, INT32 offset, UINT8 data)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugDev_8255PPIInitted) bprintf(PRINT_ERROR, _T("ppi8255_w called without init\n"));
|
||||
if (which > nNumChips) bprintf(PRINT_ERROR, _T("ppi8255_w called with invalid chip %x\n"), which);
|
||||
#endif
|
||||
|
@ -415,7 +415,7 @@ void ppi8255_init(INT32 num)
|
|||
|
||||
void ppi8255_exit()
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugDev_8255PPIInitted) bprintf(PRINT_ERROR, _T("ppi8255_exit called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -431,7 +431,7 @@ void ppi8255_exit()
|
|||
|
||||
void ppi8255_scan()
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugDev_8255PPIInitted) bprintf(PRINT_ERROR, _T("ppi8255_scan called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -442,7 +442,7 @@ void ppi8255_scan()
|
|||
|
||||
void ppi8255_set_portC( INT32 which, UINT8 data )
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugDev_8255PPIInitted) bprintf(PRINT_ERROR, _T("ppi8255_set_portC called without init\n"));
|
||||
if (which > nNumChips) bprintf(PRINT_ERROR, _T("ppi8255_set_portC called with invalid chip %x\n"), which);
|
||||
#endif
|
||||
|
|
|
@ -109,7 +109,7 @@ void i8257Init()
|
|||
|
||||
void i8257Exit()
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugDev_8257DMAInitted) bprintf(PRINT_ERROR, _T("i8257Exit called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -118,7 +118,7 @@ void i8257Exit()
|
|||
|
||||
void i8257Config(UINT8 (*cpuread)(UINT16), void (*cpuwrite)(UINT16,UINT8), INT32 (*idle)(INT32), ior_in_functs *read_f, ior_out_functs *write_f)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugDev_8257DMAInitted) bprintf(PRINT_ERROR, _T("i8257Config called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -139,7 +139,7 @@ void i8257Config(UINT8 (*cpuread)(UINT16), void (*cpuwrite)(UINT16,UINT8), INT32
|
|||
|
||||
void i8257Reset()
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugDev_8257DMAInitted) bprintf(PRINT_ERROR, _T("i8257Reset called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -274,7 +274,7 @@ static void i8257_timer(INT32 id, INT32 param)
|
|||
|
||||
void i8257_update_status()
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugDev_8257DMAInitted) bprintf(PRINT_ERROR, _T("i8257_update_status called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -302,7 +302,7 @@ static void i8257_prepare_msb_flip()
|
|||
|
||||
UINT8 i8257Read(UINT8 offset)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugDev_8257DMAInitted) bprintf(PRINT_ERROR, _T("i8257Read called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -340,7 +340,7 @@ UINT8 i8257Read(UINT8 offset)
|
|||
|
||||
void i8257Write(UINT8 offset, UINT8 data)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugDev_8257DMAInitted) bprintf(PRINT_ERROR, _T("i8257Write called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -395,7 +395,7 @@ void i8257Write(UINT8 offset, UINT8 data)
|
|||
|
||||
void i8257_drq_write(INT32 channel, INT32 state)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugDev_8257DMAInitted) bprintf(PRINT_ERROR, _T("i8257_drq_write called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -406,7 +406,7 @@ void i8257_drq_write(INT32 channel, INT32 state)
|
|||
|
||||
void i8257_do_transfer(INT32)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugDev_8257DMAInitted) bprintf(PRINT_ERROR, _T("i8257_do_transfer called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -417,7 +417,7 @@ void i8257_do_transfer(INT32)
|
|||
|
||||
void i8257Scan()
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugDev_8257DMAInitted) bprintf(PRINT_ERROR, _T("i8257Scan called without init\n"));
|
||||
#endif
|
||||
|
||||
|
|
|
@ -65,7 +65,7 @@ static INT32 eeprom_command_match(const char *buf, const char *cmd, INT32 len)
|
|||
|
||||
INT32 EEPROMAvailable()
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugDev_EEPROMInitted) bprintf(PRINT_ERROR, _T("EEPROMAvailable called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -110,7 +110,7 @@ void EEPROMInit(const eeprom_interface *interface)
|
|||
|
||||
void EEPROMExit()
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugDev_EEPROMInitted) bprintf(PRINT_ERROR, _T("EEPROMExit called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -240,7 +240,7 @@ static void eeprom_write(INT32 bit)
|
|||
|
||||
void EEPROMReset()
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugDev_EEPROMInitted) bprintf(PRINT_ERROR, _T("EEPROMReset called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -251,7 +251,7 @@ void EEPROMReset()
|
|||
|
||||
void EEPROMWriteBit(INT32 bit)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugDev_EEPROMInitted) bprintf(PRINT_ERROR, _T("EEPROMWriteBit called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -260,7 +260,7 @@ void EEPROMWriteBit(INT32 bit)
|
|||
|
||||
INT32 EEPROMRead()
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugDev_EEPROMInitted) bprintf(PRINT_ERROR, _T("EEPROMRead called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -285,7 +285,7 @@ INT32 EEPROMRead()
|
|||
|
||||
void EEPROMSetCSLine(INT32 state)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugDev_EEPROMInitted) bprintf(PRINT_ERROR, _T("EEPROMSetCSLine called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -297,7 +297,7 @@ void EEPROMSetCSLine(INT32 state)
|
|||
|
||||
void EEPROMSetClockLine(INT32 state)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugDev_EEPROMInitted) bprintf(PRINT_ERROR, _T("EEPROMSetClockLine called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -329,7 +329,7 @@ void EEPROMSetClockLine(INT32 state)
|
|||
|
||||
void EEPROMFill(const UINT8 *data, INT32 offset, INT32 length)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugDev_EEPROMInitted) bprintf(PRINT_ERROR, _T("EEPROMFill called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -338,7 +338,7 @@ void EEPROMFill(const UINT8 *data, INT32 offset, INT32 length)
|
|||
|
||||
void EEPROMScan(INT32 nAction, INT32* pnMin)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugDev_EEPROMInitted) bprintf(PRINT_ERROR, _T("EEPROMScan called without init\n"));
|
||||
#endif
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@ INT32 pandora_flipscreen;
|
|||
|
||||
void pandora_set_clear(INT32 clear)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugDev_PandoraInitted) bprintf(PRINT_ERROR, _T("pandora_set_clear called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -24,7 +24,7 @@ void pandora_set_clear(INT32 clear)
|
|||
|
||||
void pandora_update(UINT16 *dest)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugDev_PandoraInitted) bprintf(PRINT_ERROR, _T("pandora_update called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -37,7 +37,7 @@ void pandora_update(UINT16 *dest)
|
|||
|
||||
void pandora_buffer_sprites()
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugDev_PandoraInitted) bprintf(PRINT_ERROR, _T("pandora_buffer_sprites called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -132,7 +132,7 @@ void pandora_init(UINT8 *ram, UINT8 *gfx, INT32 gfx_mod, INT32 color_offset, INT
|
|||
|
||||
void pandora_exit()
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugDev_PandoraInitted) bprintf(PRINT_ERROR, _T("pandora_exit called without init\n"));
|
||||
#endif
|
||||
|
||||
|
|
|
@ -114,7 +114,7 @@ static void update_irq_lines(INT32 param)
|
|||
|
||||
UINT8 seibu_main_word_read(INT32 offset)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugDev_SeibuSndInitted) bprintf(PRINT_ERROR, _T("seibu_main_word_read called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -134,7 +134,7 @@ UINT8 seibu_main_word_read(INT32 offset)
|
|||
|
||||
void seibu_main_word_write(INT32 offset, UINT8 data)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugDev_SeibuSndInitted) bprintf(PRINT_ERROR, _T("seibu_main_word_write called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -164,7 +164,7 @@ void seibu_main_word_write(INT32 offset, UINT8 data)
|
|||
|
||||
void seibu_sound_mustb_write_word(INT32 /*offset*/, UINT16 data)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugDev_SeibuSndInitted) bprintf(PRINT_ERROR, _T("seibu_sound_mustb_write_word called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -184,7 +184,7 @@ static void seibu_z80_bank(INT32 data)
|
|||
|
||||
void __fastcall seibu_sound_write(UINT16 address, UINT8 data)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugDev_SeibuSndInitted) bprintf(PRINT_ERROR, _T("seibu_sound_write called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -304,7 +304,7 @@ void __fastcall seibu_sound_write(UINT16 address, UINT8 data)
|
|||
|
||||
UINT8 __fastcall seibu_sound_read(UINT16 address)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugDev_SeibuSndInitted) bprintf(PRINT_ERROR, _T("seibu_sound_read called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -410,7 +410,7 @@ static void Drv2151FMIRQHandler(INT32 nStatus)
|
|||
|
||||
void seibu_sound_reset()
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugDev_SeibuSndInitted) bprintf(PRINT_ERROR, _T("seibu_sound_reset called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -514,7 +514,7 @@ void seibu_sound_init(INT32 type, INT32 len, INT32 freq0 /*cpu*/, INT32 freq1 /*
|
|||
|
||||
void seibu_sound_exit()
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugDev_SeibuSndInitted) bprintf(PRINT_ERROR, _T("seibu_sound_exit called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -658,7 +658,7 @@ static void adpcm_update(INT32 chip, INT16 *pbuf, INT32 samples)
|
|||
|
||||
void seibu_sound_update(INT16 *pbuf, INT32 nLen)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugDev_SeibuSndInitted) bprintf(PRINT_ERROR, _T("seibu_sound_update called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -684,7 +684,7 @@ void seibu_sound_update(INT16 *pbuf, INT32 nLen)
|
|||
|
||||
void seibu_sound_update_cabal(INT16 *pbuf, INT32 nLen)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugDev_SeibuSndInitted) bprintf(PRINT_ERROR, _T("seibu_sound_update called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -713,7 +713,7 @@ void seibu_sound_update_cabal(INT16 *pbuf, INT32 nLen)
|
|||
|
||||
void seibu_sound_scan(INT32 nAction, INT32 *pnMin)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugDev_SeibuSndInitted) bprintf(PRINT_ERROR, _T("seibu_sound_scan called without init\n"));
|
||||
#endif
|
||||
|
||||
|
|
|
@ -55,7 +55,7 @@ static INT32 skns_rle_decode ( INT32 romoffset, INT32 size, UINT8*gfx_source, IN
|
|||
|
||||
void skns_sprite_kludge(INT32 x, INT32 y)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugDev_SknsSprInitted) bprintf(PRINT_ERROR, _T("skns_sprite_kludge called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -228,7 +228,7 @@ static void (*const blit_z[4])(UINT16 *bitmap, const UINT8 *src, INT32 x, INT32
|
|||
// disable_priority is a hack to make jchan drawing a bit quicker (rather than moving the sprites around different bitmaps and adding colors
|
||||
void skns_draw_sprites(UINT16 *bitmap, UINT32* spriteram_source, INT32 spriteram_size, UINT8* gfx_source, INT32 gfx_length, UINT32* sprite_regs, INT32 disable_priority)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugDev_SknsSprInitted) bprintf(PRINT_ERROR, _T("skns_draw_sprites called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -550,7 +550,7 @@ void skns_init()
|
|||
|
||||
void skns_exit()
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugDev_SknsSprInitted) bprintf(PRINT_ERROR, _T("skns_exit called without init\n"));
|
||||
#endif
|
||||
|
||||
|
|
|
@ -789,7 +789,7 @@ static struct slapstic_data slapstic;
|
|||
|
||||
void SlapsticReset(void)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugDev_SlapsticInitted) bprintf(PRINT_ERROR, _T("SlapsticReset called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -825,7 +825,7 @@ void SlapsticInit(INT32 chip)
|
|||
|
||||
void SlapsticExit()
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugDev_SlapsticInitted) bprintf(PRINT_ERROR, _T("SlapsticExit called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -840,7 +840,7 @@ void SlapsticExit()
|
|||
|
||||
INT32 SlapsticBank(void)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugDev_SlapsticInitted) bprintf(PRINT_ERROR, _T("SlapsticBank called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -904,7 +904,7 @@ static INT32 alt2_kludge(UINT32 /*offset*/)
|
|||
|
||||
INT32 SlapsticTweak(INT32 offset)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugDev_SlapsticInitted) bprintf(PRINT_ERROR, _T("SlapsticTweak called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -1121,7 +1121,7 @@ INT32 SlapsticTweak(INT32 offset)
|
|||
|
||||
void SlapsticScan(INT32 nAction)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugDev_SlapsticInitted) bprintf(PRINT_ERROR, _T("SlapsticScan called without init\n"));
|
||||
#endif
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@ UINT8 t5182_coin_input;
|
|||
|
||||
void t5182_setirq_callback(INT32 param)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugDev_T5182Initted) bprintf(PRINT_ERROR, _T("t5182_setirq_callback called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -119,7 +119,7 @@ static void t5182YM2151IrqHandler(INT32 Irq)
|
|||
|
||||
void t5182Reset()
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugDev_T5182Initted) bprintf(PRINT_ERROR, _T("t5182Reset called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -171,7 +171,7 @@ void t5182Init(INT32 nZ80CPU, INT32 clock)
|
|||
|
||||
void t5182Exit()
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugDev_T5182Initted) bprintf(PRINT_ERROR, _T("t5182Exit called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -194,7 +194,7 @@ void t5182Exit()
|
|||
|
||||
INT32 t5182Scan(INT32 nAction, INT32 *pnMin)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugDev_T5182Initted) bprintf(PRINT_ERROR, _T("t5182Scan called without init\n"));
|
||||
#endif
|
||||
|
||||
|
|
|
@ -139,7 +139,7 @@ static void counters_from_ram()
|
|||
|
||||
UINT8 TimeKeeperRead(UINT32 offset)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugDev_TimeKprInitted) bprintf(PRINT_ERROR, _T("TimeKeeperRead called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -148,7 +148,7 @@ UINT8 TimeKeeperRead(UINT32 offset)
|
|||
|
||||
INT32 TimeKeeperIsEmpty()
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugDev_TimeKprInitted) bprintf(PRINT_ERROR, _T("TimeKeeperIsEmpty called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -164,7 +164,7 @@ INT32 TimeKeeperIsEmpty()
|
|||
|
||||
UINT8* TimeKeeperGetRaw()
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugDev_TimeKprInitted) bprintf(PRINT_ERROR, _T("TimeKeeperGetRaw called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -173,7 +173,7 @@ UINT8* TimeKeeperGetRaw()
|
|||
|
||||
void TimeKeeperWrite(INT32 offset, UINT8 data)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugDev_TimeKprInitted) bprintf(PRINT_ERROR, _T("TimeKeeperWrite called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -196,7 +196,7 @@ void TimeKeeperWrite(INT32 offset, UINT8 data)
|
|||
|
||||
void TimeKeeperTick()
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugDev_TimeKprInitted) bprintf(PRINT_ERROR, _T("TimeKeeperTick called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -370,7 +370,7 @@ void TimeKeeperInit(INT32 type, UINT8 *data)
|
|||
|
||||
void TimeKeeperExit()
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugDev_TimeKprInitted) bprintf(PRINT_ERROR, _T("TimeKeeperExit called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -385,7 +385,7 @@ void TimeKeeperExit()
|
|||
|
||||
void TimeKeeperScan(INT32 nAction)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugDev_TimeKprInitted) bprintf(PRINT_ERROR, _T("TimeKeeperScan called without init\n"));
|
||||
#endif
|
||||
|
||||
|
|
|
@ -61,7 +61,7 @@ INT32 tms34061_current_scanline;
|
|||
|
||||
void tms34061_reset()
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugDev_Tms34061Initted) bprintf(PRINT_ERROR, _T("tms34061_reset called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -122,7 +122,7 @@ void tms34061_init(UINT8 rowshift, UINT32 ram_size, void (*partial_update)(), vo
|
|||
|
||||
void tms34061_exit()
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugDev_Tms34061Initted) bprintf(PRINT_ERROR, _T("tms34061_exit called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -156,7 +156,7 @@ static void update_interrupts()
|
|||
|
||||
void tms34061_interrupt()
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugDev_Tms34061Initted) bprintf(PRINT_ERROR, _T("tms34061_interrupt called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -416,7 +416,7 @@ static UINT8 xypixel_r(INT32 offset)
|
|||
|
||||
void tms34061_write(INT32 col, INT32 row, INT32 func, UINT8 data)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugDev_Tms34061Initted) bprintf(PRINT_ERROR, _T("tms34061_write called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -479,7 +479,7 @@ void tms34061_write(INT32 col, INT32 row, INT32 func, UINT8 data)
|
|||
|
||||
UINT8 tms34061_read(INT32 col, INT32 row, INT32 func)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugDev_Tms34061Initted) bprintf(PRINT_ERROR, _T("tms34061_read called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -545,7 +545,7 @@ UINT8 tms34061_read(INT32 col, INT32 row, INT32 func)
|
|||
|
||||
UINT8 tms34061_latch_read()
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugDev_Tms34061Initted) bprintf(PRINT_ERROR, _T("tms34061_latch_read called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -555,7 +555,7 @@ UINT8 tms34061_latch_read()
|
|||
|
||||
void tms34061_latch_write(UINT8 data)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugDev_Tms34061Initted) bprintf(PRINT_ERROR, _T("tms34061_latch_write called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -564,7 +564,7 @@ void tms34061_latch_write(UINT8 data)
|
|||
|
||||
INT32 tms34061_display_blanked()
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugDev_Tms34061Initted) bprintf(PRINT_ERROR, _T("tms34061_display_blanked called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -573,7 +573,7 @@ INT32 tms34061_display_blanked()
|
|||
|
||||
UINT8 *tms34061_get_vram_pointer()
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugDev_Tms34061Initted) bprintf(PRINT_ERROR, _T("tms34061_get_vram_pointer called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -589,7 +589,7 @@ UINT8 *tms34061_get_vram_pointer()
|
|||
|
||||
INT32 tms34061_scan(INT32 nAction, INT32 *)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugDev_Tms34061Initted) bprintf(PRINT_ERROR, _T("tms34061_scan called without init\n"));
|
||||
#endif
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@ static UINT8 bcd(UINT8 data)
|
|||
|
||||
UINT8 v3021Read()
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugDev_V3021Initted) bprintf(PRINT_ERROR, _T("v3021Read called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -24,7 +24,7 @@ UINT8 v3021Read()
|
|||
|
||||
void v3021Write(UINT16 data)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugDev_V3021Initted) bprintf(PRINT_ERROR, _T("v3021Write called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -92,7 +92,7 @@ void v3021Init()
|
|||
|
||||
void v3021Exit()
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugDev_V3021Initted) bprintf(PRINT_ERROR, _T("v3021Exit called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -101,7 +101,7 @@ void v3021Exit()
|
|||
|
||||
INT32 v3021Scan()
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugDev_V3021Initted) bprintf(PRINT_ERROR, _T("v3021Scan called without init\n"));
|
||||
#endif
|
||||
|
||||
|
|
|
@ -54,7 +54,7 @@ static void vpc_update_prio_map()
|
|||
|
||||
void vpc_write(UINT8 offset, UINT8 data)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugDev_VDCInitted) bprintf(PRINT_ERROR, _T("vpc_write called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -108,7 +108,7 @@ void vpc_write(UINT8 offset, UINT8 data)
|
|||
|
||||
UINT8 vpc_read(UINT8 offset)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugDev_VDCInitted) bprintf(PRINT_ERROR, _T("vpc_read called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -138,7 +138,7 @@ UINT8 vpc_read(UINT8 offset)
|
|||
|
||||
void vpc_reset()
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugDev_VDCInitted) bprintf(PRINT_ERROR, _T("vpc_reset called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -159,7 +159,7 @@ void vpc_reset()
|
|||
|
||||
UINT8 vce_read(UINT8 offset)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugDev_VDCInitted) bprintf(PRINT_ERROR, _T("vce_read called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -179,7 +179,7 @@ UINT8 vce_read(UINT8 offset)
|
|||
|
||||
void vce_write(UINT8 offset, UINT8 data)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugDev_VDCInitted) bprintf(PRINT_ERROR, _T("vce_write called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -210,7 +210,7 @@ void vce_write(UINT8 offset, UINT8 data)
|
|||
|
||||
void vce_palette_init(UINT32 *Palette)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugDev_VDCInitted) bprintf(PRINT_ERROR, _T("vce_palette_init called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -229,7 +229,7 @@ void vce_palette_init(UINT32 *Palette)
|
|||
|
||||
void vce_reset()
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugDev_VDCInitted) bprintf(PRINT_ERROR, _T("vce_reset called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -801,7 +801,7 @@ static void pce_refresh_line(INT32 which, INT32 /*line*/, INT32 external_input,
|
|||
|
||||
void pce_interrupt()
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugDev_VDCInitted) bprintf(PRINT_ERROR, _T("pce_interrupt called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -839,7 +839,7 @@ void pce_interrupt()
|
|||
|
||||
void sgx_interrupt()
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugDev_VDCInitted) bprintf(PRINT_ERROR, _T("sgx_interrupt called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -1021,7 +1021,7 @@ static void vdc_do_dma(INT32 which)
|
|||
|
||||
void vdc_write(INT32 which, UINT8 offset, UINT8 data)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugDev_VDCInitted) bprintf(PRINT_ERROR, _T("vdc_write called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -1122,7 +1122,7 @@ void vdc_write(INT32 which, UINT8 offset, UINT8 data)
|
|||
|
||||
UINT8 vdc_read(INT32 which, UINT8 offset)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugDev_VDCInitted) bprintf(PRINT_ERROR, _T("vdc_read called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -1152,7 +1152,7 @@ UINT8 vdc_read(INT32 which, UINT8 offset)
|
|||
|
||||
void sgx_vdc_write(UINT8 offset, UINT8 data)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugDev_VDCInitted) bprintf(PRINT_ERROR, _T("sgx_vdc_write called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -1168,7 +1168,7 @@ void sgx_vdc_write(UINT8 offset, UINT8 data)
|
|||
|
||||
UINT8 sgx_vdc_read(UINT8 offset)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugDev_VDCInitted) bprintf(PRINT_ERROR, _T("sgx_vdc_read called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -1177,7 +1177,7 @@ UINT8 sgx_vdc_read(UINT8 offset)
|
|||
|
||||
void vdc_reset()
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugDev_VDCInitted) bprintf(PRINT_ERROR, _T("vdc_reset called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -1204,7 +1204,7 @@ void vdc_reset()
|
|||
|
||||
void vdc_get_dimensions(INT32 which, INT32 *x, INT32 *y)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugDev_VDCInitted) bprintf(PRINT_ERROR, _T("vdc_get_dimensions called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -1219,7 +1219,7 @@ void vdc_init()
|
|||
|
||||
void vdc_exit()
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugDev_VDCInitted) bprintf(PRINT_ERROR, _T("vdc_exit called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -1228,7 +1228,7 @@ void vdc_exit()
|
|||
|
||||
INT32 vdc_scan(INT32 nAction, INT32 *pnMin)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugDev_VDCInitted) bprintf(PRINT_ERROR, _T("vdc_scan called without init\n"));
|
||||
#endif
|
||||
|
||||
|
|
|
@ -44,14 +44,14 @@ void BurnWatchdogExit()
|
|||
void BurnWatchdogInit(INT32 (*reset)(INT32 clear_mem), INT32 frames)
|
||||
{
|
||||
if (reset == NULL) {
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
bprintf (PRINT_ERROR, _T("Error: BurnWatchdogInit called with no reset!\n"));
|
||||
#endif
|
||||
return;
|
||||
}
|
||||
|
||||
if (frames == 0) {
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
bprintf (PRINT_ERROR, _T("Error: BurnWatchdogInit called with 0 frames (%d)!\n"), frames);
|
||||
#endif
|
||||
frames = 180; // default
|
||||
|
@ -74,7 +74,7 @@ void BurnWatchdogUpdate()
|
|||
if (Watchdog >= WatchdogFrames) {
|
||||
if (WatchdogReset != NULL) {
|
||||
WatchdogReset(0);
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
bprintf (0, _T("BurnWatchdogUpdate - Watchdog triggered!\n"));
|
||||
#endif
|
||||
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
#endif
|
||||
|
||||
#define FBA
|
||||
#define FBANEO
|
||||
|
||||
typedef unsigned char UINT8;
|
||||
typedef signed char INT8;
|
||||
|
|
|
@ -2028,7 +2028,7 @@ static INT32 CpsGetROMs(bool bLoad)
|
|||
nCpsGfxLen = nGfxNum * nGfxMaxSize;
|
||||
}
|
||||
|
||||
#if 1 && defined FBA_DEBUG
|
||||
#if 1 && defined FBNEO_DEBUG
|
||||
if (!nCpsCodeLen) {
|
||||
bprintf(PRINT_IMPORTANT, _T(" - 68K ROM size:\t0x%08X (Decrypted with key)\n"), nCpsRomLen);
|
||||
} else {
|
||||
|
|
|
@ -469,7 +469,7 @@ INT32 Cps2Frame()
|
|||
|
||||
// bprintf(PRINT_NORMAL, _T(" -\n"));
|
||||
|
||||
#if 0 && defined FBA_DEBUG
|
||||
#if 0 && defined FBNEO_DEBUG
|
||||
if (nInterrupt) {
|
||||
bprintf(PRINT_IMPORTANT, _T("Beam synchronized interrupt at line %2X.\r"), nRasterline[nInterrupt]);
|
||||
} else {
|
||||
|
|
|
@ -14379,7 +14379,7 @@ static void SetGameConfig()
|
|||
SetGfxMapper(k->CpsMapperId);
|
||||
KabukiDecodeFunction = k->DecodeFunction;
|
||||
} else {
|
||||
#if 1 && defined FBA_DEBUG
|
||||
#if 1 && defined FBNEO_DEBUG
|
||||
bprintf(PRINT_IMPORTANT, _T("Missing Config Data\n"));
|
||||
#endif
|
||||
}
|
||||
|
@ -14452,7 +14452,7 @@ static INT32 Cps1LoadRoms(INT32 bLoad)
|
|||
if (PangEEP) nCpsGfxLen *= 2;
|
||||
if (nCpsPicRomNum) Cps1DisablePSnd = 1;
|
||||
|
||||
#if 1 && defined FBA_DEBUG
|
||||
#if 1 && defined FBNEO_DEBUG
|
||||
if (nCpsRomLen) bprintf(PRINT_IMPORTANT, _T("68K Rom Length %06X, (%i roms byteswapped, %i roms not byteswapped)\n"), nCpsRomLen, nCps68KByteswapRomNum, nCps68KNoByteswapRomNum);
|
||||
if (nCpsZRomLen) bprintf(PRINT_IMPORTANT, _T("Z80 Rom Length %06X, (%i roms)\n"), nCpsZRomLen, nCpsZ80RomNum);
|
||||
if (nCpsGfxLen) bprintf(PRINT_IMPORTANT, _T("Tile Rom Length %08X, (%i roms)\n"), nCpsGfxLen, nCpsTilesRomNum);
|
||||
|
|
|
@ -52,7 +52,7 @@ void __fastcall PsndZWrite(UINT16 a, UINT8 d)
|
|||
case 0xF006: // ??? Enable interrupt ???
|
||||
break;
|
||||
|
||||
#ifdef FBA_DEBUG
|
||||
#ifdef FBNEO_DEBUG
|
||||
// default:
|
||||
// bprintf(PRINT_NORMAL, _T("Z80 address %04X -> %02X.\n"), a, d);
|
||||
#endif
|
||||
|
@ -74,7 +74,7 @@ void __fastcall kodbZWrite(UINT16 a, UINT8 d)
|
|||
MSM6295Write(0, d);
|
||||
break;
|
||||
|
||||
#ifdef FBA_DEBUG
|
||||
#ifdef FBNEO_DEBUG
|
||||
// default:
|
||||
// bprintf(PRINT_NORMAL, _T("Z80 address %04X -> %02X.\n"), a, d);
|
||||
#endif
|
||||
|
@ -97,7 +97,7 @@ UINT8 __fastcall PsndZRead(UINT16 a)
|
|||
case 0xF00A:
|
||||
return PsndFade;
|
||||
|
||||
#ifdef FBA_DEBUG
|
||||
#ifdef FBNEO_DEBUG
|
||||
// default:
|
||||
// bprintf(PRINT_NORMAL, _T("Z80 address %04X read.\n"), a);
|
||||
#endif
|
||||
|
@ -116,7 +116,7 @@ UINT8 __fastcall kodbZRead(UINT16 a)
|
|||
case 0xE800:
|
||||
return PsndCode;
|
||||
|
||||
#ifdef FBA_DEBUG
|
||||
#ifdef FBNEO_DEBUG
|
||||
// default:
|
||||
// bprintf(PRINT_NORMAL, _T("Z80 address %04X read.\n"), a);
|
||||
#endif
|
||||
|
|
|
@ -2387,7 +2387,7 @@ static INT32 default_col_cb(INT32 col)
|
|||
static INT32 (*m_pri_cb)(INT32, INT32) = NULL;
|
||||
static INT32 (*m_col_cb)(INT32) = NULL;
|
||||
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
extern int counter; // dink debug stuff, to be removed when driver 100%. (or slightly less)
|
||||
#endif
|
||||
|
||||
|
|
|
@ -259,7 +259,7 @@ static INT32 GalLoadRoms(bool bLoad)
|
|||
SpritePlaneOffsets[1] = GalTilesSpriteRomSize * 4;
|
||||
}
|
||||
|
||||
#if 1 && defined FBA_DEBUG
|
||||
#if 1 && defined FBNEO_DEBUG
|
||||
if (GalZ80Rom1Size) bprintf(PRINT_NORMAL, _T("Z80 #1 Rom Size: 0x%X (%i roms)\n"), GalZ80Rom1Size, GalZ80Rom1Num);
|
||||
if (GalZ80Rom2Size) bprintf(PRINT_NORMAL, _T("Z80 #2 Rom Size: 0x%X (%i roms)\n"), GalZ80Rom2Size, GalZ80Rom2Num);
|
||||
if (GalZ80Rom3Size) bprintf(PRINT_NORMAL, _T("Z80 #3 Rom Size: 0x%X (%i roms)\n"), GalZ80Rom3Size, GalZ80Rom3Num);
|
||||
|
|
|
@ -233,7 +233,7 @@ static void moo_objdma()
|
|||
}
|
||||
}
|
||||
|
||||
#ifdef FBA_DEBUG
|
||||
#ifdef FBNEO_DEBUG
|
||||
extern int counter;
|
||||
#endif
|
||||
|
||||
|
|
|
@ -547,7 +547,7 @@ static INT32 LoadRoms()
|
|||
pInfo->nADPCMBNum = 0;
|
||||
}
|
||||
|
||||
#if 1 && defined FBA_DEBUG
|
||||
#if 1 && defined FBNEO_DEBUG
|
||||
bprintf(PRINT_IMPORTANT, _T(" - P: %i (%i);"), pInfo->nCodeOffset, pInfo->nCodeNum);
|
||||
if (pInfo->nTextOffset >= 0) {
|
||||
bprintf(PRINT_IMPORTANT, _T(" S: %i;"), pInfo->nTextOffset);
|
||||
|
@ -3632,7 +3632,7 @@ static INT32 neogeoReset()
|
|||
*((UINT16*)(Neo68KBIOS + 0x000400)) = BURN_ENDIAN_SWAP_INT16(((NeoSystem & 4) << 13) | (NeoSystem & 0x03));
|
||||
}
|
||||
|
||||
#if 1 && defined FBA_DEBUG
|
||||
#if 1 && defined FBNEO_DEBUG
|
||||
if (((BurnDrvGetHardwareCode() & HARDWARE_PUBLIC_MASK) != HARDWARE_SNK_DEDICATED_PCB) && (BurnDrvGetHardwareCode() & HARDWARE_SNK_CONTROLMASK) != HARDWARE_SNK_TRACKBALL) {
|
||||
switch (NeoSystem & 0x3f) {
|
||||
case 0x00: { bprintf(PRINT_IMPORTANT, _T("Emulating using MVS Asia/Europe ver. 6 (1 slot) BIOS\n")); break; }
|
||||
|
@ -3685,7 +3685,7 @@ static INT32 neogeoReset()
|
|||
OldDebugDip[1] = NeoDebugDip[1] = 0;
|
||||
}
|
||||
|
||||
#if 1 && defined FBA_DEBUG
|
||||
#if 1 && defined FBNEO_DEBUG
|
||||
if (nNeoSystemType & NEO_SYS_CD) {
|
||||
bprintf(PRINT_IMPORTANT, _T(" - Emulating Neo CD system.\n"));
|
||||
}
|
||||
|
@ -3821,7 +3821,7 @@ static INT32 neogeoReset()
|
|||
static void SwitchToMusashi()
|
||||
{
|
||||
if (bBurnUseASMCPUEmulation) {
|
||||
#if 1 && defined FBA_DEBUG
|
||||
#if 1 && defined FBNEO_DEBUG
|
||||
bprintf(PRINT_NORMAL, _T("Switching to Musashi 68000 core\n"));
|
||||
#endif
|
||||
bUseAsm68KCoreOldValue = bBurnUseASMCPUEmulation;
|
||||
|
@ -4369,7 +4369,7 @@ INT32 NeoExit()
|
|||
// Switch back CPU core if needed
|
||||
if (nNeoSystemType & NEO_SYS_CD) {
|
||||
if (bUseAsm68KCoreOldValue) {
|
||||
#if 1 && defined FBA_DEBUG
|
||||
#if 1 && defined FBNEO_DEBUG
|
||||
bprintf(PRINT_NORMAL, _T("Switching back to A68K core\n"));
|
||||
#endif
|
||||
bUseAsm68KCoreOldValue = false;
|
||||
|
@ -4694,7 +4694,7 @@ INT32 NeoFrame()
|
|||
// This can't be 100% accurate, as the 68000 instruction timings are not 100%
|
||||
if ((nNeoSystemType & NEO_SYS_CART) && nNeoWatchdog > nCyclesTotal[0] * 8) {
|
||||
if (bDisableNeoWatchdog == false) {
|
||||
#if 1 && defined FBA_DEBUG
|
||||
#if 1 && defined FBNEO_DEBUG
|
||||
SekOpen(0);
|
||||
bprintf(PRINT_IMPORTANT, _T(" ** Watchdog triggered system reset (PC: 0x%06X)\n"), SekGetPC(-1));
|
||||
SekClose();
|
||||
|
|
|
@ -868,7 +868,7 @@ static void drawsprite_64x64(INT32 Code, INT32 x, INT32 y, INT32 Bank, INT32 Att
|
|||
}
|
||||
|
||||
static void drawsprite_invalid(INT32 Code, INT32 x, INT32 y, INT32 Bank, INT32 Attr) {
|
||||
#ifdef FBA_DEBUG
|
||||
#ifdef FBNEO_DEBUG
|
||||
bprintf(PRINT_NORMAL, _T("8 Pixel Size not Supported! %X, %d, %d, %X, %X\n"), Code, x, y, Bank, Attr);
|
||||
#else
|
||||
(void)Code; (void)x; (void)y; (void)Bank; (void)Attr;
|
||||
|
|
|
@ -1604,7 +1604,7 @@ static void DrvGfxDecode(INT32 gfx, UINT8 *src, INT32 nLen, INT32 nType)
|
|||
count+=advcnt;
|
||||
}
|
||||
|
||||
#ifdef FBA_DEBUG
|
||||
#ifdef FBNEO_DEBUG
|
||||
bprintf (0, _T("%d, mask: %x, transpcnt: %x\n"), gfx, gfxmask[gfx], count);
|
||||
#endif
|
||||
}
|
||||
|
|
|
@ -1917,7 +1917,7 @@ UINT16 __fastcall Tumbleb68KReadWord(UINT32 a)
|
|||
|
||||
void __fastcall Tumbleb68KWriteWord(UINT32 a, UINT16 d)
|
||||
{
|
||||
#if 1 && defined FBA_DEBUG
|
||||
#if 1 && defined FBNEO_DEBUG
|
||||
if (a >= 0x160800 && a <= 0x160807) return;
|
||||
if (a >= 0x198000 && a <= 0x1a8015) return;
|
||||
if (a >= 0x321000 && a <= 0x321fff) return;
|
||||
|
|
|
@ -1166,7 +1166,7 @@ UINT16 __fastcall HangonReadWord(UINT32 a)
|
|||
}
|
||||
}
|
||||
|
||||
#if 0 && defined FBA_DEBUG
|
||||
#if 0 && defined FBNEO_DEBUG
|
||||
bprintf(PRINT_NORMAL, _T("68000 Read Word -> 0x%06X\n"), a);
|
||||
#endif
|
||||
|
||||
|
@ -1208,7 +1208,7 @@ UINT8 __fastcall HangonReadByte(UINT32 a)
|
|||
}
|
||||
}
|
||||
|
||||
#if 0 && defined FBA_DEBUG
|
||||
#if 0 && defined FBNEO_DEBUG
|
||||
bprintf(PRINT_NORMAL, _T("68000 Read Byte -> 0x%06X\n"), a);
|
||||
#endif
|
||||
|
||||
|
@ -1250,7 +1250,7 @@ void __fastcall HangonWriteByte(UINT32 a, UINT8 d)
|
|||
}
|
||||
}
|
||||
|
||||
#if 0 && defined FBA_DEBUG
|
||||
#if 0 && defined FBNEO_DEBUG
|
||||
bprintf(PRINT_NORMAL, _T("68000 Write Byte -> 0x%06X, 0x%02X\n"), a, d);
|
||||
#endif
|
||||
}
|
||||
|
@ -1272,7 +1272,7 @@ void __fastcall HangonWriteWord(UINT32 a, UINT16 d)
|
|||
}
|
||||
}
|
||||
|
||||
#if 0 && defined FBA_DEBUG
|
||||
#if 0 && defined FBNEO_DEBUG
|
||||
bprintf(PRINT_NORMAL, _T("68000 Write Word -> 0x%06X, 0x%04X\n"), a, d);
|
||||
#endif
|
||||
}
|
||||
|
|
|
@ -1950,7 +1950,7 @@ UINT8 __fastcall Outrun2ReadByte(UINT32 a)
|
|||
}
|
||||
}
|
||||
|
||||
#if 0 && defined FBA_DEBUG
|
||||
#if 0 && defined FBNEO_DEBUG
|
||||
bprintf(PRINT_NORMAL, _T("68000 # 2 Read Byte -> 0x%06X\n"), a);
|
||||
#endif
|
||||
|
||||
|
@ -1966,7 +1966,7 @@ void __fastcall Outrun2WriteWord(UINT32 a, UINT16 d)
|
|||
}
|
||||
}
|
||||
|
||||
#if 0 && defined FBA_DEBUG
|
||||
#if 0 && defined FBNEO_DEBUG
|
||||
bprintf(PRINT_NORMAL, _T("68000 # 2 Write Word -> 0x%06X, 0x%04X\n"), a, d);
|
||||
#endif
|
||||
}
|
||||
|
@ -1980,7 +1980,7 @@ void __fastcall Outrun2WriteByte(UINT32 a, UINT8 d)
|
|||
}
|
||||
}
|
||||
|
||||
#if 0 && defined FBA_DEBUG
|
||||
#if 0 && defined FBNEO_DEBUG
|
||||
bprintf(PRINT_NORMAL, _T("68000 # 2 Write Byte -> 0x%06X, 0x%02X\n"), a, d);
|
||||
#endif
|
||||
}
|
||||
|
|
|
@ -2353,7 +2353,7 @@ UINT16 __fastcall System16AReadWord(UINT32 a)
|
|||
}
|
||||
}
|
||||
|
||||
#if 0 && defined FBA_DEBUG
|
||||
#if 0 && defined FBNEO_DEBUG
|
||||
bprintf(PRINT_NORMAL, _T("68000 Read Word -> 0x%06X\n"), a);
|
||||
#endif
|
||||
|
||||
|
@ -2399,7 +2399,7 @@ UINT8 __fastcall System16AReadByte(UINT32 a)
|
|||
}
|
||||
}
|
||||
|
||||
#if 0 && defined FBA_DEBUG
|
||||
#if 0 && defined FBNEO_DEBUG
|
||||
bprintf(PRINT_NORMAL, _T("68000 Read Byte -> 0x%06X\n"), a);
|
||||
#endif
|
||||
|
||||
|
@ -2427,7 +2427,7 @@ void __fastcall System16AWriteWord(UINT32 a, UINT16 d)
|
|||
}
|
||||
}
|
||||
|
||||
#if 0 && defined FBA_DEBUG
|
||||
#if 0 && defined FBNEO_DEBUG
|
||||
bprintf(PRINT_NORMAL, _T("68000 Write Word -> 0x%06X, 0x%04X\n"), a, d);
|
||||
#endif
|
||||
}
|
||||
|
@ -2449,7 +2449,7 @@ void __fastcall System16AWriteByte(UINT32 a, UINT8 d)
|
|||
}
|
||||
}
|
||||
|
||||
#if 0 && defined FBA_DEBUG
|
||||
#if 0 && defined FBNEO_DEBUG
|
||||
bprintf(PRINT_NORMAL, _T("68000 Write Byte -> 0x%06X, 0x%02X\n"), a, d);
|
||||
#endif
|
||||
}
|
||||
|
@ -2673,7 +2673,7 @@ static UINT8 __fastcall AceattacaReadByte(UINT32 a)
|
|||
}
|
||||
}
|
||||
|
||||
#if 0 && defined FBA_DEBUG
|
||||
#if 0 && defined FBNEO_DEBUG
|
||||
bprintf(PRINT_NORMAL, _T("68000 Read Byte -> 0x%06X\n"), a);
|
||||
#endif
|
||||
|
||||
|
@ -2919,7 +2919,7 @@ static UINT8 __fastcall Passsht16aReadByte(UINT32 a)
|
|||
}
|
||||
}
|
||||
|
||||
#if 0 && defined FBA_DEBUG
|
||||
#if 0 && defined FBNEO_DEBUG
|
||||
bprintf(PRINT_NORMAL, _T("68000 Read Byte -> 0x%06X\n"), a);
|
||||
#endif
|
||||
|
||||
|
|
|
@ -6389,7 +6389,7 @@ UINT8 __fastcall BootlegZ80PortRead(UINT16 a)
|
|||
}
|
||||
}
|
||||
|
||||
#if 0 && defined FBA_DEBUG
|
||||
#if 0 && defined FBNEO_DEBUG
|
||||
bprintf(PRINT_NORMAL, _T("Z80 Read Port -> %02X\n"), a);
|
||||
#endif
|
||||
|
||||
|
@ -6413,7 +6413,7 @@ void __fastcall BootlegZ80PortWrite(UINT16 a, UINT8 d)
|
|||
}
|
||||
}
|
||||
|
||||
#if 0 && defined FBA_DEBUG
|
||||
#if 0 && defined FBNEO_DEBUG
|
||||
bprintf(PRINT_NORMAL, _T("Z80 Write Port -> %02X, %02X\n"), a, d);
|
||||
#endif
|
||||
}
|
||||
|
@ -6428,14 +6428,14 @@ UINT8 __fastcall BootlegZ80Read(UINT16 a)
|
|||
}
|
||||
}
|
||||
|
||||
#if 0 && defined FBA_DEBUG
|
||||
#if 0 && defined FBNEO_DEBUG
|
||||
bprintf(PRINT_NORMAL, _T("Z80 Read -> %04X\n"), a);
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
#if 0 && defined FBA_DEBUG
|
||||
#if 0 && defined FBNEO_DEBUG
|
||||
void __fastcall BootlegZ80Write(UINT16 a, UINT8 d)
|
||||
{
|
||||
|
||||
|
@ -6453,7 +6453,7 @@ void BootlegMapZ80()
|
|||
ZetMapArea(0xf800, 0xffff, 2, System16Z80Ram);
|
||||
|
||||
ZetSetReadHandler(BootlegZ80Read);
|
||||
#if 0 && defined FBA_DEBUG
|
||||
#if 0 && defined FBNEO_DEBUG
|
||||
ZetSetWriteHandler(BootlegZ80Write);
|
||||
#endif
|
||||
ZetSetInHandler(BootlegZ80PortRead);
|
||||
|
@ -6492,7 +6492,7 @@ static UINT8 __fastcall System16BReadByte(UINT32 a)
|
|||
}
|
||||
}
|
||||
|
||||
#if 0 && defined FBA_DEBUG
|
||||
#if 0 && defined FBNEO_DEBUG
|
||||
bprintf(PRINT_NORMAL, _T("68000 Read Byte -> 0x%06X\n"), a);
|
||||
#endif
|
||||
|
||||
|
@ -6522,7 +6522,7 @@ static void __fastcall System16BWriteByte(UINT32 a, UINT8 d)
|
|||
}
|
||||
}
|
||||
|
||||
#if 0 && defined FBA_DEBUG
|
||||
#if 0 && defined FBNEO_DEBUG
|
||||
bprintf(PRINT_NORMAL, _T("68000 Write Byte -> 0x%06X, 0x%02X\n"), a, d);
|
||||
#endif
|
||||
}
|
||||
|
@ -6534,7 +6534,7 @@ static void __fastcall System16BWriteWord(UINT32 a, UINT16 d)
|
|||
return;
|
||||
}
|
||||
|
||||
#if 0 && defined FBA_DEBUG
|
||||
#if 0 && defined FBNEO_DEBUG
|
||||
bprintf(PRINT_NORMAL, _T("68000 Write Word -> 0x%06X, 0x%04X\n"), a, d);
|
||||
#endif
|
||||
}
|
||||
|
@ -6720,7 +6720,7 @@ static UINT8 __fastcall AfighterAnalogReadByte(UINT32 a)
|
|||
}
|
||||
}
|
||||
|
||||
#if 0 && defined FBA_DEBUG
|
||||
#if 0 && defined FBNEO_DEBUG
|
||||
bprintf(PRINT_NORMAL, _T("68000 Read Byte -> 0x%06X\n"), a);
|
||||
#endif
|
||||
|
||||
|
@ -6788,7 +6788,7 @@ static void __fastcall AltbeastblGfxWriteWord(UINT32 a, UINT16 d)
|
|||
return;
|
||||
}
|
||||
}
|
||||
#if 0 && defined FBA_DEBUG
|
||||
#if 0 && defined FBNEO_DEBUG
|
||||
bprintf(PRINT_NORMAL, _T("68000 Write Word -> 0x%06X, 0x%04X, 0x%04X\n"), a, d, d ^ 0xffff);
|
||||
#endif
|
||||
}
|
||||
|
@ -6821,7 +6821,7 @@ static void __fastcall DduxblGfxWriteByte(UINT32 a, UINT8 d)
|
|||
}
|
||||
}
|
||||
|
||||
#if 0 && defined FBA_DEBUG
|
||||
#if 0 && defined FBNEO_DEBUG
|
||||
bprintf(PRINT_NORMAL, _T("68000 Write Byte -> 0x%06X, 0x%02X\n"), a, d);
|
||||
#endif
|
||||
}
|
||||
|
@ -6850,7 +6850,7 @@ static void __fastcall DduxblGfxWriteWord(UINT32 a, UINT16 d)
|
|||
}
|
||||
}
|
||||
|
||||
#if 0 && defined FBA_DEBUG
|
||||
#if 0 && defined FBNEO_DEBUG
|
||||
bprintf(PRINT_NORMAL, _T("68000 Write Word -> 0x%06X, 0x%04X\n"), a, d);
|
||||
#endif
|
||||
}
|
||||
|
@ -6895,7 +6895,7 @@ static void __fastcall DduxblWriteByte(UINT32 a, UINT8 d)
|
|||
}
|
||||
}
|
||||
|
||||
#if 0 && defined FBA_DEBUG
|
||||
#if 0 && defined FBNEO_DEBUG
|
||||
bprintf(PRINT_NORMAL, _T("68000 Write Byte -> 0x%06X, 0x%02X\n"), a, d);
|
||||
#endif
|
||||
}
|
||||
|
@ -7070,7 +7070,7 @@ static void __fastcall EswatblGfxWriteWord(UINT32 a, UINT16 d)
|
|||
return;
|
||||
}
|
||||
}
|
||||
#if 0 && defined FBA_DEBUG
|
||||
#if 0 && defined FBNEO_DEBUG
|
||||
bprintf(PRINT_NORMAL, _T("68000 Write Word -> 0x%06X, 0x%04X\n"), a, d);
|
||||
#endif
|
||||
}
|
||||
|
@ -7178,7 +7178,7 @@ static UINT8 __fastcall FpointblReadByte(UINT32 a)
|
|||
}
|
||||
}
|
||||
|
||||
#if 0 && defined FBA_DEBUG
|
||||
#if 0 && defined FBNEO_DEBUG
|
||||
bprintf(PRINT_NORMAL, _T("68000 Read Byte -> 0x%06X\n"), a);
|
||||
#endif
|
||||
|
||||
|
@ -7204,7 +7204,7 @@ static void __fastcall FpointblWriteByte(UINT32 a, UINT8 d)
|
|||
}
|
||||
}
|
||||
|
||||
#if 0 && defined FBA_DEBUG
|
||||
#if 0 && defined FBNEO_DEBUG
|
||||
bprintf(PRINT_NORMAL, _T("68000 Write Byte -> 0x%06X, 0x%02X\n"), a, d);
|
||||
#endif
|
||||
}
|
||||
|
@ -7248,7 +7248,7 @@ static void __fastcall FpointblGfxWriteWord(UINT32 a, UINT16 d)
|
|||
return;
|
||||
}
|
||||
}
|
||||
#if 0 && defined FBA_DEBUG
|
||||
#if 0 && defined FBNEO_DEBUG
|
||||
bprintf(PRINT_NORMAL, _T("68000 Write Word -> 0x%06X, 0x%04X, 0x%04X\n"), a, d, d ^ 0xffff);
|
||||
#endif
|
||||
}
|
||||
|
@ -7500,7 +7500,7 @@ static void __fastcall PassshtbGfxWriteWord(UINT32 a, UINT16 d)
|
|||
return;
|
||||
}*/
|
||||
}
|
||||
#if 0 && defined FBA_DEBUG
|
||||
#if 0 && defined FBNEO_DEBUG
|
||||
bprintf(PRINT_NORMAL, _T("68000 Write Word -> 0x%06X, 0x%04X, 0x%04X\n"), a, d, (d ^ 0xffff) & 0x1ff);
|
||||
#endif
|
||||
}
|
||||
|
@ -7697,7 +7697,7 @@ static void __fastcall TetrisblGfxWriteWord(UINT32 a, UINT16 d)
|
|||
return;
|
||||
}
|
||||
}
|
||||
#if 0 && defined FBA_DEBUG
|
||||
#if 0 && defined FBNEO_DEBUG
|
||||
bprintf(PRINT_NORMAL, _T("68000 Write Word -> 0x%06X, 0x%04X, 0x%04X\n"), a, d, (d ^ 0xffff) & 0x3ff);
|
||||
#endif
|
||||
}
|
||||
|
@ -7754,7 +7754,7 @@ static void __fastcall Wb3bblGfxWriteWord(UINT32 a, UINT16 d)
|
|||
return;
|
||||
}*/
|
||||
}
|
||||
#if 0 && defined FBA_DEBUG
|
||||
#if 0 && defined FBNEO_DEBUG
|
||||
bprintf(PRINT_NORMAL, _T("68000 Write Word -> 0x%06X, 0x%04X, 0x%04X\n"), a, d, d ^ 0xffff);
|
||||
#endif
|
||||
}
|
||||
|
@ -10698,7 +10698,7 @@ UINT8 __fastcall IsgsmReadByte(UINT32 a)
|
|||
}
|
||||
}
|
||||
|
||||
#if 0 && defined FBA_DEBUG
|
||||
#if 0 && defined FBNEO_DEBUG
|
||||
bprintf(PRINT_NORMAL, _T("68000 Read Byte -> 0x%06X\n"), a);
|
||||
#endif
|
||||
|
||||
|
@ -10921,7 +10921,7 @@ void __fastcall IsgsmWriteByte(UINT32 a, UINT8 d)
|
|||
}
|
||||
}
|
||||
|
||||
#if 0 && defined FBA_DEBUG
|
||||
#if 0 && defined FBNEO_DEBUG
|
||||
bprintf(PRINT_NORMAL, _T("68000 Write Byte -> 0x%06X, 0x%02X\n"), a, d);
|
||||
#endif
|
||||
}
|
||||
|
@ -10938,7 +10938,7 @@ UINT16 __fastcall IsgsmReadWord(UINT32 a)
|
|||
}
|
||||
}
|
||||
|
||||
#if 0 && defined FBA_DEBUG
|
||||
#if 0 && defined FBNEO_DEBUG
|
||||
bprintf(PRINT_NORMAL, _T("68000 Read Word -> 0x%06X\n"), a);
|
||||
#endif
|
||||
|
||||
|
@ -10990,7 +10990,7 @@ void __fastcall IsgsmWriteWord(UINT32 a, UINT16 d)
|
|||
}
|
||||
}
|
||||
|
||||
#if 0 && defined FBA_DEBUG
|
||||
#if 0 && defined FBNEO_DEBUG
|
||||
bprintf(PRINT_NORMAL, _T("68000 Write Word -> 0x%06X, 0x%04X\n"), a, d);
|
||||
#endif
|
||||
}
|
||||
|
|
|
@ -2815,7 +2815,7 @@ static UINT16 __fastcall System18ReadWord(UINT32 a)
|
|||
return GenesisVDPRead((a - 0xc00000) >> 1);
|
||||
}
|
||||
|
||||
#if 0 && defined FBA_DEBUG
|
||||
#if 0 && defined FBNEO_DEBUG
|
||||
bprintf(PRINT_NORMAL, _T("68000 Read Word -> 0x%06X\n"), a);
|
||||
#endif
|
||||
|
||||
|
@ -2832,7 +2832,7 @@ static UINT8 __fastcall System18ReadByte(UINT32 a)
|
|||
return system18_io_chip_r((a - 0xe40000) >> 1);
|
||||
}
|
||||
|
||||
#if 0 && defined FBA_DEBUG
|
||||
#if 0 && defined FBNEO_DEBUG
|
||||
bprintf(PRINT_NORMAL, _T("68000 Read Byte -> 0x%06X\n"), a);
|
||||
#endif
|
||||
|
||||
|
@ -2858,7 +2858,7 @@ static void __fastcall System18WriteWord(UINT32 a, UINT16 d)
|
|||
}
|
||||
}
|
||||
|
||||
#if 0 && defined FBA_DEBUG
|
||||
#if 0 && defined FBNEO_DEBUG
|
||||
bprintf(PRINT_NORMAL, _T("68000 Write Word -> 0x%06X, 0x%04X\n"), a, d);
|
||||
#endif
|
||||
}
|
||||
|
@ -2906,7 +2906,7 @@ static void __fastcall System18WriteByte(UINT32 a, UINT8 d)
|
|||
}
|
||||
}
|
||||
|
||||
#if 0 && defined FBA_DEBUG
|
||||
#if 0 && defined FBNEO_DEBUG
|
||||
bprintf(PRINT_NORMAL, _T("68000 Write Byte -> 0x%06X, 0x%02X\n"), a, d);
|
||||
#endif
|
||||
}
|
||||
|
@ -2979,7 +2979,7 @@ static void __fastcall Mwalkbl2WriteByte(UINT32 a, UINT8 d)
|
|||
}
|
||||
}
|
||||
|
||||
#if 0 && defined FBA_DEBUG
|
||||
#if 0 && defined FBNEO_DEBUG
|
||||
bprintf(PRINT_NORMAL, _T("68000 Write Byte -> 0x%06X, 0x%02X\n"), a, d);
|
||||
#endif
|
||||
}
|
||||
|
@ -3004,7 +3004,7 @@ static void __fastcall Mwalkbl2WriteWord(UINT32 a, UINT16 d)
|
|||
}
|
||||
}
|
||||
|
||||
#if 0 && defined FBA_DEBUG
|
||||
#if 0 && defined FBNEO_DEBUG
|
||||
bprintf(PRINT_NORMAL, _T("68000 Write Word -> 0x%06X, 0x%04X\n"), a, d);
|
||||
#endif
|
||||
}
|
||||
|
@ -3037,7 +3037,7 @@ static UINT8 __fastcall ShdancblReadByte(UINT32 a)
|
|||
}
|
||||
}
|
||||
|
||||
#if 0 && defined FBA_DEBUG
|
||||
#if 0 && defined FBNEO_DEBUG
|
||||
bprintf(PRINT_NORMAL, _T("68000 Read Byte -> 0x%06X\n"), a);
|
||||
#endif
|
||||
|
||||
|
@ -3082,7 +3082,7 @@ static void __fastcall ShdancblWriteByte(UINT32 a, UINT8 d)
|
|||
|
||||
}
|
||||
|
||||
#if 0 && defined FBA_DEBUG
|
||||
#if 0 && defined FBNEO_DEBUG
|
||||
bprintf(PRINT_NORMAL, _T("68000 Write Byte -> 0x%06X, 0x%02X\n"), a, d);
|
||||
#endif
|
||||
}
|
||||
|
|
|
@ -2606,7 +2606,7 @@ UINT16 __fastcall XBoardReadWord(UINT32 a)
|
|||
}
|
||||
}
|
||||
|
||||
#if 0 && defined FBA_DEBUG
|
||||
#if 0 && defined FBNEO_DEBUG
|
||||
bprintf(PRINT_NORMAL, _T("68000 Read Word -> 0x%06X\n"), a);
|
||||
#endif
|
||||
|
||||
|
@ -2699,7 +2699,7 @@ UINT8 __fastcall XBoardReadByte(UINT32 a)
|
|||
}
|
||||
}
|
||||
|
||||
#if 0 && defined FBA_DEBUG
|
||||
#if 0 && defined FBNEO_DEBUG
|
||||
bprintf(PRINT_NORMAL, _T("68000 Read Byte -> 0x%06X\n"), a);
|
||||
#endif
|
||||
|
||||
|
@ -2815,7 +2815,7 @@ void __fastcall XBoardWriteWord(UINT32 a, UINT16 d)
|
|||
}
|
||||
}
|
||||
|
||||
#if 0 && defined FBA_DEBUG
|
||||
#if 0 && defined FBNEO_DEBUG
|
||||
bprintf(PRINT_NORMAL, _T("68000 Write Word -> 0x%06X, 0x%04X\n"), a, d);
|
||||
#endif
|
||||
}
|
||||
|
@ -2901,7 +2901,7 @@ void __fastcall XBoardWriteByte(UINT32 a, UINT8 d)
|
|||
}
|
||||
}
|
||||
|
||||
#if 0 && defined FBA_DEBUG
|
||||
#if 0 && defined FBNEO_DEBUG
|
||||
bprintf(PRINT_NORMAL, _T("68000 Write Byte -> 0x%06X, 0x%02X\n"), a, d);
|
||||
#endif
|
||||
}
|
||||
|
@ -2945,7 +2945,7 @@ UINT16 __fastcall XBoard2ReadWord(UINT32 a)
|
|||
}
|
||||
}
|
||||
|
||||
#if 0 && defined FBA_DEBUG
|
||||
#if 0 && defined FBNEO_DEBUG
|
||||
bprintf(PRINT_NORMAL, _T("68000 # 2 Read Word -> 0x%06X\n"), a);
|
||||
#endif
|
||||
|
||||
|
@ -2971,7 +2971,7 @@ UINT8 __fastcall XBoard2ReadByte(UINT32 a)
|
|||
}
|
||||
}
|
||||
|
||||
#if 0 && defined FBA_DEBUG
|
||||
#if 0 && defined FBNEO_DEBUG
|
||||
bprintf(PRINT_NORMAL, _T("68000 # 2 Read Byte -> 0x%06X\n"), a);
|
||||
#endif
|
||||
|
||||
|
@ -3013,7 +3013,7 @@ void __fastcall XBoard2WriteWord(UINT32 a, UINT16 d)
|
|||
}
|
||||
}
|
||||
|
||||
#if 0 && defined FBA_DEBUG
|
||||
#if 0 && defined FBNEO_DEBUG
|
||||
bprintf(PRINT_NORMAL, _T("68000 # 2 Write Word -> 0x%06X, 0x%04X\n"), a, d);
|
||||
#endif
|
||||
}
|
||||
|
@ -3028,7 +3028,7 @@ void __fastcall XBoard2WriteByte(UINT32 a, UINT8 d)
|
|||
}
|
||||
}
|
||||
|
||||
#if 0 && defined FBA_DEBUG
|
||||
#if 0 && defined FBNEO_DEBUG
|
||||
bprintf(PRINT_NORMAL, _T("68000 # 2 Write Byte -> 0x%06X, 0x%02X\n"), a, d);
|
||||
#endif
|
||||
}
|
||||
|
|
|
@ -1644,7 +1644,7 @@ UINT16 __fastcall YBoardReadWord(UINT32 a)
|
|||
return System16DivideChipRead(0, (a - 0x084000) >> 1);
|
||||
}
|
||||
|
||||
#if 0 && defined FBA_DEBUG
|
||||
#if 0 && defined FBNEO_DEBUG
|
||||
bprintf(PRINT_NORMAL, _T("68000 Read Word -> 0x%06X\n"), a);
|
||||
#endif
|
||||
|
||||
|
@ -1661,7 +1661,7 @@ UINT8 __fastcall YBoardReadByte(UINT32 a)
|
|||
return analog_r((a - 0x100040) >> 1);
|
||||
}
|
||||
|
||||
#if 0 && defined FBA_DEBUG
|
||||
#if 0 && defined FBNEO_DEBUG
|
||||
bprintf(PRINT_NORMAL, _T("68000 Read Byte -> 0x%06X\n"), a);
|
||||
#endif
|
||||
|
||||
|
@ -1685,7 +1685,7 @@ void __fastcall YBoardWriteWord(UINT32 a, UINT16 d)
|
|||
return;
|
||||
}
|
||||
|
||||
#if 0 && defined FBA_DEBUG
|
||||
#if 0 && defined FBNEO_DEBUG
|
||||
bprintf(PRINT_NORMAL, _T("68000 Write Word -> 0x%06X, 0x%04X\n"), a, d);
|
||||
#endif
|
||||
}
|
||||
|
@ -1712,7 +1712,7 @@ void __fastcall YBoardWriteByte(UINT32 a, UINT8 d)
|
|||
}
|
||||
}
|
||||
|
||||
#if 0 && defined FBA_DEBUG
|
||||
#if 0 && defined FBNEO_DEBUG
|
||||
bprintf(PRINT_NORMAL, _T("68000 Write Byte -> 0x%06X, 0x%02X\n"), a, d);
|
||||
#endif
|
||||
}
|
||||
|
@ -1727,7 +1727,7 @@ UINT16 __fastcall YBoard2ReadWord(UINT32 a)
|
|||
return System16DivideChipRead(1, (a - 0x084000) >> 1);
|
||||
}
|
||||
|
||||
#if 0 && defined FBA_DEBUG
|
||||
#if 0 && defined FBNEO_DEBUG
|
||||
bprintf(PRINT_NORMAL, _T("68000 #2 Read Word -> 0x%06X\n"), a);
|
||||
#endif
|
||||
|
||||
|
@ -1746,7 +1746,7 @@ void __fastcall YBoard2WriteWord(UINT32 a, UINT16 d)
|
|||
return;
|
||||
}
|
||||
|
||||
#if 0 && defined FBA_DEBUG
|
||||
#if 0 && defined FBNEO_DEBUG
|
||||
bprintf(PRINT_NORMAL, _T("68000 #2 Write Word -> 0x%06X, 0x%04X\n"), a, d);
|
||||
#endif
|
||||
}
|
||||
|
@ -1776,7 +1776,7 @@ UINT16 __fastcall YBoard3ReadWord(UINT32 a)
|
|||
}
|
||||
}
|
||||
|
||||
#if 0 && defined FBA_DEBUG
|
||||
#if 0 && defined FBNEO_DEBUG
|
||||
bprintf(PRINT_NORMAL, _T("68000 #3 Read Word -> 0x%06X\n"), a);
|
||||
#endif
|
||||
|
||||
|
@ -1789,7 +1789,7 @@ UINT8 __fastcall YBoard3ReadByte(UINT32 a)
|
|||
return System16DivideChipRead(2, (a - 0x084000) >> 1);
|
||||
}
|
||||
|
||||
#if 0 && defined FBA_DEBUG
|
||||
#if 0 && defined FBNEO_DEBUG
|
||||
bprintf(PRINT_NORMAL, _T("68000 #3 Read Byte -> 0x%06X\n"), a);
|
||||
#endif
|
||||
|
||||
|
@ -1808,7 +1808,7 @@ void __fastcall YBoard3WriteWord(UINT32 a, UINT16 d)
|
|||
return;
|
||||
}
|
||||
|
||||
#if 0 && defined FBA_DEBUG
|
||||
#if 0 && defined FBNEO_DEBUG
|
||||
bprintf(PRINT_NORMAL, _T("68000 #3 Write Word -> 0x%06X, 0x%04X\n"), a, d);
|
||||
#endif
|
||||
}
|
||||
|
|
|
@ -117,7 +117,7 @@ static void fd1094_setstate_and_decrypt(INT32 state)
|
|||
|
||||
if (fd1094_current_cacheposition>=S16_NUMCACHE)
|
||||
{
|
||||
#if 1 && defined FBA_DEBUG
|
||||
#if 1 && defined FBNEO_DEBUG
|
||||
bprintf(PRINT_NORMAL, _T("out of cache, performance may suffer, increase S16_NUMCACHE!\n"));
|
||||
#endif
|
||||
fd1094_current_cacheposition=0;
|
||||
|
|
|
@ -1624,7 +1624,7 @@ static void System16ARenderSpriteLayer(INT32 Priority)
|
|||
if ((BURN_ENDIAN_SWAP_INT16(data[0]) >> 8) > 0xf0) break;
|
||||
INT32 sprpri = 1 << ((BURN_ENDIAN_SWAP_INT16(data[4]) >> 0) & 0x3);
|
||||
|
||||
#if 1 && defined FBA_DEBUG
|
||||
#if 1 && defined FBNEO_DEBUG
|
||||
if (sprpri != 1 && sprpri != 2 && sprpri != 4 && sprpri != 8) bprintf(PRINT_IMPORTANT, _T("Unknown Sprite Priority - %x\n"), sprpri);
|
||||
#endif
|
||||
|
||||
|
@ -1712,7 +1712,7 @@ static void System16BRenderSpriteLayer(INT32 Priority)
|
|||
if (BURN_ENDIAN_SWAP_INT16(data[2]) & 0x8000) break;
|
||||
INT32 sprpri = 1 << ((BURN_ENDIAN_SWAP_INT16(data[4]) >> 6) & 0x3);
|
||||
|
||||
#if 1 && defined FBA_DEBUG
|
||||
#if 1 && defined FBNEO_DEBUG
|
||||
if (sprpri != 1 && sprpri != 2 && sprpri != 4 && sprpri != 8) bprintf(PRINT_IMPORTANT, _T("Unknown Sprite Priority - %x\n"), sprpri);
|
||||
#endif
|
||||
|
||||
|
@ -1836,7 +1836,7 @@ static void OutrunRenderSpriteLayer(INT32 Priority)
|
|||
if (BURN_ENDIAN_SWAP_INT16(data[0]) & 0x8000) break;
|
||||
INT32 sprpri = 1 << ((BURN_ENDIAN_SWAP_INT16(data[3]) >> 12) & 3);
|
||||
|
||||
#if 1 && defined FBA_DEBUG
|
||||
#if 1 && defined FBNEO_DEBUG
|
||||
if (sprpri != 1 && sprpri != 2 && sprpri != 4 && sprpri != 8) bprintf(PRINT_IMPORTANT, _T("Unknown Sprite Priority - %x\n"), sprpri);
|
||||
#endif
|
||||
if (sprpri != Priority) continue;
|
||||
|
@ -1974,7 +1974,7 @@ static void HangonRenderSpriteLayer(INT32 Priority)
|
|||
if ((BURN_ENDIAN_SWAP_INT16(data[0]) >> 8) > 0xf0) break;
|
||||
INT32 sprpri = ((BURN_ENDIAN_SWAP_INT16(data[2]) >> 14) & 1) ? (1<<3) : (1<<1);
|
||||
|
||||
#if 1 && defined FBA_DEBUG
|
||||
#if 1 && defined FBNEO_DEBUG
|
||||
if (sprpri != 1 && sprpri != 2 && sprpri != 4 && sprpri != 8) bprintf(PRINT_IMPORTANT, _T("Unknown Sprite Priority - %x\n"), sprpri);
|
||||
#endif
|
||||
|
||||
|
@ -2083,7 +2083,7 @@ static void HangonAltRenderSpriteLayer(INT32 Priority)
|
|||
if ((BURN_ENDIAN_SWAP_INT16(data[0]) >> 8) > 0xf0) break;
|
||||
INT32 sprpri = 1 << ((BURN_ENDIAN_SWAP_INT16(data[4]) >> 0) & 0x3);
|
||||
|
||||
#if 1 && defined FBA_DEBUG
|
||||
#if 1 && defined FBNEO_DEBUG
|
||||
if (sprpri != 1 && sprpri != 2 && sprpri != 4 && sprpri != 8) bprintf(PRINT_IMPORTANT, _T("Unknown Sprite Priority - %x\n"), sprpri);
|
||||
#endif
|
||||
|
||||
|
@ -2208,7 +2208,7 @@ static void XBoardRenderSpriteLayer(INT32 Priority)
|
|||
if (BURN_ENDIAN_SWAP_INT16(data[0]) & 0x8000) break;
|
||||
INT32 sprpri = 1 << ((BURN_ENDIAN_SWAP_INT16(data[3]) >> 12) & 3);
|
||||
|
||||
#if 1 && defined FBA_DEBUG
|
||||
#if 1 && defined FBNEO_DEBUG
|
||||
if (sprpri != 1 && sprpri != 2 && sprpri != 4 && sprpri != 8) bprintf(PRINT_IMPORTANT, _T("Unknown Sprite Priority - %x\n"), sprpri);
|
||||
#endif
|
||||
if (sprpri != Priority) continue;
|
||||
|
|
|
@ -427,7 +427,7 @@ UINT8 __fastcall System16Z80PortRead(UINT16 a)
|
|||
}
|
||||
}
|
||||
|
||||
#if 0 && defined FBA_DEBUG
|
||||
#if 0 && defined FBNEO_DEBUG
|
||||
bprintf(PRINT_NORMAL, _T("Z80 Read Port -> %02X\n"), a);
|
||||
#endif
|
||||
|
||||
|
@ -450,7 +450,7 @@ UINT8 __fastcall System16PPIZ80PortRead(UINT16 a)
|
|||
}
|
||||
}
|
||||
|
||||
#if 0 && defined FBA_DEBUG
|
||||
#if 0 && defined FBNEO_DEBUG
|
||||
bprintf(PRINT_NORMAL, _T("Z80 Read Port -> %02X\n"), a);
|
||||
#endif
|
||||
|
||||
|
@ -472,7 +472,7 @@ UINT8 __fastcall SystemXZ80PortRead(UINT16 a)
|
|||
}
|
||||
}
|
||||
|
||||
#if 0 && defined FBA_DEBUG
|
||||
#if 0 && defined FBNEO_DEBUG
|
||||
bprintf(PRINT_NORMAL, _T("Z80 Read Port -> %02X\n"), a);
|
||||
#endif
|
||||
|
||||
|
@ -490,7 +490,7 @@ UINT8 __fastcall System16Z80PortRead2(UINT16 a)
|
|||
}
|
||||
}
|
||||
|
||||
#if 0 && defined FBA_DEBUG
|
||||
#if 0 && defined FBNEO_DEBUG
|
||||
bprintf(PRINT_NORMAL, _T("Z80 Read Port -> %02X\n"), a);
|
||||
#endif
|
||||
|
||||
|
@ -565,12 +565,12 @@ void __fastcall System16Z80PortWrite(UINT16 a, UINT8 d)
|
|||
}
|
||||
}
|
||||
|
||||
#if 0 && defined FBA_DEBUG
|
||||
#if 0 && defined FBNEO_DEBUG
|
||||
bprintf(PRINT_NORMAL, _T("Z80 Write Port -> %02X, %02X\n"), a, d);
|
||||
#endif
|
||||
}
|
||||
|
||||
#if 0 && defined FBA_DEBUG
|
||||
#if 0 && defined FBNEO_DEBUG
|
||||
UINT8 __fastcall System16Z80Read(UINT16 a)
|
||||
{
|
||||
bprintf(PRINT_NORMAL, _T("Z80 Read -> %04X\n"), a);
|
||||
|
@ -579,7 +579,7 @@ UINT8 __fastcall System16Z80Read(UINT16 a)
|
|||
}
|
||||
#endif
|
||||
|
||||
#if 0 && defined FBA_DEBUG
|
||||
#if 0 && defined FBNEO_DEBUG
|
||||
void __fastcall System16Z80Write(UINT16 a, UINT8 d)
|
||||
{
|
||||
bprintf(PRINT_NORMAL, _T("Z80 Write -> %04X, %02X\n"), a, d);
|
||||
|
@ -592,7 +592,7 @@ UINT8 __fastcall System16Z80PCMRead(UINT16 a)
|
|||
return SegaPCMRead(0, a - 0xf000);
|
||||
}
|
||||
|
||||
#if 0 && defined FBA_DEBUG
|
||||
#if 0 && defined FBNEO_DEBUG
|
||||
bprintf(PRINT_NORMAL, _T("Z80 Read -> %04X\n"), a);
|
||||
#endif
|
||||
|
||||
|
@ -606,7 +606,7 @@ void __fastcall System16Z80PCMWrite(UINT16 a, UINT8 d)
|
|||
return;
|
||||
}
|
||||
|
||||
#if 0 && defined FBA_DEBUG
|
||||
#if 0 && defined FBNEO_DEBUG
|
||||
bprintf(PRINT_NORMAL, _T("Z80 Write -> %04X, %02X\n"), a, d);
|
||||
#endif
|
||||
}
|
||||
|
@ -622,7 +622,7 @@ UINT8 __fastcall System16Z802203PortRead(UINT16 a)
|
|||
}
|
||||
}
|
||||
|
||||
#if 0 && defined FBA_DEBUG
|
||||
#if 0 && defined FBNEO_DEBUG
|
||||
bprintf(PRINT_NORMAL, _T("Z80 Read Port -> %02X\n"), a);
|
||||
#endif
|
||||
|
||||
|
@ -641,7 +641,7 @@ UINT8 __fastcall System16Z802203Read(UINT16 a)
|
|||
}
|
||||
}
|
||||
|
||||
#if 0 && defined FBA_DEBUG
|
||||
#if 0 && defined FBNEO_DEBUG
|
||||
bprintf(PRINT_NORMAL, _T("Z80 Read -> %04X\n"), a);
|
||||
#endif
|
||||
|
||||
|
@ -667,7 +667,7 @@ void __fastcall System16Z802203Write(UINT16 a, UINT8 d)
|
|||
}
|
||||
}
|
||||
|
||||
#if 0 && defined FBA_DEBUG
|
||||
#if 0 && defined FBNEO_DEBUG
|
||||
bprintf(PRINT_NORMAL, _T("Z80 Write -> %04X, %02X\n"), a, d);
|
||||
#endif
|
||||
}
|
||||
|
@ -678,7 +678,7 @@ UINT8 __fastcall System16Z80Read2(UINT16 a)
|
|||
return SegaPCMRead(1, a - 0xf000);
|
||||
}
|
||||
|
||||
#if 0 && defined FBA_DEBUG
|
||||
#if 0 && defined FBNEO_DEBUG
|
||||
bprintf(PRINT_NORMAL, _T("Z80 Read -> %04X\n"), a);
|
||||
#endif
|
||||
|
||||
|
@ -692,7 +692,7 @@ void __fastcall System16Z80Write2(UINT16 a, UINT8 d)
|
|||
return;
|
||||
}
|
||||
|
||||
#if 0 && defined FBA_DEBUG
|
||||
#if 0 && defined FBNEO_DEBUG
|
||||
bprintf(PRINT_NORMAL, _T("Z80 Write -> %04X, %02X\n"), a, d);
|
||||
#endif
|
||||
}
|
||||
|
@ -711,7 +711,7 @@ UINT8 __fastcall System18Z80PortRead(UINT16 a)
|
|||
}
|
||||
}
|
||||
|
||||
#if 0 && defined FBA_DEBUG
|
||||
#if 0 && defined FBNEO_DEBUG
|
||||
bprintf(PRINT_NORMAL, _T("Z80 Read Port -> %02X\n"), a);
|
||||
#endif
|
||||
|
||||
|
@ -779,7 +779,7 @@ void __fastcall System18Z80PortWrite(UINT16 a, UINT8 d)
|
|||
}
|
||||
}
|
||||
|
||||
#if 0 && defined FBA_DEBUG
|
||||
#if 0 && defined FBNEO_DEBUG
|
||||
bprintf(PRINT_NORMAL, _T("Z80 Write Port -> %02X, %02X\n"), a, d);
|
||||
#endif
|
||||
}
|
||||
|
@ -790,7 +790,7 @@ UINT8 __fastcall System18Z80Read(UINT16 a)
|
|||
return RF5C68PCMRead(a - 0xd000);
|
||||
}
|
||||
|
||||
#if 0 && defined FBA_DEBUG
|
||||
#if 0 && defined FBNEO_DEBUG
|
||||
bprintf(PRINT_NORMAL, _T("Z80 Read -> %04X\n"), a);
|
||||
#endif
|
||||
|
||||
|
@ -809,7 +809,7 @@ void __fastcall System18Z80Write(UINT16 a, UINT8 d)
|
|||
return;
|
||||
}
|
||||
|
||||
#if 0 && defined FBA_DEBUG
|
||||
#if 0 && defined FBNEO_DEBUG
|
||||
bprintf(PRINT_NORMAL, _T("Z80 Write -> %04X, %02X\n"), a, d);
|
||||
#endif
|
||||
}
|
||||
|
@ -1158,7 +1158,7 @@ INT32 System16LoadRoms(bool bLoad)
|
|||
System16Z80RomSize = 0x210000;
|
||||
}
|
||||
|
||||
#if 1 && defined FBA_DEBUG
|
||||
#if 1 && defined FBNEO_DEBUG
|
||||
bprintf(PRINT_NORMAL, _T("68K Rom Size: 0x%X (%i roms)\n"), System16RomSize, System16RomNum);
|
||||
if (System16Rom2Size) bprintf(PRINT_NORMAL, _T("68K #2 Rom Size: 0x%X (%i roms)\n"), System16Rom2Size, System16Rom2Num);
|
||||
if (System16Rom3Size) bprintf(PRINT_NORMAL, _T("68K #3 Rom Size: 0x%X (%i roms)\n"), System16Rom3Size, System16Rom3Num);
|
||||
|
@ -1881,7 +1881,7 @@ INT32 System16Init()
|
|||
#ifdef BUILD_A68K
|
||||
// Make sure we use Musashi
|
||||
if (bBurnUseASMCPUEmulation) {
|
||||
#if 1 && defined FBA_DEBUG
|
||||
#if 1 && defined FBNEO_DEBUG
|
||||
bprintf(PRINT_NORMAL, _T("Switching to Musashi 68000 core\n"));
|
||||
#endif
|
||||
bUseAsm68KCoreOldValue = bBurnUseASMCPUEmulation;
|
||||
|
@ -1933,7 +1933,7 @@ INT32 System16Init()
|
|||
ZetMapArea(0xf800, 0xffff, 1, System16Z80Ram);
|
||||
ZetMapArea(0xf800, 0xffff, 2, System16Z80Ram);
|
||||
|
||||
#if 0 && defined FBA_DEBUG
|
||||
#if 0 && defined FBNEO_DEBUG
|
||||
ZetSetReadHandler(System16Z80Read);
|
||||
ZetSetWriteHandler(System16Z80Write);
|
||||
#endif
|
||||
|
@ -2012,7 +2012,7 @@ INT32 System16Init()
|
|||
ZetMapArea(0xf800, 0xffff, 1, System16Z80Ram);
|
||||
ZetMapArea(0xf800, 0xffff, 2, System16Z80Ram);
|
||||
|
||||
#if 0 && defined FBA_DEBUG
|
||||
#if 0 && defined FBNEO_DEBUG
|
||||
ZetSetReadHandler(System16Z80Read);
|
||||
ZetSetWriteHandler(System16Z80Write);
|
||||
#endif
|
||||
|
@ -2703,7 +2703,7 @@ INT32 System16Exit()
|
|||
#ifdef BUILD_A68K
|
||||
// Switch back CPU core if needed
|
||||
if (bUseAsm68KCoreOldValue) {
|
||||
#if 1 && defined FBA_DEBUG
|
||||
#if 1 && defined FBNEO_DEBUG
|
||||
bprintf(PRINT_NORMAL, _T("Switching back to A68K core\n"));
|
||||
#endif
|
||||
bUseAsm68KCoreOldValue = false;
|
||||
|
|
|
@ -810,7 +810,7 @@ static INT32 SpriteYOffsets[8] = { 0, 64, 128, 192, 256, 320, 384, 448 };
|
|||
static void SwitchToMusashi()
|
||||
{
|
||||
if (bBurnUseASMCPUEmulation) {
|
||||
#if 1 && defined FBA_DEBUG
|
||||
#if 1 && defined FBNEO_DEBUG
|
||||
bprintf(PRINT_NORMAL, _T("Switching to Musashi 68000 core\n"));
|
||||
#endif
|
||||
bUseAsm68KCoreOldValue = bBurnUseASMCPUEmulation;
|
||||
|
@ -928,7 +928,7 @@ static INT32 OthunderExit()
|
|||
#ifdef BUILD_A68K
|
||||
// Switch back CPU core if needed
|
||||
if (bUseAsm68KCoreOldValue) {
|
||||
#if 1 && defined FBA_DEBUG
|
||||
#if 1 && defined FBNEO_DEBUG
|
||||
bprintf(PRINT_NORMAL, _T("Switching back to A68K core\n"));
|
||||
#endif
|
||||
bUseAsm68KCoreOldValue = false;
|
||||
|
|
|
@ -479,7 +479,7 @@ static INT32 Opwolf3SpritePlaneOffsets[6] = { 0x2000000, 0x2000001, 0, 1, 2, 3 }
|
|||
static void SwitchToMusashi()
|
||||
{
|
||||
if (bBurnUseASMCPUEmulation) {
|
||||
#if 1 && defined FBA_DEBUG
|
||||
#if 1 && defined FBNEO_DEBUG
|
||||
bprintf(PRINT_NORMAL, _T("Switching to Musashi 68000 core\n"));
|
||||
#endif
|
||||
bUseAsm68KCoreOldValue = bBurnUseASMCPUEmulation;
|
||||
|
@ -704,7 +704,7 @@ static INT32 SlapshotExit()
|
|||
#ifdef BUILD_A68K
|
||||
// Switch back CPU core if needed
|
||||
if (bUseAsm68KCoreOldValue) {
|
||||
#if 1 && defined FBA_DEBUG
|
||||
#if 1 && defined FBNEO_DEBUG
|
||||
bprintf(PRINT_NORMAL, _T("Switching back to A68K core\n"));
|
||||
#endif
|
||||
bUseAsm68KCoreOldValue = false;
|
||||
|
|
|
@ -7490,7 +7490,7 @@ static void TaitoF2SoundInit()
|
|||
static void SwitchToMusashi()
|
||||
{
|
||||
if (bBurnUseASMCPUEmulation) {
|
||||
#if 1 && defined FBA_DEBUG
|
||||
#if 1 && defined FBNEO_DEBUG
|
||||
bprintf(PRINT_NORMAL, _T("Switching to Musashi 68000 core\n"));
|
||||
#endif
|
||||
bUseAsm68KCoreOldValue = bBurnUseASMCPUEmulation;
|
||||
|
@ -9492,7 +9492,7 @@ static INT32 TaitoF2Exit()
|
|||
#ifdef BUILD_A68K
|
||||
// Switch back CPU core if needed
|
||||
if (bUseAsm68KCoreOldValue) {
|
||||
#if 1 && defined FBA_DEBUG
|
||||
#if 1 && defined FBNEO_DEBUG
|
||||
bprintf(PRINT_NORMAL, _T("Switching back to A68K core\n"));
|
||||
#endif
|
||||
bUseAsm68KCoreOldValue = false;
|
||||
|
|
|
@ -4759,7 +4759,7 @@ static void TaitoZZ80Init()
|
|||
static void SwitchToMusashi()
|
||||
{
|
||||
if (bBurnUseASMCPUEmulation) {
|
||||
#if 1 && defined FBA_DEBUG
|
||||
#if 1 && defined FBNEO_DEBUG
|
||||
bprintf(PRINT_NORMAL, _T("Switching to Musashi 68000 core\n"));
|
||||
#endif
|
||||
bUseAsm68KCoreOldValue = bBurnUseASMCPUEmulation;
|
||||
|
@ -5794,7 +5794,7 @@ static INT32 TaitoZExit()
|
|||
#ifdef BUILD_A68K
|
||||
// Switch back CPU core if needed
|
||||
if (bUseAsm68KCoreOldValue) {
|
||||
#if 1 && defined FBA_DEBUG
|
||||
#if 1 && defined FBNEO_DEBUG
|
||||
bprintf(PRINT_NORMAL, _T("Switching back to A68K core\n"));
|
||||
#endif
|
||||
bUseAsm68KCoreOldValue = false;
|
||||
|
|
|
@ -327,7 +327,7 @@ INT32 TaitoLoadRoms(INT32 bLoad)
|
|||
}
|
||||
}
|
||||
|
||||
#if 1 && defined FBA_DEBUG
|
||||
#if 1 && defined FBNEO_DEBUG
|
||||
if (Taito68KRom1Size) bprintf(PRINT_IMPORTANT, _T("68K #1 Rom Length %06X, (%i roms)\n"), Taito68KRom1Size, Taito68KRom1Num);
|
||||
if (Taito68KRom2Size) bprintf(PRINT_IMPORTANT, _T("68K #2 Rom Length %06X, (%i roms)\n"), Taito68KRom2Size, Taito68KRom2Num);
|
||||
if (Taito68KRom3Size) bprintf(PRINT_IMPORTANT, _T("68K #3 Rom Length %06X, (%i roms)\n"), Taito68KRom3Size, Taito68KRom3Num);
|
||||
|
|
|
@ -802,7 +802,7 @@ static INT32 bbakraidInit()
|
|||
#ifdef BUILD_A68K
|
||||
// Make sure we use Musashi
|
||||
if (bBurnUseASMCPUEmulation) {
|
||||
#if 1 && defined FBA_DEBUG
|
||||
#if 1 && defined FBNEO_DEBUG
|
||||
bprintf(PRINT_NORMAL, _T("Switching to Musashi 68000 core\n"));
|
||||
#endif
|
||||
bUseAsm68KCoreOldValue = bBurnUseASMCPUEmulation;
|
||||
|
@ -889,7 +889,7 @@ static INT32 DrvExit()
|
|||
|
||||
#ifdef BUILD_A68K
|
||||
if (bUseAsm68KCoreOldValue) {
|
||||
#if 1 && defined FBA_DEBUG
|
||||
#if 1 && defined FBNEO_DEBUG
|
||||
bprintf(PRINT_NORMAL, _T("Switching back to A68K core\n"));
|
||||
#endif
|
||||
bUseAsm68KCoreOldValue = false;
|
||||
|
|
|
@ -465,7 +465,7 @@ void HiscoreInit()
|
|||
HiscoreMemRange[nHiscoreNumRanges].Data = (UINT8*)BurnMalloc(HiscoreMemRange[nHiscoreNumRanges].NumBytes);
|
||||
memset(HiscoreMemRange[nHiscoreNumRanges].Data, 0, HiscoreMemRange[nHiscoreNumRanges].NumBytes);
|
||||
|
||||
#if 1 && defined FBA_DEBUG
|
||||
#if 1 && defined FBNEO_DEBUG
|
||||
bprintf(PRINT_IMPORTANT, _T("Hi Score Memory Range %i Loaded (New Format) - CPU %i (%S), Address %x, Bytes %02x, Start Val %x, End Val %x\n"), nHiscoreNumRanges, HiscoreMemRange[nHiscoreNumRanges].nCpu, cCpu, HiscoreMemRange[nHiscoreNumRanges].Address, HiscoreMemRange[nHiscoreNumRanges].NumBytes, HiscoreMemRange[nHiscoreNumRanges].StartValue, HiscoreMemRange[nHiscoreNumRanges].EndValue);
|
||||
#endif
|
||||
|
||||
|
@ -494,7 +494,7 @@ void HiscoreInit()
|
|||
HiscoreMemRange[nHiscoreNumRanges].Data = (UINT8*)BurnMalloc(HiscoreMemRange[nHiscoreNumRanges].NumBytes);
|
||||
memset(HiscoreMemRange[nHiscoreNumRanges].Data, 0, HiscoreMemRange[nHiscoreNumRanges].NumBytes);
|
||||
|
||||
#if 1 && defined FBA_DEBUG
|
||||
#if 1 && defined FBNEO_DEBUG
|
||||
bprintf(PRINT_IMPORTANT, _T("Hi Score Memory Range %i Loaded - CPU %i, Address %x, Bytes %02x, Start Val %x, End Val %x\n"), nHiscoreNumRanges, HiscoreMemRange[nHiscoreNumRanges].nCpu, HiscoreMemRange[nHiscoreNumRanges].Address, HiscoreMemRange[nHiscoreNumRanges].NumBytes, HiscoreMemRange[nHiscoreNumRanges].StartValue, HiscoreMemRange[nHiscoreNumRanges].EndValue);
|
||||
#endif
|
||||
|
||||
|
@ -546,7 +546,7 @@ void HiscoreInit()
|
|||
|
||||
HiscoreMemRange[i].Loaded = 1;
|
||||
|
||||
#if 1 && defined FBA_DEBUG
|
||||
#if 1 && defined FBNEO_DEBUG
|
||||
bprintf(PRINT_IMPORTANT, _T("Hi Score Memory Range %i Loaded from file\n"), i);
|
||||
#endif
|
||||
}
|
||||
|
@ -562,7 +562,7 @@ void HiscoreInit()
|
|||
|
||||
void HiscoreReset()
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!Debug_HiscoreInitted) bprintf(PRINT_ERROR, _T("HiscoreReset called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -582,7 +582,7 @@ void HiscoreReset()
|
|||
if (HiscoreMemRange[i].NumBytes > 1) cpu_write_byte(HiscoreMemRange[i].Address + HiscoreMemRange[i].NumBytes - 1, (UINT8)~HiscoreMemRange[i].EndValue);
|
||||
cpu_close();
|
||||
|
||||
#if 1 && defined FBA_DEBUG
|
||||
#if 1 && defined FBNEO_DEBUG
|
||||
bprintf(PRINT_IMPORTANT, _T("Hi Score Memory Range %i Initted\n"), i);
|
||||
#endif
|
||||
}
|
||||
|
@ -599,7 +599,7 @@ INT32 HiscoreOkToWrite()
|
|||
}
|
||||
}
|
||||
|
||||
#if 1 && defined FBA_DEBUG
|
||||
#if 1 && defined FBNEO_DEBUG
|
||||
bprintf(0, _T("Hiscore Write-Check #1 - Applied data: %X\n"), Ok);
|
||||
#endif
|
||||
|
||||
|
@ -607,7 +607,7 @@ INT32 HiscoreOkToWrite()
|
|||
return 1; // Passed check #1 - already applied hiscore?
|
||||
|
||||
// Check #2 - didn't apply high score, but verified the memory locations
|
||||
#if 1 && defined FBA_DEBUG
|
||||
#if 1 && defined FBNEO_DEBUG
|
||||
bprintf(0, _T("Hiscore Write-Check #2 - Memory verified: %X\n"), WriteCheck1);
|
||||
#endif
|
||||
|
||||
|
@ -629,7 +629,7 @@ INT32 HiscoreOkToApplyAll()
|
|||
|
||||
void HiscoreApply()
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!Debug_HiscoreInitted) bprintf(PRINT_ERROR, _T("HiscoreApply called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -652,13 +652,13 @@ void HiscoreApply()
|
|||
|
||||
if (Confirmed == 1) {
|
||||
HiscoreMemRange[i].Applied = APPLIED_STATE_CONFIRMED;
|
||||
#if 1 && defined FBA_DEBUG
|
||||
#if 1 && defined FBNEO_DEBUG
|
||||
bprintf(PRINT_IMPORTANT, _T("Applied Hi Score Memory Range %i on frame number %i\n"), i, GetCurrentFrame());
|
||||
#endif
|
||||
} else {
|
||||
HiscoreMemRange[i].Applied = APPLIED_STATE_NONE;
|
||||
HiscoreMemRange[i].ApplyNextFrame = 1;
|
||||
#if 1 && defined FBA_DEBUG
|
||||
#if 1 && defined FBNEO_DEBUG
|
||||
bprintf(PRINT_IMPORTANT, _T("Failed attempt to apply Hi Score Memory Range %i on frame number %i\n"), i, GetCurrentFrame());
|
||||
#endif
|
||||
}
|
||||
|
@ -682,7 +682,7 @@ void HiscoreApply()
|
|||
}
|
||||
|
||||
if (WriteCheckOk == nHiscoreNumRanges) {
|
||||
#if 1 && defined FBA_DEBUG
|
||||
#if 1 && defined FBNEO_DEBUG
|
||||
bprintf(0, _T("Memory Verified - OK to write Hiscore data!\n"));
|
||||
#endif
|
||||
WriteCheck1 = 1; // It's OK to write hi-score data for the first time.
|
||||
|
@ -705,7 +705,7 @@ void HiscoreApply()
|
|||
|
||||
void HiscoreExit()
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!Debug_HiscoreInitted) bprintf(PRINT_ERROR, _T("HiscoreExit called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -743,7 +743,7 @@ void HiscoreExit()
|
|||
fclose(fp);
|
||||
}
|
||||
} else {
|
||||
#if 1 && defined FBA_DEBUG
|
||||
#if 1 && defined FBNEO_DEBUG
|
||||
bprintf(0, _T("HiscoreExit(): -NOT- ok to write Hiscore data!\n"));
|
||||
#endif
|
||||
}
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
#include "ay8910.h"
|
||||
#undef AY8910_CORE
|
||||
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
#ifdef __GNUC__
|
||||
// MSVC doesn't like this - this module only supports debug tracking with GCC only
|
||||
#include <tchar.h>
|
||||
|
@ -85,7 +85,7 @@ static void UpdateStream(INT32 chip, INT32 samples_len)
|
|||
INT32 nSamplesNeeded = samples_len - nPosition[chip];
|
||||
if (nSamplesNeeded <= 0) return;
|
||||
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
#ifdef __GNUC__
|
||||
//bprintf(0, _T("ay8910_sync: %d samples frame %d\n"), nSamplesNeeded, nCurrentFrame);
|
||||
#endif
|
||||
|
@ -97,7 +97,7 @@ static void UpdateStream(INT32 chip, INT32 samples_len)
|
|||
|
||||
void AY8910SetBuffered(INT32 (*pCPUCyclesCB)(), INT32 nCpuMHZ)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
#ifdef __GNUC__
|
||||
bprintf(0, _T("*** Using BUFFERED AY8910-mode.\n"));
|
||||
#endif
|
||||
|
@ -395,7 +395,7 @@ void AY8910Write(INT32 chip, INT32 a, INT32 data)
|
|||
{
|
||||
struct AY8910 *PSG = &AYPSG[chip];
|
||||
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
#ifdef __GNUC__
|
||||
if (!DebugSnd_AY8910Initted) bprintf(PRINT_ERROR, _T("AY8910Write called without init\n"));
|
||||
if (chip > num) bprintf(PRINT_ERROR, _T("AY8910Write called with invalid chip number %x\n"), chip);
|
||||
|
@ -416,7 +416,7 @@ INT32 AY8910Read(INT32 chip)
|
|||
{
|
||||
struct AY8910 *PSG = &AYPSG[chip];
|
||||
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
#ifdef __GNUC__
|
||||
if (!DebugSnd_AY8910Initted) bprintf(PRINT_ERROR, _T("AY8910Read called without init\n"));
|
||||
if (chip > num) bprintf(PRINT_ERROR, _T("AY8910Read called with invalid chip number %x\n"), chip);
|
||||
|
@ -432,7 +432,7 @@ void AY8910Update(INT32 chip, INT16 **buffer, INT32 length)
|
|||
INT16 *buf1,*buf2,*buf3;
|
||||
INT32 outn;
|
||||
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
#ifdef __GNUC__
|
||||
if (!DebugSnd_AY8910Initted) bprintf(PRINT_ERROR, _T("AY8910Update called without init\n"));
|
||||
if (chip > num) bprintf(PRINT_ERROR, _T("AY8910Update called with invalid chip number %x\n"), chip);
|
||||
|
@ -708,7 +708,7 @@ void AY8910_set_clock(INT32 chip, INT32 clock)
|
|||
{
|
||||
struct AY8910 *PSG = &AYPSG[chip];
|
||||
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
#ifdef __GNUC__
|
||||
if (!DebugSnd_AY8910Initted) bprintf(PRINT_ERROR, _T("AY8910_set_clock called without init\n"));
|
||||
if (chip > num) bprintf(PRINT_ERROR, _T("AY8910_set_clock called with invalid chip number %x\n"), chip);
|
||||
|
@ -755,7 +755,7 @@ void AY8910Reset(INT32 chip)
|
|||
INT32 i;
|
||||
struct AY8910 *PSG = &AYPSG[chip];
|
||||
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
#ifdef __GNUC__
|
||||
if (!DebugSnd_AY8910Initted) bprintf(PRINT_ERROR, _T("AY8910Reset called without init\n"));
|
||||
if (chip > num) bprintf(PRINT_ERROR, _T("AY8910Reset called with invalid chip number %x\n"), chip);
|
||||
|
@ -777,7 +777,7 @@ void AY8910Reset(INT32 chip)
|
|||
|
||||
void AY8910Exit(INT32 chip)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
#ifdef __GNUC__
|
||||
if (!DebugSnd_AY8910Initted && !chip) bprintf(PRINT_ERROR, _T("AY8910Exit called without init\n"));
|
||||
#endif
|
||||
|
@ -807,7 +807,7 @@ void AY8910Exit(INT32 chip)
|
|||
}
|
||||
}
|
||||
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
#ifdef __GNUC__
|
||||
DebugSnd_AY8910Initted = 0;
|
||||
#endif
|
||||
|
@ -825,7 +825,7 @@ INT32 AY8910InitCore(INT32 chip, INT32 clock, INT32 sample_rate,
|
|||
{
|
||||
struct AY8910 *PSG = &AYPSG[chip];
|
||||
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
#ifdef __GNUC__
|
||||
DebugSnd_AY8910Initted = 1;
|
||||
#endif
|
||||
|
@ -866,7 +866,7 @@ INT32 AY8910InitCore(INT32 chip, INT32 clock, INT32 sample_rate,
|
|||
INT32 AY8910Init(INT32 chip, INT32 clock, INT32 add_signal)
|
||||
{
|
||||
INT32 i;
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
#ifdef __GNUC__
|
||||
DebugSnd_AY8910Initted = 1;
|
||||
#endif
|
||||
|
@ -876,7 +876,7 @@ INT32 AY8910Init(INT32 chip, INT32 clock, INT32 add_signal)
|
|||
}
|
||||
|
||||
if (ay8910_buffered) {
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
#ifdef __GNUC__
|
||||
bprintf(0, _T("*** ERROR: AY8910SetBuffered() must be called AFTER all chips have been initted!\n"));
|
||||
#endif
|
||||
|
@ -946,7 +946,7 @@ INT32 AY8910SetPorts(INT32 chip, read8_handler portAread, read8_handler portBrea
|
|||
{
|
||||
struct AY8910 *PSG = &AYPSG[chip];
|
||||
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
#ifdef __GNUC__
|
||||
if (!DebugSnd_AY8910Initted) bprintf(PRINT_ERROR, _T("AY8910SetPorts called without init\n"));
|
||||
#endif
|
||||
|
@ -965,7 +965,7 @@ void AY8910Scan(INT32 nAction, INT32* pnMin)
|
|||
struct BurnArea ba;
|
||||
INT32 i;
|
||||
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
#ifdef __GNUC__
|
||||
if (!DebugSnd_AY8910Initted) bprintf(PRINT_ERROR, _T("AY8910Scan called without init\n"));
|
||||
#endif
|
||||
|
@ -1006,7 +1006,7 @@ void AY8910Scan(INT32 nAction, INT32* pnMin)
|
|||
|
||||
void AY8910RenderInternal(INT32 length)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
#ifdef __GNUC__
|
||||
if (!DebugSnd_AY8910Initted) bprintf(PRINT_ERROR, _T("AY8910RenderInternal called without init\n"));
|
||||
if (num >= 7) bprintf(PRINT_ERROR, _T("AY8910RenderInternal called with invalid number of chips %i (max is 6)\n"), num);
|
||||
|
@ -1016,7 +1016,7 @@ void AY8910RenderInternal(INT32 length)
|
|||
INT32 i;
|
||||
|
||||
if (ay8910_buffered && length != nBurnSoundLen) {
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
#ifdef __GNUC__
|
||||
bprintf(0, _T("AY8910RenderInternal() in buffered mode must be called once per frame!\n"));
|
||||
#endif
|
||||
|
@ -1035,7 +1035,7 @@ void AY8910RenderInternal(INT32 length)
|
|||
|
||||
void AY8910Render(INT16* dest, INT32 length)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
#ifdef __GNUC__
|
||||
if (!DebugSnd_AY8910Initted) bprintf(PRINT_ERROR, _T("AY8910Render called without init\n"));
|
||||
if (num >= 7) bprintf(PRINT_ERROR, _T("AY8910Render called with invalid number of chips %i (max is 6)\n"), num);
|
||||
|
@ -1071,7 +1071,7 @@ void AY8910Render(INT16* dest, INT32 length)
|
|||
|
||||
void AY8910SetRoute(INT32 chip, INT32 nIndex, double nVolume, INT32 nRouteDir)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
#ifdef __GNUC__
|
||||
if (!DebugSnd_AY8910Initted) bprintf(PRINT_ERROR, _T("AY8910SetRoute called without init\n"));
|
||||
if (nIndex < 0 || nIndex > 2) bprintf(PRINT_ERROR, _T("AY8910SetRoute called with invalid index %i\n"), nIndex);
|
||||
|
|
|
@ -42,7 +42,7 @@ static INT32 MD2612StreamCallbackDummy(INT32)
|
|||
|
||||
static void MD2612Render(INT32 nSegmentLength)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_YM2612Initted) bprintf(PRINT_ERROR, _T("MD2612Render called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -82,7 +82,7 @@ static void MD2612Render(INT32 nSegmentLength)
|
|||
|
||||
static void MD2612UpdateResample(INT16* pSoundBuf, INT32 nSegmentEnd)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_YM2612Initted) bprintf(PRINT_ERROR, _T("MD2612UpdateResample called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -146,7 +146,7 @@ static void MD2612UpdateResample(INT16* pSoundBuf, INT32 nSegmentEnd)
|
|||
// Callbacks for YM2612 core
|
||||
void BurnMD2612UpdateRequest()
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_YM2612Initted) bprintf(PRINT_ERROR, _T("YM2612UpdateRequest called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -158,7 +158,7 @@ void BurnMD2612UpdateRequest()
|
|||
|
||||
void BurnMD2612Reset()
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_YM2612Initted) bprintf(PRINT_ERROR, _T("BurnMD2612Reset called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -167,7 +167,7 @@ void BurnMD2612Reset()
|
|||
|
||||
void BurnMD2612Exit()
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_YM2612Initted) bprintf(PRINT_ERROR, _T("BurnMD2612Exit called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -234,7 +234,7 @@ INT32 BurnMD2612Init(INT32 num, INT32 bIsPal, INT32 (*StreamCallback)(INT32), IN
|
|||
|
||||
void BurnMD2612SetRoute(INT32 nChip, INT32 nIndex, double nVolume, INT32 nRouteDir)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_YM2612Initted) bprintf(PRINT_ERROR, _T("BurnMD2612SetRoute called without init\n"));
|
||||
if (nIndex < 0 || nIndex > 1) bprintf(PRINT_ERROR, _T("BurnMD2612SetRoute called with invalid index %i\n"), nIndex);
|
||||
if (nChip >= nNumChips) bprintf(PRINT_ERROR, _T("BurnMD2612SetRoute called with invalid chip %i\n"), nChip);
|
||||
|
@ -248,7 +248,7 @@ void BurnMD2612SetRoute(INT32 nChip, INT32 nIndex, double nVolume, INT32 nRouteD
|
|||
|
||||
void BurnMD2612Scan(INT32 nAction, INT32* pnMin)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_YM2612Initted) bprintf(PRINT_ERROR, _T("BurnMD2612Scan called without init\n"));
|
||||
#endif
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@ void BurnMD2612Scan(INT32 nAction, INT32* pnMin);
|
|||
|
||||
#define BurnMD2612Read(i, a) MDYM2612Read()
|
||||
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
#define BurnMD2612Write(i, a, n) if (!DebugSnd_YM2612Initted) bprintf(PRINT_ERROR, _T("BurnMD2612Write called without init\n")); MDYM2612Write(a, n)
|
||||
#else
|
||||
#define BurnMD2612Write(i, a, n) MDYM2612Write(a, n)
|
||||
|
|
|
@ -233,7 +233,7 @@ static int Y8950StreamCallbackDummy(INT32)
|
|||
|
||||
static void Y8950Render(INT32 nSegmentLength)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_Y8950Initted) bprintf(PRINT_ERROR, _T("Y8950Render called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -257,7 +257,7 @@ static void Y8950Render(INT32 nSegmentLength)
|
|||
|
||||
static void Y8950UpdateResample(INT16* pSoundBuf, INT32 nSegmentEnd)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_Y8950Initted) bprintf(PRINT_ERROR, _T("Y8950UpdateResample called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -349,7 +349,7 @@ static void Y8950UpdateResample(INT16* pSoundBuf, INT32 nSegmentEnd)
|
|||
|
||||
static void Y8950UpdateNormal(INT16* pSoundBuf, INT32 nSegmentEnd)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_Y8950Initted) bprintf(PRINT_ERROR, _T("Y8950UpdateNormal called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -423,7 +423,7 @@ static void Y8950UpdateNormal(INT16* pSoundBuf, INT32 nSegmentEnd)
|
|||
|
||||
void BurnY8950UpdateRequest(INT32, INT32)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_Y8950Initted) bprintf(PRINT_ERROR, _T("BurnY8950UpdateRequest called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -435,7 +435,7 @@ void BurnY8950UpdateRequest(INT32, INT32)
|
|||
|
||||
void BurnY8950Reset()
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_Y8950Initted) bprintf(PRINT_ERROR, _T("BurnY8950Reset called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -448,7 +448,7 @@ void BurnY8950Reset()
|
|||
|
||||
void BurnY8950Exit()
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_Y8950Initted) bprintf(PRINT_ERROR, _T("BurnY8950Exit called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -537,7 +537,7 @@ INT32 BurnY8950Init(INT32 num, INT32 nClockFrequency, UINT8* Y8950ADPCM0ROM, INT
|
|||
|
||||
void BurnY8950SetRoute(INT32 nChip, INT32 nIndex, double nVolume, INT32 nRouteDir)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_Y8950Initted) bprintf(PRINT_ERROR, _T("BurnY8950SetRoute called without init\n"));
|
||||
if (nIndex < 0 || nIndex > 1) bprintf(PRINT_ERROR, _T("BurnY8950SetRoute called with invalid index %i\n"), nIndex);
|
||||
if (nChip >= nNumChips) bprintf(PRINT_ERROR, _T("BurnY8950SetRoute called with invalid chip %i\n"), nChip);
|
||||
|
@ -556,7 +556,7 @@ void BurnY8950SetRoute(INT32 nChip, INT32 nIndex, double nVolume, INT32 nRouteDi
|
|||
|
||||
void BurnY8950Scan(INT32 nAction, INT32* pnMin)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_Y8950Initted) bprintf(PRINT_ERROR, _T("BurnY8950Scan called without init\n"));
|
||||
#endif
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@ void BurnY8950Scan(INT32 nAction, INT32* pnMin);
|
|||
|
||||
#define BurnY8950Read(i, a) Y8950Read(i, a)
|
||||
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
#define BurnY8950Write(i, a, n) if (!DebugSnd_Y8950Initted) bprintf(PRINT_ERROR, _T("BurnY8950Write called without init\n")); Y8950Write(i, a, n)
|
||||
#else
|
||||
#define BurnY8950Write(i, a, n) Y8950Write(i, a, n)
|
||||
|
|
|
@ -28,7 +28,7 @@ static INT32 YM2151BurnTimer = 0;
|
|||
|
||||
static void YM2151RenderResample(INT16* pSoundBuf, INT32 nSegmentLength)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_YM2151Initted) bprintf(PRINT_ERROR, _T("YM2151RenderResample called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -111,7 +111,7 @@ static void YM2151RenderResample(INT16* pSoundBuf, INT32 nSegmentLength)
|
|||
|
||||
static void YM2151RenderNormal(INT16* pSoundBuf, INT32 nSegmentLength)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_YM2151Initted) bprintf(PRINT_ERROR, _T("YM2151RenderNormal called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -149,7 +149,7 @@ static void YM2151RenderNormal(INT16* pSoundBuf, INT32 nSegmentLength)
|
|||
|
||||
void BurnYM2151Reset()
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_YM2151Initted) bprintf(PRINT_ERROR, _T("BurnYM2151Reset called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -161,7 +161,7 @@ void BurnYM2151Reset()
|
|||
|
||||
void BurnYM2151Exit()
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_YM2151Initted) bprintf(PRINT_ERROR, _T("BurnYM2151Exit called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -239,7 +239,7 @@ INT32 BurnYM2151Init(INT32 nClockFrequency, INT32 use_timer)
|
|||
// is called. See drv/dataeast/d_rohga for example usage.
|
||||
void BurnYM2151SetInterleave(INT32 nInterleave)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_YM2151Initted) bprintf(PRINT_ERROR, _T("BurnYM2151SetInterleave called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -248,7 +248,7 @@ void BurnYM2151SetInterleave(INT32 nInterleave)
|
|||
|
||||
void BurnYM2151SetRoute(INT32 nIndex, double nVolume, INT32 nRouteDir)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_YM2151Initted) bprintf(PRINT_ERROR, _T("BurnYM2151SetRoute called without init\n"));
|
||||
if (nIndex < 0 || nIndex > 1) bprintf(PRINT_ERROR, _T("BurnYM2151SetRoute called with invalid index %i\n"), nIndex);
|
||||
#endif
|
||||
|
@ -259,7 +259,7 @@ void BurnYM2151SetRoute(INT32 nIndex, double nVolume, INT32 nRouteDir)
|
|||
|
||||
void BurnYM2151Scan(INT32 nAction, INT32 *pnMin)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_YM2151Initted) bprintf(PRINT_ERROR, _T("BurnYM2151Scan called without init\n"));
|
||||
#endif
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@ void BurnYM2151SetInterleave(INT32 nInterleave);
|
|||
|
||||
inline static void BurnYM2151Write(INT32 offset, const UINT8 nData)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_YM2151Initted) bprintf(PRINT_ERROR, _T("BurnYM2151Write called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -32,7 +32,7 @@ inline static void BurnYM2151Write(INT32 offset, const UINT8 nData)
|
|||
|
||||
static inline void BurnYM2151SelectRegister(const UINT8 nRegister)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_YM2151Initted) bprintf(PRINT_ERROR, _T("BurnYM2151SelectRegister called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -43,7 +43,7 @@ static inline void BurnYM2151SelectRegister(const UINT8 nRegister)
|
|||
|
||||
static inline void BurnYM2151WriteRegister(const UINT8 nValue)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_YM2151Initted) bprintf(PRINT_ERROR, _T("BurnYM2151WriteRegister called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -54,7 +54,7 @@ static inline void BurnYM2151WriteRegister(const UINT8 nValue)
|
|||
|
||||
#define BurnYM2151Read() YM2151ReadStatus(0)
|
||||
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
#define BurnYM2151SetIrqHandler(h) if (!DebugSnd_YM2151Initted) bprintf(PRINT_ERROR, _T("BurnYM2151SetIrqHandler called without init\n")); YM2151SetIrqHandler(0, h)
|
||||
#define BurnYM2151SetPortHandler(h) if (!DebugSnd_YM2151Initted) bprintf(PRINT_ERROR, _T("BurnYM2151SetPortHandler called without init\n")); YM2151SetPortWriteHandler(0, h)
|
||||
#else
|
||||
|
|
|
@ -48,7 +48,7 @@ static INT32 YM2203StreamCallbackDummy(INT32)
|
|||
|
||||
static void AY8910Render(INT32 nSegmentLength)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_YM2203Initted) bprintf(PRINT_ERROR, _T("BurnYM2203 AY8910Render called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -85,7 +85,7 @@ static void AY8910Render(INT32 nSegmentLength)
|
|||
|
||||
static void YM2203Render(INT32 nSegmentLength)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_YM2203Initted) bprintf(PRINT_ERROR, _T("YM2203Render called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -147,7 +147,7 @@ static void YM2203Render(INT32 nSegmentLength)
|
|||
|
||||
static void YM2203UpdateResample(INT16* pSoundBuf, INT32 nSegmentEnd)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_YM2203Initted) bprintf(PRINT_ERROR, _T("YM2203UpdateResample called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -313,7 +313,7 @@ static void YM2203UpdateResample(INT16* pSoundBuf, INT32 nSegmentEnd)
|
|||
|
||||
static void YM2203UpdateNormal(INT16* pSoundBuf, INT32 nSegmentEnd)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_YM2203Initted) bprintf(PRINT_ERROR, _T("YM2203UpdateNormal called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -530,7 +530,7 @@ static void YM2203UpdateNormal(INT16* pSoundBuf, INT32 nSegmentEnd)
|
|||
|
||||
void BurnYM2203UpdateRequest()
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_YM2203Initted) bprintf(PRINT_ERROR, _T("BurnYM2203UpdateRequest called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -539,7 +539,7 @@ void BurnYM2203UpdateRequest()
|
|||
|
||||
static void BurnAY8910UpdateRequest()
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_YM2203Initted) bprintf(PRINT_ERROR, _T("BurnYM2203 BurnAY8910UpdateRequest called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -551,7 +551,7 @@ static void BurnAY8910UpdateRequest()
|
|||
|
||||
void BurnYM2203Reset()
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_YM2203Initted) bprintf(PRINT_ERROR, _T("BurnYM2203Reset called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -565,7 +565,7 @@ void BurnYM2203Reset()
|
|||
|
||||
void BurnYM2203Exit()
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_YM2203Initted) bprintf(PRINT_ERROR, _T("BurnYM2203Exit called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -714,7 +714,7 @@ INT32 BurnYM2203Init(INT32 num, INT32 nClockFrequency, FM_IRQHANDLER IRQCallback
|
|||
|
||||
void BurnYM2203SetRoute(INT32 nChip, INT32 nIndex, double nVolume, INT32 nRouteDir)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_YM2203Initted) bprintf(PRINT_ERROR, _T("BurnYM2203SetRoute called without init\n"));
|
||||
if (nIndex < 0 || nIndex > 3) bprintf(PRINT_ERROR, _T("BurnYM2203SetRoute called with invalid index %i\n"), nIndex);
|
||||
if (nChip >= nNumChips) bprintf(PRINT_ERROR, _T("BurnYM2203SetRoute called with invalid chip %i\n"), nChip);
|
||||
|
@ -738,7 +738,7 @@ void BurnYM2203SetRoute(INT32 nChip, INT32 nIndex, double nVolume, INT32 nRouteD
|
|||
|
||||
void BurnYM2203SetLeftVolume(INT32 nChip, INT32 nIndex, double nLeftVolume)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_YM2203Initted) bprintf(PRINT_ERROR, _T("BurnYM2203SetLeftVolume called without init\n"));
|
||||
if (nIndex < 0 || nIndex > 3) bprintf(PRINT_ERROR, _T("BurnYM2203SetLeftVolume called with invalid index %i\n"), nIndex);
|
||||
if (nChip >= nNumChips) bprintf(PRINT_ERROR, _T("BurnYM2203SetLeftVolume called with invalid chip %i\n"), nChip);
|
||||
|
@ -751,7 +751,7 @@ void BurnYM2203SetLeftVolume(INT32 nChip, INT32 nIndex, double nLeftVolume)
|
|||
|
||||
void BurnYM2203SetRightVolume(INT32 nChip, INT32 nIndex, double nRightVolume)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_YM2203Initted) bprintf(PRINT_ERROR, _T("BurnYM2203SetRightVolume called without init\n"));
|
||||
if (nIndex < 0 || nIndex > 3) bprintf(PRINT_ERROR, _T("BurnYM2203SetRightVolume called with invalid index %i\n"), nIndex);
|
||||
if (nChip >= nNumChips) bprintf(PRINT_ERROR, _T("BurnYM2203SetRightVolume called with invalid chip %i\n"), nChip);
|
||||
|
@ -764,7 +764,7 @@ void BurnYM2203SetRightVolume(INT32 nChip, INT32 nIndex, double nRightVolume)
|
|||
|
||||
void BurnYM2203Scan(INT32 nAction, INT32* pnMin)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_YM2203Initted) bprintf(PRINT_ERROR, _T("BurnYM2203Scan called without init\n"));
|
||||
#endif
|
||||
|
||||
|
|
|
@ -38,7 +38,7 @@ extern INT32 bYM2203UseSeperateVolumes;
|
|||
|
||||
#define BurnYM2203Read(i, a) YM2203Read(i, a)
|
||||
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
#define BurnYM2203Write(i, a, n) if (!DebugSnd_YM2203Initted) bprintf(PRINT_ERROR, _T("BurnYM2203Write called without init\n")); YM2203Write(i, a, n)
|
||||
#define BurnYM2203SetPorts(c, read0, read1, write0, write1) if (!DebugSnd_YM2203Initted) bprintf(PRINT_ERROR, _T("BurnYM2203SetPorts called without init\n")); AY8910SetPorts(c, read0, read1, write0, write1)
|
||||
#else
|
||||
|
|
|
@ -19,7 +19,7 @@ static INT32 YM2413RouteDirs[2];
|
|||
#if 0
|
||||
static void YM2413RenderResample(INT16* pSoundBuf, INT32 nSegmentLength)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_YM2413Initted) bprintf(PRINT_ERROR, _T("YM2413RenderResample called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -29,7 +29,7 @@ static void YM2413RenderResample(INT16* pSoundBuf, INT32 nSegmentLength)
|
|||
|
||||
static void YM2413RenderNormal(INT16* pSoundBuf, INT32 nSegmentLength)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_YM2413Initted) bprintf(PRINT_ERROR, _T("YM2413RenderNormal called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -67,7 +67,7 @@ static void YM2413RenderNormal(INT16* pSoundBuf, INT32 nSegmentLength)
|
|||
|
||||
void BurnYM2413Reset()
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_YM2413Initted) bprintf(PRINT_ERROR, _T("BurnYM2413Reset called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -76,7 +76,7 @@ void BurnYM2413Reset()
|
|||
|
||||
void BurnYM2413Exit()
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_YM2413Initted) bprintf(PRINT_ERROR, _T("BurnYM2413Exit called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -138,7 +138,7 @@ INT32 BurnYM2413Init(INT32 nClockFrequency)
|
|||
|
||||
void BurnYM2413SetRoute(INT32 nIndex, double nVolume, INT32 nRouteDir)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_YM2413Initted) bprintf(PRINT_ERROR, _T("BurnYM2413SetRoute called without init\n"));
|
||||
if (nIndex < 0 || nIndex > 1) bprintf(PRINT_ERROR, _T("BurnYM2413SetRoute called with invalid index %i\n"), nIndex);
|
||||
#endif
|
||||
|
@ -149,7 +149,7 @@ void BurnYM2413SetRoute(INT32 nIndex, double nVolume, INT32 nRouteDir)
|
|||
|
||||
void BurnYM2413Scan(INT32 nAction, INT32 *)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_YM2413Initted) bprintf(PRINT_ERROR, _T("BurnYM2413Scan called without init\n"));
|
||||
#endif
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@ void BurnYM2413Scan(INT32 nAction, INT32 *pnMin);
|
|||
|
||||
static inline void BurnYM2413Write(INT32 Address, const UINT8 nValue)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_YM2413Initted) bprintf(PRINT_ERROR, _T("BurnYM2413Write called without init\n"));
|
||||
#endif
|
||||
|
||||
|
|
|
@ -41,7 +41,7 @@ static INT32 YM2608StreamCallbackDummy(INT32)
|
|||
|
||||
static void AY8910Render(INT32 nSegmentLength)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_YM2608Initted) bprintf(PRINT_ERROR, _T("BurnYM2608 AY8910Render called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -62,7 +62,7 @@ static void AY8910Render(INT32 nSegmentLength)
|
|||
|
||||
static void YM2608Render(INT32 nSegmentLength)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_YM2608Initted) bprintf(PRINT_ERROR, _T("YM2608Render called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -85,7 +85,7 @@ static void YM2608Render(INT32 nSegmentLength)
|
|||
|
||||
static void YM2608UpdateResample(INT16* pSoundBuf, INT32 nSegmentEnd)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_YM2608Initted) bprintf(PRINT_ERROR, _T("YM2608UpdateResample called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -199,7 +199,7 @@ static void YM2608UpdateResample(INT16* pSoundBuf, INT32 nSegmentEnd)
|
|||
|
||||
static void YM2608UpdateNormal(INT16* pSoundBuf, INT32 nSegmentEnd)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_YM2608Initted) bprintf(PRINT_ERROR, _T("YM2608UpdateNormal called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -292,7 +292,7 @@ static void YM2608UpdateNormal(INT16* pSoundBuf, INT32 nSegmentEnd)
|
|||
|
||||
void BurnYM2608UpdateRequest()
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_YM2608Initted) bprintf(PRINT_ERROR, _T("BurnYM2608UpdateRequest called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -301,7 +301,7 @@ void BurnYM2608UpdateRequest()
|
|||
|
||||
static void BurnAY8910UpdateRequest()
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_YM2608Initted) bprintf(PRINT_ERROR, _T("BurnYM2608 BurnAY8910UpdateRequest called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -313,7 +313,7 @@ static void BurnAY8910UpdateRequest()
|
|||
|
||||
void BurnYM2608Reset()
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_YM2608Initted) bprintf(PRINT_ERROR, _T("BurnYM2608Reset called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -324,7 +324,7 @@ void BurnYM2608Reset()
|
|||
|
||||
void BurnYM2608Exit()
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_YM2608Initted) bprintf(PRINT_ERROR, _T("BurnYM2608Exit called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -411,7 +411,7 @@ INT32 BurnYM2608Init(INT32 nClockFrequency, UINT8* YM2608ADPCMROM, INT32* nYM260
|
|||
|
||||
void BurnYM2608SetRoute(INT32 nIndex, double nVolume, INT32 nRouteDir)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_YM2608Initted) bprintf(PRINT_ERROR, _T("BurnYM2608SetRoute called without init\n"));
|
||||
if (nIndex < 0 || nIndex > 2) bprintf(PRINT_ERROR, _T("BurnYM2608SetRoute called with invalid index %i\n"), nIndex);
|
||||
#endif
|
||||
|
@ -422,7 +422,7 @@ void BurnYM2608SetRoute(INT32 nIndex, double nVolume, INT32 nRouteDir)
|
|||
|
||||
void BurnYM2608Scan(INT32 nAction, INT32* pnMin)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_YM2608Initted) bprintf(PRINT_ERROR, _T("BurnYM2608Scan called without init\n"));
|
||||
#endif
|
||||
|
||||
|
|
|
@ -27,7 +27,7 @@ void BurnYM2608Scan(INT32 nAction, INT32* pnMin);
|
|||
|
||||
#define BurnYM2608Read(a) YM2608Read(0, a)
|
||||
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
#define BurnYM2608Write(a, n) if (!DebugSnd_YM2608Initted) bprintf(PRINT_ERROR, _T("BurnYM2608Write called without init\n")); YM2608Write(0, a, n)
|
||||
#else
|
||||
#define BurnYM2608Write(a, n) YM2608Write(0, a, n)
|
||||
|
|
|
@ -46,7 +46,7 @@ static INT32 YM2610StreamCallbackDummy(INT32)
|
|||
|
||||
static void AY8910Render(INT32 nSegmentLength)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_YM2610Initted) bprintf(PRINT_ERROR, _T("BurnYM2610 AY8910Render called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -67,7 +67,7 @@ static void AY8910Render(INT32 nSegmentLength)
|
|||
|
||||
static void YM2610Render(INT32 nSegmentLength)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_YM2610Initted) bprintf(PRINT_ERROR, _T("YM2610Render called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -90,7 +90,7 @@ static void YM2610Render(INT32 nSegmentLength)
|
|||
|
||||
static void YM2610UpdateResample(INT16* pSoundBuf, INT32 nSegmentEnd)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_YM2610Initted) bprintf(PRINT_ERROR, _T("YM2610UpdateResample called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -238,7 +238,7 @@ static void YM2610UpdateResample(INT16* pSoundBuf, INT32 nSegmentEnd)
|
|||
|
||||
static void YM2610UpdateNormal(INT16* pSoundBuf, INT32 nSegmentEnd)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_YM2610Initted) bprintf(PRINT_ERROR, _T("YM2610UpdateNormal called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -343,7 +343,7 @@ static void YM2610UpdateNormal(INT16* pSoundBuf, INT32 nSegmentEnd)
|
|||
|
||||
void BurnYM2610UpdateRequest()
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_YM2610Initted) bprintf(PRINT_ERROR, _T("YM2610UpdateRequest called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -352,7 +352,7 @@ void BurnYM2610UpdateRequest()
|
|||
|
||||
static void BurnAY8910UpdateRequest()
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_YM2610Initted) bprintf(PRINT_ERROR, _T("BurnYM2610 BurnAY8910UpdateRequest called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -364,7 +364,7 @@ static void BurnAY8910UpdateRequest()
|
|||
|
||||
void BurnYM2610Reset()
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_YM2610Initted) bprintf(PRINT_ERROR, _T("BurnYM2610Reset called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -375,7 +375,7 @@ void BurnYM2610Reset()
|
|||
|
||||
void BurnYM2610Exit()
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_YM2610Initted) bprintf(PRINT_ERROR, _T("BurnYM2610Exit called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -397,7 +397,7 @@ void BurnYM2610Exit()
|
|||
|
||||
void BurnYM2610MapADPCMROM(UINT8* YM2610ADPCMAROM, INT32 nYM2610ADPCMASize, UINT8* YM2610ADPCMBROM, INT32 nYM2610ADPCMBSize)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_YM2610Initted) bprintf(PRINT_ERROR, _T("BurnYM2610MapADPCMROM called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -480,7 +480,7 @@ INT32 BurnYM2610Init(INT32 nClockFrequency, UINT8* YM2610ADPCMAROM, INT32* nYM26
|
|||
|
||||
void BurnYM2610SetRoute(INT32 nIndex, double nVolume, INT32 nRouteDir)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_YM2610Initted) bprintf(PRINT_ERROR, _T("BurnYM2610SetRoute called without init\n"));
|
||||
if (nIndex < 0 || nIndex > 2) bprintf(PRINT_ERROR, _T("BurnYM2610SetRoute called with invalid index %i\n"), nIndex);
|
||||
#endif
|
||||
|
@ -491,7 +491,7 @@ void BurnYM2610SetRoute(INT32 nIndex, double nVolume, INT32 nRouteDir)
|
|||
|
||||
void BurnYM2610SetLeftVolume(INT32 nIndex, double nLeftVolume)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_YM2610Initted) bprintf(PRINT_ERROR, _T("BurnYM2610SetLeftVolume called without init\n"));
|
||||
if (nIndex < 0 || nIndex > 2) bprintf(PRINT_ERROR, _T("BurnYM2610SetLeftVolume called with invalid index %i\n"), nIndex);
|
||||
#endif
|
||||
|
@ -501,7 +501,7 @@ void BurnYM2610SetLeftVolume(INT32 nIndex, double nLeftVolume)
|
|||
|
||||
void BurnYM2610SetRightVolume(INT32 nIndex, double nRightVolume)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_YM2610Initted) bprintf(PRINT_ERROR, _T("BurnYM2610SetRightVolume called without init\n"));
|
||||
if (nIndex < 0 || nIndex > 2) bprintf(PRINT_ERROR, _T("BurnYM2610SetRightVolume called with invalid index %i\n"), nIndex);
|
||||
#endif
|
||||
|
@ -511,7 +511,7 @@ void BurnYM2610SetRightVolume(INT32 nIndex, double nRightVolume)
|
|||
|
||||
void BurnYM2610Scan(INT32 nAction, INT32* pnMin)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_YM2610Initted) bprintf(PRINT_ERROR, _T("BurnYM2610Scan called without init\n"));
|
||||
#endif
|
||||
|
||||
|
|
|
@ -32,7 +32,7 @@ extern INT32 bYM2610UseSeperateVolumes;
|
|||
|
||||
#define BurnYM2610Read(a) YM2610Read(0, a)
|
||||
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
#define BurnYM2610Write(a, n) if (!DebugSnd_YM2610Initted) bprintf(PRINT_ERROR, _T("BurnYM2610Write called without init\n")); YM2610Write(0, a, n)
|
||||
#else
|
||||
#define BurnYM2610Write(a, n) YM2610Write(0, a, n)
|
||||
|
|
|
@ -41,7 +41,7 @@ static INT32 YM2612StreamCallbackDummy(INT32)
|
|||
|
||||
static void YM2612Render(INT32 nSegmentLength)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_YM2612Initted) bprintf(PRINT_ERROR, _T("YM2612Render called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -88,7 +88,7 @@ static void YM2612Render(INT32 nSegmentLength)
|
|||
|
||||
static void YM2612UpdateResample(INT16* pSoundBuf, INT32 nSegmentEnd)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_YM2612Initted) bprintf(PRINT_ERROR, _T("YM2612UpdateResample called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -167,7 +167,7 @@ static void YM2612UpdateResample(INT16* pSoundBuf, INT32 nSegmentEnd)
|
|||
|
||||
static void YM2612UpdateNormal(INT16* pSoundBuf, INT32 nSegmentEnd)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_YM2612Initted) bprintf(PRINT_ERROR, _T("YM2612UpdateNormal called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -263,7 +263,7 @@ static void YM2612UpdateNormal(INT16* pSoundBuf, INT32 nSegmentEnd)
|
|||
|
||||
void BurnYM2612UpdateRequest()
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_YM2612Initted) bprintf(PRINT_ERROR, _T("YM2612UpdateRequest called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -275,7 +275,7 @@ void BurnYM2612UpdateRequest()
|
|||
|
||||
void BurnYM2612Reset()
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_YM2612Initted) bprintf(PRINT_ERROR, _T("BurnYM2612Reset called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -288,7 +288,7 @@ void BurnYM2612Reset()
|
|||
|
||||
void BurnYM2612Exit()
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_YM2612Initted) bprintf(PRINT_ERROR, _T("BurnYM2612Exit called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -380,7 +380,7 @@ INT32 BurnYM2612Init(INT32 num, INT32 nClockFrequency, FM_IRQHANDLER IRQCallback
|
|||
|
||||
void BurnYM2612SetRoute(INT32 nChip, INT32 nIndex, double nVolume, INT32 nRouteDir)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_YM2612Initted) bprintf(PRINT_ERROR, _T("BurnYM2612SetRoute called without init\n"));
|
||||
if (nIndex < 0 || nIndex > 1) bprintf(PRINT_ERROR, _T("BurnYM2612SetRoute called with invalid index %i\n"), nIndex);
|
||||
if (nChip >= nNumChips) bprintf(PRINT_ERROR, _T("BurnYM2612SetRoute called with invalid chip %i\n"), nChip);
|
||||
|
@ -399,7 +399,7 @@ void BurnYM2612SetRoute(INT32 nChip, INT32 nIndex, double nVolume, INT32 nRouteD
|
|||
|
||||
void BurnYM2612Scan(INT32 nAction, INT32* pnMin)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_YM2612Initted) bprintf(PRINT_ERROR, _T("BurnYM2612Scan called without init\n"));
|
||||
#endif
|
||||
|
||||
|
|
|
@ -24,7 +24,7 @@ void BurnYM2612Scan(INT32 nAction, INT32* pnMin);
|
|||
|
||||
#define BurnYM2612Read(i, a) YM2612Read(i, a)
|
||||
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
#define BurnYM2612Write(i, a, n) if (!DebugSnd_YM2612Initted) bprintf(PRINT_ERROR, _T("BurnYM2612Write called without init\n")); YM2612Write(i, a, n)
|
||||
#else
|
||||
#define BurnYM2612Write(i, a, n) YM2612Write(i, a, n)
|
||||
|
@ -46,7 +46,7 @@ void BurnYM2612Scan(INT32 nAction, INT32* pnMin);
|
|||
|
||||
#define BurnYM3438Read(i, a) YM2612Read(i, a)
|
||||
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
#define BurnYM3438Write(i, a, n) if (!DebugSnd_YM2612Initted) bprintf(PRINT_ERROR, _T("BurnYM3438Write called without init\n")); YM2612Write(i, a, n)
|
||||
#else
|
||||
#define BurnYM3438Write(i, a, n) YM2612Write(i, a, n)
|
||||
|
|
|
@ -232,7 +232,7 @@ static INT32 YM3526StreamCallbackDummy(INT32)
|
|||
|
||||
static void YM3526Render(INT32 nSegmentLength)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_YM3526Initted) bprintf(PRINT_ERROR, _T("YM3526Render called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -252,7 +252,7 @@ static void YM3526Render(INT32 nSegmentLength)
|
|||
|
||||
static void YM3526UpdateResample(INT16* pSoundBuf, INT32 nSegmentEnd)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_YM3526Initted) bprintf(PRINT_ERROR, _T("YM3526UpdateResample called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -320,7 +320,7 @@ static void YM3526UpdateResample(INT16* pSoundBuf, INT32 nSegmentEnd)
|
|||
|
||||
static void YM3526UpdateNormal(INT16* pSoundBuf, INT32 nSegmentEnd)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_YM3526Initted) bprintf(PRINT_ERROR, _T("YM3526UpdateNormal called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -381,7 +381,7 @@ static void YM3526UpdateNormal(INT16* pSoundBuf, INT32 nSegmentEnd)
|
|||
|
||||
void BurnYM3526UpdateRequest(int, int)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_YM3526Initted) bprintf(PRINT_ERROR, _T("BurnYM3526UpdateRequest called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -393,7 +393,7 @@ void BurnYM3526UpdateRequest(int, int)
|
|||
|
||||
void BurnYM3526Reset()
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_YM3526Initted) bprintf(PRINT_ERROR, _T("BurnYM3526Reset called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -404,7 +404,7 @@ void BurnYM3526Reset()
|
|||
|
||||
void BurnYM3526Exit()
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_YM3526Initted) bprintf(PRINT_ERROR, _T("BurnYM3526Exit called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -484,7 +484,7 @@ INT32 BurnYM3526Init(INT32 nClockFrequency, OPL_IRQHANDLER IRQCallback, INT32 (*
|
|||
|
||||
void BurnYM3526SetRoute(INT32 nIndex, double nVolume, INT32 nRouteDir)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_YM3526Initted) bprintf(PRINT_ERROR, _T("BurnYM3526SetRoute called without init\n"));
|
||||
if (nIndex < 0 || nIndex > 1) bprintf(PRINT_ERROR, _T("BurnYM3526SetRoute called with invalid index %i\n"), nIndex);
|
||||
#endif
|
||||
|
@ -495,7 +495,7 @@ void BurnYM3526SetRoute(INT32 nIndex, double nVolume, INT32 nRouteDir)
|
|||
|
||||
void BurnYM3526Scan(INT32 nAction, INT32* pnMin)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_YM3526Initted) bprintf(PRINT_ERROR, _T("BurnYM3526Scan called without init\n"));
|
||||
#endif
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@ void BurnYM3526Scan(INT32 nAction, INT32* pnMin);
|
|||
|
||||
#define BurnYM3526Read(a) YM3526Read(0, a)
|
||||
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
#define BurnYM3526Write(a, n) if (!DebugSnd_YM3526Initted) bprintf(PRINT_ERROR, _T("BurnYM3526Write called without init\n")); YM3526Write(0, a, n)
|
||||
#else
|
||||
#define BurnYM3526Write(a, n) YM3526Write(0, a, n)
|
||||
|
|
|
@ -234,7 +234,7 @@ static INT32 YM3812StreamCallbackDummy(INT32)
|
|||
|
||||
static void YM3812Render(INT32 nSegmentLength)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_YM3812Initted) bprintf(PRINT_ERROR, _T("YM3812Render called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -258,7 +258,7 @@ static void YM3812Render(INT32 nSegmentLength)
|
|||
|
||||
static void YM3812UpdateResample(INT16* pSoundBuf, INT32 nSegmentEnd)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_YM3812Initted) bprintf(PRINT_ERROR, _T("YM3812UpdateResample called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -347,7 +347,7 @@ static void YM3812UpdateResample(INT16* pSoundBuf, INT32 nSegmentEnd)
|
|||
|
||||
static void YM3812UpdateNormal(INT16* pSoundBuf, INT32 nSegmentEnd)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_YM3812Initted) bprintf(PRINT_ERROR, _T("YM3812UpdateNormal called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -421,7 +421,7 @@ static void YM3812UpdateNormal(INT16* pSoundBuf, INT32 nSegmentEnd)
|
|||
|
||||
void BurnYM3812UpdateRequest(INT32, INT32)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_YM3812Initted) bprintf(PRINT_ERROR, _T("BurnYM3812UpdateRequest called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -433,7 +433,7 @@ void BurnYM3812UpdateRequest(INT32, INT32)
|
|||
|
||||
void BurnYM3812Reset()
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_YM3812Initted) bprintf(PRINT_ERROR, _T("BurnYM3812Reset called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -446,7 +446,7 @@ void BurnYM3812Reset()
|
|||
|
||||
void BurnYM3812Exit()
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_YM3812Initted) bprintf(PRINT_ERROR, _T("BurnYM3812Exit called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -535,7 +535,7 @@ INT32 BurnYM3812Init(INT32 num, INT32 nClockFrequency, OPL_IRQHANDLER IRQCallbac
|
|||
|
||||
void BurnYM3812SetRoute(INT32 nChip, INT32 nIndex, double nVolume, INT32 nRouteDir)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_YM3812Initted) bprintf(PRINT_ERROR, _T("BurnYM3812SetRoute called without init\n"));
|
||||
if (nIndex < 0 || nIndex > 1) bprintf(PRINT_ERROR, _T("BurnYM3812SetRoute called with invalid index %i\n"), nIndex);
|
||||
if (nChip >= nNumChips) bprintf(PRINT_ERROR, _T("BurnYM3812SetRoute called with invalid chip %i\n"), nChip);
|
||||
|
@ -554,7 +554,7 @@ void BurnYM3812SetRoute(INT32 nChip, INT32 nIndex, double nVolume, INT32 nRouteD
|
|||
|
||||
void BurnYM3812Scan(INT32 nAction, INT32* pnMin)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_YM3812Initted) bprintf(PRINT_ERROR, _T("BurnYM3812Scan called without init\n"));
|
||||
#endif
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@ void BurnYM3812Scan(INT32 nAction, INT32* pnMin);
|
|||
|
||||
#define BurnYM3812Read(i, a) YM3812Read(i, a)
|
||||
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
#define BurnYM3812Write(i, a, n) if (!DebugSnd_YM3812Initted) bprintf(PRINT_ERROR, _T("BurnYM3812Write called without init\n")); YM3812Write(i, a, n)
|
||||
#else
|
||||
#define BurnYM3812Write(i, a, n) YM3812Write(i, a, n)
|
||||
|
|
|
@ -33,7 +33,7 @@ static INT32 YMF262StreamCallbackDummy(INT32 /* nSoundRate */)
|
|||
|
||||
static void YMF262Render(INT32 nSegmentLength)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_YMF262Initted) bprintf(PRINT_ERROR, _T("YMF262Render called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -74,7 +74,7 @@ static void YMF262Render(INT32 nSegmentLength)
|
|||
|
||||
void BurnYMF262Update(INT32 nSegmentEnd)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_YMF262Initted) bprintf(PRINT_ERROR, _T("BurnYMF262Update called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -146,7 +146,7 @@ void BurnYMF262Update(INT32 nSegmentEnd)
|
|||
|
||||
void BurnYMF262Write(INT32 nAddress, UINT8 nValue)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_YMF262Initted) bprintf(PRINT_ERROR, _T("BurnYMF262Write called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -156,7 +156,7 @@ void BurnYMF262Write(INT32 nAddress, UINT8 nValue)
|
|||
|
||||
UINT8 BurnYMF262Read(INT32 nAddress)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_YMF262Initted) bprintf(PRINT_ERROR, _T("BurnYMF262Read called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -174,7 +174,7 @@ static int ymf262_timerover(int /*num*/, int c)
|
|||
|
||||
void BurnYMF262Reset()
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_YMF262Initted) bprintf(PRINT_ERROR, _T("BurnYMF262Reset called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -184,7 +184,7 @@ void BurnYMF262Reset()
|
|||
|
||||
void BurnYMF262Exit()
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_YMF262Initted) bprintf(PRINT_ERROR, _T("BurnYMF262Exit called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -238,7 +238,7 @@ INT32 BurnYMF262Init(INT32 nClockFrequency, void (*IRQCallback)(INT32, INT32), I
|
|||
|
||||
void BurnYMF262SetRoute(INT32 nIndex, double nVolume, INT32 nRouteDir)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_YMF262Initted) bprintf(PRINT_ERROR, _T("BurnYMF262SetRoute called without init\n"));
|
||||
if (nIndex < 0 || nIndex > 1) bprintf(PRINT_ERROR, _T("BurnYMF262SetRoute called with invalid index %i\n"), nIndex);
|
||||
#endif
|
||||
|
@ -249,7 +249,7 @@ void BurnYMF262SetRoute(INT32 nIndex, double nVolume, INT32 nRouteDir)
|
|||
|
||||
void BurnYMF262Scan(INT32 nAction, INT32* pnMin)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_YMF262Initted) bprintf(PRINT_ERROR, _T("BurnYMF262Scan called without init\n"));
|
||||
#endif
|
||||
|
||||
|
|
|
@ -33,7 +33,7 @@ static INT32 YMF278BStreamCallbackDummy(INT32 /* nSoundRate */)
|
|||
|
||||
static void YMF278BRender(INT32 nSegmentLength)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_YMF278BInitted) bprintf(PRINT_ERROR, _T("YMF278BRender called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -74,7 +74,7 @@ static void YMF278BRender(INT32 nSegmentLength)
|
|||
|
||||
void BurnYMF278BUpdate(INT32 nSegmentEnd)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_YMF278BInitted) bprintf(PRINT_ERROR, _T("BurnYMF278BUpdate called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -146,7 +146,7 @@ void BurnYMF278BUpdate(INT32 nSegmentEnd)
|
|||
|
||||
void BurnYMF278BSelectRegister(INT32 nRegister, UINT8 nValue)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_YMF278BInitted) bprintf(PRINT_ERROR, _T("BurnYMF278BSelectRegister called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -166,7 +166,7 @@ void BurnYMF278BSelectRegister(INT32 nRegister, UINT8 nValue)
|
|||
}
|
||||
void BurnYMF278BWriteRegister(INT32 nRegister, UINT8 nValue)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_YMF278BInitted) bprintf(PRINT_ERROR, _T("BurnYMF278BWriteRegister called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -187,7 +187,7 @@ void BurnYMF278BWriteRegister(INT32 nRegister, UINT8 nValue)
|
|||
|
||||
UINT8 BurnYMF278BReadStatus()
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_YMF278BInitted) bprintf(PRINT_ERROR, _T("BurnYMF278BReadStatus called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -197,7 +197,7 @@ UINT8 BurnYMF278BReadStatus()
|
|||
|
||||
UINT8 BurnYMF278BReadData()
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_YMF278BInitted) bprintf(PRINT_ERROR, _T("BurnYMF278BReadData called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -208,7 +208,7 @@ UINT8 BurnYMF278BReadData()
|
|||
|
||||
void BurnYMF278BReset()
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_YMF278BInitted) bprintf(PRINT_ERROR, _T("BurnYMF278BReset called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -219,7 +219,7 @@ void BurnYMF278BReset()
|
|||
|
||||
void BurnYMF278BExit()
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_YMF278BInitted) bprintf(PRINT_ERROR, _T("BurnYMF278BExit called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -286,7 +286,7 @@ INT32 BurnYMF278BInit(INT32 nClockFrequency, UINT8* YMF278BROM, INT32 YMF278BROM
|
|||
|
||||
void BurnYMF278BSetRoute(INT32 nIndex, double nVolume, INT32 nRouteDir)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_YMF278BInitted) bprintf(PRINT_ERROR, _T("BurnYMF278BSetRoute called without init\n"));
|
||||
if (nIndex < 0 || nIndex > 1) bprintf(PRINT_ERROR, _T("BurnYMF278BSetRoute called with invalid index %i\n"), nIndex);
|
||||
#endif
|
||||
|
@ -297,7 +297,7 @@ void BurnYMF278BSetRoute(INT32 nIndex, double nVolume, INT32 nRouteDir)
|
|||
|
||||
void BurnYMF278BScan(INT32 nAction, INT32* pnMin)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_YMF278BInitted) bprintf(PRINT_ERROR, _T("BurnYMF278BScan called without init\n"));
|
||||
#endif
|
||||
|
||||
|
|
|
@ -95,7 +95,7 @@ static c6280_t chip[1];
|
|||
|
||||
void c6280_reset()
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_C6280Initted) bprintf(PRINT_ERROR, _T("c6280_reset called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -157,7 +157,7 @@ void c6280_init(double clk, INT32 bAdd)
|
|||
stream_buffer = (INT16*)BurnMalloc(nBurnSoundLen * 2 * sizeof(INT16));
|
||||
|
||||
if (stream_buffer == NULL) {
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
bprintf (0, _T("Stream buffer allocation failed!\n"));
|
||||
#endif
|
||||
return;
|
||||
|
@ -166,7 +166,7 @@ void c6280_init(double clk, INT32 bAdd)
|
|||
|
||||
void c6280_set_route(INT32 nIndex, double nVolume, INT32 nRouteDir)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_C6280Initted) bprintf(PRINT_ERROR, _T("c6280_set_route called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -178,7 +178,7 @@ void c6280_set_route(INT32 nIndex, double nVolume, INT32 nRouteDir)
|
|||
|
||||
void c6280_exit()
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_C6280Initted) bprintf(PRINT_ERROR, _T("c6280_exit called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -191,7 +191,7 @@ void c6280_exit()
|
|||
|
||||
static INT32 c6280_sync_get_offset_end()
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_C6280Initted) bprintf(PRINT_ERROR, _T("c6280_sync_get_offset_end called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -392,7 +392,7 @@ static void c6280_write_internal(INT32 offset, INT32 data)
|
|||
|
||||
void c6280_update(INT16 *pBuffer, INT32 samples)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_C6280Initted) bprintf(PRINT_ERROR, _T("c6280_update called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -430,7 +430,7 @@ void c6280_update(INT16 *pBuffer, INT32 samples)
|
|||
|
||||
UINT8 c6280_read()
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_C6280Initted) bprintf(PRINT_ERROR, _T("c6280_read called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -439,7 +439,7 @@ UINT8 c6280_read()
|
|||
|
||||
void c6280_write(UINT8 offset, UINT8 data)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_C6280Initted) bprintf(PRINT_ERROR, _T("c6280_write called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -449,7 +449,7 @@ void c6280_write(UINT8 offset, UINT8 data)
|
|||
|
||||
void c6280_scan(INT32 nAction, INT32 *pnMin)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_C6280Initted) bprintf(PRINT_ERROR, _T("c6280_scan called without init\n"));
|
||||
#endif
|
||||
|
||||
|
|
|
@ -116,7 +116,7 @@ static void UpdateStream(INT32 chip, INT32 length)
|
|||
|
||||
void DACUpdate(INT16* Buffer, INT32 Length)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_DACInitted) bprintf(PRINT_ERROR, _T("DACUpdate called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -159,7 +159,7 @@ void DACUpdate(INT16* Buffer, INT32 Length)
|
|||
|
||||
void DACWrite(INT32 Chip, UINT8 Data)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_DACInitted) bprintf(PRINT_ERROR, _T("DACWrite called without init\n"));
|
||||
if (Chip > NumChips) bprintf(PRINT_ERROR, _T("DACWrite called with invalid chip number %x\n"), Chip);
|
||||
#endif
|
||||
|
@ -175,7 +175,7 @@ void DACWrite(INT32 Chip, UINT8 Data)
|
|||
|
||||
void DACWrite16(INT32 Chip, INT16 Data)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_DACInitted) bprintf(PRINT_ERROR, _T("DACWrite16 called without init\n"));
|
||||
if (Chip > NumChips) bprintf(PRINT_ERROR, _T("DACWrite16 called with invalid chip number %x\n"), Chip);
|
||||
#endif
|
||||
|
@ -194,7 +194,7 @@ void DACWrite16(INT32 Chip, INT16 Data)
|
|||
|
||||
void DACWrite16Stereo(INT32 Chip, INT16 Data, INT16 Data2)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_DACInitted) bprintf(PRINT_ERROR, _T("DACWrite16Stereo called without init\n"));
|
||||
if (Chip > NumChips) bprintf(PRINT_ERROR, _T("DACWrite16Stereo called with invalid chip number %x\n"), Chip);
|
||||
#endif
|
||||
|
@ -215,7 +215,7 @@ void DACWrite16Stereo(INT32 Chip, INT16 Data, INT16 Data2)
|
|||
|
||||
void DACWrite16Signed(INT32 Chip, UINT16 Data)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_DACInitted) bprintf(PRINT_ERROR, _T("DACWrite16 called without init\n"));
|
||||
if (Chip > NumChips) bprintf(PRINT_ERROR, _T("DACWrite16 called with invalid chip number %x\n"), Chip);
|
||||
#endif
|
||||
|
@ -236,7 +236,7 @@ void DACWrite16Signed(INT32 Chip, UINT16 Data)
|
|||
|
||||
void DACSignedWrite(INT32 Chip, UINT8 Data)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_DACInitted) bprintf(PRINT_ERROR, _T("DACSignedWrite called without init\n"));
|
||||
if (Chip > NumChips) bprintf(PRINT_ERROR, _T("DACSignedWrite called with invalid chip number %x\n"), Chip);
|
||||
#endif
|
||||
|
@ -259,7 +259,7 @@ static void DACBuildVolTables()
|
|||
|
||||
void DACStereoMode(INT32 Chip)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_DACInitted) bprintf(PRINT_ERROR, _T("DACStereoMode called without init\n"));
|
||||
if (Chip > NumChips) bprintf(PRINT_ERROR, _T("DACStereoMode called with invalid chip number %x\n"), Chip);
|
||||
#endif
|
||||
|
@ -288,7 +288,7 @@ void DACInit(INT32 Num, UINT32 Clock, INT32 bAdd, INT32 (*pCPUCyclesCB)(), INT32
|
|||
|
||||
void DACInit(INT32 Num, UINT32 /*Clock*/, INT32 bAdd, INT32 (*pSyncCB)())
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (Num >= DAC_NUM) bprintf (PRINT_ERROR, _T("DACInit called for too many chips (%d)! Change DAC_NUM (%d)!\n"), Num, DAC_NUM);
|
||||
if (pSyncCB == NULL) bprintf (PRINT_ERROR, _T("DACInit called with NULL callback!\n"));
|
||||
#endif
|
||||
|
@ -316,7 +316,7 @@ void DACInit(INT32 Num, UINT32 /*Clock*/, INT32 bAdd, INT32 (*pSyncCB)())
|
|||
|
||||
void DACSetRoute(INT32 Chip, double nVolume, INT32 nRouteDir)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_DACInitted) bprintf(PRINT_ERROR, _T("DACSetRoute called without init\n"));
|
||||
if (Chip > NumChips) bprintf(PRINT_ERROR, _T("DACSetRoute called with invalid chip %i\n"), Chip);
|
||||
#endif
|
||||
|
@ -330,7 +330,7 @@ void DACSetRoute(INT32 Chip, double nVolume, INT32 nRouteDir)
|
|||
|
||||
void DACReset()
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_DACInitted) bprintf(PRINT_ERROR, _T("DACReset called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -350,7 +350,7 @@ void DACReset()
|
|||
|
||||
void DACExit()
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_DACInitted) bprintf(PRINT_ERROR, _T("DACExit called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -382,7 +382,7 @@ void DACExit()
|
|||
|
||||
void DACScan(INT32 nAction, INT32 *pnMin)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_DACInitted) bprintf(PRINT_ERROR, _T("DACScan called without init\n"));
|
||||
#endif
|
||||
|
||||
|
|
|
@ -871,7 +871,7 @@ static void generate_samples(INT32 *left, INT32 *right, INT32 samples)
|
|||
|
||||
void ES5506Update(INT16 *outputs, INT32 samples_len)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_ES5506Initted) bprintf(PRINT_ERROR, _T("ES5506Update called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -1015,7 +1015,7 @@ void ES5506Init(INT32 clock, UINT8* region0, UINT8* region1, UINT8* region2, UIN
|
|||
|
||||
void ES5506Scan(INT32 nAction, INT32* pnMin)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_ES5506Initted) bprintf(PRINT_ERROR, _T("ES5506Scan called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -1044,7 +1044,7 @@ void ES5506Scan(INT32 nAction, INT32* pnMin)
|
|||
// Some games (Taito F3) change the l/r volume in-game, this is for them
|
||||
void ES5506ScanRoutes(INT32 nAction, INT32* pnMin)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_ES5506Initted) bprintf(PRINT_ERROR, _T("ES5506ScanRoutes called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -1075,7 +1075,7 @@ void ES5506SetRoute(INT32, double nVolume, INT32 nRouteDir)
|
|||
|
||||
void ES5506Exit()
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_ES5506Initted) bprintf(PRINT_ERROR, _T("ES5506Exit called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -1114,7 +1114,7 @@ void ES5506Exit()
|
|||
|
||||
void ES5506Reset()
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_ES5506Initted) bprintf(PRINT_ERROR, _T("ES5506Reset called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -1393,7 +1393,7 @@ ES5506_INLINE void es5506_reg_write_test(UINT32 offset, UINT32 data)
|
|||
|
||||
void ES5506Write(UINT32 offset, UINT8 data)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_ES5506Initted) bprintf(PRINT_ERROR, _T("ES5506Write called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -1601,7 +1601,7 @@ ES5506_INLINE UINT32 es5506_reg_read_test(UINT32 offset)
|
|||
|
||||
UINT8 ES5506Read(UINT32 offset)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_ES5506Initted) bprintf(PRINT_ERROR, _T("ES5506Read called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -1632,7 +1632,7 @@ UINT8 ES5506Read(UINT32 offset)
|
|||
|
||||
void es5506_voice_bank_w(INT32 voice, INT32 bank)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_ES5506Initted) bprintf(PRINT_ERROR, _T("es5506_voice_bank_w called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -1965,7 +1965,7 @@ ES5506_INLINE void es5505_reg_write_test(UINT32 offset, UINT16 data)
|
|||
|
||||
void ES5505Write(UINT32 offset, UINT16 data)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_ES5506Initted) bprintf(PRINT_ERROR, _T("ES5505Write called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -2176,7 +2176,7 @@ ES5506_INLINE UINT16 es5505_reg_read_test(UINT32 offset)
|
|||
|
||||
UINT16 ES5505Read(UINT32 offset)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_ES5506Initted) bprintf(PRINT_ERROR, _T("ES5505Read called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -2205,7 +2205,7 @@ UINT16 ES5505Read(UINT32 offset)
|
|||
|
||||
void es5505_voice_bank_w(INT32 voice, INT32 bank)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_ES5506Initted) bprintf(PRINT_ERROR, _T("es5505_voice_bank_w called without init\n"));
|
||||
#endif
|
||||
|
||||
|
|
|
@ -178,7 +178,7 @@ static void generate_adpcm(INT16 *buffer, INT32 samples)
|
|||
|
||||
void es8712Update(INT32 device, INT16 *buffer, INT32 samples)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_ES8712Initted) bprintf(PRINT_ERROR, _T("es8712Update called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -259,7 +259,7 @@ void es8712Init(INT32 device, UINT8 *rom, INT32 sample_rate, INT32 addSignal)
|
|||
|
||||
void es8712SetRoute(INT32 device, double nVolume, INT32 nRouteDir)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_ES8712Initted) bprintf(PRINT_ERROR, _T("es8712SetRoute called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -278,7 +278,7 @@ void es8712SetRoute(INT32 device, double nVolume, INT32 nRouteDir)
|
|||
|
||||
void es8712Exit(INT32 device)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_ES8712Initted) bprintf(PRINT_ERROR, _T("es8712Exit called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -303,7 +303,7 @@ void es8712Exit(INT32 device)
|
|||
|
||||
void es8712Reset(INT32 device)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_ES8712Initted) bprintf(PRINT_ERROR, _T("es8712Reset called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -328,7 +328,7 @@ void es8712Reset(INT32 device)
|
|||
|
||||
void es8712SetBankBase(INT32 device, INT32 base)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_ES8712Initted) bprintf(PRINT_ERROR, _T("es8712SetBankBase called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -348,7 +348,7 @@ void es8712SetBankBase(INT32 device, INT32 base)
|
|||
|
||||
void es8712Play(INT32 device)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_ES8712Initted) bprintf(PRINT_ERROR, _T("es8712Play called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -408,7 +408,7 @@ void es8712Play(INT32 device)
|
|||
|
||||
void es8712Write(INT32 device, INT32 offset, UINT8 data)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_ES8712Initted) bprintf(PRINT_ERROR, _T("es8712Write called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -449,7 +449,7 @@ void es8712Write(INT32 device, INT32 offset, UINT8 data)
|
|||
|
||||
void es8712Scan(INT32 nAction, INT32 *)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_ES8712Initted) bprintf(PRINT_ERROR, _T("es8712Scan called without init\n"));
|
||||
#endif
|
||||
|
||||
|
|
|
@ -37,7 +37,7 @@ static INT32 num_filters;
|
|||
|
||||
void filter_rc_update(INT32 num, INT16 *src, INT16 *pSoundBuf, INT32 length)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_FilterRCInitted) bprintf(PRINT_ERROR, _T("filter_rc_update called without init\n"));
|
||||
if (num > num_filters) bprintf(PRINT_ERROR, _T("filter_rc_update called with invalid num %i\n"), num);
|
||||
#endif
|
||||
|
@ -179,7 +179,7 @@ static void set_RC_info(INT32 num, INT32 type, double R1, double R2, double R3,
|
|||
|
||||
void filter_rc_set_RC(INT32 num, INT32 type, double R1, double R2, double R3, double C)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_FilterRCInitted) bprintf(PRINT_ERROR, _T("filter_rc_set_RC called without init\n"));
|
||||
if (num > num_filters) bprintf(PRINT_ERROR, _T("filter_rc_set_RC called with invalid num %i\n"), num);
|
||||
#endif
|
||||
|
@ -189,7 +189,7 @@ void filter_rc_set_RC(INT32 num, INT32 type, double R1, double R2, double R3, do
|
|||
|
||||
void filter_rc_init(INT32 num, INT32 type, double R1, double R2, double R3, double C, INT32 add_signal)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (num >= FLT_RC_NUM) bprintf (PRINT_ERROR, _T("filter_rc_init called for too many chips (%d)! Change FLT_RC_NUM (%d)!\n"), num, FLT_RC_NUM);
|
||||
#endif
|
||||
|
||||
|
@ -213,7 +213,7 @@ void filter_rc_init(INT32 num, INT32 type, double R1, double R2, double R3, doub
|
|||
|
||||
void filter_rc_set_src_gain(INT32 num, double gain)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_FilterRCInitted) bprintf(PRINT_ERROR, _T("filter_rc_set_src_gain called without init\n"));
|
||||
if (num > num_filters) bprintf(PRINT_ERROR, _T("filter_rc_set_src_gain called with invalid num %i\n"), num);
|
||||
#endif
|
||||
|
@ -227,7 +227,7 @@ void filter_rc_set_src_gain(INT32 num, double gain)
|
|||
|
||||
void filter_rc_set_src_stereo(INT32 num)
|
||||
{ // allows for processing a mono (but stereo) stream
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_FilterRCInitted) bprintf(PRINT_ERROR, _T("filter_rc_set_src_stereo called without init\n"));
|
||||
if (num > num_filters) bprintf(PRINT_ERROR, _T("filter_rc_set_src_stereo called with invalid num %i\n"), num);
|
||||
#endif
|
||||
|
@ -241,7 +241,7 @@ void filter_rc_set_src_stereo(INT32 num)
|
|||
|
||||
void filter_rc_set_route(INT32 num, double nVolume, INT32 nRouteDir)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_FilterRCInitted) bprintf(PRINT_ERROR, _T("filter_rc_set_route called without init\n"));
|
||||
if (num > num_filters) bprintf(PRINT_ERROR, _T("filter_rc_set_route called with invalid num %i\n"), num);
|
||||
#endif
|
||||
|
@ -256,7 +256,7 @@ void filter_rc_set_route(INT32 num, double nVolume, INT32 nRouteDir)
|
|||
|
||||
void filter_rc_set_limit(INT32 num, double nVolume)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_FilterRCInitted) bprintf(PRINT_ERROR, _T("filter_rc_set_limit called without init\n"));
|
||||
if (num > num_filters) bprintf(PRINT_ERROR, _T("filter_rc_set_limit called with invalid num %i\n"), num);
|
||||
#endif
|
||||
|
@ -271,7 +271,7 @@ void filter_rc_set_limit(INT32 num, double nVolume)
|
|||
|
||||
void filter_rc_exit()
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_FilterRCInitted) bprintf(PRINT_ERROR, _T("filter_rc_exit called without init\n"));
|
||||
#endif
|
||||
|
||||
|
|
|
@ -232,7 +232,7 @@ void ics2115_init(void (*cpu_irq_cb)(INT32), UINT8 *sample_rom, INT32 sample_rom
|
|||
|
||||
void ics2115_exit()
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_ICS2115Initted) bprintf(PRINT_ERROR, _T("ics2115_exit called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -249,7 +249,7 @@ void ics2115_exit()
|
|||
|
||||
void ics2115_reset()
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_ICS2115Initted) bprintf(PRINT_ERROR, _T("ics2115_reset called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -686,7 +686,7 @@ void ics2115_update(INT32 segment_length)
|
|||
|
||||
void ics2115_update(INT32 segment_length)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_ICS2115Initted) bprintf(PRINT_ERROR, _T("ics2115_update called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -1222,7 +1222,7 @@ static void ics2115_reg_write(UINT8 data, bool msb) {
|
|||
|
||||
UINT8 ics2115read(UINT8 offset)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_ICS2115Initted) bprintf(PRINT_ERROR, _T("ics2115read called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -1268,7 +1268,7 @@ UINT8 ics2115read(UINT8 offset)
|
|||
|
||||
void ics2115write(UINT8 offset, UINT8 data)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_ICS2115Initted) bprintf(PRINT_ERROR, _T("ics2115write called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -1328,7 +1328,7 @@ void ics2115_recalc_timer(INT32 timer)
|
|||
|
||||
void ics2115_scan(INT32 nAction, INT32* pnMin)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_ICS2115Initted) bprintf(PRINT_ERROR, _T("ics2115_scan called without init\n"));
|
||||
#endif
|
||||
|
||||
|
|
|
@ -72,7 +72,7 @@ static INT32 nNumChips;
|
|||
|
||||
void iremga20_update(INT32 device, INT16 *buffer, INT32 length)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_IremGA20Initted) bprintf(PRINT_ERROR, _T("iremga20_update called without init\n"));
|
||||
if (device > nNumChips) bprintf(PRINT_ERROR, _T("iremga20_update called with invalid chip %x\n"), device);
|
||||
#endif
|
||||
|
@ -162,7 +162,7 @@ void iremga20_update(INT32 device, INT16 *buffer, INT32 length)
|
|||
|
||||
void iremga20_write(INT32 device, INT32 offset, INT32 data)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_IremGA20Initted) bprintf(PRINT_ERROR, _T("iremga20_write called without init\n"));
|
||||
if (device > nNumChips) bprintf(PRINT_ERROR, _T("iremga20_write called with invalid chip %x\n"), device);
|
||||
#endif
|
||||
|
@ -209,7 +209,7 @@ void iremga20_write(INT32 device, INT32 offset, INT32 data)
|
|||
|
||||
UINT8 iremga20_read(INT32 device, INT32 offset)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_IremGA20Initted) bprintf(PRINT_ERROR, _T("iremga20_read called without init\n"));
|
||||
if (device > nNumChips) bprintf(PRINT_ERROR, _T("iremga20_read called with invalid chip %x\n"), device);
|
||||
#endif
|
||||
|
@ -230,7 +230,7 @@ UINT8 iremga20_read(INT32 device, INT32 offset)
|
|||
|
||||
void iremga20_reset(INT32 device)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_IremGA20Initted) bprintf(PRINT_ERROR, _T("iremga20_reset called without init\n"));
|
||||
if (device > nNumChips) bprintf(PRINT_ERROR, _T("iremga20_reset called with invalid chip %x\n"), device);
|
||||
#endif
|
||||
|
@ -277,7 +277,7 @@ void iremga20_init(INT32 device, UINT8 *rom, INT32 rom_size, INT32 frequency)
|
|||
|
||||
void itemga20_set_route(INT32 device, double nVolume, INT32 nRouteDir)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_IremGA20Initted) bprintf(PRINT_ERROR, _T("itemga20_set_route called without init\n"));
|
||||
if (device > nNumChips) bprintf(PRINT_ERROR, _T("itemga20_set_route called with invalid chip %x\n"), device);
|
||||
#endif
|
||||
|
@ -290,7 +290,7 @@ void itemga20_set_route(INT32 device, double nVolume, INT32 nRouteDir)
|
|||
|
||||
void iremga20_exit()
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_IremGA20Initted) bprintf(PRINT_ERROR, _T("iremga20_exit called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -300,7 +300,7 @@ void iremga20_exit()
|
|||
|
||||
void iremga20_scan(INT32 nAction, INT32 *pnMin)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_IremGA20Initted) bprintf(PRINT_ERROR, _T("iremga20_scan called without init\n"));
|
||||
#endif
|
||||
|
||||
|
|
|
@ -81,7 +81,7 @@ static void make_mixer_table(INT32 voices)
|
|||
|
||||
void K005289Reset()
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_K005289Initted) bprintf(PRINT_ERROR, _T("K005289Reset called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -114,7 +114,7 @@ void K005289Init(INT32 clock, UINT8 *prom)
|
|||
|
||||
void K005289SetRoute(INT32 nIndex, double nVolume, INT32 nRouteDir)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_K005289Initted) bprintf(PRINT_ERROR, _T("K005289SetRoute called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -124,7 +124,7 @@ void K005289SetRoute(INT32 nIndex, double nVolume, INT32 nRouteDir)
|
|||
|
||||
void K005289Exit()
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_K005289Initted) bprintf(PRINT_ERROR, _T("K005289Exit called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -140,7 +140,7 @@ void K005289Exit()
|
|||
|
||||
void K005289Update(INT16 *buffer, INT32 samples)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_K005289Initted) bprintf(PRINT_ERROR, _T("K005289Update called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -221,7 +221,7 @@ void K005289Update(INT16 *buffer, INT32 samples)
|
|||
|
||||
void K005289ControlAWrite(UINT8 data)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_K005289Initted) bprintf(PRINT_ERROR, _T("K005289ControlAWrite called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -231,7 +231,7 @@ void K005289ControlAWrite(UINT8 data)
|
|||
|
||||
void K005289ControlBWrite(UINT8 data)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_K005289Initted) bprintf(PRINT_ERROR, _T("K005289ControlBWrite called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -241,7 +241,7 @@ void K005289ControlBWrite(UINT8 data)
|
|||
|
||||
void K005289Ld1Write(INT32 offset)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_K005289Initted) bprintf(PRINT_ERROR, _T("K005289Ld1 called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -251,7 +251,7 @@ void K005289Ld1Write(INT32 offset)
|
|||
|
||||
void K005289Ld2Write(INT32 offset)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_K005289Initted) bprintf(PRINT_ERROR, _T("K005289Ld2 called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -261,7 +261,7 @@ void K005289Ld2Write(INT32 offset)
|
|||
|
||||
void K005289Tg1Write()
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_K005289Initted) bprintf(PRINT_ERROR, _T("K005289Tg1 called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -270,7 +270,7 @@ void K005289Tg1Write()
|
|||
|
||||
void K005289Tg2Write()
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_K005289Initted) bprintf(PRINT_ERROR, _T("K005289Tg2 called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -279,7 +279,7 @@ void K005289Tg2Write()
|
|||
|
||||
void K005289Scan(INT32 nAction, INT32 *)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_K005289Initted) bprintf(PRINT_ERROR, _T("K005289Scan called without init\n"));
|
||||
#endif
|
||||
|
||||
|
|
|
@ -69,7 +69,7 @@ static INT32 nNumChips = 0;
|
|||
|
||||
void K007232Update(INT32 chip, INT16* pSoundBuf, INT32 nLength)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_K007232Initted) bprintf(PRINT_ERROR, _T("K007232Update called without init\n"));
|
||||
if (chip >nNumChips) bprintf(PRINT_ERROR, _T("K007232Update called with invalid chip %x\n"), chip);
|
||||
#endif
|
||||
|
@ -150,7 +150,7 @@ void K007232Update(INT32 chip, INT16* pSoundBuf, INT32 nLength)
|
|||
|
||||
UINT8 K007232ReadReg(INT32 chip, INT32 r)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_K007232Initted) bprintf(PRINT_ERROR, _T("K007232ReadReg called without init\n"));
|
||||
if (chip >nNumChips) bprintf(PRINT_ERROR, _T("K007232ReadReg called with invalid chip %x\n"), chip);
|
||||
#endif
|
||||
|
@ -177,7 +177,7 @@ UINT8 K007232ReadReg(INT32 chip, INT32 r)
|
|||
|
||||
void K007232WriteReg(INT32 chip, INT32 r, INT32 v)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_K007232Initted) bprintf(PRINT_ERROR, _T("K007232WriteReg called without init\n"));
|
||||
if (chip >nNumChips) bprintf(PRINT_ERROR, _T("K007232WriteReg called with invalid chip %x\n"), chip);
|
||||
#endif
|
||||
|
@ -231,7 +231,7 @@ void K007232WriteReg(INT32 chip, INT32 r, INT32 v)
|
|||
|
||||
void K007232SetPortWriteHandler(INT32 chip, void (*Handler)(INT32 v))
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_K007232Initted) bprintf(PRINT_ERROR, _T("K007232SetPortWriteHandler called without init\n"));
|
||||
if (chip >nNumChips) bprintf(PRINT_ERROR, _T("K007232SetPortWriteHandler called with invalid chip %x\n"), chip);
|
||||
#endif
|
||||
|
@ -288,7 +288,7 @@ void K007232Init(INT32 chip, INT32 clock, UINT8 *pPCMData, INT32 PCMDataSize)
|
|||
|
||||
void K007232Reset(INT32 chip)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_K007232Initted) bprintf(PRINT_ERROR, _T("K007232Reset called without init\n"));
|
||||
if (chip > nNumChips) bprintf(PRINT_ERROR, _T("K007232Reset called with invalid chip %x\n"), chip);
|
||||
#endif
|
||||
|
@ -311,7 +311,7 @@ void K007232Reset(INT32 chip)
|
|||
|
||||
void K007232SetRoute(INT32 chip, INT32 nIndex, double nVolume, INT32 nRouteDir)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_K007232Initted) bprintf(PRINT_ERROR, _T("K007232SetRoute called without init\n"));
|
||||
if (chip > nNumChips) bprintf(PRINT_ERROR, _T("K007232SetRoute called with invalid chip %x\n"), chip);
|
||||
if (nIndex < 0 || nIndex > 1) bprintf(PRINT_ERROR, _T("K007232SetRoute called with invalid index %i\n"), nIndex);
|
||||
|
@ -325,7 +325,7 @@ void K007232SetRoute(INT32 chip, INT32 nIndex, double nVolume, INT32 nRouteDir)
|
|||
|
||||
void K007232Exit()
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_K007232Initted) bprintf(PRINT_ERROR, _T("K007232Exit called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -338,7 +338,7 @@ void K007232Exit()
|
|||
|
||||
void K007232Scan(INT32 nAction, INT32 *pnMin)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_K007232Initted) bprintf(PRINT_ERROR, _T("K007232Scan called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -355,7 +355,7 @@ void K007232Scan(INT32 nAction, INT32 *pnMin)
|
|||
|
||||
void K007232SetVolume(INT32 chip, INT32 channel,INT32 volumeA,INT32 volumeB)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_K007232Initted) bprintf(PRINT_ERROR, _T("K007232SetVolume called without init\n"));
|
||||
if (chip >nNumChips) bprintf(PRINT_ERROR, _T("K007232SetVolume called with invalid chip %x\n"), chip);
|
||||
#endif
|
||||
|
@ -369,7 +369,7 @@ void K007232SetVolume(INT32 chip, INT32 channel,INT32 volumeA,INT32 volumeB)
|
|||
|
||||
void K007232SetVolumeF(INT32 chip, INT32 channel,INT32 volumeA,INT32 volumeB)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_K007232Initted) bprintf(PRINT_ERROR, _T("K007232SetVolumeF called without init\n"));
|
||||
if (chip >nNumChips) bprintf(PRINT_ERROR, _T("K007232SetVolumeF called with invalid chip %x\n"), chip);
|
||||
#endif
|
||||
|
@ -381,7 +381,7 @@ void K007232SetVolumeF(INT32 chip, INT32 channel,INT32 volumeA,INT32 volumeB)
|
|||
|
||||
void k007232_set_bank(INT32 chip, INT32 chABank, INT32 chBBank )
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_K007232Initted) bprintf(PRINT_ERROR, _T("k007232_set_bank called without init\n"));
|
||||
if (chip >nNumChips) bprintf(PRINT_ERROR, _T("k007232_set_bank called with invalid chip %x\n"), chip);
|
||||
#endif
|
||||
|
|
|
@ -85,7 +85,7 @@ static void make_mixer_table(INT32 voices)
|
|||
/* generate sound to the mix buffer */
|
||||
void K051649Update(INT16 *pBuf, INT32 samples)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_K051649Initted) bprintf(PRINT_ERROR, _T("K051649Update called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -182,7 +182,7 @@ void K051649SetRoute(double nVolume, INT32 nRouteDir)
|
|||
|
||||
void K051649Exit()
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_K051649Initted) bprintf(PRINT_ERROR, _T("K051649Exit called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -200,7 +200,7 @@ void K051649Exit()
|
|||
|
||||
void K051649Reset()
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_K051649Initted) bprintf(PRINT_ERROR, _T("K051649Reset called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -220,7 +220,7 @@ void K051649Reset()
|
|||
|
||||
void K051649Scan(INT32 nAction, INT32 *pnMin)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_K051649Initted) bprintf(PRINT_ERROR, _T("K051649Scan called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -246,7 +246,7 @@ void K051649Scan(INT32 nAction, INT32 *pnMin)
|
|||
|
||||
void K051649WaveformWrite(INT32 offset, INT32 data)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_K051649Initted) bprintf(PRINT_ERROR, _T("K051649WaveformWrite called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -259,7 +259,7 @@ void K051649WaveformWrite(INT32 offset, INT32 data)
|
|||
|
||||
UINT8 K051649WaveformRead(INT32 offset)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_K051649Initted) bprintf(PRINT_ERROR, _T("K051649WaveformRead called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -270,7 +270,7 @@ UINT8 K051649WaveformRead(INT32 offset)
|
|||
/* SY 20001114: Channel 5 doesn't share the waveform with channel 4 on this chip */
|
||||
void K052539WaveformWrite(INT32 offset, INT32 data)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_K051649Initted) bprintf(PRINT_ERROR, _T("K052539WaveformWrite called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -281,7 +281,7 @@ void K052539WaveformWrite(INT32 offset, INT32 data)
|
|||
|
||||
void K051649VolumeWrite(INT32 offset, INT32 data)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_K051649Initted) bprintf(PRINT_ERROR, _T("K051649VolumeWrite called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -292,7 +292,7 @@ void K051649VolumeWrite(INT32 offset, INT32 data)
|
|||
|
||||
void K051649FrequencyWrite(INT32 offset, INT32 data)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_K051649Initted) bprintf(PRINT_ERROR, _T("K051649FrequencyWrite called without init\n"));
|
||||
#endif
|
||||
INT32 freq_hi = offset & 1;
|
||||
|
@ -311,7 +311,7 @@ void K051649FrequencyWrite(INT32 offset, INT32 data)
|
|||
|
||||
void K051649KeyonoffWrite(INT32 data)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_K051649Initted) bprintf(PRINT_ERROR, _T("K051649KeyonoffWrite called without init\n"));
|
||||
#endif
|
||||
|
||||
|
|
|
@ -118,7 +118,7 @@ static void InitDeltaTable(INT32 rate, INT32 clock ) {
|
|||
|
||||
void K053260Reset(INT32 chip)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_K053260Initted) bprintf(PRINT_ERROR, _T("K053260Reset called without init\n"));
|
||||
if (chip > nNumChips) bprintf(PRINT_ERROR, _T("K053260Reset called with invalid chip %x\n"), chip);
|
||||
#endif
|
||||
|
@ -154,7 +154,7 @@ K053260_INLINE INT32 limit( INT32 val, INT32 max, INT32 min ) {
|
|||
|
||||
void K053260Update(INT32 chip, INT16 *pBuf, INT32 length)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_K053260Initted) bprintf(PRINT_ERROR, _T("K053260Update called without init\n"));
|
||||
if (chip > nNumChips) bprintf(PRINT_ERROR, _T("K053260Update called with invalid chip %x\n"), chip);
|
||||
#endif
|
||||
|
@ -314,7 +314,7 @@ void K053260Init(INT32 chip, INT32 clock, UINT8 *rom, INT32 nLen)
|
|||
|
||||
void K053260SetRoute(INT32 chip, INT32 nIndex, double nVolume, INT32 nRouteDir)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_K053260Initted) bprintf(PRINT_ERROR, _T("K053260SetRoute called without init\n"));
|
||||
if (chip >nNumChips) bprintf(PRINT_ERROR, _T("K053260SetRoute called with invalid chip %x\n"), chip);
|
||||
if (nIndex < 0 || nIndex > 1) bprintf(PRINT_ERROR, _T("K053260SetRoute called with invalid index %i\n"), nIndex);
|
||||
|
@ -328,7 +328,7 @@ void K053260SetRoute(INT32 chip, INT32 nIndex, double nVolume, INT32 nRouteDir)
|
|||
|
||||
void K053260Exit()
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_K053260Initted) bprintf(PRINT_ERROR, _T("K053260Exit called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -365,7 +365,7 @@ K053260_INLINE void check_bounds(INT32 channel ) {
|
|||
|
||||
void K053260Write(INT32 chip, INT32 offset, UINT8 data)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_K053260Initted) bprintf(PRINT_ERROR, _T("K053260Write called without init\n"));
|
||||
if (chip > nNumChips) bprintf(PRINT_ERROR, _T("K053260Write called with invalid chip %x\n"), chip);
|
||||
#endif
|
||||
|
@ -484,7 +484,7 @@ void K053260Write(INT32 chip, INT32 offset, UINT8 data)
|
|||
|
||||
UINT8 K053260Read(INT32 chip, INT32 offset)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_K053260Initted) bprintf(PRINT_ERROR, _T("K053260Read called without init\n"));
|
||||
if (chip > nNumChips) bprintf(PRINT_ERROR, _T("K053260Read called with invalid chip %x\n"), chip);
|
||||
#endif
|
||||
|
@ -524,7 +524,7 @@ UINT8 K053260Read(INT32 chip, INT32 offset)
|
|||
|
||||
void K053260Scan(INT32 nAction, INT32 *)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_K053260Initted) bprintf(PRINT_ERROR, _T("K053260Scan called without init\n"));
|
||||
#endif
|
||||
|
||||
|
|
|
@ -74,7 +74,7 @@ static INT32 nPosition[2];
|
|||
|
||||
void K054539_init_flags(INT32 chip, INT32 flags)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_K054539Initted) bprintf(PRINT_ERROR, _T("K054539_init_flags called without init\n"));
|
||||
if (chip > nNumChips) bprintf(PRINT_ERROR, _T("K054539_init_flags called with invalid chip %x\n"), chip);
|
||||
#endif
|
||||
|
@ -85,7 +85,7 @@ void K054539_init_flags(INT32 chip, INT32 flags)
|
|||
|
||||
void K054539_set_gain(INT32 chip, INT32 channel, double gain)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_K054539Initted) bprintf(PRINT_ERROR, _T("K054539_set_gain called without init\n"));
|
||||
if (chip > nNumChips) bprintf(PRINT_ERROR, _T("K054539_set_gain called with invalid chip %x\n"), chip);
|
||||
#endif
|
||||
|
@ -96,7 +96,7 @@ void K054539_set_gain(INT32 chip, INT32 channel, double gain)
|
|||
|
||||
static INT32 k054539_regupdate()
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_K054539Initted) bprintf(PRINT_ERROR, _T("K054539_regupdate called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -105,7 +105,7 @@ static INT32 k054539_regupdate()
|
|||
|
||||
static void k054539_keyon(INT32 channel)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_K054539Initted) bprintf(PRINT_ERROR, _T("K054539_keyon called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -115,7 +115,7 @@ static void k054539_keyon(INT32 channel)
|
|||
|
||||
static void k054539_keyoff(INT32 channel)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_K054539Initted) bprintf(PRINT_ERROR, _T("K054539_keyoff called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -125,7 +125,7 @@ static void k054539_keyoff(INT32 channel)
|
|||
|
||||
void K054539Write(INT32 chip, INT32 offset, UINT8 data)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_K054539Initted) bprintf(PRINT_ERROR, _T("K054539Write called without init\n"));
|
||||
if (chip > nNumChips) bprintf(PRINT_ERROR, _T("K054539Write called with invalid chip %x\n"), chip);
|
||||
#endif
|
||||
|
@ -217,7 +217,7 @@ void K054539Write(INT32 chip, INT32 offset, UINT8 data)
|
|||
|
||||
UINT8 K054539Read(INT32 chip, INT32 offset)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_K054539Initted) bprintf(PRINT_ERROR, _T("K054539Read called without init\n"));
|
||||
if (chip > nNumChips) bprintf(PRINT_ERROR, _T("K054539Read called with invalid chip %x\n"), chip);
|
||||
#endif
|
||||
|
@ -247,7 +247,7 @@ UINT8 K054539Read(INT32 chip, INT32 offset)
|
|||
|
||||
void K054539Reset(INT32 chip)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_K054539Initted) bprintf(PRINT_ERROR, _T("K054539Reset called without init\n"));
|
||||
if (chip > nNumChips) bprintf(PRINT_ERROR, _T("K054539Reset called with invalid chip %x\n"), chip);
|
||||
#endif
|
||||
|
@ -339,7 +339,7 @@ void K054539Init(INT32 chip, INT32 clock, UINT8 *rom, INT32 nLen)
|
|||
|
||||
void K054539SetRoute(INT32 chip, INT32 nIndex, double nVolume, INT32 nRouteDir)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_K054539Initted) bprintf(PRINT_ERROR, _T("K054539SetRoute called without init\n"));
|
||||
if (chip >nNumChips) bprintf(PRINT_ERROR, _T("K054539SetRoute called with invalid chip %x\n"), chip);
|
||||
if (nIndex < 0 || nIndex > 1) bprintf(PRINT_ERROR, _T("K054539SetRoute called with invalid index %i\n"), nIndex);
|
||||
|
@ -353,7 +353,7 @@ void K054539SetRoute(INT32 chip, INT32 nIndex, double nVolume, INT32 nRouteDir)
|
|||
|
||||
void K054539Exit()
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_K054539Initted) bprintf(PRINT_ERROR, _T("K054539Exit called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -380,7 +380,7 @@ static INT32 signdiff(INT32 a, INT32 b)
|
|||
|
||||
void K054539Update(INT32 chip, INT16 *outputs, INT32 samples_len)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_K054539Initted) bprintf(PRINT_ERROR, _T("K054539Update called without init\n"));
|
||||
if (chip > nNumChips) bprintf(PRINT_ERROR, _T("K054539Update called with invalid chip %x\n"), chip);
|
||||
#endif
|
||||
|
@ -673,7 +673,7 @@ void K054539Update(INT32 chip, INT16 *outputs, INT32 samples_len)
|
|||
|
||||
void K054539Scan(INT32 nAction, INT32 *)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_K054539Initted) bprintf(PRINT_ERROR, _T("K054539Scan called without init\n"));
|
||||
#endif
|
||||
|
||||
|
|
|
@ -196,7 +196,7 @@ static void MSM5205_vclk_callback(INT32 chip)
|
|||
|
||||
void MSM5205Render(INT32 chip, INT16 *buffer, INT32 len)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_MSM5205Initted) bprintf(PRINT_ERROR, _T("MSM5205Render called without init\n"));
|
||||
if (chip > nNumChips) bprintf(PRINT_ERROR, _T("MSM5205Render called with invalid chip %x\n"), chip);
|
||||
#endif
|
||||
|
@ -241,7 +241,7 @@ void MSM5205Render(INT32 chip, INT16 *buffer, INT32 len)
|
|||
|
||||
void MSM5205Reset()
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_MSM5205Initted) bprintf(PRINT_ERROR, _T("MSM5205Reset called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -296,7 +296,7 @@ void MSM5205Init(INT32 chip, INT32 (*stream_sync)(INT32), INT32 clock, void (*vc
|
|||
|
||||
void MSM5205SetRoute(INT32 chip, double nVolume, INT32 nRouteDir)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_MSM5205Initted) bprintf(PRINT_ERROR, _T("MSM5205SetRoute called without init\n"));
|
||||
if (chip > nNumChips) bprintf(PRINT_ERROR, _T("MSM5205SetRoute called with invalid chip %x\n"), chip);
|
||||
#endif
|
||||
|
@ -308,7 +308,7 @@ void MSM5205SetRoute(INT32 chip, double nVolume, INT32 nRouteDir)
|
|||
|
||||
void MSM5205SetLeftVolume(INT32 chip, double nLeftVolume)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_MSM5205Initted) bprintf(PRINT_ERROR, _T("MSM5205SetLeftVolume called without init\n"));
|
||||
if (chip > nNumChips) bprintf(PRINT_ERROR, _T("MSM5205SetLeftVolume called with invalid chip %x\n"), chip);
|
||||
#endif
|
||||
|
@ -319,7 +319,7 @@ void MSM5205SetLeftVolume(INT32 chip, double nLeftVolume)
|
|||
|
||||
void MSM5205SetRightVolume(INT32 chip, double nRightVolume)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_MSM5205Initted) bprintf(PRINT_ERROR, _T("MSM5205SetRightVolume called without init\n"));
|
||||
if (chip > nNumChips) bprintf(PRINT_ERROR, _T("MSM5205SetRightVolume called with invalid chip %x\n"), chip);
|
||||
#endif
|
||||
|
@ -330,7 +330,7 @@ void MSM5205SetRightVolume(INT32 chip, double nRightVolume)
|
|||
|
||||
void MSM5205SetSeperateVolumes(INT32 chip, INT32 state)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_MSM5205Initted) bprintf(PRINT_ERROR, _T("MSM5205SetSeperateVolumes called without init\n"));
|
||||
if (chip > nNumChips) bprintf(PRINT_ERROR, _T("MSM5205SetSeperateVolumes called with invalid chip %x\n"), chip);
|
||||
#endif
|
||||
|
@ -341,7 +341,7 @@ void MSM5205SetSeperateVolumes(INT32 chip, INT32 state)
|
|||
|
||||
void MSM5205Exit()
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_MSM5205Initted) bprintf(PRINT_ERROR, _T("MSM5205Exit called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -367,7 +367,7 @@ void MSM5205Exit()
|
|||
|
||||
void MSM5205VCLKWrite(INT32 chip, INT32 vclk)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_MSM5205Initted) bprintf(PRINT_ERROR, _T("MSM5205VCLKWrite called without init\n"));
|
||||
if (chip > nNumChips) bprintf(PRINT_ERROR, _T("MSM5205VCLKWrite called with invalid chip %x\n"), chip);
|
||||
#endif
|
||||
|
@ -386,7 +386,7 @@ void MSM5205VCLKWrite(INT32 chip, INT32 vclk)
|
|||
|
||||
void MSM5205ResetWrite(INT32 chip, INT32 reset)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_MSM5205Initted) bprintf(PRINT_ERROR, _T("MSM5205ResetWrite called without init\n"));
|
||||
if (chip > nNumChips) bprintf(PRINT_ERROR, _T("MSM5205ResetWrite called with invalid chip %x\n"), chip);
|
||||
#endif
|
||||
|
@ -397,7 +397,7 @@ void MSM5205ResetWrite(INT32 chip, INT32 reset)
|
|||
|
||||
void MSM5205DataWrite(INT32 chip, INT32 data)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_MSM5205Initted) bprintf(PRINT_ERROR, _T("MSM5205DataWrite called without init\n"));
|
||||
if (chip > nNumChips) bprintf(PRINT_ERROR, _T("MSM5205DataWrite called with invalid chip %x\n"), chip);
|
||||
#endif
|
||||
|
@ -412,7 +412,7 @@ void MSM5205DataWrite(INT32 chip, INT32 data)
|
|||
|
||||
void MSM5205PlaymodeWrite(INT32 chip, INT32 select)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_MSM5205Initted) bprintf(PRINT_ERROR, _T("MSM5205PlaymodeWrite called without init\n"));
|
||||
if (chip > nNumChips) bprintf(PRINT_ERROR, _T("MSM5205PlaymodeWrite called with invalid chip %x\n"), chip);
|
||||
#endif
|
||||
|
@ -441,7 +441,7 @@ void MSM5205NewFrame(INT32 chip, INT32 cpu_speed, INT32 interleave)
|
|||
|
||||
void MSM5205UpdateScanline(INT32 scanline)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_MSM5205Initted) bprintf(PRINT_ERROR, _T("MSM5205UpdateScanline called without init\n"));
|
||||
#endif
|
||||
if (scanline_table[scanline]) {
|
||||
|
@ -451,7 +451,7 @@ void MSM5205UpdateScanline(INT32 scanline)
|
|||
|
||||
void MSM5205Update()
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_MSM5205Initted) bprintf(PRINT_ERROR, _T("MSM5205Update called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -472,7 +472,7 @@ void MSM5205Update()
|
|||
// see MSM5205_playmode for a more in-depth explanation of this
|
||||
INT32 MSM5205CalcInterleave(INT32 chip, INT32 cpu_speed)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_MSM5205Initted) bprintf(PRINT_ERROR, _T("MSM5205CalcInterleave called without init\n"));
|
||||
if (chip > nNumChips) bprintf(PRINT_ERROR, _T("MSM5205CalcInterleave called with invalid chip %x\n"), chip);
|
||||
#endif
|
||||
|
@ -492,7 +492,7 @@ INT32 MSM5205CalcInterleave(INT32 chip, INT32 cpu_speed)
|
|||
|
||||
void MSM5205Scan(INT32 nAction, INT32 *pnMin)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_MSM5205Initted) bprintf(PRINT_ERROR, _T("MSM5205Scan called without init\n"));
|
||||
#endif
|
||||
|
||||
|
|
|
@ -86,7 +86,7 @@ static void gate_update()
|
|||
|
||||
void MSM5232SetGateCallback(void (*callback)(INT32))
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_MSM5232Initted) bprintf(PRINT_ERROR, _T("MSM5232SetGateCallback called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -100,7 +100,7 @@ void MSM5232SetGateCallback(void (*callback)(INT32))
|
|||
|
||||
void MSM5232Reset()
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_MSM5232Initted) bprintf(PRINT_ERROR, _T("MSM5232Reset called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -134,7 +134,7 @@ void MSM5232Reset()
|
|||
|
||||
void MSM5232SetCapacitors(double cap1, double cap2, double cap3, double cap4, double cap5, double cap6, double cap7, double cap8)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_MSM5232Initted) bprintf(PRINT_ERROR, _T("MSM5232SetCapacitors called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -295,7 +295,7 @@ void MSM5232Init(INT32 clock, INT32 bAdd)
|
|||
|
||||
void MSM5232Exit()
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_MSM5232Initted) bprintf(PRINT_ERROR, _T("MSM5232Exit called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -313,7 +313,7 @@ void MSM5232Exit()
|
|||
|
||||
void MSM5232SetRoute(double vol, INT32 route)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_MSM5232Initted) bprintf(PRINT_ERROR, _T("MSM5232SetRoute called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -322,7 +322,7 @@ void MSM5232SetRoute(double vol, INT32 route)
|
|||
|
||||
void MSM5232Write(INT32 offset, UINT8 data)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_MSM5232Initted) bprintf(PRINT_ERROR, _T("MSM5232Write called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -637,7 +637,7 @@ static void TG_group_advance(INT32 groupidx)
|
|||
|
||||
void MSM5232SetClock(INT32 clock)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_MSM5232Initted) bprintf(PRINT_ERROR, _T("MSM5232SetClock called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -662,7 +662,7 @@ void MSM5232SetClock(INT32 clock)
|
|||
|
||||
void MSM5232Update(INT16 *buffer, INT32 samples)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_MSM5232Initted) bprintf(PRINT_ERROR, _T("MSM5232Update called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -773,7 +773,7 @@ void MSM5232Update(INT16 *buffer, INT32 samples)
|
|||
|
||||
void MSM5232Scan(INT32 nAction, INT32 *)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_MSM5232Initted) bprintf(PRINT_ERROR, _T("MSM5232Scan called without init\n"));
|
||||
#endif
|
||||
|
||||
|
|
|
@ -47,7 +47,7 @@ INT32 nLastMSM6295Chip;
|
|||
|
||||
void MSM6295SetBank(INT32 nChip, UINT8 *pRomData, INT32 nStart, INT32 nEnd)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_MSM6295Initted) bprintf(PRINT_ERROR, _T("MSM6295SetBank called without init\n"));
|
||||
if (nChip > nLastMSM6295Chip) bprintf(PRINT_ERROR, _T("MSM6295SetBank called with invalid chip number %x\n"), nChip);
|
||||
if (nStart >= nEnd || nStart < 0 || nStart >= 0x40000) bprintf(PRINT_ERROR, _T("MSM6295SetBank (Chip %d) called with invalid nStart %x\n"), nChip, nStart);
|
||||
|
@ -65,7 +65,7 @@ void MSM6295SetBank(INT32 nChip, UINT8 *pRomData, INT32 nStart, INT32 nEnd)
|
|||
}
|
||||
}
|
||||
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
static inline UINT8 MSM6295ReadData(INT32 nChip, UINT32 nAddress)
|
||||
{
|
||||
nAddress &= 0x3ffff;
|
||||
|
@ -96,7 +96,7 @@ static bool bAdd;
|
|||
|
||||
void MSM6295Reset(INT32 nChip)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_MSM6295Initted) bprintf(PRINT_ERROR, _T("MSM6295Reset called without init\n"));
|
||||
if (nChip > nLastMSM6295Chip) bprintf(PRINT_ERROR, _T("MSM6295Reset called with invalid chip number %x\n"), nChip);
|
||||
#endif
|
||||
|
@ -123,7 +123,7 @@ void MSM6295Reset(INT32 nChip)
|
|||
|
||||
void MSM6295Reset()
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_MSM6295Initted) bprintf(PRINT_ERROR, _T("MSM6295Reset called without init\n"));
|
||||
#endif
|
||||
for (INT32 nChip = 0; nChip <= nLastMSM6295Chip; nChip++)
|
||||
|
@ -134,7 +134,7 @@ void MSM6295Reset()
|
|||
|
||||
void MSM6295Scan(INT32 , INT32 *)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_MSM6295Initted) bprintf(PRINT_ERROR, _T("MSM6295Scan called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -355,7 +355,7 @@ static void MSM6295Render_Cubic(INT32 nChip, INT32* pLeftBuf, INT32 *pRightBuf,
|
|||
|
||||
INT32 MSM6295Render(INT32 nChip, INT16* pSoundBuf, INT32 nSegmentLength) // render per-chip
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_MSM6295Initted) bprintf(PRINT_ERROR, _T("MSM6295Render called without init\n"));
|
||||
if (nChip > nLastMSM6295Chip) bprintf(PRINT_ERROR, _T("MSM6295Render called with invalid chip number %x\n"), nChip);
|
||||
#endif
|
||||
|
@ -389,7 +389,7 @@ INT32 MSM6295Render(INT32 nChip, INT16* pSoundBuf, INT32 nSegmentLength) // rend
|
|||
|
||||
INT32 MSM6295Render(INT16* pSoundBuf, INT32 nSegmentLength) // render all chips
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_MSM6295Initted) bprintf(PRINT_ERROR, _T("MSM6295Render called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -403,7 +403,7 @@ INT32 MSM6295Render(INT16* pSoundBuf, INT32 nSegmentLength) // render all chips
|
|||
|
||||
void MSM6295Write(INT32 nChip, UINT8 nCommand)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_MSM6295Initted) bprintf(PRINT_ERROR, _T("MSM6295Write called without init\n"));
|
||||
if (nChip > nLastMSM6295Chip) bprintf(PRINT_ERROR, _T("MSM6295Write called with invalid chip number %x\n"), nChip);
|
||||
#endif
|
||||
|
@ -478,7 +478,7 @@ void MSM6295Write(INT32 nChip, UINT8 nCommand)
|
|||
|
||||
void MSM6295Exit(INT32 nChip)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_MSM6295Initted) bprintf(PRINT_ERROR, _T("MSM6295Exit called without init\n"));
|
||||
if (nChip > nLastMSM6295Chip) bprintf(PRINT_ERROR, _T("MSM6295Exit called with invalid chip number %x\n"), nChip);
|
||||
#endif
|
||||
|
@ -499,7 +499,7 @@ void MSM6295Exit(INT32 nChip)
|
|||
|
||||
void MSM6295Exit()
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_MSM6295Initted) bprintf(PRINT_ERROR, _T("MSM6295Exit called without init\n"));
|
||||
#endif
|
||||
for (INT32 nChip = 0; nChip <= nLastMSM6295Chip; nChip++)
|
||||
|
@ -605,7 +605,7 @@ INT32 MSM6295Init(INT32 nChip, INT32 nSamplerate, bool bAddSignal)
|
|||
|
||||
void MSM6295SetRoute(INT32 nChip, double nVolume, INT32 nRouteDir)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_MSM6295Initted) bprintf(PRINT_ERROR, _T("MSM6295SetRoute called without init\n"));
|
||||
if (nChip > nLastMSM6295Chip) bprintf(PRINT_ERROR, _T("MSM6295SetRoute called with invalid chip %i\n"), nChip);
|
||||
#endif
|
||||
|
|
|
@ -25,7 +25,7 @@ void MSM6295SetBank(INT32 nChip, UINT8 *pRomData, INT32 nStart, INT32 nEnd);
|
|||
|
||||
inline static UINT32 MSM6295Read(const INT32 nChip)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
extern INT32 nLastMSM6295Chip;
|
||||
if (!DebugSnd_MSM6295Initted) bprintf(PRINT_ERROR, _T("MSM6295Read called without init\n"));
|
||||
if (nChip > nLastMSM6295Chip) bprintf(PRINT_ERROR, _T("MSM6295Read called with invalid chip %x\n"), nChip);
|
||||
|
|
|
@ -112,7 +112,7 @@ void NamcoSoundSetBuffered(INT32 (*pCPUCyclesCB)(), INT32 nCpuMHZ)
|
|||
|
||||
void NamcoSoundUpdate(INT16* pSoundBuf, INT32 Length)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_NamcoSndInitted) bprintf(PRINT_ERROR, _T("NamcoSoundUpdate called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -416,7 +416,7 @@ static void NamcoSoundUpdateStereo_INT(INT16* buffer, INT32 length)
|
|||
|
||||
void NamcoSoundWrite(UINT32 offset, UINT8 data)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_NamcoSndInitted) bprintf(PRINT_ERROR, _T("NamcoSoundWrite called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -584,7 +584,7 @@ void namco_15xx_sound_enable(INT32 value)
|
|||
|
||||
void namcos1_custom30_write(INT32 offset, INT32 data)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_NamcoSndInitted) bprintf(PRINT_ERROR, _T("namcos1_custom30_write called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -607,7 +607,7 @@ void namcos1_custom30_write(INT32 offset, INT32 data)
|
|||
|
||||
UINT8 namcos1_custom30_read(INT32 offset)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_NamcoSndInitted) bprintf(PRINT_ERROR, _T("namcos1_custom30_read called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -667,7 +667,7 @@ static INT32 build_decoded_waveform()
|
|||
|
||||
void NamcoSoundReset()
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_NamcoSndInitted) bprintf(PRINT_ERROR, _T("NamcoSoundReset called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -749,7 +749,7 @@ void NamcoSoundInit(INT32 clock, INT32 num_voices, INT32 bAdd)
|
|||
|
||||
void NamcoSoundSetRoute(INT32 nIndex, double nVolume, INT32 nRouteDir)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_NamcoSndInitted) bprintf(PRINT_ERROR, _T("NamcoSoundSetRoute called without init\n"));
|
||||
if (nIndex < 0 || nIndex > 1) bprintf(PRINT_ERROR, _T("NamcoSoundSetRoute called with invalid index %i\n"), nIndex);
|
||||
#endif
|
||||
|
@ -760,7 +760,7 @@ void NamcoSoundSetRoute(INT32 nIndex, double nVolume, INT32 nRouteDir)
|
|||
|
||||
void NamcoSoundExit()
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_NamcoSndInitted) bprintf(PRINT_ERROR, _T("NamcoSoundExit called without init\n"));
|
||||
#endif
|
||||
|
||||
|
|
|
@ -662,7 +662,7 @@ static inline void apu_update(struct nesapu_info *info)
|
|||
/* READ VALUES FROM REGISTERS */
|
||||
UINT8 nesapuRead(INT32 chip, INT32 address)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_NESAPUSndInitted) bprintf(PRINT_ERROR, _T("nesapuRead called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -697,7 +697,7 @@ UINT8 nesapuRead(INT32 chip, INT32 address)
|
|||
/* WRITE VALUE TO TEMP REGISTRY AND QUEUE EVENT */
|
||||
void nesapuWrite(INT32 chip, INT32 address, UINT8 value)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_NESAPUSndInitted) bprintf(PRINT_ERROR, _T("nesapuWrite called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -715,7 +715,7 @@ void nesapuWrite(INT32 chip, INT32 address, UINT8 value)
|
|||
/* UPDATE APU SYSTEM */
|
||||
void nesapuUpdate(INT32 chip, INT16 *buf, INT32 samples)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_NESAPUSndInitted) bprintf(PRINT_ERROR, _T("nesapuUpdate called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -777,7 +777,7 @@ void nesapuUpdate(INT32 chip, INT16 *buf, INT32 samples)
|
|||
|
||||
void nesapuReset()
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_NESAPUSndInitted) bprintf(PRINT_ERROR, _T("nesapuReset called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -883,7 +883,7 @@ void nesapuInit(INT32 chip, INT32 clock, UINT32 (*pSyncCallback)(INT32 samples_p
|
|||
|
||||
void nesapuSetRoute(INT32 nChip, INT32 nIndex, double nVolume, INT32 nRouteDir)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_NESAPUSndInitted) bprintf(PRINT_ERROR, _T("nesapuSetRoute called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -895,7 +895,7 @@ void nesapuSetRoute(INT32 nChip, INT32 nIndex, double nVolume, INT32 nRouteDir)
|
|||
|
||||
void nesapuExit()
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_NESAPUSndInitted) bprintf(PRINT_ERROR, _T("nesapuExit called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -914,7 +914,7 @@ void nesapuExit()
|
|||
|
||||
void nesapuScan(INT32 nAction, INT32 *)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_NESAPUSndInitted) bprintf(PRINT_ERROR, _T("nesapuScan called without init\n"));
|
||||
#endif
|
||||
|
||||
|
|
|
@ -39,7 +39,7 @@ static INT32 *right = NULL;
|
|||
|
||||
void RF5C68PCMUpdate(INT16* pSoundBuf, INT32 length)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_RF5C68Initted) bprintf(PRINT_ERROR, _T("RF5C68PCMUpdate called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -115,7 +115,7 @@ void RF5C68PCMUpdate(INT16* pSoundBuf, INT32 length)
|
|||
|
||||
void RF5C68PCMReset()
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_RF5C68Initted) bprintf(PRINT_ERROR, _T("RF5C68PCMReset called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -143,7 +143,7 @@ void RF5C68PCMInit(INT32 clock)
|
|||
|
||||
void RF5C68PCMSetRoute(INT32 nIndex, double nVolume, INT32 nRouteDir)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_RF5C68Initted) bprintf(PRINT_ERROR, _T("RF5C68PCMSetRoute called without init\n"));
|
||||
if (nIndex < 0 || nIndex > 1) bprintf(PRINT_ERROR, _T("RF5C68PCMSetRoute called with invalid index %i\n"), nIndex);
|
||||
#endif
|
||||
|
@ -154,7 +154,7 @@ void RF5C68PCMSetRoute(INT32 nIndex, double nVolume, INT32 nRouteDir)
|
|||
|
||||
void RF5C68PCMExit()
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_RF5C68Initted) bprintf(PRINT_ERROR, _T("RF5C68PCMExit called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -185,7 +185,7 @@ void RF5C68PCMScan(INT32 nAction, INT32 *)
|
|||
|
||||
void RF5C68PCMRegWrite(UINT8 offset, UINT8 data)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_RF5C68Initted) bprintf(PRINT_ERROR, _T("RF5C68PCMReqWrite called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -254,7 +254,7 @@ void RF5C68PCMRegWrite(UINT8 offset, UINT8 data)
|
|||
|
||||
UINT8 RF5C68PCMRead(UINT16 offset)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_RF5C68Initted) bprintf(PRINT_ERROR, _T("RF5C68PCMRead called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -263,7 +263,7 @@ UINT8 RF5C68PCMRead(UINT16 offset)
|
|||
|
||||
void RF5C68PCMWrite(UINT16 offset, UINT8 data)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_RF5C68Initted) bprintf(PRINT_ERROR, _T("RF5C68PCMWrite called without init\n"));
|
||||
#endif
|
||||
|
||||
|
|
|
@ -212,7 +212,7 @@ static void saa1099_envelope(saa1099_state *saa, INT32 ch)
|
|||
|
||||
void saa1099Update(INT32 chip, INT16 *output, INT32 samples)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_SAA1099Initted) bprintf(PRINT_ERROR, _T("saa1099Update called without init\n"));
|
||||
if (chip > nNumChips) bprintf(PRINT_ERROR, _T("saa1099Update called with invalid chip %x\n"), chip);
|
||||
#endif
|
||||
|
@ -333,7 +333,7 @@ void saa1099Update(INT32 chip, INT16 *output, INT32 samples)
|
|||
|
||||
void saa1099Reset(INT32 chip)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_SAA1099Initted) bprintf(PRINT_ERROR, _T("saa1099Reset called without init\n"));
|
||||
if (chip > nNumChips) bprintf(PRINT_ERROR, _T("saa1099Reset called with invalid chip %x\n"), chip);
|
||||
#endif
|
||||
|
@ -375,7 +375,7 @@ void saa1099Init(INT32 chip, INT32 clock, INT32 bAdd)
|
|||
|
||||
void saa1099SetRoute(INT32 chip, INT32 nIndex, double nVolume, INT32 nRouteDir)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_SAA1099Initted) bprintf(PRINT_ERROR, _T("saa1099SetRoute called without init\n"));
|
||||
if (chip > nNumChips) bprintf(PRINT_ERROR, _T("saa1099SetRoute called with invalid chip %x\n"), chip);
|
||||
if (nIndex < 0 || nIndex > 1) bprintf(PRINT_ERROR, _T("saa1099SetRoute called with invalid index %i\n"), nIndex);
|
||||
|
@ -389,7 +389,7 @@ void saa1099SetRoute(INT32 chip, INT32 nIndex, double nVolume, INT32 nRouteDir)
|
|||
|
||||
void saa1099Exit(INT32 )
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_SAA1099Initted) bprintf(PRINT_ERROR, _T("saa1099Exit called without init\n"));
|
||||
#endif
|
||||
|
||||
|
@ -399,7 +399,7 @@ void saa1099Exit(INT32 )
|
|||
|
||||
void saa1099ControlWrite(INT32 chip, INT32 data)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_SAA1099Initted) bprintf(PRINT_ERROR, _T("saa1099ControlWrite called without init\n"));
|
||||
if (chip > nNumChips) bprintf(PRINT_ERROR, _T("saa1099ControlWrite called with invalid chip %x\n"), chip);
|
||||
#endif
|
||||
|
@ -420,7 +420,7 @@ void saa1099ControlWrite(INT32 chip, INT32 data)
|
|||
|
||||
void saa1099DataWrite(INT32 chip, INT32 data)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_SAA1099Initted) bprintf(PRINT_ERROR, _T("saa1099DataWrite called without init\n"));
|
||||
if (chip > nNumChips) bprintf(PRINT_ERROR, _T("saa1099DataWrite called with invalid chip %x\n"), chip);
|
||||
#endif
|
||||
|
@ -504,7 +504,7 @@ void saa1099DataWrite(INT32 chip, INT32 data)
|
|||
|
||||
void saa1099Scan(INT32 nAction, INT32 *)
|
||||
{
|
||||
#if defined FBA_DEBUG
|
||||
#if defined FBNEO_DEBUG
|
||||
if (!DebugSnd_SAA1099Initted) bprintf(PRINT_ERROR, _T("saa1099Scan called without init\n"));
|
||||
#endif
|
||||
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue