trunk/src/mess/drivers/pc9801.c
| r19328 | r19329 | |
| 912 | 912 | UINT8 res; |
| 913 | 913 | |
| 914 | 914 | res = m_keyb_press; |
| 915 | pic8259_ir1_w(machine().device("pic8259_master"), 0); |
| 915 | 916 | |
| 916 | 917 | return res; |
| 917 | 918 | } |
| r19328 | r19329 | |
| 2281 | 2282 | |
| 2282 | 2283 | if(oldval && !newval) |
| 2283 | 2284 | { |
| 2284 | | m_keyb_press = 0; |
| 2285 | | pic8259_ir1_w(machine().device("pic8259_master"), 0); |
| 2285 | m_keyb_press = ((UINT8)(FPTR)(param) & 0x7f) | 0x80; |
| 2286 | pic8259_ir1_w(machine().device("pic8259_master"), 1); |
| 2286 | 2287 | } |
| 2287 | 2288 | } |
| 2288 | 2289 | |
| r19328 | r19329 | |
| 2297 | 2298 | } |
| 2298 | 2299 | else |
| 2299 | 2300 | { |
| 2300 | | m_keyb_press = 0; |
| 2301 | | pic8259_ir1_w(machine().device("pic8259_master"), 0); |
| 2301 | m_keyb_press = ((UINT8)(FPTR)(param) & 0x7f) | 0x80; |
| 2302 | pic8259_ir1_w(machine().device("pic8259_master"), 1); |
| 2302 | 2303 | } |
| 2303 | 2304 | } |
| 2304 | 2305 | |