Merge branch 'release0244' into mainline-master

This commit is contained in:
Vas Crabb 2022-05-24 01:20:18 +10:00
commit 09062b24a3
3 changed files with 12 additions and 12 deletions

View File

@ -4279,7 +4279,7 @@ license:CC0
<!-- PC-9821 / DOS/V hybrid -->
<!-- Severe graphics glitches -->
<software name="momagic">
<software name="momagic" supported="no">
<!--
Origin: redump.org
<rom name="Master of Magic (Japan).bin" size="62038704" crc="8069be95" sha1="91fb29b26466ce32e4229f813666700aa5af2915"/>

View File

@ -24,11 +24,11 @@
#include <any>
#include <cassert>
#include <ctime>
#include <map>
#include <set>
#include <string_view>
#include <typeindex>
#include <typeinfo>
#include <unordered_map>
#include <utility>
#include <vector>
@ -229,7 +229,7 @@ public:
private:
using handler_callback_func = delegate<uint32_t (render_container &)>;
using device_feature_set = std::set<std::pair<std::string, std::string> >;
using session_data_map = std::map<std::type_index, std::any>;
using session_data_map = std::unordered_map<std::type_index, std::any>;
// instance variables
std::unique_ptr<render_font> m_font;

View File

@ -638,8 +638,8 @@ void cps2_comm_device::usart_control_w(offs_t offset, u16 data, u16 mem_mask)
LOG("%s: USART mode = 0x%02X: Synchronous, %d-bit, %s Parity, %s Sync Detect, %d Sync Characters\n",
machine().describe_context(),
m_usart_mode,
std::array{ 5, 6, 7, 8 }[BIT(m_usart_mode, 2, 2)],
std::array{ "No", "Odd", "No", "Even" }[BIT(m_usart_mode, 4, 2)],
std::array<int, 4>{ 5, 6, 7, 8 }[BIT(m_usart_mode, 2, 2)],
std::array<char const *, 4>{ "No", "Odd", "No", "Even" }[BIT(m_usart_mode, 4, 2)],
BIT(m_usart_mode, 6) ? "External" : "Internal",
BIT(m_usart_mode, 7) ? 1 : 2);
m_usart_control_phase = CTRL_SYNC1;
@ -649,10 +649,10 @@ void cps2_comm_device::usart_control_w(offs_t offset, u16 data, u16 mem_mask)
LOG("%s: USART mode = 0x%02X: Asynchronous, x %d Clock, %d-bit, %s Parity, %s Transmit Stop Bits\n",
machine().describe_context(),
m_usart_mode,
std::array{ -1, 1, 16, 64 }[BIT(m_usart_mode, 0, 2)],
std::array{ 5, 6, 7, 8 }[BIT(m_usart_mode, 2, 2)],
std::array{ "No", "Odd", "No", "Even" }[BIT(m_usart_mode, 4, 2)],
std::array{ "Illegal", "1", "1-1/2", "2" }[BIT(m_usart_mode, 6, 2)]);
std::array<int, 4>{ -1, 1, 16, 64 }[BIT(m_usart_mode, 0, 2)],
std::array<int, 4>{ 5, 6, 7, 8 }[BIT(m_usart_mode, 2, 2)],
std::array<char const *, 4>{ "No", "Odd", "No", "Even" }[BIT(m_usart_mode, 4, 2)],
std::array<char const *, 4>{ "Illegal", "1", "1-1/2", "2" }[BIT(m_usart_mode, 6, 2)]);
m_usart_control_phase = CTRL_COMMAND;
m_usart_status |= 0x01U;
}
@ -715,9 +715,9 @@ void cps2_comm_device::route_w(offs_t offset, u16 data, u16 mem_mask)
machine().describe_context(),
m_route,
BIT(m_route, 4) ? "low" : "high",
std::array{ "1", "TxD & OUT", "1", "TxD" }[BIT(m_route, 0, 2)],
std::array{ "1", "IN", "TxD", "1" }[BIT(m_route, 0, 2)],
std::array{ "1", "IN", "OUT", "IN" }[BIT(m_route, 0, 2)]);
std::array<char const *, 4>{ "1", "TxD & OUT", "1", "TxD" }[BIT(m_route, 0, 2)],
std::array<char const *, 4>{ "1", "IN", "TxD", "1" }[BIT(m_route, 0, 2)],
std::array<char const *, 4>{ "1", "IN", "OUT", "IN" }[BIT(m_route, 0, 2)]);
}
}