Previous 15994 Revisions Next

r4924 Wednesday 3rd June, 2009 at 10:09:52 UTC by Barry Rodewald
[FM7] Implemented Break key. Thunder Force is now playable.
[src/mess/drivers]fm7.c

src/mess/drivers/fm7.c
r4923r4924
6363static UINT16 current_scancode;
6464static UINT32 key_data[4];
6565static UINT16 vram_offset;
66static UINT8 break_flag;
6667
6768/* key scancode conversion table
6869 * The FM-7 expects different scancodes when shift,ctrl or graph is held, or
r4923r4924
261262      ret &= ~0x01;
262263      attn_irq = 0;
263264   }
265   if(break_flag != 0)
266   {
267      ret &= ~0x02;
268   }
264269   return ret;
265270}
266271/*
r4923r4924
524529   if(modifiers & 0x01)
525530      mod = 2;  // ctrl (overrides shift, if also pressed)
526531   
532   if(input_port_read(machine,"key3") & 0x40000)
533   {
534      break_flag = 1;
535      cputag_set_input_line(machine,"maincpu",M6809_FIRQ_LINE,ASSERT_LINE);
536   }
537   else
538      break_flag = 0;
539     
527540   for(x=0;x<3;x++)
528541   {
529542      keys = input_port_read(machine,portnames[x]);
r4923r4924
771784   key_delay = 700;  // 700ms on FM-7
772785   key_repeat = 70;  // 70ms on FM-7
773786   vram_offset = 0x0000;
787   break_flag = 0;
774788}
775789
776790static VIDEO_START( fm7 )

Previous 15994 Revisions Next


© 1998-2018 The MESS Team