trunk/src/mess/machine/nes.c
| r17739 | r17740 | |
| 1252 | 1252 | { |
| 1253 | 1253 | auto_free(image.device().machine(), temp_prg); |
| 1254 | 1254 | auto_free(image.device().machine(), temp_chr); |
| 1255 | | fatalerror("UNIF should have a [MAPR] chunk to work. Check if your image has been corrupted"); |
| 1255 | fatalerror("UNIF should have a [MAPR] chunk to work. Check if your image has been corrupted\n"); |
| 1256 | 1256 | } |
| 1257 | 1257 | |
| 1258 | 1258 | if (!prg_start) |
| r17739 | r17740 | |
| 1341 | 1341 | |
| 1342 | 1342 | // validate the xml fields |
| 1343 | 1343 | if (!prg_size) |
| 1344 | | fatalerror("No PRG entry for this software! Please check if the xml list got corrupted"); |
| 1344 | fatalerror("No PRG entry for this software! Please check if the xml list got corrupted\n"); |
| 1345 | 1345 | if (prg_size < 0x8000) |
| 1346 | | fatalerror("PRG entry is too small! Please check if the xml list got corrupted"); |
| 1346 | fatalerror("PRG entry is too small! Please check if the xml list got corrupted\n"); |
| 1347 | 1347 | |
| 1348 | 1348 | // Allocate class pointers for PRG/VROM/VRAM/WRAM and copy data there from the temp copies |
| 1349 | 1349 | state->m_prg = auto_alloc_array(image.device().machine(), UINT8, prg_size); |
trunk/src/mess/machine/nes_mmc.c
| r17739 | r17740 | |
| 396 | 396 | nes_state *state = machine.driver_data<nes_state>(); |
| 397 | 397 | |
| 398 | 398 | if (source == CHRRAM && state->m_vram == NULL) |
| 399 | | fatalerror("CHRRAM bankswitch with no VRAM"); |
| 399 | fatalerror("CHRRAM bankswitch with no VRAM\n"); |
| 400 | 400 | |
| 401 | 401 | if (source == CHRROM && state->m_vrom == NULL) |
| 402 | | fatalerror("CHRROM bankswitch with no VROM"); |
| 402 | fatalerror("CHRROM bankswitch with no VROM\n"); |
| 403 | 403 | } |
| 404 | 404 | |
| 405 | 405 | static void chr8( running_machine &machine, int bank, int source ) |
trunk/src/mess/machine/docg3.c
| r17739 | r17740 | |
| 597 | 597 | { |
| 598 | 598 | UINT32 block, page, plane; |
| 599 | 599 | block = (m_data_1036 >> 7); |
| 600 | | if (block >= m_blocks) fatalerror( "DOCG3: invalid block (%d)", block); |
| 600 | if (block >= m_blocks) fatalerror( "DOCG3: invalid block (%d)\n", block); |
| 601 | 601 | plane = (m_data_1036 >> 6) & 1; |
| 602 | 602 | page = (m_data_1036 >> 0) & 0x3F; |
| 603 | 603 | verboselog( machine(), 5, "flash address %d - %06X (plane %d block %04X page %04X)\n", m_address_count, m_data_1036, plane, block, page); |
trunk/src/mess/machine/s3c44b0.c
| r17739 | r17740 | |
| 377 | 377 | case S3C44B0_PNRMODE_STN_04_SS : width = ((hozval + 1) * 4); break; |
| 378 | 378 | case S3C44B0_PNRMODE_STN_04_DS : width = ((hozval + 1) * 4); break; |
| 379 | 379 | case S3C44B0_PNRMODE_STN_08_SS : width = ((hozval + 1) * 8); break; |
| 380 | | default : fatalerror( "invalid display mode (%d)", dismode); break; |
| 380 | default : fatalerror( "invalid display mode (%d)\n", dismode); break; |
| 381 | 381 | } |
| 382 | 382 | height = lineval + 1; |
| 383 | 383 | lcd->framerate = framerate; |
| r17739 | r17740 | |
| 862 | 862 | verboselog( machine, 2, "PWM %d timer callback\n", ch); |
| 863 | 863 | if (BITS( s3c44b0->pwm.regs.tcfg1, 27, 24) == (ch + 1)) |
| 864 | 864 | { |
| 865 | | fatalerror( "s3c44b0_dma_request_pwm( device);"); |
| 865 | fatalerror( "s3c44b0_dma_request_pwm( device)\n"); |
| 866 | 866 | } |
| 867 | 867 | else |
| 868 | 868 | { |
trunk/src/mess/machine/nubus.c
| r17739 | r17740 | |
| 152 | 152 | m_maincpu->memory().space(AS_PROGRAM)->install_readwrite_handler(start, end, rhandler, whandler, ((UINT64)mask<<32)|mask); |
| 153 | 153 | break; |
| 154 | 154 | default: |
| 155 | | fatalerror("NUBUS: Bus width %d not supported", buswidth); |
| 155 | fatalerror("NUBUS: Bus width %d not supported\n", buswidth); |
| 156 | 156 | break; |
| 157 | 157 | } |
| 158 | 158 | } |
| r17739 | r17740 | |
| 170 | 170 | m_maincpu->memory().space(AS_PROGRAM)->install_readwrite_handler(start, end, rhandler, whandler, ((UINT64)mask<<32)|mask); |
| 171 | 171 | break; |
| 172 | 172 | default: |
| 173 | | fatalerror("NUBUS: Bus width %d not supported", buswidth); |
| 173 | fatalerror("NUBUS: Bus width %d not supported\n", buswidth); |
| 174 | 174 | break; |
| 175 | 175 | } |
| 176 | 176 | } |
| r17739 | r17740 | |
| 188 | 188 | m_maincpu->memory().space(AS_PROGRAM)->install_readwrite_handler(start, end, rhandler, whandler, ((UINT64)mask<<32)|mask); |
| 189 | 189 | break; |
| 190 | 190 | default: |
| 191 | | fatalerror("NUBUS: Bus width %d not supported", buswidth); |
| 191 | fatalerror("NUBUS: Bus width %d not supported\n", buswidth); |
| 192 | 192 | break; |
| 193 | 193 | } |
| 194 | 194 | } |
| r17739 | r17740 | |
| 206 | 206 | m_maincpu->memory().space(AS_PROGRAM)->install_read_handler(start, end, rhandler, ((UINT64)mask<<32)|mask); |
| 207 | 207 | break; |
| 208 | 208 | default: |
| 209 | | fatalerror("NUBUS: Bus width %d not supported", buswidth); |
| 209 | fatalerror("NUBUS: Bus width %d not supported\n", buswidth); |
| 210 | 210 | break; |
| 211 | 211 | } |
| 212 | 212 | } |
| r17739 | r17740 | |
| 224 | 224 | m_maincpu->memory().space(AS_PROGRAM)->install_write_handler(start, end, whandler, ((UINT64)mask<<32)|mask); |
| 225 | 225 | break; |
| 226 | 226 | default: |
| 227 | | fatalerror("NUBUS: Bus width %d not supported", buswidth); |
| 227 | fatalerror("NUBUS: Bus width %d not supported\n", buswidth); |
| 228 | 228 | break; |
| 229 | 229 | } |
| 230 | 230 | } |
trunk/src/mess/machine/genpc.c
| r17739 | r17740 | |
| 580 | 580 | m_maincpu->memory().space(AS_IO)->install_legacy_readwrite_handler(*dev, start, end, mask, mirror, rhandler, rhandler_name, whandler, whandler_name,0xffff); |
| 581 | 581 | break; |
| 582 | 582 | default: |
| 583 | | fatalerror("IBM5160_MOTHERBOARD: Bus width %d not supported", buswidth); |
| 583 | fatalerror("IBM5160_MOTHERBOARD: Bus width %d not supported\n", buswidth); |
| 584 | 584 | break; |
| 585 | 585 | } |
| 586 | 586 | } |
| r17739 | r17740 | |
| 597 | 597 | m_maincpu->memory().space(AS_IO)->install_legacy_write_handler(*dev, start, end, mask, mirror, whandler, whandler_name, 0xffff); |
| 598 | 598 | break; |
| 599 | 599 | default: |
| 600 | | fatalerror("IBM5160_MOTHERBOARD: Bus width %d not supported", buswidth); |
| 600 | fatalerror("IBM5160_MOTHERBOARD: Bus width %d not supported\n", buswidth); |
| 601 | 601 | break; |
| 602 | 602 | } |
| 603 | 603 | } |
| r17739 | r17740 | |
| 614 | 614 | m_maincpu->memory().space(AS_IO)->install_readwrite_handler(start, end, mask, mirror, rhandler, whandler, 0xffff); |
| 615 | 615 | break; |
| 616 | 616 | default: |
| 617 | | fatalerror("IBM5160_MOTHERBOARD: Bus width %d not supported", buswidth); |
| 617 | fatalerror("IBM5160_MOTHERBOARD: Bus width %d not supported\n", buswidth); |
| 618 | 618 | break; |
| 619 | 619 | } |
| 620 | 620 | } |
| r17739 | r17740 | |
| 641 | 641 | m_maincpu->memory().space(AS_IO)->install_readwrite_handler(0x0060, 0x0063, 0, 0, read8_delegate(FUNC(i8255_device::read), (i8255_device*)m_ppi8255), write8_delegate(FUNC(i8255_device::write), (i8255_device*)m_ppi8255), 0xffff); |
| 642 | 642 | break; |
| 643 | 643 | default: |
| 644 | | fatalerror("IBM5160_MOTHERBOARD: Bus width %d not supported", buswidth); |
| 644 | fatalerror("IBM5160_MOTHERBOARD: Bus width %d not supported\n", buswidth); |
| 645 | 645 | break; |
| 646 | 646 | } |
| 647 | 647 | |
trunk/src/mess/machine/ncr5390.c
| r17739 | r17740 | |
| 151 | 151 | if(win != scsi_id) { |
| 152 | 152 | scsi_bus->data_w(scsi_refid, 0); |
| 153 | 153 | scsi_bus->ctrl_w(scsi_refid, 0, S_ALL); |
| 154 | | fatalerror("need to wait for bus free"); |
| 154 | fatalerror("need to wait for bus free\n"); |
| 155 | 155 | break; |
| 156 | 156 | } |
| 157 | 157 | state = (state & STATE_MASK) | (ARB_ASSERT_SEL << SUB_SHIFT); |
| r17739 | r17740 | |
| 489 | 489 | void ncr5390_device::send_byte() |
| 490 | 490 | { |
| 491 | 491 | if(!fifo_pos) |
| 492 | | fatalerror("ncr5390_device::send_byte - !fifo_pos"); |
| 492 | fatalerror("ncr5390_device::send_byte - !fifo_pos\n"); |
| 493 | 493 | |
| 494 | 494 | state = (state & STATE_MASK) | (SEND_WAIT_SETTLE << SUB_SHIFT); |
| 495 | 495 | if((state & STATE_MASK) != INIT_XFR_SEND_PAD && |
trunk/src/mess/machine/isa.c
| r17739 | r17740 | |
| 223 | 223 | } |
| 224 | 224 | break; |
| 225 | 225 | default: |
| 226 | | fatalerror("ISA8: Bus width %d not supported", buswidth); |
| 226 | fatalerror("ISA8: Bus width %d not supported\n", buswidth); |
| 227 | 227 | break; |
| 228 | 228 | } |
| 229 | 229 | } |
| r17739 | r17740 | |
| 253 | 253 | } |
| 254 | 254 | break; |
| 255 | 255 | default: |
| 256 | | fatalerror("ISA8: Bus width %d not supported", buswidth); |
| 256 | fatalerror("ISA8: Bus width %d not supported\n", buswidth); |
| 257 | 257 | break; |
| 258 | 258 | } |
| 259 | 259 | } |
| r17739 | r17740 | |
| 283 | 283 | } |
| 284 | 284 | break; |
| 285 | 285 | default: |
| 286 | | fatalerror("ISA8: Bus width %d not supported", buswidth); |
| 286 | fatalerror("ISA8: Bus width %d not supported\n", buswidth); |
| 287 | 287 | break; |
| 288 | 288 | } |
| 289 | 289 | } |
| r17739 | r17740 | |
| 564 | 564 | |
| 565 | 565 | break; |
| 566 | 566 | default: |
| 567 | | fatalerror("ISA16: Bus width %d not supported", buswidth); |
| 567 | fatalerror("ISA16: Bus width %d not supported\n", buswidth); |
| 568 | 568 | break; |
| 569 | 569 | } |
| 570 | 570 | } |
| r17739 | r17740 | |
| 592 | 592 | |
| 593 | 593 | break; |
| 594 | 594 | default: |
| 595 | | fatalerror("ISA16: Bus width %d not supported", buswidth); |
| 595 | fatalerror("ISA16: Bus width %d not supported\n", buswidth); |
| 596 | 596 | break; |
| 597 | 597 | } |
| 598 | 598 | } |
| r17739 | r17740 | |
| 620 | 620 | |
| 621 | 621 | break; |
| 622 | 622 | default: |
| 623 | | fatalerror("ISA16: Bus width %d not supported", buswidth); |
| 623 | fatalerror("ISA16: Bus width %d not supported\n", buswidth); |
| 624 | 624 | break; |
| 625 | 625 | } |
| 626 | 626 | } |
trunk/src/mess/video/mc6847.c
| r17739 | r17740 | |
| 265 | 265 | case SCANLINE_ZONE_VBLANK: result = "SCANLINE_ZONE_VBLANK"; break; |
| 266 | 266 | case SCANLINE_ZONE_FRAME_END: result = "SCANLINE_ZONE_FRAME_END"; break; |
| 267 | 267 | default: |
| 268 | | fatalerror("Should not get here"); |
| 268 | fatalerror("Should not get here\n"); |
| 269 | 269 | break; |
| 270 | 270 | } |
| 271 | 271 | return result; |
| r17739 | r17740 | |
| 514 | 514 | { |
| 515 | 515 | // for reasons of performance, we currently only support DEVCB_NULL, |
| 516 | 516 | // DEVCB_LINE_GND and DEVCB_LINE_VCC |
| 517 | | emu_fatalerror("mc6847 does not support this callback type for mode bits"); |
| 517 | emu_fatalerror("mc6847 does not support this callback type for mode bits\n"); |
| 518 | 518 | } |
| 519 | 519 | } |
| 520 | 520 | |
| r17739 | r17740 | |
| 652 | 652 | |
| 653 | 653 | default: |
| 654 | 654 | /* should not get here */ |
| 655 | | fatalerror("should not get here"); |
| 655 | fatalerror("should not get here\n"); |
| 656 | 656 | break; |
| 657 | 657 | } |
| 658 | 658 | } |
| r17739 | r17740 | |
| 699 | 699 | result = palette[7]; |
| 700 | 700 | break; |
| 701 | 701 | default: |
| 702 | | fatalerror("Should not get here"); |
| 702 | fatalerror("Should not get here\n"); |
| 703 | 703 | break; |
| 704 | 704 | } |
| 705 | 705 | return result; |
trunk/src/mess/video/gime.c
| r17739 | r17740 | |
| 433 | 433 | result = "HBORD"; |
| 434 | 434 | break; |
| 435 | 435 | default: |
| 436 | | fatalerror("Should not get here"); |
| 436 | fatalerror("Should not get here\n"); |
| 437 | 437 | break; |
| 438 | 438 | } |
| 439 | 439 | return result; |
| r17739 | r17740 | |
| 1220 | 1220 | border = 0x26; /* orange */ |
| 1221 | 1221 | break; |
| 1222 | 1222 | default: |
| 1223 | | fatalerror("Should not get here"); |
| 1223 | fatalerror("Should not get here\n"); |
| 1224 | 1224 | break; |
| 1225 | 1225 | } |
| 1226 | 1226 | } |
| r17739 | r17740 | |
| 1287 | 1287 | break; |
| 1288 | 1288 | |
| 1289 | 1289 | default: |
| 1290 | | fatalerror("Should not get here"); |
| 1290 | fatalerror("Should not get here\n"); |
| 1291 | 1291 | break; |
| 1292 | 1292 | } |
| 1293 | 1293 | } |
| r17739 | r17740 | |
| 1318 | 1318 | lines_per_row = 0xFFFF; |
| 1319 | 1319 | break; |
| 1320 | 1320 | default: |
| 1321 | | fatalerror("Should not get here"); |
| 1321 | fatalerror("Should not get here\n"); |
| 1322 | 1322 | break; |
| 1323 | 1323 | } |
| 1324 | 1324 | } |
| r17739 | r17740 | |
| 1466 | 1466 | |
| 1467 | 1467 | default: |
| 1468 | 1468 | /* should not get here */ |
| 1469 | | fatalerror("Should not get here"); |
| 1469 | fatalerror("Should not get here\n"); |
| 1470 | 1470 | return; |
| 1471 | 1471 | } |
| 1472 | 1472 | } |
| r17739 | r17740 | |
| 1491 | 1491 | case 0x18: pitch = record_scanline_res<128, &gime_base_device::get_data_without_attributes, false>(physical_scanline); break; |
| 1492 | 1492 | case 0x1C: pitch = record_scanline_res<160, &gime_base_device::get_data_without_attributes, false>(physical_scanline); break; |
| 1493 | 1493 | default: |
| 1494 | | fatalerror("Should not get here"); |
| 1494 | fatalerror("Should not get here\n"); |
| 1495 | 1495 | return; |
| 1496 | 1496 | } |
| 1497 | 1497 | } |
| r17739 | r17740 | |
| 1509 | 1509 | case 0x14: pitch = record_scanline_res< 80, &gime_base_device::get_data_without_attributes, true>(physical_scanline); break; |
| 1510 | 1510 | case 0x15: pitch = record_scanline_res< 80, &gime_base_device::get_data_with_attributes, true>(physical_scanline); break; |
| 1511 | 1511 | default: |
| 1512 | | fatalerror("Should not get here"); |
| 1512 | fatalerror("Should not get here\n"); |
| 1513 | 1513 | return; |
| 1514 | 1514 | } |
| 1515 | 1515 | } |
| r17739 | r17740 | |
| 1573 | 1573 | break; |
| 1574 | 1574 | |
| 1575 | 1575 | default: |
| 1576 | | fatalerror("Should not get here"); |
| 1576 | fatalerror("Should not get here\n"); |
| 1577 | 1577 | break; |
| 1578 | 1578 | } |
| 1579 | 1579 | |
| r17739 | r17740 | |
| 1596 | 1596 | |
| 1597 | 1597 | UINT32 gime_base_device::emit_dummy_samples(const scanline_record *scanline, int sample_start, int sample_count, pixel_t *pixels, const pixel_t *palette) |
| 1598 | 1598 | { |
| 1599 | | fatalerror("Should not get here"); |
| 1599 | fatalerror("Should not get here\n"); |
| 1600 | 1600 | return 0; |
| 1601 | 1601 | } |
| 1602 | 1602 | |
trunk/src/mess/video/gba.c
| r17739 | r17740 | |
| 97 | 97 | |
| 98 | 98 | static void invalid_gba_draw_function(running_machine &machine, gba_state *state, int y, UINT32* line0, UINT32* line1, UINT32* line2, UINT32* line3, UINT32* lineOBJ, UINT32* lineOBJWin, UINT32* lineMix, int aux) |
| 99 | 99 | { |
| 100 | | fatalerror( "Invalid screen mode (6 or 7)!" ); |
| 100 | fatalerror( "Invalid screen mode (6 or 7)!\n" ); |
| 101 | 101 | } |
| 102 | 102 | |
| 103 | 103 | static void draw_roz_bitmap_scanline(gba_state *state, UINT32 *scanline, int ypos, UINT32 enablemask, UINT32 ctrl, INT32 X, INT32 Y, INT32 PA, INT32 PB, INT32 PC, INT32 PD, INT32 *currentx, INT32 *currenty, int changed, int depth) |