mirror of
https://github.com/holub/mame
synced 2025-10-07 17:27:06 +03:00
Fixed some Doxy comments, and addressed a few nits
This commit is contained in:
parent
57e3c29dd2
commit
015f5375bf
@ -116,8 +116,11 @@ public:
|
|||||||
/// \return Reference to element at specified index.
|
/// \return Reference to element at specified index.
|
||||||
T &operator[](unsigned index) { assert(index < Count); return m_array[index]; }
|
T &operator[](unsigned index) { assert(index < Count); return m_array[index]; }
|
||||||
|
|
||||||
/// \brief Returns the count
|
/// \brief Get array size
|
||||||
unsigned size() const { return Count; }
|
///
|
||||||
|
/// Returns number of objects in array (compile-time constant).
|
||||||
|
/// \return The size of the array.
|
||||||
|
constexpr unsigned size() const { return Count; }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
// copyright-holders:Nathan Woods
|
// copyright-holders:Nathan Woods
|
||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
|
|
||||||
coco.c
|
coco.cpp
|
||||||
|
|
||||||
TRS-80 Radio Shack Color Computer Family
|
TRS-80 Radio Shack Color Computer Family
|
||||||
|
|
||||||
@ -93,7 +93,7 @@ coco_state::coco_state(const machine_config &mconfig, device_type type, const ch
|
|||||||
m_vhd_1(*this, VHD1_TAG),
|
m_vhd_1(*this, VHD1_TAG),
|
||||||
m_beckerport(*this, DWSOCK_TAG),
|
m_beckerport(*this, DWSOCK_TAG),
|
||||||
m_beckerportconfig(*this, BECKERPORT_TAG),
|
m_beckerportconfig(*this, BECKERPORT_TAG),
|
||||||
m_keyboard(*this, { "row0", "row1", "row2", "row3", "row4", "row5", "row6" }),
|
m_keyboard(*this, "row%u", 0),
|
||||||
m_joystick_type_control(*this, CTRL_SEL_TAG),
|
m_joystick_type_control(*this, CTRL_SEL_TAG),
|
||||||
m_joystick_hires_control(*this, HIRES_INTF_TAG)
|
m_joystick_hires_control(*this, HIRES_INTF_TAG)
|
||||||
{
|
{
|
||||||
@ -857,7 +857,7 @@ void coco_state::poll_keyboard(void)
|
|||||||
UINT8 pia0_pa_z = 0x7F;
|
UINT8 pia0_pa_z = 0x7F;
|
||||||
|
|
||||||
/* poll the keyboard, and update PA6-PA0 accordingly*/
|
/* poll the keyboard, and update PA6-PA0 accordingly*/
|
||||||
for (int i = 0; i < m_keyboard.size(); i++)
|
for (unsigned i = 0; i < m_keyboard.size(); i++)
|
||||||
{
|
{
|
||||||
int value = m_keyboard[i]->read();
|
int value = m_keyboard[i]->read();
|
||||||
if ((value | pia0_pb) != 0xFF)
|
if ((value | pia0_pb) != 0xFF)
|
||||||
|
Loading…
Reference in New Issue
Block a user