more random cleanup (nw)

This commit is contained in:
Vas Crabb 2020-04-04 07:03:38 +11:00
parent 17f760e9b3
commit bce3221075
6 changed files with 15 additions and 19 deletions

View File

@ -739,15 +739,15 @@ void intelfsh_device::write_full(uint32_t address, uint32_t data)
logerror("Invalid flash mode byte %x\n", data & 0xff);
else
{
m_status = 0x80;
m_flash_mode = FM_READSTATUS;
m_status = 0x80;
m_flash_mode = FM_READSTATUS;
}
break;
case 0x20: // block erase
if (m_type == FLASH_SST_49LF020)
logerror("Unknown flash mode byte %x\n", data & 0xff);
else
m_flash_mode = FM_CLEARPART1;
m_flash_mode = FM_CLEARPART1;
break;
case 0x60: // set master lock
m_flash_mode = FM_SETMASTER;
@ -923,7 +923,7 @@ void intelfsh_device::write_full(uint32_t address, uint32_t data)
memset(&m_data[0x3C000], 0xff, 0x04000);
}
else
memset(&m_data[0], 0xff, m_size);
memset(&m_data[0], 0xff, m_size);
m_status = 1 << 3;
m_flash_mode = FM_ERASEAMD4;

View File

@ -10,12 +10,11 @@
#include "sunplus_gcm394.h"
#define LOG_GCM394_SPI (1U << 4)
#define LOG_GCM394_IO (1U << 3)
#define LOG_GCM394_SYSDMA (1U << 2)
#define LOG_GCM394 (1U << 1)
#define LOG_GCM394_UNMAPPED (1U << 0)
#define LOG_GCM394_SPI (1U << 5)
#define LOG_GCM394_IO (1U << 4)
#define LOG_GCM394_SYSDMA (1U << 3)
#define LOG_GCM394 (1U << 2)
#define LOG_GCM394_UNMAPPED (1U << 1)
#define VERBOSE (LOG_GCM394 | LOG_GCM394_UNMAPPED | LOG_GCM394_SYSDMA)
#include "logmacro.h"
@ -124,7 +123,7 @@ READ16_MEMBER(sunplus_gcm394_base_device::system_dma_status_r)
// bit 0 = channel 0 ready
// bit 1 = channel 1 ready
return 0x00FF;
return 0x00ff;
}
void sunplus_gcm394_base_device::trigger_systemm_dma(address_space &space, int channel)

View File

@ -3,8 +3,8 @@
// Samsung KS0164 wavetable chip
#ifndef DEVICES_SOUND_KS0164_H
#define DEVICES_SOUND_KS0164_H
#ifndef MAME_SOUND_KS0164_H
#define MAME_SOUND_KS0164_H
#pragma once

View File

@ -7,10 +7,9 @@
#include "emu.h"
#include "video/ppu2c0x_sh6578.h"
#define LOG_PPU_EXTRA (1U << 0)
#define LOG_PPU_EXTRA (1U << 1)
//#define VERBOSE (LOG_PPU_EXTRA)
#define VERBOSE (0)
#include "logmacro.h"

View File

@ -20,8 +20,8 @@
#include "machine/bankdev.h"
#include "machine/timer.h"
#define LOG_DMA (1U << 1)
#define LOG_PPU (1U << 0)
#define LOG_DMA (1U << 2)
#define LOG_PPU (1U << 1)
//#define VERBOSE (LOG_PPU)
#define VERBOSE (0)

View File

@ -1873,5 +1873,3 @@ void generalplus_gpspispi_game_state::init_spi()
CONS(200?, bkrankp, 0, 0, generalplus_gpspispi_bkrankp, gcm394, generalplus_gpspispi_bkrankp_game_state , init_spi, "Bandai", "Karaoke Ranking Party (Japan)", MACHINE_NOT_WORKING | MACHINE_IMPERFECT_SOUND)