trunk/src/emu/cpu/tms9900/tms9900.c
| r25386 | r25387 | |
| 1382 | 1382 | */ |
| 1383 | 1383 | void tms99xx_device::mem_read() |
| 1384 | 1384 | { |
| 1385 | // The following line will be taken out of this method and |
| 1386 | // be executed at an earlier microprogram clock tick |
| 1387 | // After set_address, any device attached to the address bus may pull down |
| 1388 | // READY in order to put the CPU into wait state before the read_word |
| 1389 | // operation will be performed |
| 1390 | // set_address and read_word should pass the same address as argument |
| 1391 | m_prgspace->set_address(m_address & m_prgaddr_mask & 0xfffe); |
| 1392 | |
| 1385 | 1393 | m_current_value = m_prgspace->read_word(m_address & m_prgaddr_mask & 0xfffe); |
| 1386 | 1394 | pulse_clock(2); |
| 1387 | 1395 | m_check_ready = true; |
| r25386 | r25387 | |
| 1390 | 1398 | |
| 1391 | 1399 | void tms99xx_device::mem_write() |
| 1392 | 1400 | { |
| 1401 | // see mem_read |
| 1402 | m_prgspace->set_address(m_address & m_prgaddr_mask & 0xfffe); |
| 1403 | |
| 1393 | 1404 | m_prgspace->write_word(m_address & m_prgaddr_mask & 0xfffe, m_current_value); |
| 1394 | 1405 | pulse_clock(2); |
| 1395 | 1406 | m_check_ready = true; |