src/mess/drivers/channelf.c
| r3660 | r3661 | |
| 45 | 45 | return (~ext | latch_state); |
| 46 | 46 | } |
| 47 | 47 | |
| 48 | | static READ8_HANDLER( channelf_port_0_r ) |
| 48 | static READ8_HANDLER( channelf_port_0_r ) |
| 49 | 49 | { |
| 50 | | return port_read_with_latch(input_port_read(machine, "PANEL"),latch[0]); |
| 50 | return port_read_with_latch(input_port_read(space->machine, "PANEL"),latch[0]); |
| 51 | 51 | } |
| 52 | 52 | |
| 53 | | static READ8_HANDLER( channelf_port_1_r ) |
| 53 | static READ8_HANDLER( channelf_port_1_r ) |
| 54 | 54 | { |
| 55 | 55 | UINT8 ext_value; |
| 56 | 56 | |
| 57 | 57 | if ((latch[0] & 0x40) == 0) |
| 58 | 58 | { |
| 59 | | ext_value = input_port_read(machine, "RIGHT_C"); |
| 59 | ext_value = input_port_read(space->machine, "RIGHT_C"); |
| 60 | 60 | } |
| 61 | 61 | else |
| 62 | 62 | { |
| 63 | | ext_value = 0xc0 | input_port_read(machine, "RIGHT_C"); |
| 63 | ext_value = 0xc0 | input_port_read(space->machine, "RIGHT_C"); |
| 64 | 64 | } |
| 65 | 65 | return port_read_with_latch(ext_value,latch[1]); |
| 66 | 66 | } |
| 67 | 67 | |
| 68 | | static READ8_HANDLER( channelf_port_4_r ) |
| 68 | static READ8_HANDLER( channelf_port_4_r ) |
| 69 | 69 | { |
| 70 | 70 | UINT8 ext_value; |
| 71 | 71 | |
| 72 | 72 | if ((latch[0] & 0x40) == 0) |
| 73 | 73 | { |
| 74 | | ext_value = input_port_read(machine, "LEFT_C"); |
| 74 | ext_value = input_port_read(space->machine, "LEFT_C"); |
| 75 | 75 | } |
| 76 | 76 | else |
| 77 | 77 | { |
| r3660 | r3661 | |
| 80 | 80 | return port_read_with_latch(ext_value,latch[2]); |
| 81 | 81 | } |
| 82 | 82 | |
| 83 | | static READ8_HANDLER( channelf_port_5_r ) |
| 83 | static READ8_HANDLER( channelf_port_5_r ) |
| 84 | 84 | { |
| 85 | 85 | return port_read_with_latch(0xff,latch[3]); |
| 86 | 86 | } |