Skip to content

Commit

Permalink
fix timer prescaler values
Browse files Browse the repository at this point in the history
  • Loading branch information
felipesanches committed Jan 2, 2024
1 parent 0ff65c5 commit c7670c1
Showing 1 changed file with 24 additions and 24 deletions.
48 changes: 24 additions & 24 deletions src/devices/cpu/tlcs900/tmp94c241.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1836,13 +1836,13 @@ void tmp94c241_device::tlcs900_handle_timers()
case 0: /* TIO */
break;
case 1: /* T1 */
TIMER_CHANGE_0 += ( m_timer_pre >> 7 ) - ( old_pre >> 7 );
TIMER_CHANGE_0 += ( m_timer_pre >> 3 ) - ( old_pre >> 3 );
break;
case 2: /* T4 */
TIMER_CHANGE_0 += ( m_timer_pre >> 9 ) - ( old_pre >> 9 );
TIMER_CHANGE_0 += ( m_timer_pre >> 5 ) - ( old_pre >> 5 );
break;
case 3: /* T16 */
TIMER_CHANGE_0 += ( m_timer_pre >> 11 ) - ( old_pre >> 11 );
TIMER_CHANGE_0 += ( m_timer_pre >> 7 ) - ( old_pre >> 7 );
break;
}

Expand Down Expand Up @@ -1876,13 +1876,13 @@ void tmp94c241_device::tlcs900_handle_timers()
case 0x00: /* TO0TRG */
break;
case 0x01: /* T1 */
TIMER_CHANGE_1 += ( m_timer_pre >> 7 ) - ( old_pre >> 7 );
TIMER_CHANGE_1 += ( m_timer_pre >> 3 ) - ( old_pre >> 3 );
break;
case 0x02: /* T16 */
TIMER_CHANGE_1 += ( m_timer_pre >> 11 ) - ( old_pre >> 11 );
TIMER_CHANGE_1 += ( m_timer_pre >> 7 ) - ( old_pre >> 7 );
break;
case 0x03: /* T256 */
TIMER_CHANGE_1 += ( m_timer_pre >> 15 ) - ( old_pre >> 15 );
TIMER_CHANGE_1 += ( m_timer_pre >> 11 ) - ( old_pre >> 11 );
break;
}

Expand Down Expand Up @@ -1912,13 +1912,13 @@ void tmp94c241_device::tlcs900_handle_timers()
{
case 0: /* invalid */
case 1: /* T1 */
TIMER_CHANGE_2 += ( m_timer_pre >> 7 ) - ( old_pre >> 7 );
TIMER_CHANGE_2 += ( m_timer_pre >> 3 ) - ( old_pre >> 3 );
break;
case 2: /* T4 */
TIMER_CHANGE_2 += ( m_timer_pre >> 9 ) - ( old_pre >> 9 );
TIMER_CHANGE_2 += ( m_timer_pre >> 5 ) - ( old_pre >> 5 );
break;
case 3: /* T16 */
TIMER_CHANGE_2 += ( m_timer_pre >> 11 ) - ( old_pre >> 11 );
TIMER_CHANGE_2 += ( m_timer_pre >> 7 ) - ( old_pre >> 7 );
break;
}

Expand Down Expand Up @@ -1952,13 +1952,13 @@ void tmp94c241_device::tlcs900_handle_timers()
case 0: /* TO2TRG */
break;
case 1: /* T1 */
TIMER_CHANGE_3 += ( m_timer_pre >> 7 ) - ( old_pre >> 7 );
TIMER_CHANGE_3 += ( m_timer_pre >> 3 ) - ( old_pre >> 3 );
break;
case 2: /* T16 */
TIMER_CHANGE_3 += ( m_timer_pre >> 11 ) - ( old_pre >> 11 );
TIMER_CHANGE_3 += ( m_timer_pre >> 7 ) - ( old_pre >> 7 );
break;
case 3: /* T256 */
TIMER_CHANGE_3 += ( m_timer_pre >> 15 ) - ( old_pre >> 15 );
TIMER_CHANGE_3 += ( m_timer_pre >> 11 ) - ( old_pre >> 11 );
break;
}

