mirror of
https://github.com/mamedev/mame.git
synced 2024-11-16 07:48:32 +01:00
Tidy MESS driver whitespace too
This commit is contained in:
parent
faea1e2beb
commit
d75af79a2f
8 changed files with 31 additions and 32 deletions
|
@ -65,7 +65,7 @@ void elecbowl_state::prepare_display()
|
|||
UINT8 d = m_r >> 1 & 1;
|
||||
m_display_state[5] = (m_r & 1) ? (d << (m_o & 7)) : 0;
|
||||
m_display_state[6] = (m_r >> 2 & 1) ? (d << (m_o & 7)) : 0;
|
||||
|
||||
|
||||
// digit 4 is from u6 Q7
|
||||
m_display_segmask[4] = 6;
|
||||
m_display_state[4] = (m_display_state[6] & 0x80) ? 6 : 0;
|
||||
|
@ -104,7 +104,7 @@ WRITE16_MEMBER(elecbowl_state::write_o)
|
|||
// O0-O6: digit segments A-G
|
||||
// O7: N/C
|
||||
//if (data & 0x80) printf("%X ",data&0x7f);
|
||||
|
||||
|
||||
m_o = data & 0x7f;
|
||||
prepare_display();
|
||||
}
|
||||
|
@ -169,7 +169,7 @@ static const UINT16 elecbowl_output_pla[0x20] =
|
|||
lA+lB+lC, // 7
|
||||
lA+lB+lC+lD+lE+lF+lG, // 8
|
||||
lA+lB+lG+lF+lC+lD, // 9
|
||||
|
||||
|
||||
0x8a, 0x8b, 0x8c, 0x8d, 0x8e, 0x8f,
|
||||
0x90, 0x91, 0x92, 0x93, 0x94, 0x95, 0x96, 0x97,
|
||||
0x98, 0x99, 0x9a, 0x9b, 0x9c, 0x9d, 0x9e, 0x9f
|
||||
|
|
|
@ -186,7 +186,7 @@ void hh_hmcs40_state::display_update()
|
|||
int state = active_state[y] >> x & 1;
|
||||
char buf1[0x10]; // lampyx
|
||||
char buf2[0x10]; // y.x
|
||||
|
||||
|
||||
if (x == m_display_maxx)
|
||||
{
|
||||
// always-on if selected
|
||||
|
@ -261,7 +261,7 @@ void hh_hmcs40_state::set_interrupt(int line, int state)
|
|||
{
|
||||
line = line ? 1 : 0;
|
||||
state = state ? 1 : 0;
|
||||
|
||||
|
||||
if (state != m_int[line])
|
||||
{
|
||||
if (machine().phase() >= MACHINE_PHASE_RESET)
|
||||
|
@ -530,7 +530,7 @@ WRITE8_MEMBER(zackman_state::plate_w)
|
|||
// R0x-R6x,D0,D1: vfd matrix plate
|
||||
int shift = offset * 4;
|
||||
m_plate = (m_plate & ~(0xf << shift)) | (data << shift);
|
||||
|
||||
|
||||
// update display
|
||||
UINT8 grid = BITSWAP8(m_grid,0,1,2,3,4,5,6,7);
|
||||
UINT32 plate = BITSWAP32(m_plate,31,30,27,0,1,2,3,4,5,6,7,8,9,10,11,24,25,26,29,28,23,22,21,20,19,18,17,16,15,14,13,12);
|
||||
|
@ -549,10 +549,10 @@ WRITE16_MEMBER(zackman_state::grid_w)
|
|||
m_inp_mux = inp_mux;
|
||||
update_int0();
|
||||
}
|
||||
|
||||
|
||||
// D8-D15: vfd matrix grid
|
||||
m_grid = data >> 8 & 0xff;
|
||||
|
||||
|
||||
// D0,D1: plate 12,13 (update display there)
|
||||
plate_w(space, 7, data & 3);
|
||||
}
|
||||
|
@ -783,7 +783,7 @@ WRITE8_MEMBER(cdkong_state::plate_w)
|
|||
// R13: speaker on
|
||||
if (offset == HMCS40_PORT_R1X && data & 8)
|
||||
m_speaker_volume = CDKONG_SPEAKER_MAX;
|
||||
|
||||
|
||||
// R0x-R6x: vfd matrix plate
|
||||
int shift = offset * 4;
|
||||
m_plate = (m_plate & ~(0xf << shift)) | (data << shift);
|
||||
|
@ -842,7 +842,7 @@ static MACHINE_CONFIG_START( cdkong, cdkong_state )
|
|||
MCFG_TIMER_DRIVER_ADD_PERIODIC("speaker_decay", cdkong_state, speaker_decay_sim, attotime::from_msec(CDKONG_SPEAKER_DECAY))
|
||||
MCFG_TIMER_DRIVER_ADD_PERIODIC("display_decay", hh_hmcs40_state, display_decay_tick, attotime::from_msec(1))
|
||||
MCFG_DEFAULT_LAYOUT(layout_hh_hmcs40_test)
|
||||
|
||||
|
||||
/* no video! */
|
||||
|
||||
/* sound hardware */
|
||||
|
@ -898,7 +898,7 @@ WRITE8_MEMBER(cgalaxn_state::grid_w)
|
|||
{
|
||||
// D0: speaker out
|
||||
m_speaker->level_w(data & 1);
|
||||
|
||||
|
||||
// D1: speaker on?
|
||||
|
||||
// D2-D15: vfd matrix plate
|
||||
|
@ -911,7 +911,7 @@ WRITE16_MEMBER(cgalaxn_state::plate_w)
|
|||
// R10,R11: input mux
|
||||
if (offset == HMCS40_PORT_R1X)
|
||||
m_inp_mux = data & 3;
|
||||
|
||||
|
||||
// R1x-R3x: vfd matrix grid
|
||||
int shift = (offset - HMCS40_PORT_R1X) * 4;
|
||||
m_grid = (m_grid & ~(0xf << shift)) | (data << shift);
|
||||
|
@ -978,7 +978,7 @@ MACHINE_CONFIG_END
|
|||
* board label Coleco 75690
|
||||
* Hitachi HD38820A28/29 MCU
|
||||
* cyan/red VFD display Futaba DM-34Z 2A, with color overlay
|
||||
|
||||
|
||||
known releases:
|
||||
- Japan: Super Pack Monster, by Gakken
|
||||
- USA: Pac-Man, published by Coleco (name-license from Midway)
|
||||
|
@ -1102,7 +1102,7 @@ MACHINE_CONFIG_END
|
|||
- P1 Left: Ms. Pac-Man (default game)
|
||||
- P1 Down: Head-to-Head Ms. Pac-Man (2-player mode)
|
||||
- P1 Up: Demo
|
||||
|
||||
|
||||
BTANB note: in demo-mode, she hardly walks to the upper two rows, never
|
||||
finishing the level.
|
||||
|
||||
|
@ -1437,7 +1437,7 @@ WRITE8_MEMBER(pbqbert_state::plate_w)
|
|||
// R0x-R6x,D8: vfd matrix plate
|
||||
int shift = offset * 4;
|
||||
m_plate = (m_plate & ~(0xf << shift)) | (data << shift);
|
||||
|
||||
|
||||
// update display
|
||||
UINT32 plate = BITSWAP32(m_plate,31,30,24,25,26,27,28,15,14,29,13,12,11,10,9,8,7,6,5,4,3,2,1,0,16,17,18,19,20,21,22,23);
|
||||
display_matrix(30, 8, plate, m_grid);
|
||||
|
@ -1551,10 +1551,10 @@ WRITE16_MEMBER(kingman_state::grid_w)
|
|||
m_inp_mux = inp_mux;
|
||||
update_int0();
|
||||
}
|
||||
|
||||
|
||||
// D7-D15: vfd matrix grid
|
||||
m_grid = data >> 7 & 0x1ff;
|
||||
|
||||
|
||||
// D0-D4: more plates
|
||||
m_plate = (m_plate & 0x00ffff) | (data << 16 & 0x1f0000);
|
||||
prepare_display();
|
||||
|
@ -1672,10 +1672,10 @@ WRITE16_MEMBER(tmtron_state::grid_w)
|
|||
m_inp_mux = inp_mux;
|
||||
update_int1();
|
||||
}
|
||||
|
||||
|
||||
// D6-D15: vfd matrix grid
|
||||
m_grid = data >> 6 & 0x3ff;
|
||||
|
||||
|
||||
// D0-D3,D5: more plates
|
||||
m_plate = (m_plate & 0x00ffff) | (data << 16 & 0x2f0000);
|
||||
prepare_display();
|
||||
|
|
|
@ -147,7 +147,7 @@ void hh_pic16_state::display_update()
|
|||
int state = active_state[y] >> x & 1;
|
||||
char buf1[0x10]; // lampyx
|
||||
char buf2[0x10]; // y.x
|
||||
|
||||
|
||||
if (x == m_display_maxx)
|
||||
{
|
||||
// always-on if selected
|
||||
|
|
|
@ -179,7 +179,7 @@ void hh_tms1k_state::display_update()
|
|||
int state = active_state[y] >> x & 1;
|
||||
char buf1[0x10]; // lampyx
|
||||
char buf2[0x10]; // y.x
|
||||
|
||||
|
||||
if (x == m_display_maxx)
|
||||
{
|
||||
// always-on if selected
|
||||
|
@ -1228,7 +1228,7 @@ MACHINE_CONFIG_END
|
|||
Ideal Electronic Detective
|
||||
* TMS0980NLL MP6100A (die labeled 0980B-00)
|
||||
* 10-digit 7seg LED display, 1bit sound
|
||||
|
||||
|
||||
hardware (and concept) is very similar to Parker Bros Stop Thief
|
||||
|
||||
This is an electronic board game. It requires game cards with suspect info,
|
||||
|
@ -1520,7 +1520,7 @@ WRITE16_MEMBER(astro_state::write_r)
|
|||
{
|
||||
// R0-R7: input mux
|
||||
m_inp_mux = data & 0xff;
|
||||
|
||||
|
||||
// R0-R9: select digit/leds
|
||||
m_r = data;
|
||||
prepare_display();
|
||||
|
@ -1855,13 +1855,13 @@ WRITE16_MEMBER(ssimon_state::write_r)
|
|||
{
|
||||
// R0-R3,R9,R10: input mux
|
||||
m_inp_mux = (data & 0xf) | (data >> 5 & 0x30);
|
||||
|
||||
|
||||
// R4: yellow lamps
|
||||
// R5: green lamps
|
||||
// R6: blue lamps
|
||||
// R7: red lamps
|
||||
display_matrix(4, 1, data >> 4, 1);
|
||||
|
||||
|
||||
// R8: speaker out
|
||||
m_speaker->level_w(data >> 8 & 1);
|
||||
}
|
||||
|
|
|
@ -162,7 +162,7 @@ void hh_ucom4_state::display_update()
|
|||
int state = active_state[y] >> x & 1;
|
||||
char buf1[0x10]; // lampyx
|
||||
char buf2[0x10]; // y.x
|
||||
|
||||
|
||||
if (x == m_display_maxx)
|
||||
{
|
||||
// always-on if selected
|
||||
|
|
|
@ -1833,7 +1833,6 @@ static MACHINE_CONFIG_START( pc88va, pc88va_state )
|
|||
MCFG_AM9517A_IN_MEMR_CB(READ8(pc88va_state, dma_memr_cb))
|
||||
MCFG_AM9517A_OUT_MEMW_CB(WRITE8(pc88va_state, dma_memw_cb))
|
||||
|
||||
|
||||
MCFG_UPD765A_ADD("upd765", false, true)
|
||||
MCFG_UPD765_INTRQ_CALLBACK(WRITELINE(pc88va_state, fdc_irq))
|
||||
MCFG_UPD765_INTRQ_CALLBACK(WRITELINE(pc88va_state, fdc_drq))
|
||||
|
|
|
@ -85,7 +85,7 @@ void tisr16_state::prepare_display()
|
|||
// exponent sign is from R10 O1, and R10 itself only uses segment G
|
||||
m_display_state[11] = m_display_state[10] << 5 & 0x40;
|
||||
m_display_state[10] &= 0x40;
|
||||
|
||||
|
||||
set_display_size(8, 12);
|
||||
display_update();
|
||||
}
|
||||
|
@ -651,7 +651,7 @@ MACHINE_CONFIG_END
|
|||
TI Little Professor (1978 version)
|
||||
* TMS1990 MCU labeled TMC1993NL. die labeled 1990C-c3C
|
||||
* 9-digit 7seg LED display(one custom digit)
|
||||
|
||||
|
||||
1978 re-release, with on/off and level select on buttons instead of
|
||||
switches. The casing was slightly revised in 1980 again, but same rom.
|
||||
|
||||
|
|
|
@ -338,7 +338,7 @@ void tispeak_state::machine_start()
|
|||
{
|
||||
hh_tms1k_state::machine_start();
|
||||
memset(m_display_segmask, ~0, sizeof(m_display_segmask)); // !
|
||||
|
||||
|
||||
init_cartridge();
|
||||
}
|
||||
|
||||
|
@ -606,11 +606,11 @@ INPUT_PORTS_END
|
|||
|
||||
static INPUT_PORTS_START( snread )
|
||||
PORT_INCLUDE( snspell )
|
||||
|
||||
|
||||
PORT_MODIFY("IN.7")
|
||||
PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_CODE(KEYCODE_3) PORT_NAME("Word Zapper")
|
||||
PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_CODE(KEYCODE_4) PORT_NAME("Word Maker")
|
||||
|
||||
|
||||
PORT_MODIFY("IN.8")
|
||||
PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_CODE(KEYCODE_5) PORT_NAME("Read It")
|
||||
PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_CODE(KEYCODE_6) PORT_NAME("Picture Read")
|
||||
|
|
Loading…
Reference in a new issue