Previous 199869 Revisions Next

r25387 Saturday 21st September, 2013 at 22:37:56 UTC by Michael Zapf
Application of the set_address (AM_SETOFFSET) feature.
[src/emu/cpu/tms9900]tms9900.c

trunk/src/emu/cpu/tms9900/tms9900.c
r25386r25387
13821382*/
13831383void tms99xx_device::mem_read()
13841384{
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
13851393   m_current_value = m_prgspace->read_word(m_address & m_prgaddr_mask & 0xfffe);
13861394   pulse_clock(2);
13871395   m_check_ready = true;
r25386r25387
13901398
13911399void tms99xx_device::mem_write()
13921400{
1401   // see mem_read
1402   m_prgspace->set_address(m_address & m_prgaddr_mask & 0xfffe);
1403
13931404   m_prgspace->write_word(m_address & m_prgaddr_mask & 0xfffe, m_current_value);
13941405   pulse_clock(2);
13951406   m_check_ready = true;

Previous 199869 Revisions Next


© 1997-2024 The MAME Team