Previous 15994 Revisions Next

r6053 Monday 12th October, 2009 at 18:58:34 UTC by Wilbert Pol
[SMS] Fixed rapid-fire to only fire when buttons are pressed. (Bug #1864) [Enik Land]
[docs]messnew.txt
[src/mess/machine]sms.c

src/mess/machine/sms.c
r6052r6053
168168   case 0x00:  /* Joystick */
169169      data = input_port_read(machine, "PORT_DC");
170170      /* Rapid Fire setting for Button A */
171      if ( input_port_read(machine, "RFU") & 0x01 )
171      if ( !(data & 0x10 ) && ( input_port_read(machine, "RFU") & 0x01) )
172172      {
173         data = ( data & 0xEF ) | ( rapid_fire_state_1 & 0x10 );
173         data |= rapid_fire_state_1 & 0x10;
174174      }
175175      /* Check Rapid Fire setting for Button B */
176      if ( input_port_read(machine, "RFU") & 0x02 )
176      if ( !(data & 0x20) && (input_port_read(machine, "RFU") & 0x02) )
177177      {
178         data = ( data & 0xDF ) | ( rapid_fire_state_1 & 0x20 );
178         data |= rapid_fire_state_1 & 0x20;
179179      }
180180      sms_input_port0 = ( sms_input_port0 & 0xC0 ) | ( data & 0x3F );
181181      break;
r6052r6053
221221      data = input_port_read(machine, "PORT_DC");
222222      sms_input_port0 = ( sms_input_port0 & 0x3F ) | ( data & 0xC0 );
223223      data = input_port_read(machine, "PORT_DD");
224      if ( input_port_read(machine, "RFU") & 0x04 )
224      if ( !(data & 0x04) && (input_port_read(machine, "RFU") & 0x04) )
225225      {
226         data = ( data & 0xFB ) | ( rapid_fire_state_2 & 0x04 );
226         data |= rapid_fire_state_2 & 0x04;
227227      }
228      if ( input_port_read(machine, "RFU") & 0x08 )
228      if ( !(data & 0x08) && (input_port_read(machine, "RFU") & 0x08) )
229229      {
230         data = ( data & 0xF7 ) | ( rapid_fire_state_2 & 0x08 );
230         data |= rapid_fire_state_2 & 0x08;
231231      }
232232      sms_input_port1 = ( sms_input_port1 & 0xF0 ) | ( data & 0x0F );
233233      break;
docs/messnew.txt
r6052r6053
5656
5757- [SAMCOUPE] Improved Mode 1 graphics.  [Dirk Best]
5858
59- [SMS] Fixed rapid-fire to only fire when buttons are
60  pressed. (Bug #1864)  [Enik Land]
61
5962- [SPECTRUM] Fixed bug #803 48K SNA load routine bad PC. [Miodrag Milanovic]
6063
6164- [TRS80] Model 4 and 4P can boot from floppy disk. [Robbbert]

Previous 15994 Revisions Next


© 1998-2018 The MESS Team