Expand Down Expand Up @@ -1990,13 +1990,13 @@ void tmp94c241_device::tlcs900_handle_timers()
// TODO: implement-me!
break;
case 0x01: /* T1 */
TIMER_CHANGE_4 += ( m_timer_pre >> 7 ) - ( old_pre >> 7 );
TIMER_CHANGE_4 += ( m_timer_pre >> 3 ) - ( old_pre >> 3 );
break;
case 0x02: /* T4 */
TIMER_CHANGE_4 += ( m_timer_pre >> 9 ) - ( old_pre >> 9 );
TIMER_CHANGE_4 += ( m_timer_pre >> 5 ) - ( old_pre >> 5 );
break;
case 0x03: /* T16 */
TIMER_CHANGE_4 += ( m_timer_pre >> 11 ) - ( old_pre >> 11 );
TIMER_CHANGE_4 += ( m_timer_pre >> 7 ) - ( old_pre >> 7 );
break;
}

Expand Down Expand Up @@ -2024,13 +2024,13 @@ void tmp94c241_device::tlcs900_handle_timers()
// TODO: implement-me!
break;
case 1: /* T1 */
TIMER_CHANGE_6 += ( m_timer_pre >> 7 ) - ( old_pre >> 7 );
TIMER_CHANGE_6 += ( m_timer_pre >> 3 ) - ( old_pre >> 3 );
break;
case 2: /* T4 */
TIMER_CHANGE_6 += ( m_timer_pre >> 9 ) - ( old_pre >> 9 );
TIMER_CHANGE_6 += ( m_timer_pre >> 5 ) - ( old_pre >> 5 );
break;
case 3: /* T16 */
TIMER_CHANGE_6 += ( m_timer_pre >> 11 ) - ( old_pre >> 11 );
TIMER_CHANGE_6 += ( m_timer_pre >> 7 ) - ( old_pre >> 7 );
break;
}

Expand Down Expand Up @@ -2058,13 +2058,13 @@ void tmp94c241_device::tlcs900_handle_timers()
// TODO: implement-me!
break;
case 0x01: /* T1 */
TIMER_CHANGE_8 += ( m_timer_pre >> 7 ) - ( old_pre >> 7 );
TIMER_CHANGE_8 += ( m_timer_pre >> 3 ) - ( old_pre >> 3 );
break;
case 0x02: /* T4 */
TIMER_CHANGE_8 += ( m_timer_pre >> 9 ) - ( old_pre >> 9 );
TIMER_CHANGE_8 += ( m_timer_pre >> 5 ) - ( old_pre >> 5 );
break;
case 0x03: /* T16 */
TIMER_CHANGE_8 += ( m_timer_pre >> 11 ) - ( old_pre >> 11 );
TIMER_CHANGE_8 += ( m_timer_pre >> 7 ) - ( old_pre >> 7 );
break;
}

Expand Down Expand Up @@ -2092,13 +2092,13 @@ void tmp94c241_device::tlcs900_handle_timers()
// TODO: implement-me!
break;
case 1: /* T1 */
TIMER_CHANGE_A += ( m_timer_pre >> 7 ) - ( old_pre >> 7 );
TIMER_CHANGE_A += ( m_timer_pre >> 3 ) - ( old_pre >> 3 );
break;
case 2: /* T4 */
TIMER_CHANGE_A += ( m_timer_pre >> 9 ) - ( old_pre >> 9 );
TIMER_CHANGE_A += ( m_timer_pre >> 5 ) - ( old_pre >> 5 );
break;
case 3: /* T16 */
TIMER_CHANGE_A += ( m_timer_pre >> 11 ) - ( old_pre >> 11 );
TIMER_CHANGE_A += ( m_timer_pre >> 7 ) - ( old_pre >> 7 );
break;
}

Expand Down

0 comments on commit c7670c1

Please sign in to comment.