src/mame/video/amiga.c
| r10514 | r10515 | |
| 65 | 65 | 0x5540, 0x5541, 0x5544, 0x5545, 0x5550, 0x5551, 0x5554, 0x5555 |
| 66 | 66 | }; |
| 67 | 67 | |
| 68 | const 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 | }; |
| 68 | 88 | |
| 69 | 89 | |
| 90 | |
| 70 | 91 | /************************************* |
| 71 | 92 | * |
| 72 | 93 | * 4-4-4 palette init |
| r10514 | r10515 | |
| 186 | 207 | { |
| 187 | 208 | if (LOG_COPPER) |
| 188 | 209 | 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 | | |
| 190 | 210 | amiga_custom_w(cputag_get_address_space(machine, "maincpu", ADDRESS_SPACE_PROGRAM), state->copper_pending_offset, state->copper_pending_data, 0xffff); |
| 191 | 211 | state->copper_pending_offset = 0; |
| 192 | 212 | } |
| r10514 | r10515 | |
| 243 | 263 | /* needed for Arcadia's Fast Break */ |
| 244 | 264 | state->copper_pending_offset = word0; |
| 245 | 265 | 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 | } |
| 246 | 275 | } |
| 247 | 276 | |
| 248 | 277 | /* illegal writes suspend until next frame */ |
| r10514 | r10515 | |
| 636 | 665 | CUSTOM_REG(REG_COLOR00) = state->genlock_color; |
| 637 | 666 | |
| 638 | 667 | /* loop over the line */ |
| 639 | | next_copper_x = 2; |
| 668 | next_copper_x = 0; |
| 640 | 669 | for (x = 0; x < 0xe4*2; x++) |
| 641 | 670 | { |
| 642 | 671 | int sprpix; |