src/emu/machine/z80dma.c
| r5834 | r5835 | |
| 151 | 151 | else |
| 152 | 152 | cntx->latch = cntx->intf->portA_read(device, cntx->addressA); |
| 153 | 153 | |
| 154 | LOG(("A src: %04x \n",cntx->addressA)); |
| 154 | 155 | cntx->addressA += PORTA_FIXED(cntx) ? 0 : PORTA_INC(cntx) ? PORTA_STEP(cntx) : -PORTA_STEP(cntx); |
| 155 | 156 | } |
| 156 | 157 | else |
| r5834 | r5835 | |
| 160 | 161 | else |
| 161 | 162 | cntx->latch = cntx->intf->portB_read(device, cntx->addressB); |
| 162 | 163 | |
| 164 | LOG(("B src: %04x \n",cntx->addressB)); |
| 163 | 165 | cntx->addressB += PORTB_FIXED(cntx) ? 0 : PORTB_INC(cntx) ? PORTB_STEP(cntx) : -PORTB_STEP(cntx); |
| 164 | 166 | } |
| 165 | 167 | break; |
| r5834 | r5835 | |
| 192 | 194 | else |
| 193 | 195 | cntx->intf->portB_write(device, cntx->addressB, cntx->latch); |
| 194 | 196 | |
| 197 | LOG(("B dst: %04x \n",cntx->addressB)); |
| 195 | 198 | cntx->addressB += PORTB_FIXED(cntx) ? 0 : PORTB_INC(cntx) ? PORTB_STEP(cntx) : -PORTB_STEP(cntx); |
| 196 | 199 | } |
| 197 | 200 | else |
| r5834 | r5835 | |
| 201 | 204 | else |
| 202 | 205 | cntx->intf->portA_write(device, cntx->addressA, cntx->latch); |
| 203 | 206 | |
| 207 | LOG(("A dst: %04x \n",cntx->addressA)); |
| 204 | 208 | cntx->addressA += PORTA_FIXED(cntx) ? 0 : PORTA_INC(cntx) ? PORTA_STEP(cntx) : -PORTA_STEP(cntx); |
| 205 | 209 | } |
| 206 | 210 | cntx->count--; |
| r5834 | r5835 | |
| 418 | 422 | case 0x83: /* Disable dma */ |
| 419 | 423 | LOG(("Disable DMA\n")); |
| 420 | 424 | cntx->dma_enabled = 0; |
| 425 | cntx->rdy = 1 ^ ((WR5(cntx) & 0x8)>>3); |
| 421 | 426 | z80dma_rdy_w(device, 0, cntx->rdy); |
| 422 | 427 | break; |
| 423 | 428 | case 0x87: /* Enable dma */ |
| 424 | 429 | LOG(("Enable DMA\n")); |
| 425 | 430 | cntx->dma_enabled = 1; |
| 431 | cntx->rdy = (WR5(cntx) & 0x8)>>3; |
| 426 | 432 | z80dma_rdy_w(device, 0, cntx->rdy); |
| 427 | 433 | break; |
| 428 | 434 | case 0xBB: |