write to the log whenever an unknown output pla config is encountered (nw)

This commit is contained in:
Wilbert Pol 2012-12-22 19:36:08 +00:00
parent 9bb6a4a82e
commit bf1baa57f3

View File

@ -960,9 +960,12 @@ static CPU_EXECUTE( tms0980 )
if ( cpustate->m_decode & F_TDO ) if ( cpustate->m_decode & F_TDO )
{ {
/* Calculate O-outputs based on status latch, A, and the output PLA configuration */ /* Calculate O-outputs based on status latch, A, and the output PLA configuration */
//printf("o output m_status_latch = %X, m_a = %X\n", cpustate->m_status_latch, cpustate->m_a);
cpustate->m_o = cpustate->config->o_pla[ ( cpustate->m_status_latch << 4 ) | cpustate->m_a ]; cpustate->m_o = cpustate->config->o_pla[ ( cpustate->m_status_latch << 4 ) | cpustate->m_a ];
//if ( cpustate->m_o == 0 ) if ( ( cpustate->config->o_pla[ ( cpustate->m_status_latch << 4 ) | cpustate->m_a ] & 0xFF00 ) == 0xFF00 )
{
logerror("unknown output pla mapping for status latch = %d and a = %X\n", cpustate->m_status_latch, cpustate->m_a);
}
//if ( ( cpustate->config->o_pla[ ( cpustate->m_status_latch << 4 ) | cpustate->m_a ] & 0xFF00 ) == 0xFF00 )
//printf("****** o output m_status_latch = %X, m_a = %X\n", cpustate->m_status_latch, cpustate->m_a); //printf("****** o output m_status_latch = %X, m_a = %X\n", cpustate->m_status_latch, cpustate->m_a);
//else //else
//printf("o output m_status_latch = %X, m_a = %X\n", cpustate->m_status_latch, cpustate->m_a); //printf("o output m_status_latch = %X, m_a = %X\n", cpustate->m_status_latch, cpustate->m_a);