mirror of
https://github.com/holub/mame
synced 2025-04-24 09:20:02 +03:00
Some quick & dirty debug hook-up with a define
This commit is contained in:
parent
9d49e6cff7
commit
d4a6793108
@ -39,7 +39,7 @@ Everything but p911uc might be a bad dump.
|
||||
#include "machine/timekpr.h"
|
||||
#include "video/voodoo.h"
|
||||
|
||||
|
||||
//#define VIPER_DEBUG_LOG
|
||||
|
||||
static VIDEO_UPDATE(viper)
|
||||
{
|
||||
@ -48,13 +48,14 @@ static VIDEO_UPDATE(viper)
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*****************************************************************************/
|
||||
|
||||
static UINT32 mpc8240_regs[256/4];
|
||||
static UINT32 mpc8240_pci_r(const device_config *busdevice, const device_config *device, int function, int reg, UINT32 mem_mask)
|
||||
{
|
||||
// printf("MPC8240: PCI read %d, %02X, %08X\n", function, reg, mem_mask);
|
||||
#ifdef VIPER_DEBUG_LOG
|
||||
printf("MPC8240: PCI read %d, %02X, %08X\n", function, reg, mem_mask);
|
||||
#endif
|
||||
|
||||
switch (reg)
|
||||
{
|
||||
@ -65,7 +66,10 @@ static UINT32 mpc8240_pci_r(const device_config *busdevice, const device_config
|
||||
|
||||
static void mpc8240_pci_w(const device_config *busdevice, const device_config *device, int function, int reg, UINT32 data, UINT32 mem_mask)
|
||||
{
|
||||
// printf("MPC8240: PCI write %d, %02X, %08X, %08X\n", function, reg, data, mem_mask);
|
||||
#ifdef VIPER_DEBUG_LOG
|
||||
printf("MPC8240: PCI write %d, %02X, %08X, %08X\n", function, reg, data, mem_mask);
|
||||
#endif
|
||||
|
||||
COMBINE_DATA(mpc8240_regs + (reg/4));
|
||||
}
|
||||
|
||||
@ -99,7 +103,9 @@ static READ32_HANDLER( epic_r )
|
||||
int reg;
|
||||
reg = offset * 4;
|
||||
|
||||
//printf("EPIC: read %08X, %08X at %08X\n", reg, mem_mask, cpu_get_pc(space->cpu));
|
||||
#ifdef VIPER_DEBUG_LOG
|
||||
printf("EPIC: read %08X, %08X at %08X\n", reg, mem_mask, cpu_get_pc(space->cpu));
|
||||
#endif
|
||||
|
||||
switch (reg >> 16)
|
||||
{
|
||||
@ -124,7 +130,9 @@ static WRITE32_HANDLER( epic_w )
|
||||
int reg;
|
||||
reg = offset * 4;
|
||||
|
||||
//printf("EPIC: write %08X, %08X, %08X at %08X\n", data, reg, mem_mask, cpu_get_pc(space->cpu));
|
||||
#ifdef VIPER_DEBUG_LOG
|
||||
printf("EPIC: write %08X, %08X, %08X at %08X\n", data, reg, mem_mask, cpu_get_pc(space->cpu));
|
||||
#endif
|
||||
|
||||
switch (reg >> 16)
|
||||
{
|
||||
@ -275,7 +283,9 @@ static READ64_DEVICE_HANDLER(cf_card_r)
|
||||
|
||||
static WRITE64_DEVICE_HANDLER(cf_card_w)
|
||||
{
|
||||
//printf("%s:compact_flash_w: %08X%08X, %08X, %08X%08X\n", cpuexec_describe_context(device->machine), (UINT32)(data>>32), (UINT32)(data), offset, (UINT32)(mem_mask >> 32), (UINT32)(mem_mask));
|
||||
#ifdef VIPER_DEBUG_LOG
|
||||
printf("%s:compact_flash_w: %08X%08X, %08X, %08X%08X\n", cpuexec_describe_context(device->machine), (UINT32)(data>>32), (UINT32)(data), offset, (UINT32)(mem_mask >> 32), (UINT32)(mem_mask));
|
||||
#endif
|
||||
|
||||
if (ACCESSING_BITS_16_31)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user