Previous 15994 Revisions Next

r5801 Saturday 19th September, 2009 at 16:08:39 UTC by Angelo Salese
[z80dma]: implemented fixed port transfer behaviour.
[src/emu/machine]z80dma.c

src/emu/machine/z80dma.c
r5800r5801
142142               cntx->latch = cntx->intf->memory_read(device, cntx->addressA);
143143            else
144144               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);
146146         }
147147         else
148148         {
r5800r5801
150150               cntx->latch = cntx->intf->memory_read(device, cntx->addressB);
151151            else
152152               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);
154155         }
155156         break;
156157      case TM_SEARCH:
r5800r5801
184185               cntx->intf->memory_write(device, cntx->addressB, cntx->latch);
185186            else
186187               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);
188190         }
189191         else
190192         {
r5800r5801
192194               cntx->intf->memory_write(device, cntx->addressA, cntx->latch);
193195            else
194196               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);
196199         }
197200         cntx->count--;
198201         done = (cntx->count == 0xFFFF);

Previous 15994 Revisions Next


© 1998-2018 The MESS Team