Previous 199869 Revisions Next

r37078 Wednesday 8th April, 2015 at 13:45:18 UTC by Zoƫ Blade
Tidy MESS driver whitespace too
[src/mess/drivers]elecbowl.c hh_hmcs40.c hh_pic16.c hh_tms1k.c hh_ucom4.c pc88va.c ticalc1x.c tispeak.c

trunk/src/mess/drivers/elecbowl.c
r245589r245590
6565   UINT8 d = m_r >> 1 & 1;
6666   m_display_state[5] = (m_r & 1) ? (d << (m_o & 7)) : 0;
6767   m_display_state[6] = (m_r >> 2 & 1) ? (d << (m_o & 7)) : 0;
68   
68
6969   // digit 4 is from u6 Q7
7070   m_display_segmask[4] = 6;
7171   m_display_state[4] = (m_display_state[6] & 0x80) ? 6 : 0;
r245589r245590
104104   // O0-O6: digit segments A-G
105105   // O7: N/C
106106   //if (data & 0x80) printf("%X ",data&0x7f);
107   
107
108108   m_o = data & 0x7f;
109109   prepare_display();
110110}
r245589r245590
169169   lA+lB+lC,               // 7
170170   lA+lB+lC+lD+lE+lF+lG,   // 8
171171   lA+lB+lG+lF+lC+lD,      // 9
172   
172
173173   0x8a, 0x8b, 0x8c, 0x8d, 0x8e, 0x8f,
174174   0x90, 0x91, 0x92, 0x93, 0x94, 0x95, 0x96, 0x97,
175175   0x98, 0x99, 0x9a, 0x9b, 0x9c, 0x9d, 0x9e, 0x9f
trunk/src/mess/drivers/hh_hmcs40.c
r245589r245590
186186            int state = active_state[y] >> x & 1;
187187            char buf1[0x10]; // lampyx
188188            char buf2[0x10]; // y.x
189           
189
190190            if (x == m_display_maxx)
191191            {
192192               // always-on if selected
r245589r245590
261261{
262262   line = line ? 1 : 0;
263263   state = state ? 1 : 0;
264   
264
265265   if (state != m_int[line])
266266   {
267267      if (machine().phase() >= MACHINE_PHASE_RESET)
r245589r245590
530530   // R0x-R6x,D0,D1: vfd matrix plate
531531   int shift = offset * 4;
532532   m_plate = (m_plate & ~(0xf << shift)) | (data << shift);
533   
533
534534   // update display
535535   UINT8 grid = BITSWAP8(m_grid,0,1,2,3,4,5,6,7);
536536   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);
r245589r245590
549549      m_inp_mux = inp_mux;
550550      update_int0();
551551   }
552   
552
553553   // D8-D15: vfd matrix grid
554554   m_grid = data >> 8 & 0xff;
555   
555
556556   // D0,D1: plate 12,13 (update display there)
557557   plate_w(space, 7, data & 3);
558558}
r245589r245590
783783   // R13: speaker on
784784   if (offset == HMCS40_PORT_R1X && data & 8)
785785      m_speaker_volume = CDKONG_SPEAKER_MAX;
786   
786
787787   // R0x-R6x: vfd matrix plate
788788   int shift = offset * 4;
789789   m_plate = (m_plate & ~(0xf << shift)) | (data << shift);
r245589r245590
842842   MCFG_TIMER_DRIVER_ADD_PERIODIC("speaker_decay", cdkong_state, speaker_decay_sim, attotime::from_msec(CDKONG_SPEAKER_DECAY))
843843   MCFG_TIMER_DRIVER_ADD_PERIODIC("display_decay", hh_hmcs40_state, display_decay_tick, attotime::from_msec(1))
844844   MCFG_DEFAULT_LAYOUT(layout_hh_hmcs40_test)
845   
845
846846   /* no video! */
847847
848848   /* sound hardware */
r245589r245590
898898{
899899   // D0: speaker out
900900   m_speaker->level_w(data & 1);
901   
901
902902   // D1: speaker on?
903903
904904   // D2-D15: vfd matrix plate
r245589r245590
911911   // R10,R11: input mux
912912   if (offset == HMCS40_PORT_R1X)
913913      m_inp_mux = data & 3;
914   
914
915915   // R1x-R3x: vfd matrix grid
916916   int shift = (offset - HMCS40_PORT_R1X) * 4;
917917   m_grid = (m_grid & ~(0xf << shift)) | (data << shift);
r245589r245590
978978  * board label Coleco 75690
979979  * Hitachi HD38820A28/29 MCU
980980  * cyan/red VFD display Futaba DM-34Z 2A, with color overlay
981 
981
982982  known releases:
983983  - Japan: Super Pack Monster, by Gakken
984984  - USA: Pac-Man, published by Coleco (name-license from Midway)
r245589r245590
11021102  - P1 Left:  Ms. Pac-Man (default game)
11031103  - P1 Down:  Head-to-Head Ms. Pac-Man (2-player mode)
11041104  - P1 Up:    Demo
1105 
1105
11061106  BTANB note: in demo-mode, she hardly walks to the upper two rows, never
11071107  finishing the level.
11081108
r245589r245590
14371437   // R0x-R6x,D8: vfd matrix plate
14381438   int shift = offset * 4;
14391439   m_plate = (m_plate & ~(0xf << shift)) | (data << shift);
1440   
1440
14411441   // update display
14421442   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);
14431443   display_matrix(30, 8, plate, m_grid);
r245589r245590
15511551      m_inp_mux = inp_mux;
15521552      update_int0();
15531553   }
1554   
1554
15551555   // D7-D15: vfd matrix grid
15561556   m_grid = data >> 7 & 0x1ff;
1557   
1557
15581558   // D0-D4: more plates
15591559   m_plate = (m_plate & 0x00ffff) | (data << 16 & 0x1f0000);
15601560   prepare_display();
r245589r245590
16721672      m_inp_mux = inp_mux;
16731673      update_int1();
16741674   }
1675   
1675
16761676   // D6-D15: vfd matrix grid
16771677   m_grid = data >> 6 & 0x3ff;
1678   
1678
16791679   // D0-D3,D5: more plates
16801680   m_plate = (m_plate & 0x00ffff) | (data << 16 & 0x2f0000);
16811681   prepare_display();
trunk/src/mess/drivers/hh_pic16.c
r245589r245590
147147            int state = active_state[y] >> x & 1;
148148            char buf1[0x10]; // lampyx
149149            char buf2[0x10]; // y.x
150           
150
151151            if (x == m_display_maxx)
152152            {
153153               // always-on if selected
trunk/src/mess/drivers/hh_tms1k.c
r245589r245590
179179            int state = active_state[y] >> x & 1;
180180            char buf1[0x10]; // lampyx
181181            char buf2[0x10]; // y.x
182           
182
183183            if (x == m_display_maxx)
184184            {
185185               // always-on if selected
r245589r245590
12281228  Ideal Electronic Detective
12291229  * TMS0980NLL MP6100A (die labeled 0980B-00)
12301230  * 10-digit 7seg LED display, 1bit sound
1231 
1231
12321232  hardware (and concept) is very similar to Parker Bros Stop Thief
12331233
12341234  This is an electronic board game. It requires game cards with suspect info,
r245589r245590
15201520{
15211521   // R0-R7: input mux
15221522   m_inp_mux = data & 0xff;
1523   
1523
15241524   // R0-R9: select digit/leds
15251525   m_r = data;
15261526   prepare_display();
r245589r245590
18551855{
18561856   // R0-R3,R9,R10: input mux
18571857   m_inp_mux = (data & 0xf) | (data >> 5 & 0x30);
1858   
1858
18591859   // R4: yellow lamps
18601860   // R5: green lamps
18611861   // R6: blue lamps
18621862   // R7: red lamps
18631863   display_matrix(4, 1, data >> 4, 1);
1864   
1864
18651865   // R8: speaker out
18661866   m_speaker->level_w(data >> 8 & 1);
18671867}
trunk/src/mess/drivers/hh_ucom4.c
r245589r245590
162162            int state = active_state[y] >> x & 1;
163163            char buf1[0x10]; // lampyx
164164            char buf2[0x10]; // y.x
165           
165
166166            if (x == m_display_maxx)
167167            {
168168               // always-on if selected
trunk/src/mess/drivers/pc88va.c
r245589r245590
18331833   MCFG_AM9517A_IN_MEMR_CB(READ8(pc88va_state, dma_memr_cb))
18341834   MCFG_AM9517A_OUT_MEMW_CB(WRITE8(pc88va_state, dma_memw_cb))
18351835
1836   
18371836   MCFG_UPD765A_ADD("upd765", false, true)
18381837   MCFG_UPD765_INTRQ_CALLBACK(WRITELINE(pc88va_state, fdc_irq))
18391838   MCFG_UPD765_INTRQ_CALLBACK(WRITELINE(pc88va_state, fdc_drq))
trunk/src/mess/drivers/ticalc1x.c
r245589r245590
8585   // exponent sign is from R10 O1, and R10 itself only uses segment G
8686   m_display_state[11] = m_display_state[10] << 5 & 0x40;
8787   m_display_state[10] &= 0x40;
88   
88
8989   set_display_size(8, 12);
9090   display_update();
9191}
r245589r245590
651651  TI Little Professor (1978 version)
652652  * TMS1990 MCU labeled TMC1993NL. die labeled 1990C-c3C
653653  * 9-digit 7seg LED display(one custom digit)
654 
654
655655  1978 re-release, with on/off and level select on buttons instead of
656656  switches. The casing was slightly revised in 1980 again, but same rom.
657657
trunk/src/mess/drivers/tispeak.c
r245589r245590
338338{
339339   hh_tms1k_state::machine_start();
340340   memset(m_display_segmask, ~0, sizeof(m_display_segmask)); // !
341   
341
342342   init_cartridge();
343343}
344344
r245589r245590
606606
607607static INPUT_PORTS_START( snread )
608608   PORT_INCLUDE( snspell )
609   
609
610610   PORT_MODIFY("IN.7")
611611   PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_CODE(KEYCODE_3) PORT_NAME("Word Zapper")
612612   PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_CODE(KEYCODE_4) PORT_NAME("Word Maker")
613   
613
614614   PORT_MODIFY("IN.8")
615615   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_CODE(KEYCODE_5) PORT_NAME("Read It")
616616   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_CODE(KEYCODE_6) PORT_NAME("Picture Read")


Previous 199869 Revisions Next


© 1997-2024 The MAME Team