Previous 15994 Revisions Next

r3629 Thursday 27th November, 2008 at 09:29:52 UTC by Barry Rodewald
[AMSTRAD] Updated video/amstrad.c
[src/mess/machine]amstrad.c
[src/mess/video]amstrad.c

src/mess/video/amstrad.c
r3628r3629
974974static void amstrad_plus_dma_parse(running_machine *machine, int channel, int *addr)
975975{
976976   unsigned short command;
977   const address_space* space = cpu_get_address_space(machine->cpu[0],ADDRESS_SPACE_PROGRAM);
977978
978979   if(*addr & 0x01)
979980      (*addr)++;  // align to even address
r3628r3629
993994   switch(command & 0xf000)
994995   {
995996   case 0x0000:  // Load PSG register
996      ay8910_control_port_0_w(machine, 0,(command & 0x0f00) >> 8);
997      ay8910_write_port_0_w(machine, 0,command & 0x00ff);
998      ay8910_control_port_0_w(machine, 0,prev_reg);
997      ay8910_control_port_0_w(space, 0,(command & 0x0f00) >> 8);
998      ay8910_write_port_0_w(space, 0,command & 0x00ff);
999      ay8910_control_port_0_w(space, 0,prev_reg);
9991000      logerror("DMA %i: LOAD %i, %i\n",channel,(command & 0x0f00) >> 8, command & 0x00ff);
10001001      break;
10011002   case 0x1000:  // Pause for n HSYNCs (0 - 4095)
src/mess/machine/amstrad.c
r3628r3629
3838/* load CPCEMU style snapshots */
3939void amstrad_handle_snapshot(running_machine *machine, unsigned char *pSnapshot)
4040{
41   const address_space *space = cpu_get_address_space(machine->cpu[0], ADDRESS_SPACE_PROGRAM);
41   const address_space* space = cpu_get_address_space(machine->cpu[0],ADDRESS_SPACE_PROGRAM);
4242   int RegData;
4343   int i;
4444

Previous 15994 Revisions Next


© 1998-2018 The MESS Team