src/mess/video/amstrad.c
| r3628 | r3629 | |
| 974 | 974 | static void amstrad_plus_dma_parse(running_machine *machine, int channel, int *addr) |
| 975 | 975 | { |
| 976 | 976 | unsigned short command; |
| 977 | const address_space* space = cpu_get_address_space(machine->cpu[0],ADDRESS_SPACE_PROGRAM); |
| 977 | 978 | |
| 978 | 979 | if(*addr & 0x01) |
| 979 | 980 | (*addr)++; // align to even address |
| r3628 | r3629 | |
| 993 | 994 | switch(command & 0xf000) |
| 994 | 995 | { |
| 995 | 996 | 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); |
| 999 | 1000 | logerror("DMA %i: LOAD %i, %i\n",channel,(command & 0x0f00) >> 8, command & 0x00ff); |
| 1000 | 1001 | break; |
| 1001 | 1002 | case 0x1000: // Pause for n HSYNCs (0 - 4095) |