Previous 15994 Revisions Next

r8088 Wednesday 19th May, 2010 at 17:59:57 UTC by Fabio Priuli
Fixed assert [Michael Zapf]
[src/mess/machine]ti99_4x.c

src/mess/machine/ti99_4x.c
r8087r8088
12621262            if (! (offset & 1))
12631263            {
12641264               cpu_adjust_icount(devtag_get_device(space->machine, "maincpu"),-16*4);      /* this is just a minimum, it can be more */
1265               reply = tms5220_status_r(devtag_get_device(space->machine, "tmc0285"), 0);
1265               reply = tms5220_status_r(devtag_get_device(space->machine, "tms5220"), 0);
12661266            }
12671267            break;
12681268
r8087r8088
14281428                    there are 15 bytes in FIFO.  It should be 16.  Of course, if it were the
14291429                    case, we would need to store the value on the bus, which would be more
14301430                    complex. */
1431               if (! tms5220_readyq_r(devtag_get_device(space->machine, "tmc0285")))
1431               if (! tms5220_readyq_r(devtag_get_device(space->machine, "tms5220")))
14321432               {
1433                  attotime time_to_ready = double_to_attotime(tms5220_time_to_ready(devtag_get_device(space->machine, "tmc0285")));
1433                  attotime time_to_ready = double_to_attotime(tms5220_time_to_ready(devtag_get_device(space->machine, "tms5220")));
14341434                  double d = cputag_attotime_to_clocks(space->machine, "maincpu", time_to_ready);
14351435                  int cycles_to_ready = ((int) (d + 3)) & ~3;
14361436
r8087r8088
14411441                  timer_set(space->machine, attotime_zero, NULL, 0, /*speech_kludge_callback*/NULL);
14421442               }
14431443
1444               tms5220_data_w(devtag_get_device(space->machine, "tmc0285"), offset, data);
1444               tms5220_data_w(devtag_get_device(space->machine, "tms5220"), offset, data);
14451445            }
14461446            break;
14471447

Previous 15994 Revisions Next


© 1998-2018 The MESS Team