mirror of
https://github.com/holub/mame
synced 2025-04-24 17:30:55 +03:00
(MESS) Minor debugging stuff and using freq constant (nw)
This commit is contained in:
parent
f48385742c
commit
2e3eafc3fb
@ -125,6 +125,7 @@ enum
|
||||
|
||||
// Log addresses of executed opcodes
|
||||
#define TRACE_EXEC 0
|
||||
#define TRACE_CYCLES 0
|
||||
|
||||
// This is the previous debugging approach which will be replaced by the
|
||||
// specific switches above
|
||||
@ -1501,7 +1502,7 @@ void tms9995_device::next_command()
|
||||
void tms9995_device::command_completed()
|
||||
{
|
||||
// Pseudo state at the end of the current instruction cycle sequence
|
||||
if (VERBOSE>4)
|
||||
if (TRACE_CYCLES)
|
||||
{
|
||||
LOG("tms9995: +++++ Instruction %04x (%s) completed", m_instruction->IR, opname[m_instruction->command]);
|
||||
int cycles = m_first_cycle - m_icount;
|
||||
|
@ -1039,7 +1039,7 @@ MACHINE_RESET_MEMBER(ti99_8_state, ti99_8)
|
||||
static MACHINE_CONFIG_START( ti99_8_60hz, ti99_8_state )
|
||||
/* basic machine hardware */
|
||||
/* TMS9995-MP9537 CPU @ 10.7 MHz */
|
||||
MCFG_TMS99xx_ADD("maincpu", TMS9995, 10738635, memmap, crumap, ti99_8_processor_config)
|
||||
MCFG_TMS99xx_ADD("maincpu", TMS9995, XTAL_10_738635MHz, memmap, crumap, ti99_8_processor_config)
|
||||
MCFG_MACHINE_START_OVERRIDE(ti99_8_state, ti99_8 )
|
||||
MCFG_MACHINE_RESET_OVERRIDE(ti99_8_state, ti99_8 )
|
||||
|
||||
@ -1047,7 +1047,7 @@ static MACHINE_CONFIG_START( ti99_8_60hz, ti99_8_state )
|
||||
MCFG_TI998_ADD_NTSC(VIDEO_SYSTEM_TAG, TMS9118, ti99_8_tms9118a_interface)
|
||||
|
||||
/* Main board */
|
||||
MCFG_TMS9901_ADD( TMS9901_TAG, tms9901_wiring_ti99_8, 2684658.75 )
|
||||
MCFG_TMS9901_ADD( TMS9901_TAG, tms9901_wiring_ti99_8, XTAL_10_738635MHz/4.0)
|
||||
MCFG_MAINBOARD8_ADD( MAINBOARD8_TAG, mapper_conf )
|
||||
MCFG_TI99_GROMPORT_ADD( GROMPORT_TAG, console_cartslot )
|
||||
|
||||
@ -1084,7 +1084,7 @@ MACHINE_CONFIG_END
|
||||
static MACHINE_CONFIG_START( ti99_8_50hz, ti99_8_state )
|
||||
/* basic machine hardware */
|
||||
/* TMS9995-MP9537 CPU @ 10.7 MHz */
|
||||
MCFG_TMS99xx_ADD("maincpu", TMS9995, 10738635, memmap, crumap, ti99_8_processor_config)
|
||||
MCFG_TMS99xx_ADD("maincpu", TMS9995, XTAL_10_738635MHz, memmap, crumap, ti99_8_processor_config)
|
||||
MCFG_MACHINE_START_OVERRIDE(ti99_8_state, ti99_8 )
|
||||
MCFG_MACHINE_RESET_OVERRIDE(ti99_8_state, ti99_8 )
|
||||
|
||||
@ -1092,7 +1092,7 @@ static MACHINE_CONFIG_START( ti99_8_50hz, ti99_8_state )
|
||||
MCFG_TI998_ADD_PAL(VIDEO_SYSTEM_TAG, TMS9129, ti99_8_tms9118a_interface)
|
||||
|
||||
/* Main board */
|
||||
MCFG_TMS9901_ADD( TMS9901_TAG, tms9901_wiring_ti99_8, 2684658.75 )
|
||||
MCFG_TMS9901_ADD( TMS9901_TAG, tms9901_wiring_ti99_8, XTAL_10_738635MHz/4.0 )
|
||||
MCFG_MAINBOARD8_ADD( MAINBOARD8_TAG, mapper_conf )
|
||||
MCFG_TI99_GROMPORT_ADD( GROMPORT_TAG, console_cartslot )
|
||||
|
||||
|
@ -87,8 +87,7 @@
|
||||
#include "emu.h"
|
||||
#include "grom.h"
|
||||
|
||||
#define LOG logerror
|
||||
#define VERBOSE 1
|
||||
#define TRACE_ADDRESS 0
|
||||
|
||||
/*
|
||||
Constructor.
|
||||
@ -139,6 +138,7 @@ READ8Z_MEMBER( ti99_grom_device::readz )
|
||||
{
|
||||
// GROMs are buffered. Data is retrieved from a buffer,
|
||||
// while the buffer is replaced with the next cell content.
|
||||
if (TRACE_ADDRESS) if (m_ident==0) logerror("grom0: %04x = %02x\n", m_address-1, m_buffer);
|
||||
*value = m_buffer;
|
||||
// Get next value, put it in buffer. Note that the GROM
|
||||
// wraps at 8K boundaries.
|
||||
@ -191,6 +191,7 @@ WRITE8_MEMBER( ti99_grom_device::write )
|
||||
m_buffer = m_memptr[m_address-(m_ident<<13)];
|
||||
}
|
||||
m_waddr_LSB = false;
|
||||
if (TRACE_ADDRESS) if (m_ident==0) logerror("grom0: %04x\n", m_address);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -32,7 +32,8 @@
|
||||
#define JOYPORT_TAG "joyport"
|
||||
#define VDP_TAG "vdp"
|
||||
|
||||
#define GROMFREQ 10700000.0/24
|
||||
#define VDPFREQ XTAL_10_738635MHz
|
||||
#define GROMFREQ VDPFREQ/24
|
||||
|
||||
// TI-99/8
|
||||
#define SRAM_TAG "sram8"
|
||||
|
Loading…
Reference in New Issue
Block a user