Previous 15994 Revisions Next

r7534 Monday 8th March, 2010 at 07:02:49 UTC by Fabio Priuli
[SNES] Added SNES SuperScope support. You can plug it in both controller ports through the Categories menu, but remember that it only works in Port2 (like on a real SNES)
[src/mame/includes]snes.h
[src/mame/machine]snes.c
[src/mess/drivers]snes.c

src/mame/machine/snes.c
r7533r7534
7070*************************************/
7171
7272// utility function - latches the H/V counters.  Used by IRQ, writes to WRIO, etc.
73static void snes_latch_counters(running_machine *machine)
73void snes_latch_counters(running_machine *machine)
7474{
7575   snes_ppu.beam.current_horz = video_screen_get_hpos(machine->primary_screen) / snes_htmult;
7676   snes_ppu.beam.latch_vert = video_screen_get_vpos(machine->primary_screen);
r7533r7534
572572         read_ophct = 0;
573573         read_opvct = 0;
574574         value = snes_ram[offset];
575         value &= ~0x40;   // clear 'latched counters' flag
576575         value |= (snes_ppu.ppu1_open_bus & 0x20);
577576         value |= (snes_ppu.ppu2_version & 0x0f);
578577         snes_ram[offset] = value;   // not sure if this is needed...
src/mame/includes/snes.h
r7533r7534
3636#endif /* MAME_DEBUG */
3737
3838/* Useful definitions */
39#define SNES_SCR_WIDTH      256      /* 32 characters 8 pixels wide */
40#define SNES_SCR_HEIGHT_NTSC   224      /* Can be 224 or 240 height */
41#define SNES_SCR_HEIGHT_PAL   274      /* ??? */
42#define SNES_VTOTAL_NTSC   262      /* Maximum number of lines for NTSC systems */
43#define SNES_VTOTAL_PAL      312      /* Maximum number of lines for PAL systems */
44#define SNES_HTOTAL         341      /* Maximum number pixels per line (incl. hblank) */
45#define SNES_DMA_BASE      0x4300   /* Base DMA register address */
46#define SNES_MODE_20      0x1      /* Lo-ROM cart */
47#define SNES_MODE_21      0x2      /* Hi-ROM cart */
48#define SNES_MODE_22      0x4      /* Extended Lo-ROM cart - SDD-1 */
49#define SNES_MODE_25      0x8      /* Extended Hi-ROM cart */
50#define SNES_NTSC         0x00
51#define SNES_PAL         0x10
52#define SNES_VRAM_SIZE      0x20000   /* 128kb of video ram */
53#define SNES_CGRAM_SIZE      0x202   /* 256 16-bit colours + 1 tacked on 16-bit colour for fixed colour */
54#define SNES_OAM_SIZE      0x440   /* 1088 bytes of Object Attribute Memory */
55#define SNES_SPCRAM_SIZE   0x10000   /* 64kb of spc700 ram */
56#define SNES_EXROM_START   0x1000000
57#define FIXED_COLOUR      256      /* Position in cgram for fixed colour */
39#define SNES_SCR_WIDTH        256      /* 32 characters 8 pixels wide */
40#define SNES_SCR_HEIGHT_NTSC  224      /* Can be 224 or 240 height */
41#define SNES_SCR_HEIGHT_PAL   274      /* ??? */
42#define SNES_VTOTAL_NTSC      262      /* Maximum number of lines for NTSC systems */
43#define SNES_VTOTAL_PAL       312      /* Maximum number of lines for PAL systems */
44#define SNES_HTOTAL           341      /* Maximum number pixels per line (incl. hblank) */
45#define SNES_DMA_BASE         0x4300   /* Base DMA register address */
46#define SNES_MODE_20          0x1      /* Lo-ROM cart */
47#define SNES_MODE_21          0x2      /* Hi-ROM cart */
48#define SNES_MODE_22          0x4      /* Extended Lo-ROM cart - SDD-1 */
49#define SNES_MODE_25          0x8      /* Extended Hi-ROM cart */
50#define SNES_NTSC             0x00
51#define SNES_PAL              0x10
52#define SNES_VRAM_SIZE        0x20000   /* 128kb of video ram */
53#define SNES_CGRAM_SIZE       0x202      /* 256 16-bit colours + 1 tacked on 16-bit colour for fixed colour */
54#define SNES_OAM_SIZE         0x440      /* 1088 bytes of Object Attribute Memory */
55#define SNES_SPCRAM_SIZE      0x10000   /* 64kb of spc700 ram */
56#define SNES_EXROM_START      0x1000000
57#define FIXED_COLOUR          256      /* Position in cgram for fixed colour */
5858/* Definitions for PPU Memory-Mapped registers */
5959#define INIDISP        0x2100
6060#define OBSEL          0x2101
r7533r7534
369369   int speed;
370370};
371371
372struct snes_superscope
373{
374   INT16 x, y;
375   UINT8 buttons;
376   int turbo_lock, pause_lock, fire_lock;
377   int offscreen;
378};
379
372380typedef void (*snes_io_read)(running_machine *machine);
373381typedef UINT8 (*snes_oldjoy_read)(running_machine *machine);
374382
r7533r7534
384392   UINT8                 read_idx[2];
385393   snes_controller_port  joypad[4];
386394   snes_mouse            mouse[2];
395   snes_superscope       scope[2];
387396
388397   /* input callbacks (to allow MESS to have its own input handlers) */
389398   snes_io_read          io_read;
r7533r7534
471480extern UINT32 snes_rom_size;
472481extern UINT16 snes_htmult;
473482
474extern void snes_gdma( const address_space *space, UINT8 channels );
483extern void snes_gdma(const address_space *space, UINT8 channels);
475484extern void snes_hdma_init(void);
476485extern void snes_hdma(const address_space *space);
486extern void snes_latch_counters(running_machine *machine);
477487
478488/* (PPU) Video related */
479489extern UINT8  *snes_vram;         /* Video RAM (Should be 16-bit, but it's easier this way) */
src/mess/drivers/snes.c
r7533r7534
3333#include "cpu/g65816/g65816.h"
3434#include "includes/snes.h"
3535#include "machine/snescart.h"
36#include "crsshair.h"
3637
3738#define MAX_SNES_CART_SIZE 0x600000
3839
r7533r7534
109110   return state->mouse[port].speed;
110111}
111112
112static INPUT_PORTS_START( snes )
113   PORT_START("CTRLSEL")  /* Select Controller Type */
114   PORT_CATEGORY_CLASS( 0x0f, 0x01, "P1 Controller")
115   PORT_CATEGORY_ITEM(  0x00, "Unconnected",      10 )
116   PORT_CATEGORY_ITEM(  0x01, "Gamepad",      11 )
117   PORT_CATEGORY_ITEM(  0x02, "Mouse",         12 )
118//   PORT_CATEGORY_ITEM(  0x03, "Superscope",      13 )
119//   PORT_CATEGORY_ITEM(  0x04, "Justfier",      14 )
120//   PORT_CATEGORY_ITEM(  0x05, "Multitap",      15 )
121   PORT_CATEGORY_CLASS( 0xf0, 0x10, "P2 Controller")
122   PORT_CATEGORY_ITEM(  0x00, "Unconnected",      20 )
123   PORT_CATEGORY_ITEM(  0x10, "Gamepad",      21 )
124   PORT_CATEGORY_ITEM(  0x20, "Mouse",         22 )
125//   PORT_CATEGORY_ITEM(  0x30, "Superscope",      23 )
126//   PORT_CATEGORY_ITEM(  0x40, "Justfier",      24 )
127//   PORT_CATEGORY_ITEM(  0x50, "Multitap",      25 )
113static CUSTOM_INPUT( snes_superscope_offscreen_input )
114{
115   snes_state *state = (snes_state *)field->port->machine->driver_data;
116   int port = (FPTR)param;
117   static const char *const portnames[2][3] =
118         {
119            { "SUPERSCOPE1", "SUPERSCOPE1_X", "SUPERSCOPE1_Y" },
120            { "SUPERSCOPE2", "SUPERSCOPE2_X", "SUPERSCOPE2_Y" },
121         };
128122
123   UINT16 x = input_port_read(field->port->machine, portnames[port][1]);
124   UINT16 y = input_port_read(field->port->machine, portnames[port][2]);
125
126   /* these are the theoretical boundaries */
127   if (x < 0 || x >= SNES_SCR_WIDTH || y < 0 || y >= snes_ppu.beam.last_visible_line)
128      state->scope[port].offscreen = 1;
129   else
130      state->scope[port].offscreen = 0;
131
132   return state->scope[port].offscreen;
133}
134
135static TIMER_CALLBACK( lightgun_tick )
136{
137   if ((input_port_read(machine, "CTRLSEL") & 0x0f) == 0x03 || (input_port_read(machine, "CTRLSEL") & 0x0f) == 0x04)
138   {
139      /* enable lightpen crosshair */
140      crosshair_set_screen(machine, 0, CROSSHAIR_SCREEN_ALL);
141   }
142   else
143   {
144      /* disable lightpen crosshair */
145      crosshair_set_screen(machine, 0, CROSSHAIR_SCREEN_NONE);
146   }
147
148   if ((input_port_read(machine, "CTRLSEL") & 0xf0) == 0x30 || (input_port_read(machine, "CTRLSEL") & 0xf0) == 0x40)
149   {
150      /* enable lightpen crosshair */
151      crosshair_set_screen(machine, 1, CROSSHAIR_SCREEN_ALL);
152   }
153   else
154   {
155      /* disable lightpen crosshair */
156      crosshair_set_screen(machine, 1, CROSSHAIR_SCREEN_NONE);
157   }
158}
159
160
161static INPUT_PORTS_START( snes_joypads )
129162   PORT_START("SERIAL1_DATA1_L")
130163   PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_BUTTON3 ) PORT_NAME("P1 Button A") PORT_PLAYER(1) PORT_CATEGORY(11)
131164   PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_BUTTON4 ) PORT_NAME("P1 Button X") PORT_PLAYER(1) PORT_CATEGORY(11)
r7533r7534
165198   PORT_BIT( 0xff, IP_ACTIVE_HIGH, IPT_UNUSED )
166199   PORT_START("SERIAL2_DATA2_H")
167200   PORT_BIT( 0xff, IP_ACTIVE_HIGH, IPT_UNUSED )
201INPUT_PORTS_END
168202
203static INPUT_PORTS_START( snes_mouse )
169204   PORT_START("MOUSE1")
170205   /* bits 0,3 = mouse signature (must be 1) */
171206   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED )
r7533r7534
201236
202237   PORT_START("MOUSE2_Y")
203238   PORT_BIT( 0xff, 0x00, IPT_TRACKBALL_Y) PORT_SENSITIVITY(100) PORT_KEYDELTA(0) PORT_PLAYER(2) PORT_CATEGORY(22)
239INPUT_PORTS_END
204240
241static INPUT_PORTS_START( snes_superscope )
242   PORT_START("SUPERSCOPE1")
243   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNUSED )   // Noise
244   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(snes_superscope_offscreen_input, (void *)0)
245   PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNUSED )
246   PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNUSED )
247   PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON4 ) PORT_NAME("Port1 Superscope Pause") PORT_PLAYER(1) PORT_CATEGORY(13)
248   PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_BUTTON3 ) PORT_NAME("Port1 Superscope Turbo") PORT_TOGGLE PORT_PLAYER(1) PORT_CATEGORY(13)
249   PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_NAME("Port1 Superscope Cursor") PORT_PLAYER(1) PORT_CATEGORY(13)
250   PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_NAME("Port1 Superscope Fire") PORT_PLAYER(1) PORT_CATEGORY(13)
251
252   PORT_START("SUPERSCOPE1_X")
253   PORT_BIT( 0xff, 0x80, IPT_LIGHTGUN_X ) PORT_NAME("Port1 Superscope X Axis") PORT_CROSSHAIR(X, 1.0, 0.0, 0) PORT_SENSITIVITY(25) PORT_KEYDELTA(15) PORT_PLAYER(1) PORT_CATEGORY(13)
254
255   PORT_START("SUPERSCOPE1_Y")
256   PORT_BIT( 0xff, 0x80, IPT_LIGHTGUN_Y) PORT_NAME("Port1 Superscope Y Axis") PORT_CROSSHAIR(Y, 1.0, 0.0, 0) PORT_SENSITIVITY(25) PORT_KEYDELTA(15) PORT_PLAYER(1) PORT_CATEGORY(13)
257
258   PORT_START("SUPERSCOPE2")
259   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNUSED )   // Noise
260   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(snes_superscope_offscreen_input, (void *)1)
261   PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNUSED )
262   PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNUSED )
263   PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON4 ) PORT_NAME("Port2 Superscope Pause") PORT_PLAYER(2) PORT_CATEGORY(23)
264   PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_BUTTON3 ) PORT_NAME("Port2 Superscope Turbo") PORT_PLAYER(2) PORT_CATEGORY(23)
265   PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_NAME("Port2 Superscope Cursor") PORT_PLAYER(2) PORT_CATEGORY(23)
266   PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_NAME("Port2 Superscope Fire") PORT_PLAYER(2) PORT_CATEGORY(23)
267
268   PORT_START("SUPERSCOPE2_X")
269   PORT_BIT( 0xff, 0x80, IPT_LIGHTGUN_X ) PORT_NAME("Port2 Superscope X Axis") PORT_CROSSHAIR(X, 1.0, 0.0, 0) PORT_SENSITIVITY(25) PORT_KEYDELTA(15) PORT_PLAYER(2) PORT_CATEGORY(23)
270
271   PORT_START("SUPERSCOPE2_Y")
272   PORT_BIT( 0xff, 0x80, IPT_LIGHTGUN_Y) PORT_NAME("Port2 Superscope Y Axis") PORT_CROSSHAIR(Y, 1.0, 0.0, 0) PORT_SENSITIVITY(25) PORT_KEYDELTA(15) PORT_PLAYER(2) PORT_CATEGORY(23)
273INPUT_PORTS_END
274
275static INPUT_PORTS_START( snes )
276   PORT_START("CTRLSEL")  /* Select Controller Type */
277   PORT_CATEGORY_CLASS( 0x0f, 0x01, "P1 Controller")
278   PORT_CATEGORY_ITEM(  0x00, "Unconnected",      10 )
279   PORT_CATEGORY_ITEM(  0x01, "Gamepad",      11 )
280   PORT_CATEGORY_ITEM(  0x02, "Mouse",         12 )
281   PORT_CATEGORY_ITEM(  0x03, "Superscope",      13 )
282//   PORT_CATEGORY_ITEM(  0x04, "Justfier",      14 )
283//   PORT_CATEGORY_ITEM(  0x05, "Multitap",      15 )
284   PORT_CATEGORY_CLASS( 0xf0, 0x10, "P2 Controller")
285   PORT_CATEGORY_ITEM(  0x00, "Unconnected",      20 )
286   PORT_CATEGORY_ITEM(  0x10, "Gamepad",      21 )
287   PORT_CATEGORY_ITEM(  0x20, "Mouse",         22 )
288   PORT_CATEGORY_ITEM(  0x30, "Superscope",      23 )
289//   PORT_CATEGORY_ITEM(  0x40, "Justfier",      24 )
290//   PORT_CATEGORY_ITEM(  0x50, "Multitap",      25 )
291
292   PORT_INCLUDE(snes_joypads)
293   PORT_INCLUDE(snes_mouse)
294   PORT_INCLUDE(snes_superscope)
295
296
205297#ifdef SNES_LAYER_DEBUG
206298   PORT_START("INTERNAL")
207299   PORT_CONFNAME( 0x1, 0x1, "Enforce 32 sprites/line" )
r7533r7534
254346 *
255347 *************************************/
256348
349static void snes_gun_latch( running_machine *machine, INT16 x, INT16 y )
350{
351   /* these are the theoretical boundaries */
352   if (x < 0)
353      x = 0;
354   if (x > (SNES_SCR_WIDTH - 1))
355      x = SNES_SCR_WIDTH - 1;
356
357   if (y < 0)
358      y = 0;
359   if (y > (snes_ppu.beam.last_visible_line - 1))
360      y = snes_ppu.beam.last_visible_line - 1;
361
362   snes_ppu.beam.latch_horz = x;
363   snes_ppu.beam.latch_vert = y;
364   snes_ram[STAT78] |= 0x40;
365}
366
257367static void snes_input_read_joy( running_machine *machine, int port )
258368{
259369   snes_state *state = (snes_state *)machine->driver_data;
r7533r7534
329439   }
330440}
331441
442static void snes_input_read_superscope( running_machine *machine, int port )
443{
444   snes_state *state = (snes_state *)machine->driver_data;
445   static const char *const portnames[2][3] =
446         {
447            { "SUPERSCOPE1", "SUPERSCOPE1_X", "SUPERSCOPE1_Y" },
448            { "SUPERSCOPE2", "SUPERSCOPE2_X", "SUPERSCOPE2_Y" },
449         };
450   UINT8 input;
451
452   /* first read input bits */
453   state->scope[port].x = input_port_read(machine, portnames[port][1]);
454   state->scope[port].y = input_port_read(machine, portnames[port][2]);
455   input = input_port_read(machine, portnames[port][0]);
456
457   /* then start elaborating input bits: only keep old turbo value */
458   state->scope[port].buttons &= 0x20;
459
460   /* set onscreen/offscreen */
461   state->scope[port].buttons |= BIT(input, 1);
462
463   /* turbo is a switch; toggle is edge sensitive */
464   if (BIT(input, 5) && !state->scope[port].turbo_lock)
465   {
466      state->scope[port].buttons ^= 0x20;
467      state->scope[port].turbo_lock = 1;
468   }
469   else if (!BIT(input, 5))
470      state->scope[port].turbo_lock = 0;
471
472   /* fire is a button; if turbo is active, trigger is level sensitive; otherwise it is edge sensitive */
473   if (BIT(input, 7) && (BIT(state->scope[port].buttons, 5) || !state->scope[port].fire_lock))
474   {
475      state->scope[port].buttons |= 0x80;
476      state->scope[port].fire_lock = 1;
477   }
478   else if (!BIT(input, 7))
479      state->scope[port].fire_lock = 0;
480
481   /* cursor is a button; it is always level sensitive */
482   state->scope[port].buttons |= BIT(input, 6);
483
484   /* pause is a button; it is always edge sensitive */
485   if (BIT(input, 4) && !state->scope[port].pause_lock)
486   {
487      state->scope[port].buttons |= 0x10;
488      state->scope[port].pause_lock = 1;
489   }
490   else if (!BIT(input, 4))
491      state->scope[port].pause_lock = 0;
492
493   /* If we have pressed fire or cursor and we are on-screen and SuperScope is in Port2, then latch video signal.
494   Notice that we only latch Port2 because its IOBit pin is connected to bit7 of the IO Port, while Port1 has
495   IOBit pin connected to bit6 of the IO Port, and the latter is not detected by the H/V Counters. In other
496   words, you can connect SuperScope to Port1, but there is no way SNES could detect its on-screen position */
497   if ((state->scope[port].buttons & 0xc0) && !(state->scope[port].buttons & 0x02) && port == 1)
498      snes_gun_latch(machine, state->scope[port].x, state->scope[port].y);
499}
500
332501static void snes_input_read( running_machine *machine )
333502{
334503   snes_state *state = (snes_state *)machine->driver_data;
r7533r7534
336505   UINT8 ctrl2 = (input_port_read(machine, "CTRLSEL") & 0xf0) >> 4;
337506   int i;
338507
508   /* Check if lightgun has been chosen as input: if so, enable crosshair */
509   timer_set(machine, attotime_zero, NULL, 0, lightgun_tick);
510
339511   switch (ctrl1)
340512   {
341   case 1:   /* joystick */
513   case 1:   /* SNES joypad */
342514      snes_input_read_joy(machine, 0);
343515      break;
344516   case 2:   /* SNES Mouse */
345517      snes_input_read_mouse(machine, 0);
346518      break;
519   case 3:   /* SNES Superscope */
520      snes_input_read_superscope(machine, 0);
521      break;
347522   case 0:   /* no controller in port1 */
348523   default:
349524      break;
r7533r7534
351526
352527   switch (ctrl2)
353528   {
354   case 1:   /* joystick */
529   case 1:   /* SNES joypad */
355530      snes_input_read_joy(machine, 1);
356531      break;
357532   case 2:   /* SNES Mouse */
358533      snes_input_read_mouse(machine, 1);
359534      break;
535   case 3:   /* SNES Superscope */
536      snes_input_read_superscope(machine, 1);
537      break;
360538   case 0:   /* no controller in port2 */
361539   default:
362540      break;
r7533r7534
378556   {
379557      switch (ctrl1)
380558      {
381      case 1:   /* joystick */
559      case 1:   /* SNES joypad */
382560         state->joy1l = state->joypad[0].low;
383561         state->joy1h = state->joypad[0].high;
384562         state->joy3l = state->joypad[2].low;
r7533r7534
390568         state->joy3l = 0;
391569         state->joy3h = 0;
392570         break;
571      case 3:   /* SNES Superscope */
572         state->joy1l = 0xff;
573         state->joy1h = state->scope[0].buttons;
574         state->joy3l = 0;
575         state->joy3h = 0;
576         break;
393577      case 0:   /* no controller in port2 */
394578      default:
395579         state->joy1l = 0;
r7533r7534
401585
402586      switch (ctrl2)
403587      {
404      case 1:   /* joystick */
588      case 1:   /* SNES joypad */
405589         state->joy2l = state->joypad[1].low;
406590         state->joy2h = state->joypad[1].high;
407591         state->joy4l = state->joypad[3].low;
r7533r7534
413597         state->joy4l = 0;
414598         state->joy4h = 0;
415599         break;
600      case 3:   /* SNES Superscope */
601         state->joy2l = 0xff;
602         state->joy2h = state->scope[1].buttons;
603         state->joy4l = 0;
604         state->joy4h = 0;
605         break;
416606      case 0:   /* no controller in port2 */
417607      default:
418608         state->joy2l = 0;
r7533r7534
422612         break;
423613      }
424614
425      // make sure oldrol starts returning all 1s because the auto-read reads it :-)
615      // make sure read_idx starts returning all 1s because the auto-read reads it :-)
426616      state->read_idx[0] = 16;
427617      state->read_idx[1] = 16;
428618   }
r7533r7534
437627
438628   switch (ctrl1)
439629   {
440   case 1:   /* joystick */
630   case 1:   /* SNES joypad */
441631      if (state->read_idx[0] >= 16)
442632         res = 0x01;
443633      else
r7533r7534
455645      else
456646         res = 0;
457647      break;
648   case 3:   /* SNES Superscope */
649      if (state->read_idx[0] >= 8)
650         res = 0x01;
651      else
652         res = (state->scope[0].buttons >> (7 - state->read_idx[0]++)) & 0x01;
653      break;
458654   case 0:   /* no controller in port2 */
459655   default:
460656      break;
r7533r7534
471667
472668   switch (ctrl2)
473669   {
474   case 1:   /* joystick */
670   case 1:   /* SNES joypad */
475671      if (state->read_idx[1] >= 16)
476672         res = 0x01;
477673      else
r7533r7534
489685      else
490686         res = 0;
491687      break;
688   case 3:   /* SNES Superscope */
689      if (state->read_idx[1] >= 8)
690         res = 0x01;
691      else
692         res = (state->scope[1].buttons >> (7 - state->read_idx[1]++)) & 0x01;
693      break;
492694   case 0:   /* no controller in port2 */
493695   default:
494696      break;

Previous 15994 Revisions Next


© 1998-2018 The MESS Team