src/emu/machine/z80dma.c
| r5800 | r5801 | |
| 142 | 142 | cntx->latch = cntx->intf->memory_read(device, cntx->addressA); |
| 143 | 143 | else |
| 144 | 144 | cntx->latch = cntx->intf->portA_read(device, cntx->addressA); |
| 145 | | cntx->addressA += PORTA_STEP(cntx); |
| 145 | cntx->addressA += PORTA_FIXED(cntx) ? 0 : PORTA_STEP(cntx); |
| 146 | 146 | } |
| 147 | 147 | else |
| 148 | 148 | { |
| r5800 | r5801 | |
| 150 | 150 | cntx->latch = cntx->intf->memory_read(device, cntx->addressB); |
| 151 | 151 | else |
| 152 | 152 | cntx->latch = cntx->intf->portB_read(device, cntx->addressB); |
| 153 | | cntx->addressB += PORTB_STEP(cntx); |
| 153 | |
| 154 | cntx->addressB += PORTB_FIXED(cntx) ? 0 : PORTB_STEP(cntx); |
| 154 | 155 | } |
| 155 | 156 | break; |
| 156 | 157 | case TM_SEARCH: |
| r5800 | r5801 | |
| 184 | 185 | cntx->intf->memory_write(device, cntx->addressB, cntx->latch); |
| 185 | 186 | else |
| 186 | 187 | cntx->intf->portB_write(device, cntx->addressB, cntx->latch); |
| 187 | | cntx->addressB += PORTB_STEP(cntx); |
| 188 | |
| 189 | cntx->addressB += PORTB_FIXED(cntx) ? 0 : PORTB_STEP(cntx); |
| 188 | 190 | } |
| 189 | 191 | else |
| 190 | 192 | { |
| r5800 | r5801 | |
| 192 | 194 | cntx->intf->memory_write(device, cntx->addressA, cntx->latch); |
| 193 | 195 | else |
| 194 | 196 | cntx->intf->portB_write(device, cntx->addressA, cntx->latch); |
| 195 | | cntx->addressA += PORTA_STEP(cntx); |
| 197 | |
| 198 | cntx->addressA += PORTA_FIXED(cntx) ? 0 : PORTA_STEP(cntx); |
| 196 | 199 | } |
| 197 | 200 | cntx->count--; |
| 198 | 201 | done = (cntx->count == 0xFFFF); |