Previous 15994 Revisions Next

r10515 Sunday 20th February, 2011 at 10:13:28 UTC by Roberto Zandonà
amiga:
removed additional 2 cycles, in move operation, for non-Agnus registers [Roberto Zandon?\195?\160]
start copper operation from cycle #0 [Roberto Zandon?\195?\160]
[src/mame/video]amiga.c

src/mame/video/amiga.c
r10514r10515
6565   0x5540, 0x5541, 0x5544, 0x5545, 0x5550, 0x5551, 0x5554, 0x5555
6666};
6767
68const UINT16 delay[256] =
69{
70   1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,1,1,1,1,0,0,0,0,0,0,0,0,   /* 0x000 - 0x03e */
71   0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,                  /* 0x040 - 0x05e */
72   0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,                  /* 0x060 - 0x07e */
73   0,0,0,0,1,1,1,1,1,1,1,1,0,0,0,0,                  /* 0x080 - 0x09e */
74   1,1,0,0,0,0,0,0,1,1,0,0,0,0,0,0,1,1,0,0,0,0,0,0,1,1,0,0,0,0,0,0,   /* 0x0a0 - 0x0de */
75   /* BPLxPTH/BPLxPTL */
76   0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,                  /* 0x0e0 - 0x0fe */
77   /* BPLCON0-3,BPLMOD1-2 */
78   0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,                  /* 0x100 - 0x11e */
79   /* SPRxPTH/SPRxPTL */
80   1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,                  /* 0x120 - 0x13e */
81   /* SPRxPOS/SPRxCTL/SPRxDATA/SPRxDATB */
82   1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,   /* 0x140 - 0x17e */
83   /* COLORxx */
84   0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,   /* 0x180 - 0x1be */
85   /* RESERVED */
86   0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0   /* 0x1c0 - 0x1fe */
87};
6888
6989
90
7091/*************************************
7192 *
7293 *  4-4-4 palette init
r10514r10515
186207   {
187208      if (LOG_COPPER)
188209         logerror("%02X.%02X: Write to %s = %04x\n", state->last_scanline, xpos / 2, amiga_custom_names[state->copper_pending_offset & 0xff], state->copper_pending_data);
189
190210      amiga_custom_w(cputag_get_address_space(machine, "maincpu", ADDRESS_SPACE_PROGRAM), state->copper_pending_offset, state->copper_pending_data, 0xffff);
191211      state->copper_pending_offset = 0;
192212   }
r10514r10515
243263         /* needed for Arcadia's Fast Break */
244264         state->copper_pending_offset = word0;
245265         state->copper_pending_data = word1;
266         if (delay[word0] == 0) // additional 2 cycles needed only for non-Agnus registers
267         {
268            if (LOG_COPPER)
269               logerror("%02X.%02X: Write to %s = %04x\n", state->last_scanline, xpos / 2,
270                   amiga_custom_names[state->copper_pending_offset & 0xff], state->copper_pending_data);
271            amiga_custom_w(cputag_get_address_space(machine, "maincpu", ADDRESS_SPACE_PROGRAM),
272               state->copper_pending_offset, state->copper_pending_data, 0xffff);
273            state->copper_pending_offset = 0;
274         }
246275      }
247276
248277      /* illegal writes suspend until next frame */
r10514r10515
636665      CUSTOM_REG(REG_COLOR00) = state->genlock_color;
637666
638667   /* loop over the line */
639   next_copper_x = 2;
668   next_copper_x = 0;
640669   for (x = 0; x < 0xe4*2; x++)
641670   {
642671      int sprpix;

Previous 15994 Revisions Next


© 1998-2018 The MESS Team