src/mess/drivers/x1.c
| r5714 | r5715 | |
| 531 | 531 | |
| 532 | 532 | static READ8_HANDLER( sub_io_r ) |
| 533 | 533 | { |
| 534 | | static int sub_val_ptr; |
| 535 | | UINT8 ret; |
| 534 | static int sub_val_ptr,key_i = 0; |
| 535 | UINT8 ret,bus_res; |
| 536 | 536 | |
| 537 | /* Looks like that the HW retains the latest data putted on the bus here, behaviour confirmed by Rally-X */ |
| 537 | 538 | 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; } |
| 539 | 544 | |
| 545 | return bus_res; |
| 546 | } |
| 547 | |
| 540 | 548 | /*if(key_flag == 1) |
| 541 | 549 | { |
| 542 | 550 | key_flag = 0; |
| r5714 | r5715 | |
| 1786 | 1794 | // (ym-2151 handler here) |
| 1787 | 1795 | |
| 1788 | 1796 | /************************************* |
| 1789 | | * |
| 1797 | * |
| 1790 | 1798 | * Cassette configuration |
| 1791 | | * |
| 1799 | * |
| 1792 | 1800 | *************************************/ |
| 1793 | 1801 | |
| 1794 | 1802 | static const cassette_config x1_cassette_config = |