Previous 199869 Revisions Next

r21071 Thursday 14th February, 2013 at 18:18:36 UTC by Sandro Ronco
Fixed H8S regression, cybikoxt now works again. (nw)
[src/emu/cpu/h83002]h8speriph.c

trunk/src/emu/cpu/h83002/h8speriph.c
r21070r21071
406406void h8s_periph_reset(h83xx_state *h8)
407407{
408408   int tpu_max = h8->tpu_max;
409   h8->tpu_max = tpu_max;
410409   if ((h8->device->type() == H8S2241) || (h8->device->type() == H8S2246))
411410   {
412411      memcpy( h8->per_regs, H8S_RESET_H8S_IO_224x, sizeof( h8->per_regs));
r21070r21071
661660
662661void h8s_tpu_init(h83xx_state *h8)
663662{
664   const int tpu_max = ((h8->device->type() == H8S2323) || (h8->device->type() == H8S2394) || (h8->device->type() == H8S2655)) ? 6 : 3;
665   for (int i = 0; i < tpu_max; i++)
663   h8->tpu_max = ((h8->device->type() == H8S2323) || (h8->device->type() == H8S2394) || (h8->device->type() == H8S2655)) ? 6 : 3;
664   for (int i = 0; i < h8->tpu_max; i++)
666665   {
667666      h8->tpu[i].timer = h8->device->machine().scheduler().timer_alloc(FUNC(h8s_tpu_callback), h8);
668667      h8->tpu[i].timer->adjust(attotime::never, i);

Previous 199869 Revisions Next


© 1997-2024 The MAME Team