Previous 15994 Revisions Next

r5647 Tuesday 8th September, 2009 at 14:31:55 UTC by Roberto Zandonà
[C64] fixed CIA PRA,PRB,DDRA,DDRB ports: now activision decathlon, california games and other games are working
[src/emu/machine]6526cia.c

src/emu/machine/6526cia.c
r5646r5647
663663         port = &cia->port[offset & 1];
664664         data = devcb_call_read8(&port->read, 0);
665665         data = ((data & ~port->ddr) | (port->latch & port->ddr)) & port->mask_value;
666
666667         port->in = data;
667668
668669         if (offset == CIA_PRB)
r5646r5647
762763         data = timer->mode;
763764         break;
764765   }
766
765767   return data;
766768}
767769
r5646r5647
891893
892894
893895
894UINT8 cia_get_output_a(const device_config *device)   { return get_token(device)->port[0].out; }
895UINT8 cia_get_output_b(const device_config *device)   { return get_token(device)->port[1].out; }
896UINT8 cia_get_output_a(const device_config *device)   { return (get_token(device)->port[0].latch | ~get_token(device)->port[0].ddr); }
897UINT8 cia_get_output_b(const device_config *device)   { return (get_token(device)->port[1].latch | ~get_token(device)->port[1].ddr); }
896898int cia_get_irq(const device_config *device)      { return get_token(device)->irq; }
897899
898900

Previous 15994 Revisions Next


© 1998-2018 The MESS Team