From 53bfaabe4ccfed1626e8dba3de7a95699105cf24 Mon Sep 17 00:00:00 2001 From: Robbbert Date: Wed, 9 Feb 2022 16:55:31 +1100 Subject: [PATCH] by6803: prepared layout for commas --- src/mame/drivers/by6803.cpp | 14 ++++++++------ src/mame/layout/by6803.lay | 8 ++++---- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/src/mame/drivers/by6803.cpp b/src/mame/drivers/by6803.cpp index 59710025763..6bffb0abaa5 100644 --- a/src/mame/drivers/by6803.cpp +++ b/src/mame/drivers/by6803.cpp @@ -7,7 +7,7 @@ Bally MPU A084-91786-AH06 (6803) First generation 6803 has 4x 7-digit displays, and a 6-digit display for the credits/balls (only 4 digits are visible). -Then, the 2nd generation replaced all that with 4x 7-letter alphanumeric displays lined up along +Then, the 2nd generation replaced all that with 2x 14-letter alphanumeric displays lined up along the bottom of the backbox. They show scores, moving messages, and anything else that's needed. This also meant a more informative setup mode. @@ -269,9 +269,11 @@ WRITE_LINE_MEMBER( by6803_state::pia0_ca2_w ) { if (state) { - // comma info is available in m_pia1_a at this time. - m_digits[m_digit] = m_segment[0]; - m_digits[m_digit+16] = m_segment[1]; + for (u8 i = 0; i < 2; i++) + { + u16 t = bitswap<10>(u16(m_segment[i]), 0, 0, 7, 7, 6, 5, 4, 3, 2, 1); + m_digits[m_digit+i*20] = t; + } } } @@ -303,12 +305,12 @@ void by6803_state::pia0a_w(u8 data) if ((data & 15)==14) { m_digit = data >> 4; - m_segment[0] = bitswap<8>(m_pia1_a, 0, 7, 6, 5, 4, 3, 2, 1) ^ 0x80; + m_segment[0] = m_pia1_a ^ 1; } else if ((data & 15)==13) { - m_segment[1] = bitswap<8>(m_pia1_a, 0, 7, 6, 5, 4, 3, 2, 1) ^ 0x80; + m_segment[1] = m_pia1_a ^ 1; } } diff --git a/src/mame/layout/by6803.lay b/src/mame/layout/by6803.lay index 2dc42c17311..1782e7fff44 100644 --- a/src/mame/layout/by6803.lay +++ b/src/mame/layout/by6803.lay @@ -7,9 +7,9 @@ copyright-holders:Robbbert - + - + @@ -38,13 +38,13 @@ copyright-holders:Robbbert - + - +