Previous 15994 Revisions Next

r5715 Sunday 13th September, 2009 at 14:51:12 UTC by Angelo Salese
[X1]: Hooked up latch/open bus behaviour when the sub obf is active high, helps with Rally-X inputs
[src/mess/drivers]x1.c

src/mess/drivers/x1.c
r5714r5715
531531
532532static READ8_HANDLER( sub_io_r )
533533{
534   static int sub_val_ptr;
535   UINT8 ret;
534   static int sub_val_ptr,key_i = 0;
535   UINT8 ret,bus_res;
536536
537   /* Looks like that the HW retains the latest data putted on the bus here, behaviour confirmed by Rally-X */
537538   if(sub_obf)
538      return 0xff;
539   {
540      bus_res = sub_val[key_i];
541      /* FIXME: likely to be different here. */
542      key_i++;
543      if(key_i >= 2) { key_i = 0; }
539544
545      return bus_res;
546   }
547
540548   /*if(key_flag == 1)
541549   {
542550      key_flag = 0;
r5714r5715
17861794// (ym-2151 handler here)
17871795
17881796/*************************************
1789 *
1797 *
17901798 *  Cassette configuration
1791 *
1799 *
17921800 *************************************/
17931801
17941802static const cassette_config x1_cassette_config =

Previous 15994 Revisions Next


© 1998-2018 The MESS Team