| Previous | 15994 Revisions | Next |
| r14560 Tuesday 21st February, 2012 at 07:23:32 UTC by Miodrag Milanović |
|---|
| Updated messnew to 145u1 and cleanup of code (no whatsnew) |
| [docs] | messnew.txt |
| [hash] | a800.xml c64_cart.xml vic1001_cart.xml |
| [src/mess] | mess.mak |
| [src/mess/audio] | arcadia.c arcadia.h |
| [src/mess/devices] | microdrv.h |
| [src/mess/drivers] | apollo.c avigo.c c64.c ibmpc.c ip22.c n64.c next.c pce220.c pocketc.c |
| [src/mess/includes] | apollo.h avigo.h next.h |
| [src/mess/machine] | 3c505.c a7800.c apollo.c apollo_eth.c apollo_kbd.c apollo_kbd.h apollo_net.c apple2gs.c at.c c64_comal80.c c64_comal80.h c64_dela_ep256.c c64_dela_ep256.h c64_dela_ep64.c c64_dela_ep64.h c64_dela_ep7x8.c c64_dela_ep7x8.h c64_dinamic.c c64_dinamic.h c64_easy_calc_result.c c64_easyflash.c c64_easyflash.h c64_epyx_fast_load.c c64_exos.c c64_fun_play.c c64_fun_play.h c64_georam.c c64_georam.h c64_ieee488.c c64_ieee488.h c64_mach5.c c64_magic_desk.c c64_magic_desk.h c64_magic_formel.c c64_magic_formel.h c64_mikro_assembler.c c64_multiscreen.c c64_ocean.c c64_ocean.h c64_pagefox.c c64_rex.c c64_rex_ep256.c c64_rex_ep256.h c64_ross.c c64_ross.h c64_silverrock.c c64_simons_basic.c c64_stardos.c c64_stardos.h c64_structured_basic.c c64_structured_basic.h c64_super_explode.c c64_super_games.c c64_super_games.h c64_system3.c c64_system3.h c64_vw64.c c64_vw64.h c64_warp_speed.c c64_warp_speed.h c64_westermann.c c64_zaxxon.c c64exp.c c64exp.h cbmipt.c hec2hrp.c isa.h isa_gus.c lynx.c n82077aa.c ncr5390.c ncr5390.h omti8621.c pc1251.c pc1350.c pc1401.c pc1403.c pce.c s100_wunderbus.c sc499.c ser_mouse.c ser_mouse.h serial.c serial.h vic1210.c vic20exp.c wswan.c |
| [src/mess/machine/ti99] | ti99defs.h |
| [src/mess/video] | apollo.c avigo.c isa_svga_cirrus.c |
| r14559 | r14560 | |
|---|---|---|
| 1132 | 1132 | </dataarea> |
| 1133 | 1133 | </part> |
| 1134 | 1134 | </software> |
| 1135 | ||
| 1135 | ||
| 1136 | 1136 | <software name="bombjake" supported="no"> |
| 1137 | 1137 | <description>Bomb Jake</description> |
| 1138 | 1138 | <year>2009</year> |
| r14559 | r14560 | |
| 4921 | 4921 | </dataarea> |
| 4922 | 4922 | </part> |
| 4923 | 4923 | </software> |
| 4924 | ||
| 4924 | ||
| 4925 | 4925 | <software name="yakungfu" supported="no"> |
| 4926 | 4926 | <description>Yie Another Kung-Fu</description> |
| 4927 | 4927 | <year>2011</year> |
| r14559 | r14560 | |
|---|---|---|
| 1610 | 1610 | </dataarea> |
| 1611 | 1611 | </part> |
| 1612 | 1612 | </software> |
| 1613 | ||
| 1613 | ||
| 1614 | 1614 | <software name="fltsim"> |
| 1615 | 1615 | <description>IFR: Flight Simulator</description> |
| 1616 | 1616 | <year>1983</year> |
| r14559 | r14560 | |
|---|---|---|
| 7 | 7 | - Prophet-64 |
| 8 | 8 | - MSSIAH |
| 9 | 9 | - Rex Diashow-Maker |
| 10 | ||
| 10 | ||
| 11 | 11 | If you have any of these, please forward them to messdev :) |
| 12 | 12 | |
| 13 | 13 | List of mostly undumped cartridges: |
| r14559 | r14560 | |
| 1378 | 1378 | </dataarea> |
| 1379 | 1379 | </part> |
| 1380 | 1380 | </software> |
| 1381 | ||
| 1381 | ||
| 1382 | 1382 | <software name="mikroasm"> |
| 1383 | 1383 | <description>Mikro Assembler</description> |
| 1384 | 1384 | <year>198?</year> |
| r14559 | r14560 | |
| 1433 | 1433 | <rom name="mmc64v1b.bin" size="0x2000" crc="c6255ad9" sha1="0fc4516ae9fc24da1a4e008ccdb876e765aaf640" offset="0x0000" /> |
| 1434 | 1434 | </dataarea> |
| 1435 | 1435 | </part> |
| 1436 | </software> | |
| 1437 | ||
| 1436 | </software> | |
| 1437 | ||
| 1438 | 1438 | <software name="rr"> |
| 1439 | 1439 | <description>Retro Replay v3.8P</description> |
| 1440 | 1440 | <year>2006</year> |
| r14559 | r14560 | |
| 1448 | 1448 | <rom name="rr38ppal.bin" size="0x10000" crc="fa52afac" sha1="48381d924a20978319ead8de7c904c91f270cc65" offset="0x0000" /> |
| 1449 | 1449 | </dataarea> |
| 1450 | 1450 | </part> |
| 1451 | </software> | |
| 1452 | ||
| 1451 | </software> | |
| 1452 | ||
| 1453 | 1453 | <software name="exos"> |
| 1454 | 1454 | <description>ExOS v.3</description> |
| 1455 | 1455 | <year>198?</year> |
| r14559 | r14560 | |
| 1463 | 1463 | <rom name="exos_v3.bin" size="0x2000" crc="4e54d020" sha1="f8931b7c0b26807f4de0cc241f0b1e2c8f5271e9" offset="0x0000" /> |
| 1464 | 1464 | </dataarea> |
| 1465 | 1465 | </part> |
| 1466 | </software> | |
| 1467 | ||
| 1466 | </software> | |
| 1467 | ||
| 1468 | 1468 | <software name="exosv4" cloneof="exos"> |
| 1469 | 1469 | <description>ExOS v.4</description> |
| 1470 | 1470 | <year>198?</year> |
| r14559 | r14560 | |
| 1478 | 1478 | </dataarea> |
| 1479 | 1479 | </part> |
| 1480 | 1480 | </software> |
| 1481 | ||
| 1481 | ||
| 1482 | 1482 | <!-- Games Added by k1w1 --> |
| 1483 | 1483 | |
| 1484 | 1484 | <software name="advcrtor"> |
| r14559 | r14560 | |
| 5135 | 5135 | </dataarea> |
| 5136 | 5136 | </part> |
| 5137 | 5137 | </software> |
| 5138 | ||
| 5138 | ||
| 5139 | 5139 | <software name="subasram"> |
| 5140 | 5140 | <description>Super Basic Ram</description> |
| 5141 | 5141 | <year>1983</year> |
| r14559 | r14560 | |
| 5350 | 5350 | </dataarea> |
| 5351 | 5351 | </part> |
| 5352 | 5352 | </software> |
| 5353 | ||
| 5353 | ||
| 5354 | 5354 | <software name="ar3"> |
| 5355 | 5355 | <description>Action Replay MK3 (v1)</description> |
| 5356 | 5356 | <year>1987</year> |
| r14559 | r14560 | |
| 5395 | 5395 | </dataarea> |
| 5396 | 5396 | </part> |
| 5397 | 5397 | </software> |
| 5398 | ||
| 5398 | ||
| 5399 | 5399 | <software name="niki" cloneof="ar3"> |
| 5400 | 5400 | <description>Niki Cartridge Fast-Disktool</description> |
| 5401 | 5401 | <year>1987</year> |
| r14559 | r14560 | |
| 5410 | 5410 | </dataarea> |
| 5411 | 5411 | </part> |
| 5412 | 5412 | </software> |
| 5413 | ||
| 5413 | ||
| 5414 | 5414 | <software name="ar4"> |
| 5415 | 5415 | <description>Action Replay MK4</description> |
| 5416 | 5416 | <year>1988</year> |
| r14559 | r14560 | |
| 5425 | 5425 | </dataarea> |
| 5426 | 5426 | </part> |
| 5427 | 5427 | </software> |
| 5428 | ||
| 5428 | ||
| 5429 | 5429 | <software name="cmiky2" cloneof="ar4"> |
| 5430 | 5430 | <description>Captain Miky II</description> |
| 5431 | 5431 | <year>1988</year> |
| r14559 | r14560 | |
| 5440 | 5440 | </dataarea> |
| 5441 | 5441 | </part> |
| 5442 | 5442 | </software> |
| 5443 | ||
| 5443 | ||
| 5444 | 5444 | <software name="cmiky2a" cloneof="ar4"> |
| 5445 | 5445 | <description>Captain Miky II (Alt)</description> |
| 5446 | 5446 | <year>1988</year> |
| r14559 | r14560 | |
| 5455 | 5455 | </dataarea> |
| 5456 | 5456 | </part> |
| 5457 | 5457 | </software> |
| 5458 | ||
| 5458 | ||
| 5459 | 5459 | <software name="ar41"> |
| 5460 | 5460 | <description>Action Replay v4.1</description> |
| 5461 | 5461 | <year>1988</year> |
| r14559 | r14560 | |
| 5470 | 5470 | </dataarea> |
| 5471 | 5471 | </part> |
| 5472 | 5472 | </software> |
| 5473 | ||
| 5473 | ||
| 5474 | 5474 | <software name="ar42" cloneof="ar41"> |
| 5475 | 5475 | <description>Action Replay v4.2 (v1)</description> |
| 5476 | 5476 | <year>1988</year> |
| r14559 | r14560 | |
| 5485 | 5485 | </dataarea> |
| 5486 | 5486 | </part> |
| 5487 | 5487 | </software> |
| 5488 | ||
| 5488 | ||
| 5489 | 5489 | <software name="ar42v2" cloneof="ar41"> |
| 5490 | 5490 | <description>Action Replay v4.2 (v2)</description> |
| 5491 | 5491 | <year>1988</year> |
| r14559 | r14560 | |
| 5500 | 5500 | </dataarea> |
| 5501 | 5501 | </part> |
| 5502 | 5502 | </software> |
| 5503 | ||
| 5503 | ||
| 5504 | 5504 | <software name="ar4250" cloneof="ar41"> |
| 5505 | 5505 | <description>Action Replay v4.2 (v5.0 v1)</description> |
| 5506 | 5506 | <year>1988</year> |
| r14559 | r14560 | |
| 5515 | 5515 | </dataarea> |
| 5516 | 5516 | </part> |
| 5517 | 5517 | </software> |
| 5518 | ||
| 5518 | ||
| 5519 | 5519 | <software name="ar4250v2" cloneof="ar41"> |
| 5520 | 5520 | <description>Action Replay v4.2 (v5.0 v2)</description> |
| 5521 | 5521 | <year>1988</year> |
| r14559 | r14560 | |
| 5530 | 5530 | </dataarea> |
| 5531 | 5531 | </part> |
| 5532 | 5532 | </software> |
| 5533 | ||
| 5533 | ||
| 5534 | 5534 | <software name="acp53" cloneof="ar41"> |
| 5535 | 5535 | <description>Action Cartridge Plus 5 (Ger)</description> |
| 5536 | 5536 | <year>1988</year> |
| r14559 | r14560 | |
| 5545 | 5545 | </dataarea> |
| 5546 | 5546 | </part> |
| 5547 | 5547 | </software> |
| 5548 | ||
| 5548 | ||
| 5549 | 5549 | <software name="acp6" cloneof="ar41"> |
| 5550 | 5550 | <description>Action Cartridge Plus 6.0</description> |
| 5551 | 5551 | <year>1988</year> |
| r14559 | r14560 | |
| 5560 | 5560 | </dataarea> |
| 5561 | 5561 | </part> |
| 5562 | 5562 | </software> |
| 5563 | ||
| 5563 | ||
| 5564 | 5564 | <software name="acp6g" cloneof="ar41"> |
| 5565 | 5565 | <description>Action Cartridge Plus 6.0 (Ger)</description> |
| 5566 | 5566 | <year>1988</year> |
| r14559 | r14560 | |
| 5575 | 5575 | </dataarea> |
| 5576 | 5576 | </part> |
| 5577 | 5577 | </software> |
| 5578 | ||
| 5578 | ||
| 5579 | 5579 | <software name="ar73" cloneof="ar41"> |
| 5580 | 5580 | <description>Action Replay v7.3</description> |
| 5581 | 5581 | <year>1991</year> |
| r14559 | r14560 | |
| 5590 | 5590 | </dataarea> |
| 5591 | 5591 | </part> |
| 5592 | 5592 | </software> |
| 5593 | ||
| 5593 | ||
| 5594 | 5594 | <software name="ar5"> |
| 5595 | 5595 | <description>Action Replay v5.0</description> |
| 5596 | 5596 | <year>1988</year> |
| r14559 | r14560 | |
| 5605 | 5605 | </dataarea> |
| 5606 | 5606 | </part> |
| 5607 | 5607 | </software> |
| 5608 | ||
| 5608 | ||
| 5609 | 5609 | <software name="ar5n" cloneof="ar5"> |
| 5610 | 5610 | <description>Action Replay v5.0 (NTSC)</description> |
| 5611 | 5611 | <year>1988</year> |
| r14559 | r14560 | |
| 5620 | 5620 | </dataarea> |
| 5621 | 5621 | </part> |
| 5622 | 5622 | </software> |
| 5623 | ||
| 5623 | ||
| 5624 | 5624 | <software name="ar51" cloneof="ar5"> |
| 5625 | 5625 | <description>Action Replay v5.1a</description> |
| 5626 | 5626 | <year>1988</year> |
| r14559 | r14560 | |
| 5635 | 5635 | </dataarea> |
| 5636 | 5636 | </part> |
| 5637 | 5637 | </software> |
| 5638 | ||
| 5638 | ||
| 5639 | 5639 | <software name="acp7" cloneof="ar5"> |
| 5640 | 5640 | <description>Action Cartridge Plus v7.0 (Derko)</description> |
| 5641 | 5641 | <year>1991</year> |
| r14559 | r14560 | |
| 5650 | 5650 | </dataarea> |
| 5651 | 5651 | </part> |
| 5652 | 5652 | </software> |
| 5653 | ||
| 5653 | ||
| 5654 | 5654 | <software name="acp7t" cloneof="ar5"> |
| 5655 | 5655 | <description>Action Cartridge Plus v7.0 (Triumwyrat)</description> |
| 5656 | 5656 | <year>1990</year> |
| r14559 | r14560 | |
| 5665 | 5665 | </dataarea> |
| 5666 | 5666 | </part> |
| 5667 | 5667 | </software> |
| 5668 | ||
| 5668 | ||
| 5669 | 5669 | <software name="ar75" cloneof="ar5"> |
| 5670 | 5670 | <description>Action Replay v7.5</description> |
| 5671 | 5671 | <year>1989</year> |
| r14559 | r14560 | |
| 5680 | 5680 | </dataarea> |
| 5681 | 5681 | </part> |
| 5682 | 5682 | </software> |
| 5683 | ||
| 5683 | ||
| 5684 | 5684 | <software name="ar84" cloneof="ar5"> |
| 5685 | 5685 | <description>Action Replay v8.4</description> |
| 5686 | 5686 | <year>1990</year> |
| r14559 | r14560 | |
| 5695 | 5695 | </dataarea> |
| 5696 | 5696 | </part> |
| 5697 | 5697 | </software> |
| 5698 | ||
| 5698 | ||
| 5699 | 5699 | <software name="ar5flt" cloneof="ar5"> |
| 5700 | 5700 | <description>The Fairlight Cracking Cartridge</description> |
| 5701 | 5701 | <year>1990</year> |
| r14559 | r14560 | |
| 5710 | 5710 | </dataarea> |
| 5711 | 5711 | </part> |
| 5712 | 5712 | </software> |
| 5713 | ||
| 5713 | ||
| 5714 | 5714 | <software name="ar6t" cloneof="ar5"> |
| 5715 | 5715 | <description>Action Replay v6.0 (Triad)</description> |
| 5716 | 5716 | <year>1993</year> |
| r14559 | r14560 | |
| 5725 | 5725 | </dataarea> |
| 5726 | 5726 | </part> |
| 5727 | 5727 | </software> |
| 5728 | ||
| 5728 | ||
| 5729 | 5729 | <software name="ar6"> |
| 5730 | 5730 | <description>Action Replay v6.0</description> |
| 5731 | 5731 | <year>1989</year> |
| r14559 | r14560 | |
| 5740 | 5740 | </dataarea> |
| 5741 | 5741 | </part> |
| 5742 | 5742 | </software> |
| 5743 | ||
| 5743 | ||
| 5744 | 5744 | <software name="comal80"> |
| 5745 | 5745 | <description>COMAL 80 (Commodore)</description> |
| 5746 | 5746 | <year>1985</year> |
| r14559 | r14560 | |
|---|---|---|
| 64 | 64 | // device-level overrides |
| 65 | 65 | virtual void device_config_complete(); |
| 66 | 66 | virtual void device_start(); |
| 67 | virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr); | |
| 67 | virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr); | |
| 68 | 68 | private: |
| 69 | 69 | devcb_resolved_write_line m_out_comms_out_func; |
| 70 | 70 |
| r14559 | r14560 | |
|---|---|---|
| 126 | 126 | |
| 127 | 127 | |
| 128 | 128 | //------------------------------------------------- |
| 129 | // soundport_w | |
| 129 | // soundport_w | |
| 130 | 130 | //------------------------------------------------- |
| 131 | 131 | |
| 132 | 132 | WRITE8_MEMBER(arcadia_sound_device::write) |
| r14559 | r14560 | |
|---|---|---|
| 14 | 14 | |
| 15 | 15 | // ======================> arcadia_sound_device |
| 16 | 16 | |
| 17 | class arcadia_sound_device : public device_t, | |
| 17 | class arcadia_sound_device : public device_t, | |
| 18 | 18 | public device_sound_interface |
| 19 | 19 | { |
| 20 | 20 | public: |
| r14559 | r14560 | |
| 26 | 26 | // device-level overrides |
| 27 | 27 | virtual void device_start(); |
| 28 | 28 | virtual void sound_stream_update(sound_stream &stream, stream_sample_t **inputs, stream_sample_t **outputs, int samples); |
| 29 | ||
| 29 | ||
| 30 | 30 | sound_stream *m_channel; |
| 31 | 31 | UINT8 m_reg[3]; |
| 32 | 32 | int m_size, m_pos,m_tval,m_nval; |
| r14559 | r14560 | |
|---|---|---|
| 68 | 68 | /* |
| 69 | 69 | static INS8250_TRANSMIT( ace1_transmit ) |
| 70 | 70 | { |
| 71 | ||
| 71 | s100_wunderbus_device *wunderbus = downcast<s100_wunderbus_device *>(device->owner()); | |
| 72 | 72 | |
| 73 | ||
| 73 | wunderbus->m_s100->terminal_transmit_w(data); | |
| 74 | 74 | } |
| 75 | 75 | */ |
| 76 | 76 | //------------------------------------------------- |
| r14559 | r14560 | |
| 79 | 79 | |
| 80 | 80 | void s100_wunderbus_device::s100_terminal_w(UINT8 data) |
| 81 | 81 | { |
| 82 | // | |
| 82 | // ins8250_receive(m_ace1, data); | |
| 83 | 83 | } |
| 84 | 84 | |
| 85 | 85 | static ins8250_interface ace1_intf = |
| r14559 | r14560 | |
|---|---|---|
| 131 | 131 | UINT8 *ram = machine.region("maincpu")->base() + 0x2000; |
| 132 | 132 | UINT8 *cpu = sc61860_internal_ram(main_cpu); |
| 133 | 133 | |
| 134 | machine.device<nvram_device>("cpu_nvram")->set_base(cpu, 96); | |
| 135 | machine.device<nvram_device>("ram_nvram")->set_base(ram, 0x5000); | |
| 134 | machine.device<nvram_device>("cpu_nvram")->set_base(cpu, 96); | |
| 135 | machine.device<nvram_device>("ram_nvram")->set_base(ram, 0x5000); | |
| 136 | 136 | } |
| r14559 | r14560 | |
|---|---|---|
| 9 | 9 | |
| 10 | 10 | /* |
| 11 | 11 | |
| 12 | PCB Layout | |
| 13 | ---------- | |
| 14 | ||
| 15 | e9048 | |
| 16 | |=============| | |
| 17 | |=| LS00 | | |
| 18 | |=| LS273| | |
| 19 | |=| | | |
| 20 | |=| | | |
| 21 | |=| ROM | | |
| 22 | |=| | | |
| 23 | |=| | | |
| 24 | |=| | | |
| 25 | |=============| | |
| 12 | PCB Layout | |
| 13 | ---------- | |
| 26 | 14 | |
| 27 | ROM - Atmel AT27C010-25PC 128Kx8 OTP EPROM "HUGO 2012" | |
| 15 | e9048 | |
| 16 | |=============| | |
| 17 | |=| LS00 | | |
| 18 | |=| LS273| | |
| 19 | |=| | | |
| 20 | |=| | | |
| 21 | |=| ROM | | |
| 22 | |=| | | |
| 23 | |=| | | |
| 24 | |=| | | |
| 25 | |=============| | |
| 28 | 26 | |
| 27 | ROM - Atmel AT27C010-25PC 128Kx8 OTP EPROM "HUGO 2012" | |
| 28 | ||
| 29 | 29 | */ |
| 30 | 30 | |
| 31 | 31 | #include "c64_silverrock.h" |
| r14559 | r14560 | |
| 35 | 35 | //************************************************************************** |
| 36 | 36 | // MACROS/CONSTANTS |
| 37 | 37 | //************************************************************************** |
| 38 | ||
| 38 | ||
| 39 | 39 | #define UNSCRAMBLE_ADDRESS(_offset) \ |
| 40 | 40 | BITSWAP16(_offset,15,14,13,12,1,0,2,3,11,10,9,8,7,6,5,4) |
| 41 | 41 | |
| 42 | 42 | #define UNSCRAMBLE_DATA(_data) \ |
| 43 | 43 | BITSWAP8(_data,7,6,5,4,0,1,2,3) |
| 44 | ||
| 45 | ||
| 46 | 44 | |
| 45 | ||
| 46 | ||
| 47 | 47 | //************************************************************************** |
| 48 | 48 | // DEVICE DEFINITIONS |
| 49 | 49 | //************************************************************************** |
| r14559 | r14560 | |
| 95 | 95 | UINT8 c64_silverrock_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2) |
| 96 | 96 | { |
| 97 | 97 | UINT8 data = 0; |
| 98 | ||
| 98 | ||
| 99 | 99 | if (!roml) |
| 100 | 100 | { |
| 101 | 101 | offs_t addr = (m_bank << 13) | (offset & 0x1fff); |
| r14559 | r14560 | |
| 117 | 117 | { |
| 118 | 118 | /* |
| 119 | 119 | |
| 120 | ||
| 120 | bit description | |
| 121 | 121 | |
| 122 | 0 | |
| 123 | 1 | |
| 124 | 2 | |
| 125 | 3 | |
| 126 | 4 A14 | |
| 127 | 5 A15 | |
| 128 | 6 A16 | |
| 129 | 7 A13 | |
| 122 | 0 | |
| 123 | 1 | |
| 124 | 2 | |
| 125 | 3 | |
| 126 | 4 A14 | |
| 127 | 5 A15 | |
| 128 | 6 A16 | |
| 129 | 7 A13 | |
| 130 | 130 | |
| 131 | ||
| 131 | */ | |
| 132 | 132 | |
| 133 | 133 | m_bank = ((data >> 3) & 0x0e) | BIT(data, 7); |
| 134 | 134 | } |
| r14559 | r14560 | |
|---|---|---|
| 113 | 113 | { |
| 114 | 114 | if(m_dev) |
| 115 | 115 | return m_dev->dtr_w(state); |
| 116 | ||
| 116 | ||
| 117 | 117 | if(serial_port_device::m_dev) |
| 118 | 118 | { |
| 119 | 119 | loopdtr = state; |
| r14559 | r14560 | |
| 126 | 126 | { |
| 127 | 127 | if(m_dev) |
| 128 | 128 | return m_dev->rts_w(state); |
| 129 | ||
| 129 | ||
| 130 | 130 | if(serial_port_device::m_dev) |
| 131 | 131 | { |
| 132 | 132 | looprts = state; |
| r14559 | r14560 | |
|---|---|---|
| 42 | 42 | |
| 43 | 43 | DECLARE_WRITE_LINE_MEMBER( tx ) { if(m_dev) m_dev->tx(state); } |
| 44 | 44 | DECLARE_READ_LINE_MEMBER( rx ) { return (m_dev) ? m_dev->rx() : 0; } |
| 45 | ||
| 45 | ||
| 46 | 46 | void out_rx(UINT8 param) { m_out_rx_func(param); } |
| 47 | 47 | protected: |
| 48 | 48 | virtual void device_start(); |
| r14559 | r14560 | |
|---|---|---|
| 288 | 288 | pit8253_gate2_w(m_pit8254, BIT(data, 0)); |
| 289 | 289 | at_speaker_set_spkrdata( BIT(data, 1)); |
| 290 | 290 | m_channel_check = BIT(data, 3); |
| 291 | m_isabus->set_nmi_state((m_nmi_enabled==0) && (m_channel_check==0)); | |
| 291 | m_isabus->set_nmi_state((m_nmi_enabled==0) && (m_channel_check==0)); | |
| 292 | 292 | } |
| 293 | 293 | |
| 294 | 294 |
| r14559 | r14560 | |
|---|---|---|
| 1145 | 1145 | SLOT_INTERFACE("georam", C64_GEORAM) |
| 1146 | 1146 | SLOT_INTERFACE("xl80", C64_XL80) |
| 1147 | 1147 | SLOT_INTERFACE("easyflash", C64_EASYFLASH) |
| 1148 | ||
| 1148 | ||
| 1149 | 1149 | // the following need ROMs from the software list |
| 1150 | 1150 | SLOT_INTERFACE("ieee488", C64_IEEE488) |
| 1151 | 1151 | SLOT_INTERFACE("standard", C64_STD) |
| r14559 | r14560 | |
|---|---|---|
| 17 | 17 | cart not needed when in PAL mode |
| 18 | 18 | added F18 Hornet bank select type |
| 19 | 19 | added Activision bank select type |
| 20 | ||
| 20 | 19-Feb-2010 DanB | |
| 21 | 21 | ***************************************************************************/ |
| 22 | 22 | |
| 23 | 23 | #include "emu.h" |
| r14559 | r14560 | |
| 471 | 471 | case 0x06: |
| 472 | 472 | case 0x07: |
| 473 | 473 | /* Even though the 7800 doesn't use the TIA graphics the collision registers should |
| 474 | ||
| 474 | still return a reasonable value */ | |
| 475 | 475 | return 0x00; |
| 476 | 476 | case 0x08: |
| 477 | 477 | return((input_port_read(space->machine(), "buttons") & 0x02) << 6); |
| r14559 | r14560 | |
|---|---|---|
| 23 | 23 | |
| 24 | 24 | |
| 25 | 25 | // slot names for the VIC-20 cartridge types |
| 26 | const char *CRT_VIC20_SLOT_NAMES[_CRT_VIC20_COUNT] = | |
| 26 | const char *CRT_VIC20_SLOT_NAMES[_CRT_VIC20_COUNT] = | |
| 27 | 27 | { |
| 28 | 28 | UNSUPPORTED, |
| 29 | 29 | "standard", |
| r14559 | r14560 | |
| 239 | 239 | // read the header |
| 240 | 240 | cbm_crt_header header; |
| 241 | 241 | fread(&header, CRT_HEADER_LENGTH); |
| 242 | ||
| 242 | ||
| 243 | 243 | if (memcmp(header.signature, CRT_SIGNATURE, 16) != 0) |
| 244 | 244 | return IMAGE_INIT_FAIL; |
| 245 | ||
| 245 | ||
| 246 | 246 | UINT16 hardware = pick_integer_be(header.hardware, 0, 2); |
| 247 | ||
| 247 | ||
| 248 | 248 | // TODO support other cartridge hardware |
| 249 | 249 | if (hardware != CRT_VIC20_STANDARD) |
| 250 | 250 | return IMAGE_INIT_FAIL; |
| 251 | ||
| 251 | ||
| 252 | 252 | if (LOG) |
| 253 | 253 | { |
| 254 | 254 | logerror("Name: %s\n", header.name); |
| 255 | 255 | logerror("Hardware: %04x\n", hardware); |
| 256 | 256 | logerror("Slot device: %s\n", CRT_VIC20_SLOT_NAMES[hardware]); |
| 257 | 257 | } |
| 258 | ||
| 258 | ||
| 259 | 259 | // determine ROM region lengths |
| 260 | 260 | size_t blk1_size = 0; |
| 261 | 261 | size_t blk2_size = 0; |
| 262 | 262 | size_t blk3_size = 0; |
| 263 | 263 | size_t blk5_size = 0; |
| 264 | ||
| 264 | ||
| 265 | 265 | while (!image_feof()) |
| 266 | 266 | { |
| 267 | 267 | cbm_crt_chip chip; |
| 268 | 268 | fread(&chip, CRT_CHIP_LENGTH); |
| 269 | ||
| 269 | ||
| 270 | 270 | UINT16 address = pick_integer_be(chip.start_address, 0, 2); |
| 271 | 271 | UINT16 size = pick_integer_be(chip.image_size, 0, 2); |
| 272 | 272 | UINT16 type = pick_integer_be(chip.chip_type, 0, 2); |
| 273 | ||
| 273 | ||
| 274 | 274 | if (LOG) |
| 275 | 275 | { |
| 276 | 276 | logerror("CHIP Address: %04x\n", address); |
| 277 | 277 | logerror("CHIP Size: %04x\n", size); |
| 278 | 278 | logerror("CHIP Type: %04x\n", type); |
| 279 | 279 | } |
| 280 | ||
| 280 | ||
| 281 | 281 | switch (address) |
| 282 | 282 | { |
| 283 | 283 | case 0x2000: blk1_size += size; break; |
| r14559 | r14560 | |
| 288 | 288 | case 0xb000: blk5_size += 0x2000; break; |
| 289 | 289 | default: logerror("Invalid CHIP loading address!\n"); break; |
| 290 | 290 | } |
| 291 | ||
| 291 | ||
| 292 | 292 | fseek(size, SEEK_CUR); |
| 293 | 293 | } |
| 294 | 294 | |
| r14559 | r14560 | |
| 297 | 297 | UINT8 *blk2 = NULL; |
| 298 | 298 | UINT8 *blk3 = NULL; |
| 299 | 299 | UINT8 *blk5 = NULL; |
| 300 | ||
| 300 | ||
| 301 | 301 | if (blk1_size) blk1 = m_cart->vic20_blk1_pointer(machine(), blk1_size); |
| 302 | 302 | if (blk2_size) blk2 = m_cart->vic20_blk2_pointer(machine(), blk2_size); |
| 303 | 303 | if (blk3_size) blk3 = m_cart->vic20_blk3_pointer(machine(), blk3_size); |
| 304 | 304 | if (blk5_size) blk5 = m_cart->vic20_blk5_pointer(machine(), blk5_size); |
| 305 | ||
| 305 | ||
| 306 | 306 | // read the data |
| 307 | 307 | offs_t blk1_offset = 0; |
| 308 | 308 | offs_t blk2_offset = 0; |
| 309 | 309 | offs_t blk3_offset = 0; |
| 310 | 310 | offs_t blk5_offset = 0; |
| 311 | ||
| 311 | ||
| 312 | 312 | fseek(CRT_HEADER_LENGTH, SEEK_SET); |
| 313 | ||
| 313 | ||
| 314 | 314 | while (!image_feof()) |
| 315 | 315 | { |
| 316 | 316 | cbm_crt_chip chip; |
| 317 | 317 | fread(&chip, CRT_CHIP_LENGTH); |
| 318 | ||
| 318 | ||
| 319 | 319 | UINT16 address = pick_integer_be(chip.start_address, 0, 2); |
| 320 | 320 | UINT16 size = pick_integer_be(chip.image_size, 0, 2); |
| 321 | 321 |
| r14559 | r14560 | |
|---|---|---|
| 62 | 62 | UINT8 c64_ocean_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2) |
| 63 | 63 | { |
| 64 | 64 | UINT8 data = 0; |
| 65 | ||
| 65 | ||
| 66 | 66 | if (!roml) |
| 67 | 67 | { |
| 68 | 68 | offs_t addr = (m_bank << 13) | (offset & 0x1fff); |
| r14559 | r14560 | |
|---|---|---|
| 9 | 9 | |
| 10 | 10 | /* |
| 11 | 11 | |
| 12 | PCB Layout | |
| 13 | ---------- | |
| 12 | PCB Layout | |
| 13 | ---------- | |
| 14 | 14 | |
| 15 | |===================| | |
| 16 | |=| SW1 | | |
| 17 | |=| | | |
| 18 | |=| SW2 | | |
| 19 | |=| | | |
| 20 | |=| | | |
| 21 | |=| ROM | | |
| 22 | |=| LS109| | |
| 23 | |=| | | |
| 24 | |===================| | |
| 15 | |===================| | |
| 16 | |=| SW1 | | |
| 17 | |=| | | |
| 18 | |=| SW2 | | |
| 19 | |=| | | |
| 20 | |=| | | |
| 21 | |=| ROM | | |
| 22 | |=| LS109| | |
| 23 | |=| | | |
| 24 | |===================| | |
| 25 | 25 | |
| 26 | ROM - "DEI-356NR-WRPIIDA1 (C) NCR A8847 609-2415038 F833071" 16Kx8 ROM | |
| 27 | SW1 - mode switch (C64/C128) | |
| 28 | SW2 - reset button | |
| 26 | ROM - "DEI-356NR-WRPIIDA1 (C) NCR A8847 609-2415038 F833071" 16Kx8 ROM | |
| 27 | SW1 - mode switch (C64/C128) | |
| 28 | SW2 - reset button | |
| 29 | 29 | |
| 30 | 30 | */ |
| 31 | 31 | |
| r14559 | r14560 | |
| 36 | 36 | //************************************************************************** |
| 37 | 37 | // MACROS/CONSTANTS |
| 38 | 38 | //************************************************************************** |
| 39 | ||
| 39 | ||
| 40 | 40 | #define UNSCRAMBLE_ADDRESS(_offset) \ |
| 41 | 41 | BITSWAP16(_offset,15,14,12,13,5,2,7,9,11,10,8,6,4,3,1,0) |
| 42 | 42 | |
| 43 | 43 | #define UNSCRAMBLE_DATA(_data) \ |
| 44 | 44 | BITSWAP8(_data,7,6,5,0,1,4,2,3) |
| 45 | ||
| 46 | ||
| 47 | 45 | |
| 46 | ||
| 47 | ||
| 48 | 48 | //************************************************************************** |
| 49 | 49 | // DEVICE DEFINITIONS |
| 50 | 50 | //************************************************************************** |
| r14559 | r14560 | |
| 125 | 125 | UINT8 c64_warp_speed_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2) |
| 126 | 126 | { |
| 127 | 127 | UINT8 data = 0; |
| 128 | ||
| 128 | ||
| 129 | 129 | if (!roml || !romh || !io1 || !io2) |
| 130 | 130 | { |
| 131 | 131 | offs_t addr = UNSCRAMBLE_ADDRESS(offset & 0x3fff); |
| r14559 | r14560 | |
|---|---|---|
| 40 | 40 | // device_c64_expansion_card_interface overrides |
| 41 | 41 | virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2); |
| 42 | 42 | virtual void c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2); |
| 43 | ||
| 43 | ||
| 44 | 44 | private: |
| 45 | 45 | UINT8 m_bank; |
| 46 | 46 | }; |
| r14559 | r14560 | |
|---|---|---|
| 34 | 34 | |
| 35 | 35 | // optional information overrides |
| 36 | 36 | virtual ioport_constructor device_input_ports() const; |
| 37 | ||
| 37 | ||
| 38 | 38 | static INPUT_CHANGED( reset ); |
| 39 | 39 | |
| 40 | 40 | protected: |
| r14559 | r14560 | |
|---|---|---|
| 62 | 62 | UINT8 c64_system3_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2) |
| 63 | 63 | { |
| 64 | 64 | UINT8 data = 0; |
| 65 | ||
| 65 | ||
| 66 | 66 | if (!roml) |
| 67 | 67 | { |
| 68 | 68 | offs_t addr = (m_bank << 13) | (offset & 0x1fff); |
| r14559 | r14560 | |
|---|---|---|
| 40 | 40 | // device_c64_expansion_card_interface overrides |
| 41 | 41 | virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2); |
| 42 | 42 | virtual void c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2); |
| 43 | ||
| 43 | ||
| 44 | 44 | private: |
| 45 | 45 | UINT8 m_bank; |
| 46 | 46 | }; |
| r14559 | r14560 | |
|---|---|---|
| 62 | 62 | UINT8 c64_fun_play_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2) |
| 63 | 63 | { |
| 64 | 64 | UINT8 data = 0; |
| 65 | ||
| 65 | ||
| 66 | 66 | if (!roml) |
| 67 | 67 | { |
| 68 | 68 | offs_t addr = (m_bank << 13) | (offset & 0x1fff); |
| r14559 | r14560 | |
| 83 | 83 | { |
| 84 | 84 | /* |
| 85 | 85 | |
| 86 | ||
| 86 | bit description | |
| 87 | 87 | |
| 88 | 0 A16 | |
| 89 | 1 | |
| 90 | 2 | |
| 91 | 3 A13 | |
| 92 | 4 A14 | |
| 93 | 5 A15 | |
| 94 | 6 | |
| 95 | 7 | |
| 88 | 0 A16 | |
| 89 | 1 | |
| 90 | 2 | |
| 91 | 3 A13 | |
| 92 | 4 A14 | |
| 93 | 5 A15 | |
| 94 | 6 | |
| 95 | 7 | |
| 96 | 96 | |
| 97 | */ | |
| 98 | ||
| 97 | */ | |
| 98 | ||
| 99 | 99 | m_bank = ((data & 0x01) << 3) | ((data >> 3) & 0x07); |
| 100 | 100 | } |
| 101 | 101 | } |
| r14559 | r14560 | |
|---|---|---|
| 50 | 50 | UINT8 c64_exos_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2) |
| 51 | 51 | { |
| 52 | 52 | UINT8 data = 0; |
| 53 | ||
| 53 | ||
| 54 | 54 | if (!romh) |
| 55 | 55 | { |
| 56 | 56 | data = m_romh[offset & 0x1fff]; |
| r14559 | r14560 | |
|---|---|---|
| 40 | 40 | // device_c64_expansion_card_interface overrides |
| 41 | 41 | virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2); |
| 42 | 42 | virtual void c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2); |
| 43 | ||
| 43 | ||
| 44 | 44 | private: |
| 45 | 45 | UINT8 m_bank; |
| 46 | 46 | }; |
| r14559 | r14560 | |
|---|---|---|
| 9 | 9 | |
| 10 | 10 | /* |
| 11 | 11 | |
| 12 | PCB Layout | |
| 13 | ---------- | |
| 12 | PCB Layout | |
| 13 | ---------- | |
| 14 | 14 | |
| 15 | |===========================| | |
| 16 | |=| | | |
| 17 | |=| RAM LS11 | | |
| 18 | |=| | | |
| 19 | |=| LS139 | | |
| 20 | |=| ROM0 | | |
| 21 | |=| LS273 | | |
| 22 | |=| | | |
| 23 | |=| ROM1 LS00 | | |
| 24 | |===========================| | |
| 15 | |===========================| | |
| 16 | |=| | | |
| 17 | |=| RAM LS11 | | |
| 18 | |=| | | |
| 19 | |=| LS139 | | |
| 20 | |=| ROM0 | | |
| 21 | |=| LS273 | | |
| 22 | |=| | | |
| 23 | |=| ROM1 LS00 | | |
| 24 | |===========================| | |
| 25 | 25 | |
| 26 | RAM - NEC D43256-12L 32Kx8 RAM | |
| 27 | ROM0 - SGS M27256-2FI 32Kx8 EPROM | |
| 28 | ROM1 - National Instruments NMC27C256Q 32Kx8 EPROM | |
| 26 | RAM - NEC D43256-12L 32Kx8 RAM | |
| 27 | ROM0 - SGS M27256-2FI 32Kx8 EPROM | |
| 28 | ROM1 - National Instruments NMC27C256Q 32Kx8 EPROM | |
| 29 | 29 | |
| 30 | 30 | */ |
| 31 | 31 | |
| r14559 | r14560 | |
| 84 | 84 | UINT8 c64_pagefox_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2) |
| 85 | 85 | { |
| 86 | 86 | UINT8 data = 0; |
| 87 | ||
| 87 | ||
| 88 | 88 | if (!roml || !romh) |
| 89 | 89 | { |
| 90 | 90 | if (BIT(m_bank, 3)) |
| r14559 | r14560 | |
| 130 | 130 | m_game = 0; |
| 131 | 131 | m_exrom = 0; |
| 132 | 132 | } |
| 133 | ||
| 133 | ||
| 134 | 134 | m_bank = data; |
| 135 | 135 | } |
| 136 | 136 | } |
| r14559 | r14560 | |
|---|---|---|
| 202 | 202 | if ( state->m_rtc.present ) |
| 203 | 203 | machine.scheduler().timer_pulse(attotime::from_seconds(1), FUNC(wswan_rtc_callback)); |
| 204 | 204 | |
| 205 | machine.device<nvram_device>("nvram")->set_base(state->m_internal_eeprom, INTERNAL_EEPROM_SIZE); | |
| 205 | machine.device<nvram_device>("nvram")->set_base(state->m_internal_eeprom, INTERNAL_EEPROM_SIZE); | |
| 206 | 206 | } |
| 207 | 207 | |
| 208 | 208 | MACHINE_START( wscolor ) |
| r14559 | r14560 | |
| 220 | 220 | if ( state->m_rtc.present ) |
| 221 | 221 | machine.scheduler().timer_pulse(attotime::from_seconds(1), FUNC(wswan_rtc_callback)); |
| 222 | 222 | |
| 223 | machine.device<nvram_device>("nvram")->set_base(state->m_internal_eeprom, INTERNAL_EEPROM_SIZE); | |
| 223 | machine.device<nvram_device>("nvram")->set_base(state->m_internal_eeprom, INTERNAL_EEPROM_SIZE); | |
| 224 | 224 | } |
| 225 | 225 | |
| 226 | 226 | MACHINE_RESET( wswan ) |
| r14559 | r14560 | |
| 240 | 240 | state->m_vdp.color_mode = 0; |
| 241 | 241 | state->m_vdp.colors_16 = 0; |
| 242 | 242 | state->m_vdp.tile_packed = 0; |
| 243 | ||
| 243 | ||
| 244 | 244 | render_target *target = machine.render().first_target(); |
| 245 | 245 | target->set_view(state->m_rotate); |
| 246 | 246 | |
| r14559 | r14560 | |
| 1481 | 1481 | state->m_vdp.sprite_count = state->m_ws_portram[0x06]; |
| 1482 | 1482 | state->m_vdp.sprite_first = state->m_ws_portram[0x05]; // always zero? |
| 1483 | 1483 | } |
| 1484 | ||
| 1484 | ||
| 1485 | 1485 | if( state->m_vdp.current_line == 144 ) |
| 1486 | 1486 | { |
| 1487 | 1487 | wswan_set_irq_line( machine, WSWAN_IFLAG_VBL ); |
| r14559 | r14560 | |
|---|---|---|
| 404 | 404 | else |
| 405 | 405 | { |
| 406 | 406 | m_tx_pending = 0; |
| 407 | // | |
| 407 | // m_timer->adjust(attotime::never, 0); | |
| 408 | 408 | } |
| 409 | 409 | } |
| 410 | 410 | |
| r14559 | r14560 | |
| 890 | 890 | /* C9 I */ 0x34, 0xB4, 0x69, 0x49, 0x09, 0x49, NOP, No, |
| 891 | 891 | /* C10 O */ 0x35, 0xB5, 0x6F, 0x4F, 0x0F, 0x4F, NOP, No, |
| 892 | 892 | /* C11 P */ 0x36, 0xB6, 0x70, 0x50, 0x10, 0x50, NOP, No, |
| 893 | /* C12 { [ / Ü */ 0x37, 0xB7, 0x7B, 0x5B, 0x1B, 0x7B, NOP, No, | |
| 894 | /* C13 } ] / Ö */ 0x38, 0xB8, 0x7D, 0x5D, 0x1D, 0x7D, NOP, No, | |
| 893 | /* C12 { [ / ? */ 0x37, 0xB7, 0x7B, 0x5B, 0x1B, 0x7B, NOP, No, | |
| 894 | /* C13 } ] / ? */ 0x38, 0xB8, 0x7D, 0x5D, 0x1D, 0x7D, NOP, No, | |
| 895 | 895 | /* D13 RETURN */ 0x52, 0xD2, 0xCB, 0xDB, NOP, 0xCB, NOP, No, |
| 896 | 896 | |
| 897 | 897 | /* D2 A */ 0x46, 0xC6, 0x61, 0x41, 0x01, 0x41, NOP, No, |
| r14559 | r14560 | |
| 904 | 904 | /* D9 K */ 0x4D, 0xCD, 0x6B, 0x4B, 0x0B, 0x4B, NOP, No, |
| 905 | 905 | /* D10 L */ 0x4E, 0xCE, 0x6C, 0x4C, 0x0C, 0x4C, NOP, No, |
| 906 | 906 | /* D11 : ; */ 0x4F, 0xCF, 0x3B, 0x3A, 0xFB, 0x3B, NOP, No, |
| 907 | /* D12 " ' / | |
| 907 | /* D12 " ' / ? */ 0x50, 0xD0, 0x27, 0x22, 0xF8, 0x27, NOP, No, | |
| 908 | 908 | /* D14 ! \ */ 0x53, 0xD3, 0xC8, 0xC9, NOP, 0xC8, NOP, No, |
| 909 | 909 | |
| 910 | 910 | /* E2 Z */ 0x60, 0xE0, 0x7A, 0x5A, 0x1A, 0x5A, NOP, No, |
| r14559 | r14560 | |
| 1114 | 1114 | PORT_BIT( 0x10000000, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("Cursor Up") PORT_CODE(KEYCODE_UP) /* Up */ |
| 1115 | 1115 | PORT_BIT( 0x20000000, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("Cursor Right") PORT_CODE(KEYCODE_RIGHT) /* Right */ |
| 1116 | 1116 | PORT_BIT( 0x40000000, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("Cursor Down") PORT_CODE(KEYCODE_DOWN) /* Down */ |
| 1117 | // | |
| 1117 | // PORT_BIT( 0x80000000, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("Numpad CLR") PORT_CODE(KEYCODE_NUMLOCK) /* CLR */ | |
| 1118 | 1118 | PORT_BIT( 0x80000000, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("MENU") PORT_CODE(KEYCODE_MENU) /* Menu = POP */ |
| 1119 | 1119 | |
| 1120 | 1120 | PORT_START( "keyboard3" ) |
| r14559 | r14560 | |
| 1150 | 1150 | PORT_BIT( 0x10000000, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("F11") PORT_CODE(KEYCODE_F11) /* F11 */ |
| 1151 | 1151 | PORT_BIT( 0x20000000, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("F12") PORT_CODE(KEYCODE_F12) /* F12 */ |
| 1152 | 1152 | PORT_BIT( 0x40000000, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("Insert") PORT_CODE(KEYCODE_INSERT) /* Insert */ |
| 1153 | // | |
| 1153 | // PORT_BIT( 0x80000000, 0x0000, IPT_UNUSED ) | |
| 1154 | 1154 | PORT_BIT( 0x80000000, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("WIN_R") PORT_CODE(KEYCODE_RWIN) /* Windows Right = Next Window */ |
| 1155 | 1155 | |
| 1156 | 1156 | PORT_START( "keyboard4" ) |
| r14559 | r14560 | |
|---|---|---|
| 8 | 8 | **********************************************************************/ |
| 9 | 9 | |
| 10 | 10 | #include "c64_mach5.h" |
| 11 | ||
| 12 | ||
| 13 | 11 | |
| 12 | ||
| 13 | ||
| 14 | 14 | //************************************************************************** |
| 15 | 15 | // DEVICE DEFINITIONS |
| 16 | 16 | //************************************************************************** |
| r14559 | r14560 | |
| 60 | 60 | UINT8 c64_mach5_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2) |
| 61 | 61 | { |
| 62 | 62 | UINT8 data = 0; |
| 63 | ||
| 63 | ||
| 64 | 64 | if (!roml || !io1 || !io2) |
| 65 | 65 | { |
| 66 | 66 | data = m_roml[offset & 0x1fff]; |
| r14559 | r14560 | |
|---|---|---|
| 162 | 162 | int m_connected; |
| 163 | 163 | }; |
| 164 | 164 | |
| 165 | // | |
| 165 | // const apollo_kbd_interface &m_config; | |
| 166 | 166 | |
| 167 | 167 | beeper m_beeper; |
| 168 | 168 | mouse m_mouse; |
| r14559 | r14560 | |
|---|---|---|
| 1850 | 1850 | state->m_sndglu_dummy_read = 0; |
| 1851 | 1851 | |
| 1852 | 1852 | state->m_is_rom3 = true; |
| 1853 | ||
| 1853 | ||
| 1854 | 1854 | machine.device<nvram_device>("nvram")->set_base(state->m_clock_bram, sizeof(state->m_clock_bram)); |
| 1855 | 1855 | |
| 1856 | 1856 | /* save state stuff. note that the driver takes care of docram. */ |
| r14559 | r14560 | |
|---|---|---|
| 69 | 69 | { |
| 70 | 70 | data = m_romh[offset & 0x1fff]; |
| 71 | 71 | } |
| 72 | ||
| 72 | ||
| 73 | 73 | return data; |
| 74 | 74 | } |
| 75 | 75 |
| r14559 | r14560 | |
|---|---|---|
| 253 | 253 | else if ((data & APOLLO_CSR_CR_FPU_TRAP_ENABLE) == 0) |
| 254 | 254 | { |
| 255 | 255 | // enable FPU (i.e. FPU opcodes in CPU) |
| 256 | // | |
| 256 | // apollo_set_cpu_has_fpu(&space->device(), 1); | |
| 257 | 257 | } |
| 258 | 258 | else |
| 259 | 259 | { |
| 260 | 260 | // disable FPU (i.e. FPU opcodes in CPU) |
| 261 | // | |
| 261 | // apollo_set_cpu_has_fpu(&space->device(), 0); | |
| 262 | 262 | |
| 263 | 263 | if (!apollo_is_dn3000()) |
| 264 | 264 | { |
| r14559 | r14560 | |
| 497 | 497 | |
| 498 | 498 | static READ8_DEVICE_HANDLER( apollo_dma8237_fdc_dack_r ) { |
| 499 | 499 | UINT8 data = pc_fdc_dack_r(device->machine()); |
| 500 | // | |
| 500 | // DLOG2(("dma fdc dack read %02x",data)); | |
| 501 | 501 | |
| 502 | 502 | // hack for DN3000: select appropriate DMA channel No. |
| 503 | 503 | dn3000_dma_channel1 = 2; // 1 = ctape, 2 = floppy dma channel |
| r14559 | r14560 | |
| 522 | 522 | |
| 523 | 523 | static WRITE8_DEVICE_HANDLER( apollo_dma8237_wdc_dack_w ) { |
| 524 | 524 | DLOG1(("dma wdc dack write %02x (not used, not emulated!)", data)); |
| 525 | // | |
| 525 | // omti8621_dack_w(device->machine, data); | |
| 526 | 526 | } |
| 527 | 527 | |
| 528 | 528 | static WRITE_LINE_DEVICE_HANDLER( apollo_dma8237_out_eop ) { |
| r14559 | r14560 | |
| 734 | 734 | static WRITE_LINE_DEVICE_HANDLER( apollo_ptm_irq_function ) { |
| 735 | 735 | DLOG1(("apollo_ptm_irq_function: state=%d", state )); |
| 736 | 736 | |
| 737 | // | |
| 737 | // ptm6840_device *ptm = device->machine().device<ptm6840_device>(APOLLO_PTM_TAG); | |
| 738 | 738 | |
| 739 | 739 | apollo_pic_set_irq_line(device, APOLLO_IRQ_PTM, state); |
| 740 | 740 | } |
| 741 | 741 | |
| 742 | // Timer 1's input is a 250-kHz (4-microsecond period) signal. | |
| 743 | // Timer 2's input is a 125-kHz (8-microsecond period) signal. | |
| 744 | // Timer 3's input is a 62.5-kHz (16-microsecond period) signal. | |
| 745 | // The Timer 3 input may be prescaled to make the effective input signal have a 128-microsecond period. | |
| 742 | // Timer 1's input is a 250-kHz (4-microsecond period) signal. | |
| 743 | // Timer 2's input is a 125-kHz (8-microsecond period) signal. | |
| 744 | // Timer 3's input is a 62.5-kHz (16-microsecond period) signal. | |
| 745 | // The Timer 3 input may be prescaled to make the effective input signal have a 128-microsecond period. | |
| 746 | 746 | |
| 747 | 747 | static const ptm6840_interface apollo_ptm_config = { |
| 748 | 748 | 0, |
| r14559 | r14560 | |
| 1095 | 1095 | #endif |
| 1096 | 1096 | |
| 1097 | 1097 | // The counter/timer on the SIO chip is used for the refresh count. |
| 1098 | // This is set up in the timer mode to | |
| 1098 | // This is set up in the timer mode to produce a square wave output on output OP3. | |
| 1099 | 1099 | // The period of the output is 15 microseconds. |
| 1100 | 1100 | |
| 1101 | 1101 | // toggle memory refresh counter |
| r14559 | r14560 | |
| 1305 | 1305 | |
| 1306 | 1306 | // hack to make upd765.c work again for apollo with MESS version >= 0.142u6 |
| 1307 | 1307 | // 2011-07-23 Hans Ostermyer |
| 1308 | // extern void upd765_hack_for_apollo(); | |
| 1309 | // upd765_hack_for_apollo(); | |
| 1308 | // extern void upd765_hack_for_apollo(); | |
| 1309 | // upd765_hack_for_apollo(); | |
| 1310 | 1310 | } |
| 1311 | 1311 | |
| 1312 | 1312 | WRITE8_HANDLER(apollo_fdc_w ) { |
| r14559 | r14560 | |
| 1371 | 1371 | ***************************************************************************/ |
| 1372 | 1372 | |
| 1373 | 1373 | static void apollo_wdc_set_irq(const running_machine *machine, int state) { |
| 1374 | // FIXME: | |
| 1375 | // MLOG2(("apollo_wdc_set_irq: state=%x", state )); | |
| 1374 | // FIXME: | |
| 1375 | // MLOG2(("apollo_wdc_set_irq: state=%x", state )); | |
| 1376 | 1376 | apollo_pic_set_irq_line(machine->firstcpu, APOLLO_IRQ_WIN1, state); |
| 1377 | 1377 | } |
| 1378 | 1378 |
| r14559 | r14560 | |
|---|---|---|
| 525 | 525 | switch (m_command_buffer[0]) |
| 526 | 526 | { |
| 527 | 527 | case CMD_MC_F9: // 0xf9 |
| 528 | // | |
| 528 | // logerror(" (%02x, length=00)", m_command_buffer[0]); | |
| 529 | 529 | break; |
| 530 | 530 | |
| 531 | 531 | default: |
| r14559 | r14560 | |
| 686 | 686 | m_i82586_config = m_program_buffer.get_word(1); |
| 687 | 687 | break; |
| 688 | 688 | |
| 689 | // | |
| 689 | // case CMD_MC_F8: | |
| 690 | 690 | case CMD_RECEIVE_PACKET: // 0x08 |
| 691 | 691 | if (m_rx_data_buffer.get_length() == 0 && !m_rx_fifo.get(&m_rx_data_buffer)) |
| 692 | 692 | { |
| r14559 | r14560 | |
| 700 | 700 | return; |
| 701 | 701 | // break; |
| 702 | 702 | |
| 703 | // | |
| 703 | // case CMD_MC_F8: | |
| 704 | 704 | case CMD_MC_F9: |
| 705 | // | |
| 705 | // case CMD_MC_FA: | |
| 706 | 706 | // FIXME: |
| 707 | 707 | m_response.command = CMD_TRANSMIT_PACKET_COMPLETE; |
| 708 | // | |
| 708 | // break; | |
| 709 | 709 | |
| 710 | 710 | case CMD_TRANSMIT_PACKET: // 0x09 |
| 711 | 711 | case CMD_TRANSMIT_PACKET_18: // 0x18 |
| r14559 | r14560 | |
| 833 | 833 | // skip packet |
| 834 | 834 | return 0; |
| 835 | 835 | } |
| 836 | // else if (m_command_pending && m_command_buffer[0] == CMD_MC_F9) | |
| 837 | // { | |
| 838 | // LOG(("threecom3c505_receive: data_length=%x !!!! skipped data while CMD_MC_F9 is pending!", length)); | |
| 839 | // return 0; | |
| 840 | // } | |
| 836 | // else if (m_command_pending && m_command_buffer[0] == CMD_MC_F9) | |
| 837 | // { | |
| 838 | // LOG(("threecom3c505_receive: data_length=%x !!!! skipped data while CMD_MC_F9 is pending!", length)); | |
| 839 | // return 0; | |
| 840 | // } | |
| 841 | 841 | else if (!m_rx_fifo.put(data, length)) |
| 842 | 842 | { |
| 843 | 843 | // fifo overrun |
| r14559 | r14560 | |
| 853 | 853 | m_rx_fifo.get(&m_rx_data_buffer); |
| 854 | 854 | } |
| 855 | 855 | |
| 856 | // if (m_command_pending && m_command_buffer[0] == CMD_MC_F9) | |
| 857 | // { | |
| 858 | // verbose = 2; | |
| 859 | // } | |
| 856 | // if (m_command_pending && m_command_buffer[0] == CMD_MC_F9) | |
| 857 | // { | |
| 858 | // verbose = 2; | |
| 859 | // } | |
| 860 | 860 | |
| 861 | 861 | if (!m_command_pending && m_rx_pending > 0 |
| 862 | 862 | && m_rx_data_buffer.get_length() > 0) |
| r14559 | r14560 | |
| 866 | 866 | do_receive_command(); |
| 867 | 867 | } |
| 868 | 868 | |
| 869 | // guessing! | |
| 870 | // else if (m_control & CMDE) | |
| 871 | // { | |
| 872 | // m_status |= ACRF; /* adapter command register full */ | |
| 869 | // guessing! | |
| 870 | // else if (m_control & CMDE) | |
| 871 | // { | |
| 872 | // m_status |= ACRF; /* adapter command register full */ | |
| 873 | 873 | // |
| 874 | // LOG(("threecom3c505_receive - set_interrupt(%d)",ASSERT_LINE)); | |
| 875 | // set_interrupt(ASSERT_LINE); | |
| 876 | // } | |
| 874 | // LOG(("threecom3c505_receive - set_interrupt(%d)",ASSERT_LINE)); | |
| 875 | // set_interrupt(ASSERT_LINE); | |
| 876 | // } | |
| 877 | 877 | |
| 878 | 878 | return 1; |
| 879 | 879 | } |
| r14559 | r14560 | |
| 896 | 896 | // spurious data; set command register empty |
| 897 | 897 | m_command_index = 0; |
| 898 | 898 | m_status |= HCRE; |
| 899 | // | |
| 899 | // verbose = 2; | |
| 900 | 900 | break; |
| 901 | 901 | |
| 902 | 902 | case CMD_MC_F9: |
| 903 | // | |
| 903 | // case CMD_MC_FA: | |
| 904 | 904 | // read data length from data port (not from command port) |
| 905 | 905 | m_tx_data_buffer.reset(); |
| 906 | 906 | m_status |= HRDY; /* data register ready */ |
| r14559 | r14560 | |
| 955 | 955 | UINT8 data; |
| 956 | 956 | if (m_response_index == 0) |
| 957 | 957 | { |
| 958 | // | |
| 958 | // set_command_pending(1); | |
| 959 | 959 | data = m_response.command; |
| 960 | 960 | } |
| 961 | 961 | else if (m_response_index == 1) |
| r14559 | r14560 | |
| 1258 | 1258 | else |
| 1259 | 1259 | { |
| 1260 | 1260 | // flush data register (reset tx data fifo) |
| 1261 | // | |
| 1261 | // m_tx_data_length = 0; | |
| 1262 | 1262 | m_tx_data_buffer.reset(); |
| 1263 | 1263 | m_status |= HRDY; /* data register ready */ |
| 1264 | 1264 | } |
| r14559 | r14560 | |
|---|---|---|
| 60 | 60 | UINT8 c64_westermann_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2) |
| 61 | 61 | { |
| 62 | 62 | UINT8 data = 0; |
| 63 | ||
| 63 | ||
| 64 | 64 | if (!roml || !romh) |
| 65 | 65 | { |
| 66 | 66 | data = m_roml[offset & 0x3fff]; |
| r14559 | r14560 | |
|---|---|---|
| 9 | 9 | |
| 10 | 10 | /* |
| 11 | 11 | |
| 12 | PCB Layout | |
| 13 | ---------- | |
| 12 | PCB Layout | |
| 13 | ---------- | |
| 14 | 14 | |
| 15 | |===========================| | |
| 16 | |=| LS10 LS122 C | | |
| 17 | |=| R | | |
| 18 | |=| | | |
| 19 | |=| | | |
| 20 | |=| ROM0 ROM2 ROM1 | | |
| 21 | |=| | | |
| 22 | |=| | | |
| 23 | |=| | | |
| 24 | |===========================| | |
| 15 | |===========================| | |
| 16 | |=| LS10 LS122 C | | |
| 17 | |=| R | | |
| 18 | |=| | | |
| 19 | |=| | | |
| 20 | |=| ROM0 ROM2 ROM1 | | |
| 21 | |=| | | |
| 22 | |=| | | |
| 23 | |=| | | |
| 24 | |===========================| | |
| 25 | 25 | |
| 26 | ROM0 - Mitsubishi M5L2764K 8Kx8 EPROM "U" | |
| 27 | ROM1 - Mitsubishi M5L2764K 8Kx8 EPROM "3" | |
| 28 | ROM2 - Mitsubishi M5L2764K 8Kx8 EPROM "2" (located on solder side) | |
| 29 | R - 56K | |
| 30 | C - 47uF | |
| 26 | ROM0 - Mitsubishi M5L2764K 8Kx8 EPROM "U" | |
| 27 | ROM1 - Mitsubishi M5L2764K 8Kx8 EPROM "3" | |
| 28 | ROM2 - Mitsubishi M5L2764K 8Kx8 EPROM "2" (located on solder side) | |
| 29 | R - 56K | |
| 30 | C - 47uF | |
| 31 | 31 | |
| 32 | 32 | */ |
| 33 | 33 | |
| r14559 | r14560 | |
| 45 | 45 | #define UNSCRAMBLE_DATA(_data) \ |
| 46 | 46 | BITSWAP8(_data,7,6,0,5,1,4,2,3) |
| 47 | 47 | |
| 48 | ||
| 48 | ||
| 49 | 49 | // 74LS122 tW=0.45*R*C = 1.1844s |
| 50 | #define TIMER_PERIOD 1184 | |
| 50 | #define TIMER_PERIOD 1184 | |
| 51 | 51 | |
| 52 | 52 | |
| 53 | 53 | |
| r14559 | r14560 | |
| 92 | 92 | void c64_vizawrite_cartridge_device::device_reset() |
| 93 | 93 | { |
| 94 | 94 | m_game = 0; |
| 95 | ||
| 96 | 95 | |
| 96 | ||
| 97 | 97 | m_game_timer->adjust(attotime::from_msec(TIMER_PERIOD), 0); |
| 98 | 98 | } |
| 99 | 99 | |
| r14559 | r14560 | |
| 126 | 126 | offs_t addr = offset & 0x1fff; |
| 127 | 127 | data = UNSCRAMBLE_DATA(m_romh[UNSCRAMBLE_ADDRESS(addr)]); |
| 128 | 128 | } |
| 129 | ||
| 129 | ||
| 130 | 130 | return data; |
| 131 | 131 | } |
| r14559 | r14560 | |
|---|---|---|
| 41 | 41 | // device_c64_expansion_card_interface overrides |
| 42 | 42 | virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2); |
| 43 | 43 | virtual int c64_exrom_r() { return 0; } |
| 44 | ||
| 44 | ||
| 45 | 45 | private: |
| 46 | 46 | emu_timer *m_game_timer; |
| 47 | 47 | }; |
| r14559 | r14560 | |
|---|---|---|
| 201 | 201 | |
| 202 | 202 | if (m_image->image_core_file() == NULL) |
| 203 | 203 | { |
| 204 | ||
| 204 | ||
| 205 | 205 | } |
| 206 | 206 | else |
| 207 | 207 | { |
| 208 | ||
| 208 | ||
| 209 | 209 | } |
| 210 | 210 | |
| 211 | 211 | m_ctape_block_buffer = auto_alloc_array(machine(), UINT8, SC499_CTAPE_BLOCK_SIZE); |
| r14559 | r14560 | |
| 334 | 334 | m_image_length = 0; |
| 335 | 335 | m_ctape_block_count = 0; |
| 336 | 336 | |
| 337 | ||
| 337 | ||
| 338 | 338 | } |
| 339 | 339 | } |
| 340 | 340 | |
| r14559 | r14560 | |
| 768 | 768 | } |
| 769 | 769 | else if (m_command == SC499_CMD_READ_STATUS) |
| 770 | 770 | { |
| 771 | // | |
| 771 | // if (m_data_index > 0) | |
| 772 | 772 | { |
| 773 | 773 | m_timer->adjust( attotime::from_usec(20), SC499_TIMER_4); |
| 774 | 774 | } |
| r14559 | r14560 | |
| 812 | 812 | m_timer->adjust( attotime::from_msec(1), SC499_TIMER_3); |
| 813 | 813 | |
| 814 | 814 | // Note: proper sequence is: |
| 815 | // pc=3c4ad714 - ctape: write_dma_go: 00 | |
| 816 | // pc=3c4ad718 - ctape: write_control_port: 30 | |
| 817 | // pc=3c40ebda: apollo_dma_1_w: writing DMA Controller 1 at offset 02 = 00 | |
| 818 | // pc=3c40ebe8: apollo_dma_1_w: writing DMA Controller 1 at offset 02 = 22 | |
| 819 | // pc=3c40ebf4: apollo_dma_1_w: writing DMA Controller 1 at offset 0c = 00 | |
| 820 | // pc=3c40ec04: apollo_dma_1_w: writing DMA Controller 1 at offset 03 = ff | |
| 821 | // pc=3c40ec12: apollo_dma_1_w: writing DMA Controller 1 at offset 03 = 01 | |
| 822 | // pc=3c40ec1e: apollo_dma_1_w: writing DMA Controller 1 at offset 0b = 45 | |
| 823 | // pc=3c40ec2e: apollo_dma_1_w: writing DMA Controller 1 at offset 0a = 01 | |
| 824 | // pc=3c41a154 - ctape: timer_func param=3 status=2f | |
| 825 | // pc=3c41a154 - ctape: set_dma_drq(1) | |
| 826 | // pc=3c41a154 - maincpu: apollo_dma_ctape_drq: state=1 | |
| 827 | // pc=3c41a154 - ctape: dack_read: data[0]=55 status=6f | |
| 828 | // pc=3c41a154: dma write byte at offset 17f9c00+200 = 55 | |
| 829 | // pc=3c41a154: dma write byte at offset 17f9c00+2ff = 6d | |
| 830 | // pc=3c41a154: dma write byte at offset 17f9c00+300 = 65 | |
| 831 | // pc=3c41a154 - ctape: dack_read: data[511]=60 status=6f | |
| 832 | // pc=3c41a154: dma write byte at offset 17f9c00+3ff = 60 | |
| 833 | // pc=3c41a154 - dma8237_1: dma out eop state 00 | |
| 834 | // pc=3c41a154 - ctape: set_tc_state: block=21 state=0 | |
| 835 | // pc=3c41a154 - ctape: set_dma_drq(0) | |
| 836 | // pc=3c41a154 - maincpu: apollo_dma_ctape_drq: state=0 | |
| 837 | // pc=3c41a154 - dma8237_1: dma out eop state 01 | |
| 838 | // pc=3c41a154 - ctape: set_tc_state: block=21 state=1 | |
| 815 | // pc=3c4ad714 - ctape: write_dma_go: 00 | |
| 816 | // pc=3c4ad718 - ctape: write_control_port: 30 | |
| 817 | // pc=3c40ebda: apollo_dma_1_w: writing DMA Controller 1 at offset 02 = 00 | |
| 818 | // pc=3c40ebe8: apollo_dma_1_w: writing DMA Controller 1 at offset 02 = 22 | |
| 819 | // pc=3c40ebf4: apollo_dma_1_w: writing DMA Controller 1 at offset 0c = 00 | |
| 820 | // pc=3c40ec04: apollo_dma_1_w: writing DMA Controller 1 at offset 03 = ff | |
| 821 | // pc=3c40ec12: apollo_dma_1_w: writing DMA Controller 1 at offset 03 = 01 | |
| 822 | // pc=3c40ec1e: apollo_dma_1_w: writing DMA Controller 1 at offset 0b = 45 | |
| 823 | // pc=3c40ec2e: apollo_dma_1_w: writing DMA Controller 1 at offset 0a = 01 | |
| 824 | // pc=3c41a154 - ctape: timer_func param=3 status=2f | |
| 825 | // pc=3c41a154 - ctape: set_dma_drq(1) | |
| 826 | // pc=3c41a154 - maincpu: apollo_dma_ctape_drq: state=1 | |
| 827 | // pc=3c41a154 - ctape: dack_read: data[0]=55 status=6f | |
| 828 | // pc=3c41a154: dma write byte at offset 17f9c00+200 = 55 | |
| 829 | // pc=3c41a154: dma write byte at offset 17f9c00+2ff = 6d | |
| 830 | // pc=3c41a154: dma write byte at offset 17f9c00+300 = 65 | |
| 831 | // pc=3c41a154 - ctape: dack_read: data[511]=60 status=6f | |
| 832 | // pc=3c41a154: dma write byte at offset 17f9c00+3ff = 60 | |
| 833 | // pc=3c41a154 - dma8237_1: dma out eop state 00 | |
| 834 | // pc=3c41a154 - ctape: set_tc_state: block=21 state=0 | |
| 835 | // pc=3c41a154 - ctape: set_dma_drq(0) | |
| 836 | // pc=3c41a154 - maincpu: apollo_dma_ctape_drq: state=0 | |
| 837 | // pc=3c41a154 - dma8237_1: dma out eop state 01 | |
| 838 | // pc=3c41a154 - ctape: set_tc_state: block=21 state=1 | |
| 839 | 839 | |
| 840 | 840 | break; |
| 841 | 841 | } |
| r14559 | r14560 | |
| 885 | 885 | break; |
| 886 | 886 | case SC499_PORT_STATUS: // read status |
| 887 | 887 | data=read_status_port(); |
| 888 | // | |
| 888 | // set_interrupt(CLEAR_LINE); | |
| 889 | 889 | break; |
| 890 | 890 | default: |
| 891 | 891 | LOG(("reading sc499 Register at offset %02x = %02x", offset, data)); |
| r14559 | r14560 | |
| 924 | 924 | UINT8 sc499_device::dack_read() { |
| 925 | 925 | UINT8 data = 0xff; |
| 926 | 926 | |
| 927 | // | |
| 927 | // set_dma_drq(CLEAR_LINE); | |
| 928 | 928 | |
| 929 | 929 | if (m_ctape_block_index >= SC499_CTAPE_BLOCK_SIZE) |
| 930 | 930 | { |
| r14559 | r14560 | |
| 946 | 946 | LOG2(("dack_read: data[%d]=%x status=%x", m_ctape_block_index-1, data, m_status)); |
| 947 | 947 | } |
| 948 | 948 | |
| 949 | // if (m_ctape_block_index < SC499_CTAPE_BLOCK_SIZE) | |
| 950 | // { | |
| 951 | // set_dma_drq(ASSERT_LINE); | |
| 952 | // } | |
| 949 | // if (m_ctape_block_index < SC499_CTAPE_BLOCK_SIZE) | |
| 950 | // { | |
| 951 | // set_dma_drq(ASSERT_LINE); | |
| 952 | // } | |
| 953 | 953 | |
| 954 | 954 | return data; |
| 955 | 955 | } |
| r14559 | r14560 | |
| 1023 | 1023 | { |
| 1024 | 1024 | m_image->fread(m_ctape_block_buffer, SC499_CTAPE_BLOCK_SIZE); |
| 1025 | 1025 | |
| 1026 | // | |
| 1026 | // if (verbose > 1 || m_tape_pos % 100 == 0) | |
| 1027 | 1027 | { |
| 1028 | 1028 | log_block("read_block"); |
| 1029 | 1029 | } |
| r14559 | r14560 | |
| 1055 | 1055 | tape_status_clear(SC499_ST0_FM); |
| 1056 | 1056 | } |
| 1057 | 1057 | } |
| 1058 | // | |
| 1058 | // if (m_tape_pos == 69400) verbose = 2; | |
| 1059 | 1059 | } |
| 1060 | 1060 | |
| 1061 | 1061 | /*------------------------------------------------- |
| r14559 | r14560 | |
|---|---|---|
| 36 | 36 | |
| 37 | 37 | bit description |
| 38 | 38 | |
| 39 | PA0 | |
| 39 | PA0 | |
| 40 | 40 | PA1 |
| 41 | PA2 REN | |
| 42 | PA3 ATN | |
| 43 | PA4 DAV | |
| 44 | PA5 EOI | |
| 45 | PA6 NDAC | |
| 46 | PA7 NRFD | |
| 41 | PA2 REN | |
| 42 | PA3 ATN | |
| 43 | PA4 DAV | |
| 44 | PA5 EOI | |
| 45 | PA6 NDAC | |
| 46 | PA7 NRFD | |
| 47 | 47 | |
| 48 | 48 | */ |
| 49 | 49 | |
| 50 | 50 | UINT8 data = 0; |
| 51 | ||
| 51 | ||
| 52 | 52 | data |= m_bus->ren_r() << 2; |
| 53 | 53 | data |= m_bus->atn_r() << 3; |
| 54 | 54 | data |= m_bus->dav_r() << 4; |
| r14559 | r14560 | |
| 65 | 65 | |
| 66 | 66 | bit description |
| 67 | 67 | |
| 68 | PA0 U4 DC | |
| 69 | PA1 U4/U5 TE | |
| 70 | PA2 REN | |
| 71 | PA3 ATN | |
| 72 | PA4 DAV | |
| 73 | PA5 EOI | |
| 74 | PA6 NDAC | |
| 75 | PA7 NRFD | |
| 68 | PA0 U4 DC | |
| 69 | PA1 U4/U5 TE | |
| 70 | PA2 REN | |
| 71 | PA3 ATN | |
| 72 | PA4 DAV | |
| 73 | PA5 EOI | |
| 74 | PA6 NDAC | |
| 75 | PA7 NRFD | |
| 76 | 76 | |
| 77 | 77 | */ |
| 78 | ||
| 78 | ||
| 79 | 79 | m_bus->ren_w(BIT(data, 2)); |
| 80 | 80 | m_bus->atn_w(BIT(data, 3)); |
| 81 | 81 | m_bus->dav_w(BIT(data, 4)); |
| r14559 | r14560 | |
| 90 | 90 | |
| 91 | 91 | bit description |
| 92 | 92 | |
| 93 | PC0 IFC | |
| 94 | PC1 SRQ | |
| 93 | PC0 IFC | |
| 94 | PC1 SRQ | |
| 95 | 95 | PC2 |
| 96 | 96 | PC3 |
| 97 | 97 | PC4 |
| 98 | 98 | PC5 |
| 99 | 99 | PC6 |
| 100 | PC7 | |
| 100 | PC7 slot _EXROM | |
| 101 | 101 | |
| 102 | 102 | */ |
| 103 | 103 | |
| 104 | 104 | UINT8 data = 0; |
| 105 | ||
| 105 | ||
| 106 | 106 | data |= m_bus->ifc_r(); |
| 107 | 107 | data |= m_bus->srq_r() << 1; |
| 108 | ||
| 108 | ||
| 109 | 109 | data |= m_exp->exrom_r() << 7; |
| 110 | 110 | |
| 111 | 111 | return data; |
| r14559 | r14560 | |
| 117 | 117 | |
| 118 | 118 | bit description |
| 119 | 119 | |
| 120 | PC0 IFC | |
| 121 | PC1 SRQ | |
| 120 | PC0 IFC | |
| 121 | PC1 SRQ | |
| 122 | 122 | PC2 |
| 123 | PC3 C64 _EXROM | |
| 124 | PC4 _ROML select | |
| 123 | PC3 C64 _EXROM | |
| 124 | PC4 _ROML select | |
| 125 | 125 | PC5 |
| 126 | 126 | PC6 |
| 127 | 127 | PC7 |
| r14559 | r14560 | |
| 130 | 130 | |
| 131 | 131 | m_bus->ifc_w(BIT(data, 0)); |
| 132 | 132 | m_bus->srq_w(BIT(data, 1)); |
| 133 | ||
| 133 | ||
| 134 | 134 | m_exrom = !BIT(data, 3); |
| 135 | ||
| 135 | ||
| 136 | 136 | m_roml_sel = BIT(data, 4); |
| 137 | 137 | } |
| 138 | 138 | |
| r14559 | r14560 | |
| 268 | 268 | UINT8 c64_ieee488_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2) |
| 269 | 269 | { |
| 270 | 270 | UINT8 data = m_exp->cd_r(space, offset, roml, romh, io1, io2); |
| 271 | ||
| 271 | ||
| 272 | 272 | if (!roml) |
| 273 | 273 | { |
| 274 | 274 | if (m_roml_sel) |
| r14559 | r14560 | |
| 295 | 295 | { |
| 296 | 296 | tpi6525_w(m_tpi, offset & 0x07, data); |
| 297 | 297 | } |
| 298 | ||
| 298 | ||
| 299 | 299 | m_exp->cd_w(space, offset, data, roml, romh, io1, io2); |
| 300 | 300 | } |
| 301 | 301 |
| r14559 | r14560 | |
|---|---|---|
| 29 | 29 | => Note that actually the DISK II boot (loading CPM : OK) but do not run (don't run the CPM...). |
| 30 | 30 | 20/11/2010 : synchronization between uPD765 and Z80 are now OK, CP/M runnig! JJStacino |
| 31 | 31 | 11/11/2011 : add the minidisque support -3 pouces 1/2 driver- JJStacino (jj.stac @ aliceadsl.fr) |
| 32 | 19/02/2012 : few adjustment for the hrp and hr machine - JJStacino | |
| 33 | ||
| 32 | 19/02/2012 : few adjustment for the hrp and hr machine - JJStacino | |
| 33 | ||
| 34 | 34 | don't forget to keep some information about these machines, see DChector project : http://dchector.free.fr/ made by DanielCoulom |
| 35 | 35 | (and thank's to Daniel!) and Yves site : http://hectorvictor.free.fr/ (thank's too Yves!) |
| 36 | 36 | |
| r14559 | r14560 | |
| 72 | 72 | /* Helper function*/ |
| 73 | 73 | static int isHectorWithDisc2(running_machine &machine) |
| 74 | 74 | { |
| 75 | return ((strncmp(machine.system().name , "hec2hrx" | |
| 75 | return ((strncmp(machine.system().name , "hec2hrx" | |
| 76 | 76 | (strncmp(machine.system().name , "hec2mx40" , 8)==0) || |
| 77 | 77 | (strncmp(machine.system().name , "hec2mx80" , 8)==0)); |
| 78 | 78 | } |
| r14559 | r14560 | |
| 385 | 385 | /* Bit 6 => motor ON/OFF => for cassette state!*/ |
| 386 | 386 | if (state->m_write_cassette==0) |
| 387 | 387 | { |
| 388 | | |
| 388 | | |
| 389 | 389 | CASSETTE_MOTOR_ENABLED , |
| 390 | 390 | CASSETTE_MASK_MOTOR); |
| 391 | 391 | // cassette_device_image(space->machine())->set_state((cassette_state)(CASSETTE_PLAY | CASSETTE_SPEAKER_ENABLED | CASSETTE_MOTOR_ENABLED )); |
| r14559 | r14560 | |
| 408 | 408 | state->m_counter_write = 6; |
| 409 | 409 | if (state->m_write_cassette==0) |
| 410 | 410 | { /* C'est la 1er fois => record*/ |
| 411 | | |
| 411 | | |
| 412 | 412 | CASSETTE_MOTOR_ENABLED , |
| 413 | 413 | CASSETTE_MASK_MOTOR); |
| 414 | 414 | cassette_device_image(space->machine())->set_state(CASSETTE_RECORD); |
| r14559 | r14560 | |
|---|---|---|
| 48 | 48 | DECLARE_WRITE_LINE_MEMBER( nmi_w ); |
| 49 | 49 | DECLARE_WRITE_LINE_MEMBER( dma_w ); |
| 50 | 50 | DECLARE_WRITE_LINE_MEMBER( reset_w ); |
| 51 | ||
| 51 | ||
| 52 | 52 | protected: |
| 53 | 53 | // device-level overrides |
| 54 | 54 | virtual void device_start(); |
| r14559 | r14560 | |
| 63 | 63 | required_device<device_t> m_tpi; |
| 64 | 64 | required_device<ieee488_device> m_bus; |
| 65 | 65 | required_device<c64_expansion_slot_device> m_exp; |
| 66 | ||
| 66 | ||
| 67 | 67 | int m_roml_sel; |
| 68 | 68 | }; |
| 69 | 69 |
| r14559 | r14560 | |
|---|---|---|
| 9 | 9 | |
| 10 | 10 | /* |
| 11 | 11 | |
| 12 | PCB Layout | |
| 13 | ---------- | |
| 12 | PCB Layout | |
| 13 | ---------- | |
| 14 | 14 | |
| 15 | |===================| | |
| 16 | | ROM6 | | |
| 17 | | MC14066 | | |
| 18 | | | | |
| 19 | |===============| ROM5 | | |
| 20 | |=| | | |
| 21 | |=| | | |
| 22 | |=| RAM BAT ROM4 | | |
| 23 | |=| | | |
| 24 | |=| | | |
| 25 | |=| ROM0 ROM3 | | |
| 26 | |=| | | |
| 27 | |=| | | |
| 28 | |===============| LS138 ROM2 | | |
| 29 | | LS138 | | |
| 30 | | LS174 | | |
| 31 | | LS133 ROM1 | | |
| 32 | |===================| | |
| 15 | |===================| | |
| 16 | | ROM6 | | |
| 17 | | MC14066 | | |
| 18 | | | | |
| 19 | |===============| ROM5 | | |
| 20 | |=| | | |
| 21 | |=| | | |
| 22 | |=| RAM BAT ROM4 | | |
| 23 | |=| | | |
| 24 | |=| | | |
| 25 | |=| ROM0 ROM3 | | |
| 26 | |=| | | |
| 27 | |=| | | |
| 28 | |===============| LS138 ROM2 | | |
| 29 | | LS138 | | |
| 30 | | LS174 | | |
| 31 | | LS133 ROM1 | | |
| 32 | |===================| | |
| 33 | 33 | |
| 34 | BAT - BR2325 lithium battery | |
| 35 | RAM - ? 8Kx8 RAM | |
| 36 | ROM0 - ? 16Kx8 EPROM | |
| 37 | ROM1 - ? 32Kx8 EPROM | |
| 38 | ROM2 - ? 32Kx8 EPROM | |
| 39 | ROM3 - ? 32Kx8 EPROM | |
| 40 | ROM4 - not populated | |
| 41 | ROM5 - not populated | |
| 42 | ROM6 - not populated | |
| 34 | BAT - BR2325 lithium battery | |
| 35 | RAM - ? 8Kx8 RAM | |
| 36 | ROM0 - ? 16Kx8 EPROM | |
| 37 | ROM1 - ? 32Kx8 EPROM | |
| 38 | ROM2 - ? 32Kx8 EPROM | |
| 39 | ROM3 - ? 32Kx8 EPROM | |
| 40 | ROM4 - not populated | |
| 41 | ROM5 - not populated | |
| 42 | ROM6 - not populated | |
| 43 | 43 | |
| 44 | 44 | */ |
| 45 | 45 | |
| 46 | 46 | /* |
| 47 | 47 | |
| 48 | TODO: | |
| 49 | ||
| 50 | - M6802 board | |
| 48 | TODO: | |
| 51 | 49 | |
| 50 | - M6802 board | |
| 51 | ||
| 52 | 52 | */ |
| 53 | 53 | |
| 54 | 54 | #include "c64_multiscreen.h" |
| r14559 | r14560 | |
| 114 | 114 | UINT8 c64_multiscreen_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2) |
| 115 | 115 | { |
| 116 | 116 | UINT8 data = 0; |
| 117 | ||
| 117 | ||
| 118 | 118 | if (!roml) |
| 119 | 119 | { |
| 120 | 120 | int bank = m_bank & 0x0f; |
| r14559 | r14560 | |
| 131 | 131 | else if (!romh) |
| 132 | 132 | { |
| 133 | 133 | int bank = m_bank & 0x0f; |
| 134 | ||
| 134 | ||
| 135 | 135 | if (bank == BANK_RAM) |
| 136 | 136 | { |
| 137 | 137 | data = m_roml[offset & 0x3fff]; |
| r14559 | r14560 | |
| 155 | 155 | if (offset >= 0x8000 && offset < 0xa000) |
| 156 | 156 | { |
| 157 | 157 | int bank = m_bank & 0x0f; |
| 158 | ||
| 158 | ||
| 159 | 159 | if (bank == BANK_RAM) |
| 160 | 160 | { |
| 161 | 161 | m_ram[offset & 0x1fff] = data; |
| r14559 | r14560 | |
|---|---|---|
| 135 | 135 | device_t *device = (device_t *) ptr; |
| 136 | 136 | |
| 137 | 137 | /* |
| 138 | * Save the socket's current mode, and put it in non-blocking mode; | |
| 139 | * we drain it by reading packets until we get an error | |
| 140 | * (which is normally a "nothing more to be read" error). | |
| 141 | */ | |
| 138 | * Save the socket's current mode, and put it in non-blocking mode; | |
| 139 | * we drain it by reading packets until we get an error | |
| 140 | * (which is normally a "nothing more to be read" error). | |
| 141 | */ | |
| 142 | 142 | int save_mode = fcntl(eth_socket, F_GETFL, 0); |
| 143 | 143 | if (save_mode == -1) |
| 144 | 144 | { |
| r14559 | r14560 | |
| 191 | 191 | int apollo_eth_setfilter(device_t *device, int node_id) |
| 192 | 192 | { |
| 193 | 193 | /* |
| 194 | ||
| 194 | tcpdump -i eth0 -dd ether dst 08:00:1e:01:ae:a5 or ether dst 09:00:1e:00:00:00 or ether dst 09:00:1e:00:00:01 or ether broadcast | |
| 195 | 195 | |
| 196 | (000) ld [2] | |
| 197 | (001) jeq #0x1e01aea5 jt 2 jf 4 | |
| 198 | (002) ldh [0] | |
| 199 | (003) jeq #0x800 jt 11 jf 12 | |
| 200 | (004) jeq #0x1e000000 jt 6 jf 5 | |
| 201 | (005) jeq #0x1e000001 jt 6 jf 8 | |
| 202 | (006) ldh [0] | |
| 203 | (007) jeq #0x900 jt 11 jf 12 | |
| 204 | (008) jeq #0xffffffff jt 9 jf 12 | |
| 205 | (009) ldh [0] | |
| 206 | (010) jeq #0xffff jt 11 jf 12 | |
| 207 | (011) ret #65535 | |
| 208 | (012) ret #0 | |
| 209 | */ | |
| 196 | (000) ld [2] | |
| 197 | (001) jeq #0x1e01aea5 jt 2 jf 4 | |
| 198 | (002) ldh [0] | |
| 199 | (003) jeq #0x800 jt 11 jf 12 | |
| 200 | (004) jeq #0x1e000000 jt 6 jf 5 | |
| 201 | (005) jeq #0x1e000001 jt 6 jf 8 | |
| 202 | (006) ldh [0] | |
| 203 | (007) jeq #0x900 jt 11 jf 12 | |
| 204 | (008) jeq #0xffffffff jt 9 jf 12 | |
| 205 | (009) ldh [0] | |
| 206 | (010) jeq #0xffff jt 11 jf 12 | |
| 207 | (011) ret #65535 | |
| 208 | (012) ret #0 | |
| 209 | */ | |
| 210 | 210 | static struct sock_filter bpf_code[]= { |
| 211 | 211 | { 0x20, 0, 0, 0x00000002 }, |
| 212 | 212 | { 0x15, 0, 2, 0x1e01aea5 }, |
| r14559 | r14560 | |
|---|---|---|
| 273 | 273 | { |
| 274 | 274 | pce_state *state = machine.driver_data<pce_state>(); |
| 275 | 275 | pce_cd_init( machine ); |
| 276 | machine.device<nvram_device>("nvram")->set_base(state->m_cd.bram, PCE_BRAM_SIZE); | |
| 276 | machine.device<nvram_device>("nvram")->set_base(state->m_cd.bram, PCE_BRAM_SIZE); | |
| 277 | 277 | } |
| 278 | 278 | |
| 279 | 279 | MACHINE_RESET( mess_pce ) |
| r14559 | r14560 | |
|---|---|---|
| 64 | 64 | inline void c64_stardos_cartridge_device::charge_io1_capacitor() |
| 65 | 65 | { |
| 66 | 66 | m_io1_charge++; |
| 67 | ||
| 67 | ||
| 68 | 68 | if (m_io1_charge >= IO1_FULL_CHARGE) |
| 69 | 69 | { |
| 70 | 70 | m_exrom = 0; |
| r14559 | r14560 | |
| 80 | 80 | void c64_stardos_cartridge_device::charge_io2_capacitor() |
| 81 | 81 | { |
| 82 | 82 | m_io2_charge++; |
| 83 | ||
| 83 | ||
| 84 | 84 | if (m_io2_charge >= IO2_FULL_CHARGE) |
| 85 | 85 | { |
| 86 | 86 | m_exrom = 1; |
| r14559 | r14560 | |
| 126 | 126 | UINT8 c64_stardos_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2) |
| 127 | 127 | { |
| 128 | 128 | UINT8 data = 0; |
| 129 | ||
| 129 | ||
| 130 | 130 | if (!roml || !romh) |
| 131 | 131 | { |
| 132 | 132 | // TODO BITSWAP8(7,6,5,4,3,1,2,0) ? |
| r14559 | r14560 | |
|---|---|---|
| 35 | 35 | |
| 36 | 36 | // optional information overrides |
| 37 | 37 | virtual ioport_constructor device_input_ports() const; |
| 38 | ||
| 38 | ||
| 39 | 39 | static INPUT_CHANGED( reset ); |
| 40 | 40 | |
| 41 | 41 | protected: |
| r14559 | r14560 | |
| 46 | 46 | virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2); |
| 47 | 47 | virtual void c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2); |
| 48 | 48 | virtual int c64_game_r(offs_t offset, int ba, int rw, int hiram); |
| 49 | ||
| 49 | ||
| 50 | 50 | private: |
| 51 | 51 | inline void charge_io1_capacitor(); |
| 52 | 52 | inline void charge_io2_capacitor(); |
| 53 | ||
| 53 | ||
| 54 | 54 | int m_io1_charge; |
| 55 | 55 | int m_io2_charge; |
| 56 | 56 | }; |
| r14559 | r14560 | |
|---|---|---|
| 65 | 65 | UINT8 c64_ross_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2) |
| 66 | 66 | { |
| 67 | 67 | UINT8 data = 0; |
| 68 | ||
| 68 | ||
| 69 | 69 | if (!roml || !romh) |
| 70 | 70 | { |
| 71 | 71 | offs_t addr = (m_bank << 14) | (offset & 0x3fff); |
| 72 | ||
| 72 | ||
| 73 | 73 | data = m_roml[addr & m_roml_mask]; |
| 74 | 74 | } |
| 75 | 75 |
| r14559 | r14560 | |
|---|---|---|
| 41 | 41 | // device_c64_expansion_card_interface overrides |
| 42 | 42 | virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2); |
| 43 | 43 | virtual void c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2); |
| 44 | ||
| 44 | ||
| 45 | 45 | private: |
| 46 | 46 | UINT8 m_bank; |
| 47 | 47 | }; |
| r14559 | r14560 | |
|---|---|---|
| 62 | 62 | UINT8 c64_comal80_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2) |
| 63 | 63 | { |
| 64 | 64 | UINT8 data = 0; |
| 65 | ||
| 65 | ||
| 66 | 66 | if (!roml || !romh) |
| 67 | 67 | { |
| 68 | 68 | offs_t addr = (m_bank << 14) | (offset & 0x3fff); |
| r14559 | r14560 | |
|---|---|---|
| 40 | 40 | // device_c64_expansion_card_interface overrides |
| 41 | 41 | virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2); |
| 42 | 42 | virtual void c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2); |
| 43 | ||
| 43 | ||
| 44 | 44 | private: |
| 45 | 45 | UINT8 m_bank; |
| 46 | 46 | }; |
| r14559 | r14560 | |
|---|---|---|
| 1 | 1 | /**************************************************************************** |
| 2 | 2 | |
| 3 | 3 | Common definitions for TI family |
| 4 | ||
| 4 | Should be included in each component. | |
| 5 | 5 | |
| 6 | Michael Zapf | |
| 7 | ||
| 6 | Michael Zapf | |
| 7 | ||
| 8 | 8 | *****************************************************************************/ |
| 9 | 9 | |
| 10 | 10 | #ifndef __TI99DEFS__ |
| r14559 | r14560 | |
| 12 | 12 | |
| 13 | 13 | // TI-99/4(A) |
| 14 | 14 | #define region_grom "cons_grom" |
| 15 | #define region_grom_cart | |
| 15 | #define region_grom_cart | |
| 16 | 16 | #define TMS9901_TAG "tms9901" |
| 17 | 17 | #define TIBOARD_TAG "ti_board" |
| 18 | 18 | #define DATAMUX_TAG "datamux_16_8" |
| 19 | 19 | #define VIDEO_SYSTEM_TAG "video" |
| 20 | 20 | #define TMS9928A_TAG "tms9928a" |
| 21 | #define V9938_TAG | |
| 21 | #define V9938_TAG | |
| 22 | 22 | #define SCREEN_TAG "screen" |
| 23 | 23 | #define TISOUNDCHIP_TAG "soundchip" |
| 24 | 24 | #define TISOUND_TAG "tisound" |
| r14559 | r14560 | |
| 33 | 33 | // TI-99/8 |
| 34 | 34 | #define SRAM_TAG "sram8" |
| 35 | 35 | #define DRAM_TAG "dram8" |
| 36 | #define MAPPER_TAG | |
| 36 | #define MAPPER_TAG | |
| 37 | 37 | #define SPEECH_TAG "speech" |
| 38 | 38 | |
| 39 | 39 | // Geneve |
| r14559 | r14560 | |
| 43 | 43 | #define GCLOCK_TAG "mm58274c" |
| 44 | 44 | |
| 45 | 45 | #define READ16Z_MEMBER(name) void name(ATTR_UNUSED address_space &space, ATTR_UNUSED offs_t offset, ATTR_UNUSED UINT16 *value, ATTR_UNUSED UINT16 mem_mask) |
| 46 | #define DECLARE_READ16Z_MEMBER(name) | |
| 46 | #define DECLARE_READ16Z_MEMBER(name) | |
| 47 | 47 | #define READ8Z_MEMBER(name) void name(ATTR_UNUSED address_space &space, ATTR_UNUSED offs_t offset, ATTR_UNUSED UINT8 *value, ATTR_UNUSED UINT8 mem_mask) |
| 48 | 48 | #define DECLARE_READ8Z_MEMBER(name) void name(ATTR_UNUSED address_space &space, ATTR_UNUSED offs_t offset, ATTR_UNUSED UINT8 *value, ATTR_UNUSED UINT8 mem_mask = 0xff) |
| 49 | 49 | |
| 50 | 50 | #define GENMOD 0x01 |
| 51 | 51 | |
| 52 | 52 | /* |
| 53 | Base class for all devices that have a special read method. This read | |
| 54 | methods differs from the standard READ8/16 by allowing for a "high-impedance" | |
| 55 | state "Z" which means that the bus lines are not changed. That way, we can | |
| 56 | built busses with parallel devices as in the real machine, and only the | |
| 57 | active device changes the bus lines. | |
| 53 | Base class for all devices that have a special read method. This read | |
| 54 | methods differs from the standard READ8/16 by allowing for a "high-impedance" | |
| 55 | state "Z" which means that the bus lines are not changed. That way, we can | |
| 56 | built busses with parallel devices as in the real machine, and only the | |
| 57 | active device changes the bus lines. | |
| 58 | 58 | */ |
| 59 | 59 | class bus8z_device : public device_t |
| 60 | 60 | { |
| r14559 | r14560 | |
| 73 | 73 | }; |
| 74 | 74 | |
| 75 | 75 | /**************************************************************************** |
| 76 | ||
| 76 | Constants | |
| 77 | 77 | ****************************************************************************/ |
| 78 | 78 | |
| 79 | 79 | enum |
| r14559 | r14560 | |
|---|---|---|
| 50 | 50 | UINT8 c64_mikro_assembler_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2) |
| 51 | 51 | { |
| 52 | 52 | UINT8 data = 0; |
| 53 | ||
| 53 | ||
| 54 | 54 | if (!roml || !romh || !io1 || !io2) |
| 55 | 55 | { |
| 56 | 56 | data = m_roml[offset & 0x1fff]; |
| r14559 | r14560 | |
|---|---|---|
| 60 | 60 | UINT8 c64_rex_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2) |
| 61 | 61 | { |
| 62 | 62 | UINT8 data = 0; |
| 63 | ||
| 63 | ||
| 64 | 64 | if (!roml) |
| 65 | 65 | { |
| 66 | 66 | data = m_roml[offset & 0x1fff]; |
| r14559 | r14560 | |
|---|---|---|
| 113 | 113 | UINT8 vic1210_device::vic20_blk5_r(address_space &space, offs_t offset) |
| 114 | 114 | { |
| 115 | 115 | UINT8 data = 0; |
| 116 | ||
| 116 | ||
| 117 | 117 | if (m_blk5) |
| 118 | 118 | { |
| 119 | 119 | data = m_blk5[offset & 0xfff]; |
| 120 | 120 | } |
| 121 | ||
| 121 | ||
| 122 | 122 | return data; |
| 123 | 123 | } |
| r14559 | r14560 | |
|---|---|---|
| 200 | 200 | state &= STATE_MASK; |
| 201 | 201 | step(true); |
| 202 | 202 | break; |
| 203 | ||
| 203 | ||
| 204 | 204 | case ARB_TIMEOUT_BUSY << SUB_SHIFT: |
| 205 | 205 | if(timeout) { |
| 206 | 206 | scsi_bus->data_w(scsi_refid, 0); |
| r14559 | r14560 | |
| 333 | 333 | if(!command_length) |
| 334 | 334 | seq = 4; |
| 335 | 335 | } |
| 336 | ||
| 336 | ||
| 337 | 337 | state = DISC_SEL_WAIT_REQ; |
| 338 | 338 | break; |
| 339 | 339 | |
| r14559 | r14560 | |
| 470 | 470 | else |
| 471 | 471 | scsi_bus->data_w(scsi_refid, 0); |
| 472 | 472 | |
| 473 | scsi_bus->ctrl_w(scsi_refid, S_ACK, S_ACK); | |
| 473 | scsi_bus->ctrl_w(scsi_refid, S_ACK, S_ACK); | |
| 474 | 474 | scsi_bus->ctrl_wait(scsi_refid, S_REQ, S_REQ); |
| 475 | 475 | delay_cycles(sync_period); |
| 476 | 476 | } |
| r14559 | r14560 | |
| 586 | 586 | |
| 587 | 587 | WRITE8_MEMBER(ncr5390_device::command_w) |
| 588 | 588 | { |
| 589 | // | |
| 589 | // fprintf(stderr, "%s: command_w %02x (%08x)\n", tag(), data, cpu_get_pc(&space.device())); | |
| 590 | 590 | if(command_pos == 2) { |
| 591 | 591 | status |= S_GROSS_ERROR; |
| 592 | 592 | check_irq(); |
| r14559 | r14560 | |
| 620 | 620 | |
| 621 | 621 | bool msg; |
| 622 | 622 | int extra; |
| 623 | // | |
| 623 | // int total_len; | |
| 624 | 624 | command_params_size(msg, extra); |
| 625 | 625 | if(fifo_pos < extra) { |
| 626 | 626 | logerror("%s: cmd without extra bytes (fp=%d, extra=%d)\n", tag(), fifo_pos, extra); |
| r14559 | r14560 | |
| 636 | 636 | logerror("%s: cmd without complete msg (fp=%d, extra=%d, len=%d)\n", tag(), fifo_pos, extra, len); |
| 637 | 637 | exit(0); |
| 638 | 638 | } |
| 639 | // | |
| 639 | // total_len = len+extra; | |
| 640 | 640 | }// else |
| 641 | // | |
| 641 | // total_len = extra; | |
| 642 | 642 | |
| 643 | 643 | switch(c) { |
| 644 | 644 | case CM_NOP: |
| r14559 | r14560 | |
| 680 | 680 | xfr_phase = scsi_bus->ctrl_r() & S_PHASE_MASK; |
| 681 | 681 | step(false); |
| 682 | 682 | break; |
| 683 | ||
| 683 | ||
| 684 | 684 | case CI_COMPLETE: |
| 685 | 685 | state = INIT_CPT_RECV_BYTE_ACK; |
| 686 | 686 | recv_byte(); |
| r14559 | r14560 | |
| 701 | 701 | scsi_bus->ctrl_w(scsi_refid, 0, S_ACK); |
| 702 | 702 | step(false); |
| 703 | 703 | break; |
| 704 | ||
| 704 | ||
| 705 | 705 | default: |
| 706 | 706 | logerror("%s: start unimplemented command %02x\n", tag(), c); |
| 707 | 707 | exit(0); |
| r14559 | r14560 | |
|---|---|---|
| 590 | 590 | |
| 591 | 591 | case 0x0f: |
| 592 | 592 | return command_pos == 3 ? C_SEEK : C_INCOMPLETE; |
| 593 | ||
| 593 | ||
| 594 | 594 | case 0x12: |
| 595 | 595 | return command_pos == 2 ? C_PERPENDICULAR : C_INCOMPLETE; |
| 596 | 596 | |
| r14559 | r14560 | |
| 643 | 643 | case C_SENSE_INTERRUPT_STATUS: { |
| 644 | 644 | logerror("%s: command sense interrupt status\n", tag()); |
| 645 | 645 | main_phase = PHASE_RESULT; |
| 646 | ||
| 646 | ||
| 647 | 647 | int fid; |
| 648 | 648 | for(fid=0; fid<4 && !flopi[fid].irq; fid++); |
| 649 | 649 | if(fid == 4) { |
| r14559 | r14560 | |
| 768 | 768 | { |
| 769 | 769 | fi.main_state = READ_DATA; |
| 770 | 770 | fi.sub_state = HEAD_LOAD_DONE; |
| 771 | ||
| 771 | ||
| 772 | 772 | logerror("%s: command read data%s%s%s cmd=%02x sel=%x chrn=(%d, %d, %d, %d) eot=%02x gpl=%02x dtl=%02x rate=%d\n", |
| 773 | 773 | tag(), |
| 774 | 774 | command[0] & 0x80 ? " mt" : "", |
| r14559 | r14560 | |
| 828 | 828 | fi.pcn++; |
| 829 | 829 | fi.sub_state = HEAD_LOAD_DONE; |
| 830 | 830 | break; |
| 831 | ||
| 831 | ||
| 832 | 832 | case SEEK_DONE: |
| 833 | 833 | counter = 0; |
| 834 | 834 | fi.sub_state = SCAN_ID; |
| r14559 | r14560 | |
| 889 | 889 | { |
| 890 | 890 | fi.main_state = READ_DATA; |
| 891 | 891 | fi.sub_state = HEAD_LOAD_DONE; |
| 892 | ||
| 892 | ||
| 893 | 893 | logerror("%s: command read id%s, rate=%d\n", |
| 894 | 894 | tag(), |
| 895 | 895 | command[0] & 0x40 ? " mfm" : "", |
| r14559 | r14560 | |
|---|---|---|
| 12 | 12 | public: |
| 13 | 13 | ncr5390_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 14 | 14 | void set_cb(line_cb_t irq_cb, line_cb_t drq_cb); |
| 15 | ||
| 15 | ||
| 16 | 16 | DECLARE_ADDRESS_MAP(map, 8); |
| 17 | 17 | |
| 18 | 18 | DECLARE_READ8_MEMBER(tcount_lo_r); |
| r14559 | r14560 | |
|---|---|---|
| 62 | 62 | UINT8 c64_dinamic_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2) |
| 63 | 63 | { |
| 64 | 64 | UINT8 data = 0; |
| 65 | ||
| 65 | ||
| 66 | 66 | if (!roml) |
| 67 | 67 | { |
| 68 | 68 | offs_t addr = (m_bank << 13) | (offset & 0x1fff); |
| r14559 | r14560 | |
|---|---|---|
| 39 | 39 | |
| 40 | 40 | // device_c64_expansion_card_interface overrides |
| 41 | 41 | virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2); |
| 42 | ||
| 42 | ||
| 43 | 43 | private: |
| 44 | 44 | UINT8 m_bank; |
| 45 | 45 | }; |
| r14559 | r14560 | |
|---|---|---|
| 104 | 104 | if(m_tail != m_head && is_transmit_register_empty()) |
| 105 | 105 | transmit_register_setup(unqueue_data()); |
| 106 | 106 | } |
| 107 | ||
| 107 | ||
| 108 | 108 | void microsoft_mouse_device::mouse_trans(int dx, int dy, int nb, int mbc) |
| 109 | 109 | { |
| 110 | 110 | /* split deltas into packets of -128..+127 max */ |
| r14559 | r14560 | |
| 154 | 154 | Y7'-Y0' movement in Y direction since sending of Y7-Y0 in signed byte |
| 155 | 155 | format (-128..+127), positive direction up |
| 156 | 156 | |
| 157 | The last two bytes in the packet (bytes 4 and 5) contains information | |
| 157 | The last two bytes in the packet (bytes 4 and 5) contains information | |
| 158 | 158 | about movement data changes which have occurred after data bytes 2 and 3 have been sent. */ |
| 159 | 159 | |
| 160 | 160 | void mouse_systems_mouse_device::mouse_trans(int dx, int dy, int nb, int mbc) |
| r14559 | r14560 | |
|---|---|---|
| 50 | 50 | protected: |
| 51 | 51 | virtual void set_frame() { set_data_frame(7, 1, SERIAL_PARITY_NONE); } |
| 52 | 52 | virtual void mouse_trans(int dx, int dy, int nb, int mbc); |
| 53 | virtual void device_reset() {m_old_rts = 0; serial_mouse_device::device_reset();} | |
| 53 | virtual void device_reset() {m_old_rts = 0; serial_mouse_device::device_reset();} | |
| 54 | 54 | private: |
| 55 | 55 | void check_state(); |
| 56 | 56 | UINT8 m_old_rts; |
| r14559 | r14560 | |
|---|---|---|
| 61 | 61 | PORT_DIPNAME( 0x01, 0x00, "Boot" ) |
| 62 | 62 | PORT_DIPSETTING( 0x00, "Disable" ) |
| 63 | 63 | PORT_DIPSETTING( 0x01, "Boot" ) |
| 64 | ||
| 64 | ||
| 65 | 65 | PORT_START("RESET") |
| 66 | 66 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_SPECIAL ) PORT_NAME("Reset") PORT_CHANGED(c64_easyflash_cartridge_device::reset, 0) |
| 67 | 67 | INPUT_PORTS_END |
| r14559 | r14560 | |
| 129 | 129 | UINT8 c64_easyflash_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2) |
| 130 | 130 | { |
| 131 | 131 | UINT8 data = 0; |
| 132 | ||
| 132 | ||
| 133 | 133 | if (!roml) |
| 134 | 134 | { |
| 135 | 135 | offs_t addr = (m_bank << 13) | (offset & 0x1fff); |
| r14559 | r14560 | |
| 170 | 170 | if (!BIT(offset, 1)) |
| 171 | 171 | { |
| 172 | 172 | /* |
| 173 | ||
| 174 | bit description | |
| 175 | ||
| 176 | 0 BA13 | |
| 177 | 1 BA14 | |
| 178 | 2 BA15 | |
| 179 | 3 BA16 | |
| 180 | 4 BA17 | |
| 181 | 5 BA18 | |
| 182 | 6 | |
| 183 | 7 | |
| 184 | ||
| 185 | */ | |
| 186 | ||
| 173 | ||
| 174 | bit description | |
| 175 | ||
| 176 | 0 BA13 | |
| 177 | 1 BA14 | |
| 178 | 2 BA15 | |
| 179 | 3 BA16 | |
| 180 | 4 BA17 | |
| 181 | 5 BA18 | |
| 182 | 6 | |
| 183 | 7 | |
| 184 | ||
| 185 | */ | |
| 186 | ||
| 187 | 187 | m_bank = data & 0x3f; |
| 188 | 188 | } |
| 189 | 189 | else |
| 190 | 190 | { |
| 191 | 191 | /* |
| 192 | ||
| 193 | bit description | |
| 194 | ||
| 195 | 0 GAME | |
| 196 | 1 EXROM | |
| 197 | 2 MODE | |
| 198 | 3 | |
| 199 | 4 | |
| 200 | 5 | |
| 201 | 6 | |
| 202 | 7 LED | |
| 203 | ||
| 204 | */ | |
| 205 | ||
| 192 | ||
| 193 | bit description | |
| 194 | ||
| 195 | 0 GAME | |
| 196 | 1 EXROM | |
| 197 | 2 MODE | |
| 198 | 3 | |
| 199 | 4 | |
| 200 | 5 | |
| 201 | 6 | |
| 202 | 7 LED | |
| 203 | ||
| 204 | */ | |
| 205 | ||
| 206 | 206 | m_mode = data; |
| 207 | 207 | } |
| 208 | 208 | } |
| r14559 | r14560 | |
|---|---|---|
| 36 | 36 | // optional information overrides |
| 37 | 37 | virtual machine_config_constructor device_mconfig_additions() const; |
| 38 | 38 | virtual ioport_constructor device_input_ports() const; |
| 39 | ||
| 39 | ||
| 40 | 40 | static INPUT_CHANGED( reset ); |
| 41 | ||
| 41 | ||
| 42 | 42 | protected: |
| 43 | 43 | // device-level overrides |
| 44 | 44 | virtual void device_start(); |
| r14559 | r14560 | |
| 53 | 53 | private: |
| 54 | 54 | required_device<amd_29f040_device> m_flash_roml; |
| 55 | 55 | required_device<amd_29f040_device> m_flash_romh; |
| 56 | ||
| 56 | ||
| 57 | 57 | UINT8 m_bank; |
| 58 | 58 | UINT8 m_mode; |
| 59 | 59 | }; |
| r14559 | r14560 | |
|---|---|---|
| 52 | 52 | UINT8 c64_zaxxon_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2) |
| 53 | 53 | { |
| 54 | 54 | UINT8 data = 0; |
| 55 | ||
| 55 | ||
| 56 | 56 | if (!roml) |
| 57 | 57 | { |
| 58 | 58 | data = m_roml[offset & 0xfff]; |
| 59 | ||
| 59 | ||
| 60 | 60 | m_bank = BIT(offset, 12); |
| 61 | 61 | } |
| 62 | 62 | else if (!romh) |
| r14559 | r14560 | |
|---|---|---|
| 42 | 42 | { |
| 43 | 43 | // allocate memory |
| 44 | 44 | m_ram = auto_alloc_array(machine(), UINT8, 0x80000); |
| 45 | ||
| 45 | ||
| 46 | 46 | // state saving |
| 47 | 47 | save_item(NAME(m_bank)); |
| 48 | 48 | } |
| r14559 | r14560 | |
| 65 | 65 | UINT8 c64_georam_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2) |
| 66 | 66 | { |
| 67 | 67 | UINT8 data = 0; |
| 68 | ||
| 68 | ||
| 69 | 69 | if (!io1) |
| 70 | 70 | { |
| 71 | 71 | offs_t addr = (m_bank << 8) | (offset & 0xff); |
| r14559 | r14560 | |
| 94 | 94 | m_bank = ((data & 0x1f) << 6) | (m_bank & 0x3f); |
| 95 | 95 | } |
| 96 | 96 | else |
| 97 | { | |
| 97 | { | |
| 98 | 98 | m_bank = (m_bank & 0x7c0) | (data & 0x3f); |
| 99 | 99 | } |
| 100 | 100 | } |
| r14559 | r14560 | |
|---|---|---|
| 40 | 40 | // device_c64_expansion_card_interface overrides |
| 41 | 41 | virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2); |
| 42 | 42 | virtual void c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2); |
| 43 | ||
| 43 | ||
| 44 | 44 | private: |
| 45 | 45 | UINT16 m_bank; |
| 46 | 46 | }; |
| r14559 | r14560 | |
|---|---|---|
| 120 | 120 | UINT8 *ram = machine.region("maincpu")->base() + 0x2000; |
| 121 | 121 | UINT8 *cpu = sc61860_internal_ram(main_cpu); |
| 122 | 122 | |
| 123 | machine.device<nvram_device>("cpu_nvram")->set_base(cpu, 96); | |
| 123 | machine.device<nvram_device>("cpu_nvram")->set_base(cpu, 96); | |
| 124 | 124 | machine.device<nvram_device>("ram_nvram")->set_base(ram, 0x2800); |
| 125 | 125 | } |
| 126 | 126 |
| r14559 | r14560 | |
|---|---|---|
| 45 | 45 | switch(offset) |
| 46 | 46 | { |
| 47 | 47 | case 0: |
| 48 | // | |
| 48 | // if(m_timer_ctrl & 0x01) | |
| 49 | 49 | return m_adlib_status; |
| 50 | // | |
| 50 | // return m_fake_adlib_status; | |
| 51 | 51 | case 1: |
| 52 | 52 | return m_adlib_data; |
| 53 | 53 | } |
| r14559 | r14560 | |
| 256 | 256 | if(!(m_voice[x].voice_ctrl & 0x08)) |
| 257 | 257 | { |
| 258 | 258 | m_voice[x].voice_ctrl |= 0x01; |
| 259 | // | |
| 259 | // m_voice[x].current_addr = m_voice[x].end_addr; | |
| 260 | 260 | } |
| 261 | 261 | else |
| 262 | 262 | { |
| r14559 | r14560 | |
| 284 | 284 | if(!(m_voice[x].voice_ctrl & 0x08)) |
| 285 | 285 | { |
| 286 | 286 | m_voice[x].voice_ctrl |= 0x01; |
| 287 | // | |
| 287 | // m_voice[x].current_addr = m_voice[x].start_addr; | |
| 288 | 288 | } |
| 289 | 289 | else |
| 290 | 290 | { |
| r14559 | r14560 | |
| 1230 | 1230 | MCFG_SOUND_CONFIG(gus_gf1_config) |
| 1231 | 1231 | MCFG_SOUND_ROUTE(0,"lspeaker",0.50) |
| 1232 | 1232 | MCFG_SOUND_ROUTE(1,"rspeaker",0.50) |
| 1233 | // | |
| 1233 | // MCFG_ACIA6850_ADD("midi",gus_midi_interface) | |
| 1234 | 1234 | MACHINE_CONFIG_END |
| 1235 | 1235 | |
| 1236 | 1236 | static INPUT_PORTS_START( gus_joy ) |
| r14559 | r14560 | |
| 1297 | 1297 | case 0x01: |
| 1298 | 1298 | return m_gf1->mix_ctrl_r(space,offset); |
| 1299 | 1299 | /* port 0x2X6 - IRQ status (active high) |
| 1300 | * bit 0 - MIDI transmit IRQ | |
| 1301 | * bit 1 - MIDI receive IRQ | |
| 1302 | * bit 2 - Timer 1 IRQ | |
| 1303 | * bit 3 - Timer 2 IRQ | |
| 1304 | * bit 4 - reserved (always 0) | |
| 1305 | * bit 5 - wavetable IRQ | |
| 1306 | * bit 6 - volume ramp IRQ | |
| 1307 | * bit 7 - DRAM TC DMA IRQ | |
| 1308 | */ | |
| 1300 | * bit 0 - MIDI transmit IRQ | |
| 1301 | * bit 1 - MIDI receive IRQ | |
| 1302 | * bit 2 - Timer 1 IRQ | |
| 1303 | * bit 3 - Timer 2 IRQ | |
| 1304 | * bit 4 - reserved (always 0) | |
| 1305 | * bit 5 - wavetable IRQ | |
| 1306 | * bit 6 - volume ramp IRQ | |
| 1307 | * bit 7 - DRAM TC DMA IRQ | |
| 1308 | */ | |
| 1309 | 1309 | case 0x06: |
| 1310 | 1310 | return m_irq_status; |
| 1311 | 1311 | case 0x08: |
| r14559 | r14560 | |
| 1362 | 1362 | { |
| 1363 | 1363 | switch(offset) |
| 1364 | 1364 | { |
| 1365 | // case 0x00: | |
| 1366 | // return m_midi->status_read(space,0); | |
| 1367 | // case 0x01: | |
| 1368 | // return m_midi->data_read(space,0); | |
| 1365 | // case 0x00: | |
| 1366 | // return m_midi->status_read(space,0); | |
| 1367 | // case 0x01: | |
| 1368 | // return m_midi->data_read(space,0); | |
| 1369 | 1369 | case 0x02: |
| 1370 | 1370 | case 0x03: |
| 1371 | 1371 | return m_gf1->global_reg_select_r(space,offset-2); |
| r14559 | r14560 | |
| 1387 | 1387 | switch(offset) |
| 1388 | 1388 | { |
| 1389 | 1389 | case 0x00: |
| 1390 | // | |
| 1390 | // m_midi->control_write(space,0,data); | |
| 1391 | 1391 | break; |
| 1392 | 1392 | case 0x01: |
| 1393 | // | |
| 1393 | // m_midi->data_write(space,0,data); | |
| 1394 | 1394 | break; |
| 1395 | 1395 | case 0x02: |
| 1396 | 1396 | case 0x03: |
| r14559 | r14560 | |
|---|---|---|
| 62 | 62 | UINT8 c64_easy_calc_result_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2) |
| 63 | 63 | { |
| 64 | 64 | UINT8 data = 0; |
| 65 | ||
| 65 | ||
| 66 | 66 | if (!roml) |
| 67 | 67 | { |
| 68 | 68 | data = m_roml[offset & 0x1fff]; |
| r14559 | r14560 | |
|---|---|---|
| 116 | 116 | colbuf = state->m_blitter.colbuf + y * 80 + x / 2; |
| 117 | 117 | |
| 118 | 118 | /* a note on timing: The hardware packs the pixel data and updates the screen and collision buffer a byte at a time. |
| 119 | Thus the buffer update for two pixels takes 3 memory accesses for a normal sprite (write to screen buffer, read/write to collision buffer). | |
| 120 | +1 memory access for palette fetch? | |
| 121 | */ | |
| 119 | Thus the buffer update for two pixels takes 3 memory accesses for a normal sprite (write to screen buffer, read/write to collision buffer). | |
| 120 | +1 memory access for palette fetch? | |
| 121 | */ | |
| 122 | 122 | |
| 123 | 123 | switch (mode&0x7) |
| 124 | 124 | { |
| r14559 | r14560 | |
|---|---|---|
| 62 | 62 | UINT8 c64_magic_desk_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2) |
| 63 | 63 | { |
| 64 | 64 | UINT8 data = 0; |
| 65 | ||
| 65 | ||
| 66 | 66 | if (!roml) |
| 67 | 67 | { |
| 68 | 68 | offs_t addr = (m_bank << 13) | (offset & 0x1fff); |
| r14559 | r14560 | |
| 82 | 82 | if (!io1) |
| 83 | 83 | { |
| 84 | 84 | m_exrom = BIT(data, 7); |
| 85 | ||
| 85 | ||
| 86 | 86 | m_bank = data & 0x3f; |
| 87 | 87 | } |
| 88 | 88 | } |
| r14559 | r14560 | |
|---|---|---|
| 40 | 40 | // device_c64_expansion_card_interface overrides |
| 41 | 41 | virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2); |
| 42 | 42 | virtual void c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2); |
| 43 | ||
| 43 | ||
| 44 | 44 | private: |
| 45 | 45 | UINT8 m_bank; |
| 46 | 46 | }; |
| r14559 | r14560 | |
|---|---|---|
| 84 | 84 | void c64_dela_ep64_cartridge_device::device_start() |
| 85 | 85 | { |
| 86 | 86 | m_rom = subregion("rom")->base(); |
| 87 | ||
| 87 | ||
| 88 | 88 | // state saving |
| 89 | 89 | save_item(NAME(m_bank)); |
| 90 | 90 | save_item(NAME(m_reset)); |
| r14559 | r14560 | |
| 113 | 113 | UINT8 c64_dela_ep64_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2) |
| 114 | 114 | { |
| 115 | 115 | UINT8 data = 0; |
| 116 | ||
| 116 | ||
| 117 | 117 | if (!roml) |
| 118 | 118 | { |
| 119 | 119 | if (m_reset) |
| r14559 | r14560 | |
| 123 | 123 | else |
| 124 | 124 | { |
| 125 | 125 | offs_t addr = (m_bank << 13) | (offset & 0x1fff); |
| 126 | ||
| 126 | ||
| 127 | 127 | if (!m_rom0_ce) data |= m_roml[offset & 0x1fff]; |
| 128 | 128 | if (!m_rom1_ce) data |= m_rom[0x0000 + addr]; |
| 129 | 129 | if (!m_rom2_ce) data |= m_rom[0x8000 + addr]; |
| r14559 | r14560 | |
| 143 | 143 | if (!io1) |
| 144 | 144 | { |
| 145 | 145 | /* |
| 146 | ||
| 147 | bit description | |
| 148 | ||
| 149 | 0 IC6 _CE | |
| 150 | 1 IC5 _CE | |
| 151 | 2 | |
| 152 | 3 IC4 _CE | |
| 153 | 4 A13 | |
| 154 | 5 A14 | |
| 155 | 6 | |
| 156 | 7 EXROM | |
| 157 | ||
| 158 | */ | |
| 159 | ||
| 146 | ||
| 147 | bit description | |
| 148 | ||
| 149 | 0 IC6 _CE | |
| 150 | 1 IC5 _CE | |
| 151 | 2 | |
| 152 | 3 IC4 _CE | |
| 153 | 4 A13 | |
| 154 | 5 A14 | |
| 155 | 6 | |
| 156 | 7 EXROM | |
| 157 | ||
| 158 | */ | |
| 159 | ||
| 160 | 160 | m_reset = 0; |
| 161 | ||
| 161 | ||
| 162 | 162 | m_rom0_ce = BIT(data, 3); |
| 163 | 163 | m_rom1_ce = BIT(data, 1); |
| 164 | 164 | m_rom2_ce = BIT(data, 0); |
| 165 | 165 | |
| 166 | 166 | m_bank = (data >> 4) & 0x03; |
| 167 | ||
| 167 | ||
| 168 | 168 | m_exrom = BIT(data, 7); |
| 169 | 169 | } |
| 170 | 170 | } |
| r14559 | r14560 | |
|---|---|---|
| 176 | 176 | UINT8 dack_r(int line); |
| 177 | 177 | void dack_w(int line,UINT8 data); |
| 178 | 178 | void eop_w(int state); |
| 179 | ||
| 179 | ||
| 180 | 180 | void nmi(); |
| 181 | 181 | void set_nmi_state(bool enabled) { m_nmi_enabled = enabled; } |
| 182 | 182 | |
| r14559 | r14560 | |
| 203 | 203 | |
| 204 | 204 | device_isa8_card_interface *m_dma_device[8]; |
| 205 | 205 | bool m_dma_eop[8]; |
| 206 | const char | |
| 206 | const char | |
| 207 | 207 | bool m_nmi_enabled; |
| 208 | 208 | }; |
| 209 | 209 |
| r14559 | r14560 | |
|---|---|---|
| 46 | 46 | // device_c64_expansion_card_interface overrides |
| 47 | 47 | virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2); |
| 48 | 48 | virtual void c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2); |
| 49 | ||
| 49 | ||
| 50 | 50 | private: |
| 51 | 51 | UINT8 *m_rom; |
| 52 | 52 |
| r14559 | r14560 | |
|---|---|---|
| 37 | 37 | |
| 38 | 38 | bit description |
| 39 | 39 | |
| 40 | PA0 ROM A13 | |
| 41 | PA1 ROM A14 | |
| 42 | PA2 ROM A15 | |
| 43 | PA3 ROM _OE | |
| 44 | PA4 RAM _OE | |
| 45 | PA5 | |
| 46 | PA6 | |
| 47 | PA7 | |
| 40 | PA0 ROM A13 | |
| 41 | PA1 ROM A14 | |
| 42 | PA2 ROM A15 | |
| 43 | PA3 ROM _OE | |
| 44 | PA4 RAM _OE | |
| 45 | PA5 | |
| 46 | PA6 | |
| 47 | PA7 | |
| 48 | 48 | |
| 49 | 49 | */ |
| 50 | ||
| 50 | ||
| 51 | 51 | logerror("PA %02x\n",data); |
| 52 | 52 | m_rom_bank = data & 0x0f; |
| 53 | 53 | |
| r14559 | r14560 | |
| 62 | 62 | |
| 63 | 63 | bit description |
| 64 | 64 | |
| 65 | PB0 RAM A10 | |
| 66 | PB1 RAM A11 | |
| 67 | PB2 RAM A9 | |
| 68 | PB3 RAM A8 | |
| 69 | PB4 RAM A12 | |
| 65 | PB0 RAM A10 | |
| 66 | PB1 RAM A11 | |
| 67 | PB2 RAM A9 | |
| 68 | PB3 RAM A8 | |
| 69 | PB4 RAM A12 | |
| 70 | 70 | PB5 |
| 71 | 71 | PB6 |
| 72 | PB7 | |
| 72 | PB7 ROMH enable | |
| 73 | 73 | |
| 74 | 74 | */ |
| 75 | 75 | logerror("PB %02x\n",data); |
| 76 | 76 | m_ram_bank = data & 0x1f; |
| 77 | ||
| 77 | ||
| 78 | 78 | m_pb7 = BIT(data, 7); |
| 79 | 79 | |
| 80 | 80 | if (!m_pb7) |
| r14559 | r14560 | |
| 135 | 135 | INPUT_CHANGED( c64_magic_formel_cartridge_device::freeze ) |
| 136 | 136 | { |
| 137 | 137 | /* |
| 138 | if (!newval && (m_pb7_ff & m_cb2_ff)) | |
| 139 | { | |
| 140 | m_cb2_ff = 0; | |
| 141 | ||
| 142 | m_slot->nmi_w(ASSERT_LINE); | |
| 143 | } | |
| 144 | else | |
| 145 | { | |
| 146 | m_slot->nmi_w(CLEAR_LINE); | |
| 147 | } | |
| 148 | */ | |
| 138 | if (!newval && (m_pb7_ff & m_cb2_ff)) | |
| 139 | { | |
| 140 | m_cb2_ff = 0; | |
| 141 | ||
| 142 | m_slot->nmi_w(ASSERT_LINE); | |
| 143 | } | |
| 144 | else | |
| 145 | { | |
| 146 | m_slot->nmi_w(CLEAR_LINE); | |
| 147 | } | |
| 148 | */ | |
| 149 | 149 | } |
| 150 | 150 | |
| 151 | 151 | static INPUT_PORTS_START( c64_magic_formel ) |
| r14559 | r14560 | |
| 183 | 183 | m_cb2_ff(0), |
| 184 | 184 | m_rom_oe(0), |
| 185 | 185 | m_ram_oe(0), |
| 186 | m_pb7(1) | |
| 186 | m_pb7(1) | |
| 187 | 187 | { |
| 188 | 188 | } |
| 189 | 189 | |
| r14559 | r14560 | |
| 228 | 228 | UINT8 c64_magic_formel_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2) |
| 229 | 229 | { |
| 230 | 230 | UINT8 data = 0; |
| 231 | ||
| 231 | ||
| 232 | 232 | if (!romh && !m_rom_oe) |
| 233 | 233 | { |
| 234 | 234 | UINT8 bank = m_pb7_ff ? m_rom_bank : 0; |
| r14559 | r14560 | |
|---|---|---|
| 103 | 103 | void c64_dela_ep256_cartridge_device::device_start() |
| 104 | 104 | { |
| 105 | 105 | m_rom = subregion("rom")->base(); |
| 106 | ||
| 106 | ||
| 107 | 107 | // state saving |
| 108 | 108 | save_item(NAME(m_bank)); |
| 109 | 109 | save_item(NAME(m_reset)); |
| r14559 | r14560 | |
| 129 | 129 | UINT8 c64_dela_ep256_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2) |
| 130 | 130 | { |
| 131 | 131 | UINT8 data = 0; |
| 132 | ||
| 132 | ||
| 133 | 133 | if (!roml) |
| 134 | 134 | { |
| 135 | 135 | if (m_reset) |
| r14559 | r14560 | |
| 156 | 156 | if (!io2 && ((offset & 0xf0) == 0xa0)) |
| 157 | 157 | { |
| 158 | 158 | /* |
| 159 | ||
| 160 | bit description | |
| 161 | ||
| 162 | 0 socket selection bit 0 | |
| 163 | 1 socket selection bit 1 | |
| 164 | 2 socket selection bit 2 | |
| 165 | 3 | |
| 166 | 4 bank selection bit 0 | |
| 167 | 5 bank selection bit 1 | |
| 168 | 6 | |
| 169 | 7 EXROM | |
| 170 | ||
| 171 | */ | |
| 172 | ||
| 159 | ||
| 160 | bit description | |
| 161 | ||
| 162 | 0 socket selection bit 0 | |
| 163 | 1 socket selection bit 1 | |
| 164 | 2 socket selection bit 2 | |
| 165 | 3 | |
| 166 | 4 bank selection bit 0 | |
| 167 | 5 bank selection bit 1 | |
| 168 | 6 | |
| 169 | 7 EXROM | |
| 170 | ||
| 171 | */ | |
| 172 | ||
| 173 | 173 | m_reset = 0; |
| 174 | ||
| 174 | ||
| 175 | 175 | m_bank = ((data & 0x07) << 2) | ((data >> 4) & 0x03); |
| 176 | ||
| 176 | ||
| 177 | 177 | m_exrom = BIT(data, 7); |
| 178 | 178 | } |
| 179 | 179 | } |
| r14559 | r14560 | |
|---|---|---|
| 38 | 38 | virtual ioport_constructor device_input_ports() const; |
| 39 | 39 | |
| 40 | 40 | static INPUT_CHANGED( freeze ); |
| 41 | ||
| 41 | ||
| 42 | 42 | // not really public |
| 43 | 43 | DECLARE_WRITE8_MEMBER( pia_pa_w ); |
| 44 | 44 | DECLARE_WRITE8_MEMBER( pia_pb_w ); |
| r14559 | r14560 | |
| 53 | 53 | virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2); |
| 54 | 54 | virtual void c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2); |
| 55 | 55 | virtual int c64_game_r(offs_t offset, int ba, int rw, int hiram); |
| 56 | ||
| 56 | ||
| 57 | 57 | private: |
| 58 | 58 | required_device<pia6821_device> m_pia; |
| 59 | ||
| 59 | ||
| 60 | 60 | UINT8 m_rom_bank; |
| 61 | 61 | UINT8 m_ram_bank; |
| 62 | 62 | int m_pb7_ff; |
| r14559 | r14560 | |
|---|---|---|
| 46 | 46 | // device_c64_expansion_card_interface overrides |
| 47 | 47 | virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2); |
| 48 | 48 | virtual void c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2); |
| 49 | ||
| 49 | ||
| 50 | 50 | private: |
| 51 | 51 | UINT8 *m_rom; |
| 52 | 52 |
| r14559 | r14560 | |
|---|---|---|
| 23 | 23 | |
| 24 | 24 | |
| 25 | 25 | // slot names for the C64 cartridge types |
| 26 | const char *CRT_C64_SLOT_NAMES[_CRT_C64_COUNT] = | |
| 26 | const char *CRT_C64_SLOT_NAMES[_CRT_C64_COUNT] = | |
| 27 | 27 | { |
| 28 | 28 | "standard", |
| 29 | 29 | UNSUPPORTED, |
| r14559 | r14560 | |
| 283 | 283 | // read the header |
| 284 | 284 | cbm_crt_header header; |
| 285 | 285 | fread(&header, CRT_HEADER_LENGTH); |
| 286 | ||
| 286 | ||
| 287 | 287 | if (memcmp(header.signature, CRT_SIGNATURE, 16) != 0) |
| 288 | 288 | return IMAGE_INIT_FAIL; |
| 289 | ||
| 289 | ||
| 290 | 290 | UINT16 hardware = pick_integer_be(header.hardware, 0, 2); |
| 291 | ||
| 291 | ||
| 292 | 292 | // TODO support other cartridge hardware |
| 293 | 293 | if (hardware != CRT_C64_STANDARD) |
| 294 | 294 | return IMAGE_INIT_FAIL; |
| 295 | ||
| 295 | ||
| 296 | 296 | if (LOG) |
| 297 | 297 | { |
| 298 | 298 | logerror("Name: %s\n", header.name); |
| r14559 | r14560 | |
| 301 | 301 | logerror("EXROM: %u\n", header.exrom); |
| 302 | 302 | logerror("GAME: %u\n", header.game); |
| 303 | 303 | } |
| 304 | ||
| 304 | ||
| 305 | 305 | // determine ROM region lengths |
| 306 | 306 | size_t roml_size = 0; |
| 307 | 307 | size_t romh_size = 0; |
| 308 | ||
| 308 | ||
| 309 | 309 | while (!image_feof()) |
| 310 | 310 | { |
| 311 | 311 | cbm_crt_chip chip; |
| 312 | 312 | fread(&chip, CRT_CHIP_LENGTH); |
| 313 | ||
| 313 | ||
| 314 | 314 | UINT16 address = pick_integer_be(chip.start_address, 0, 2); |
| 315 | 315 | UINT16 size = pick_integer_be(chip.image_size, 0, 2); |
| 316 | 316 | UINT16 type = pick_integer_be(chip.chip_type, 0, 2); |
| 317 | ||
| 317 | ||
| 318 | 318 | if (LOG) |
| 319 | 319 | { |
| 320 | 320 | logerror("CHIP Address: %04x\n", address); |
| 321 | 321 | logerror("CHIP Size: %04x\n", size); |
| 322 | 322 | logerror("CHIP Type: %04x\n", type); |
| 323 | 323 | } |
| 324 | ||
| 324 | ||
| 325 | 325 | switch (address) |
| 326 | 326 | { |
| 327 | 327 | case 0x8000: roml_size += size; break; |
| r14559 | r14560 | |
| 329 | 329 | case 0xe000: romh_size += size; break; |
| 330 | 330 | default: logerror("Invalid CHIP loading address!\n"); break; |
| 331 | 331 | } |
| 332 | ||
| 332 | ||
| 333 | 333 | fseek(size, SEEK_CUR); |
| 334 | 334 | } |
| 335 | 335 | |
| 336 | 336 | // allocate cartridge memory |
| 337 | 337 | UINT8 *roml = NULL; |
| 338 | 338 | UINT8 *romh = NULL; |
| 339 | ||
| 339 | ||
| 340 | 340 | if (roml_size) roml = m_cart->c64_roml_pointer(machine(), roml_size); |
| 341 | 341 | if (romh_size) romh = m_cart->c64_romh_pointer(machine(), romh_size); |
| 342 | ||
| 342 | ||
| 343 | 343 | // read the data |
| 344 | 344 | offs_t roml_offset = 0; |
| 345 | 345 | offs_t romh_offset = 0; |
| 346 | ||
| 346 | ||
| 347 | 347 | fseek(CRT_HEADER_LENGTH, SEEK_SET); |
| 348 | ||
| 348 | ||
| 349 | 349 | while (!image_feof()) |
| 350 | 350 | { |
| 351 | 351 | cbm_crt_chip chip; |
| 352 | 352 | fread(&chip, CRT_CHIP_LENGTH); |
| 353 | ||
| 353 | ||
| 354 | 354 | UINT16 address = pick_integer_be(chip.start_address, 0, 2); |
| 355 | 355 | UINT16 size = pick_integer_be(chip.image_size, 0, 2); |
| 356 | 356 | |
| r14559 | r14560 | |
| 361 | 361 | case 0xe000: fread(romh + romh_offset, size); romh_offset += size; break; |
| 362 | 362 | } |
| 363 | 363 | } |
| 364 | ||
| 364 | ||
| 365 | 365 | m_cart->c64_exrom_w(header.exrom); |
| 366 | 366 | m_cart->c64_game_w(header.game); |
| 367 | 367 | } |
| r14559 | r14560 | |
| 370 | 370 | { |
| 371 | 371 | size = get_software_region_length("roml"); |
| 372 | 372 | if (size) memcpy(m_cart->c64_roml_pointer(machine(), size), get_software_region("roml"), size); |
| 373 | ||
| 373 | ||
| 374 | 374 | size = get_software_region_length("romh"); |
| 375 | 375 | if (size) memcpy(m_cart->c64_romh_pointer(machine(), size), get_software_region("romh"), size); |
| 376 | 376 | |
| r14559 | r14560 | |
| 409 | 409 | |
| 410 | 410 | |
| 411 | 411 | //------------------------------------------------- |
| 412 | // cd_r - | |
| 412 | // cd_r - | |
| 413 | 413 | //------------------------------------------------- |
| 414 | 414 | |
| 415 | 415 | UINT8 c64_expansion_slot_device::cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2) |
| r14559 | r14560 | |
| 426 | 426 | |
| 427 | 427 | |
| 428 | 428 | //------------------------------------------------- |
| 429 | // cd_w - | |
| 429 | // cd_w - | |
| 430 | 430 | //------------------------------------------------- |
| 431 | 431 | |
| 432 | 432 | void c64_expansion_slot_device::cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2) |
| r14559 | r14560 | |
|---|---|---|
| 148 | 148 | UINT8 *ram = machine.region("maincpu")->base() + 0x8000; |
| 149 | 149 | UINT8 *cpu = sc61860_internal_ram(main_cpu); |
| 150 | 150 | |
| 151 | machine.device<nvram_device>("cpu_nvram")->set_base(cpu, 96); | |
| 151 | machine.device<nvram_device>("cpu_nvram")->set_base(cpu, 96); | |
| 152 | 152 | machine.device<nvram_device>("ram_nvram")->set_base(ram, 0x8000); |
| 153 | 153 | } |
| 154 | 154 |
| r14559 | r14560 | |
|---|---|---|
| 173 | 173 | UINT8 *m_roml; |
| 174 | 174 | UINT8 *m_romh; |
| 175 | 175 | UINT8 *m_ram; |
| 176 | ||
| 176 | ||
| 177 | 177 | int m_roml_mask; |
| 178 | 178 | int m_romh_mask; |
| 179 | 179 | int m_ram_mask; |
| r14559 | r14560 | |
|---|---|---|
| 103 | 103 | void c64_rex_ep256_cartridge_device::device_start() |
| 104 | 104 | { |
| 105 | 105 | m_rom = subregion("rom")->base(); |
| 106 | ||
| 106 | ||
| 107 | 107 | // state saving |
| 108 | 108 | save_item(NAME(m_bank)); |
| 109 | 109 | save_item(NAME(m_reset)); |
| r14559 | r14560 | |
| 129 | 129 | UINT8 c64_rex_ep256_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2) |
| 130 | 130 | { |
| 131 | 131 | UINT8 data = 0; |
| 132 | ||
| 132 | ||
| 133 | 133 | if (!roml) |
| 134 | 134 | { |
| 135 | 135 | if (m_reset) |
| r14559 | r14560 | |
| 167 | 167 | if (!io2 && ((offset & 0xf0) == 0xa0)) |
| 168 | 168 | { |
| 169 | 169 | /* |
| 170 | ||
| 171 | bit description | |
| 172 | ||
| 173 | 0 socket selection bit 0 | |
| 174 | 1 socket selection bit 1 | |
| 175 | 2 socket selection bit 2 | |
| 176 | 3 | |
| 177 | 4 | |
| 178 | 5 bank selection bit 0 | |
| 179 | 6 bank selection bit 1 | |
| 180 | 7 | |
| 181 | ||
| 182 | */ | |
| 183 | ||
| 170 | ||
| 171 | bit description | |
| 172 | ||
| 173 | 0 socket selection bit 0 | |
| 174 | 1 socket selection bit 1 | |
| 175 | 2 socket selection bit 2 | |
| 176 | 3 | |
| 177 | 4 | |
| 178 | 5 bank selection bit 0 | |
| 179 | 6 bank selection bit 1 | |
| 180 | 7 | |
| 181 | ||
| 182 | */ | |
| 183 | ||
| 184 | 184 | m_reset = 0; |
| 185 | ||
| 185 | ||
| 186 | 186 | m_bank = ((data & 0x07) << 2) | ((data >> 5) & 0x03); |
| 187 | 187 | } |
| 188 | 188 | } |
| r14559 | r14560 | |
|---|---|---|
| 46 | 46 | // device_c64_expansion_card_interface overrides |
| 47 | 47 | virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2); |
| 48 | 48 | virtual void c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2); |
| 49 | ||
| 49 | ||
| 50 | 50 | private: |
| 51 | 51 | UINT8 *m_rom; |
| 52 | 52 |
| r14559 | r14560 | |
|---|---|---|
| 51 | 51 | } icmp_header; |
| 52 | 52 | |
| 53 | 53 | //typedef struct { |
| 54 | // UINT16 version; | |
| 55 | // UINT16 checksum; | |
| 56 | // UINT16 packet_type; | |
| 57 | // UINT16 control_header; | |
| 58 | // UINT16 header_length; | |
| 59 | // UINT16 header_data_length; | |
| 60 | // UINT16 transaction_id; | |
| 54 | // UINT16 version; | |
| 55 | // UINT16 checksum; | |
| 56 | // UINT16 packet_type; | |
| 57 | // UINT16 control_header; | |
| 58 | // UINT16 header_length; | |
| 59 | // UINT16 header_data_length; | |
| 60 | // UINT16 transaction_id; | |
| 61 | 61 | //} control_header; |
| 62 | 62 | // |
| 63 | 63 | //typedef struct { |
| 64 | // UINT16 length; | |
| 65 | // UINT16 current; | |
| 66 | // UINT16 source_socket; | |
| 67 | // UINT16 new_route; | |
| 64 | // UINT16 length; | |
| 65 | // UINT16 current; | |
| 66 | // UINT16 source_socket; | |
| 67 | // UINT16 new_route; | |
| 68 | 68 | //} packet_address; |
| 69 | 69 | |
| 70 | 70 | #define ETHERNET_HEADER_SIZE sizeof(ethernet_header) |
| r14559 | r14560 | |
| 77 | 77 | #define ETHERNET_APOLLO_PREFIX 0x08001e |
| 78 | 78 | #define ETHERNET_APOLLO_DOMAIN_PREFIX 0x09001e |
| 79 | 79 | |
| 80 | #define ICMP_ECHOREPLY 0 /* Echo Reply */ | |
| 81 | #define ICMP_ECHO 8 /* Echo Request */ | |
| 80 | #define ICMP_ECHOREPLY 0 /* Echo Reply */ | |
| 81 | #define ICMP_ECHO 8 /* Echo Request */ | |
| 82 | 82 | |
| 83 | 83 | #define PACKET_HEADER_SIZE 64 |
| 84 | 84 | |
| r14559 | r14560 | |
| 295 | 295 | } |
| 296 | 296 | |
| 297 | 297 | //static int set_packet_header1(UINT8 *packet_buffer, UINT32 dest_node_id, |
| 298 | // | |
| 298 | // UINT32 source_node_id) { | |
| 299 | 299 | // |
| 300 | // //0000 08 00 1e 02 61 6d 08 00 1e 04 20 e8 80 19 ff ff | |
| 301 | // //0010 00 20 00 be 00 00 47 11 08 00 1e 02 61 6d 06 20 | |
| 302 | // //0020 00 00 00 00 08 00 1e 04 20 e8 00 01 00 02 61 6d | |
| 303 | // //0030 20 00 00 00 00 04 20 e8 02 00 20 00 00 4e 00 02 | |
| 304 | // //0040 00 00 00 00 2e 04 00 01 20 e8 00 01 00 04 20 e8 | |
| 300 | // //0000 08 00 1e 02 61 6d 08 00 1e 04 20 e8 80 19 ff ff | |
| 301 | // //0010 00 20 00 be 00 00 47 11 08 00 1e 02 61 6d 06 20 | |
| 302 | // //0020 00 00 00 00 08 00 1e 04 20 e8 00 01 00 02 61 6d | |
| 303 | // //0030 20 00 00 00 00 04 20 e8 02 00 20 00 00 4e 00 02 | |
| 304 | // //0040 00 00 00 00 2e 04 00 01 20 e8 00 01 00 04 20 e8 | |
| 305 | 305 | // |
| 306 | // //0050 61 6d 06 20 ff ff 00 20 00 04 00 00 47 11 00 00 | |
| 307 | // //0060 00 02 61 6d 06 20 00 00 00 00 00 00 00 04 20 e8 | |
| 308 | // //0070 00 01 00 00 00 00 80 31 00 01 | |
| 306 | // //0050 61 6d 06 20 ff ff 00 20 00 04 00 00 47 11 00 00 | |
| 307 | // //0060 00 02 61 6d 06 20 00 00 00 00 00 00 00 04 20 e8 | |
| 308 | // //0070 00 01 00 00 00 00 80 31 00 01 | |
| 309 | 309 | // |
| 310 | // set_packet_header(packet_buffer, dest_node_id, source_node_id); | |
| 311 | // set_word(packet_buffer + 8, 0x4711); // Apollo network number | |
| 312 | // set_word(packet_buffer + 16, 0x0620); // ? was 0x0000 | |
| 313 | // set_word(packet_buffer + 28, 0x0001); // ? was 0x0003 | |
| 310 | // set_packet_header(packet_buffer, dest_node_id, source_node_id); | |
| 311 | // set_word(packet_buffer + 8, 0x4711); // Apollo network number | |
| 312 | // set_word(packet_buffer + 16, 0x0620); // ? was 0x0000 | |
| 313 | // set_word(packet_buffer + 28, 0x0001); // ? was 0x0003 | |
| 314 | 314 | |
| 315 | // set_long(packet_buffer + 34, 0x20000000L); // ? was 0x24000000L | |
| 316 | // set_long(packet_buffer + 42, 0x02002000L); // ? was 0x01002400L | |
| 317 | // set_word(packet_buffer + 46, 0x004e); // ? data_size + 0x22 | |
| 318 | // set_word(packet_buffer + 48, 0x0002); // ? data_size | |
| 319 | // set_word(packet_buffer + 54, 0x2e04); // ? 0x0401 | |
| 320 | // set_word(packet_buffer + 56, 0x0001); // ? 0x0003 | |
| 321 | // set_word(packet_buffer + 60, 0x616d); | |
| 322 | // set_word(packet_buffer + 62, 0x0000); | |
| 323 | // return PACKET_HEADER_SIZE; | |
| 315 | // set_long(packet_buffer + 34, 0x20000000L); // ? was 0x24000000L | |
| 316 | // set_long(packet_buffer + 42, 0x02002000L); // ? was 0x01002400L | |
| 317 | // set_word(packet_buffer + 46, 0x004e); // ? data_size + 0x22 | |
| 318 | // set_word(packet_buffer + 48, 0x0002); // ? data_size | |
| 319 | // set_word(packet_buffer + 54, 0x2e04); // ? 0x0401 | |
| 320 | // set_word(packet_buffer + 56, 0x0001); // ? 0x0003 | |
| 321 | // set_word(packet_buffer + 60, 0x616d); | |
| 322 | // set_word(packet_buffer + 62, 0x0000); | |
| 323 | // return PACKET_HEADER_SIZE; | |
| 324 | 324 | //} |
| 325 | 325 | |
| 326 | 326 | static int set_packet_header(UINT8 *packet_buffer, UINT32 dest_node_id, |
| 327 | 327 | UINT32 source_node_id) { |
| 328 | 328 | // --------- apollo header -------------- |
| 329 | 329 | set_word(packet_buffer, 0xffff); |
| 330 | // | |
| 330 | // set_word(packet_buffer + 2, data_size + PACKET_HEADER_SIZE); | |
| 331 | 331 | set_word(packet_buffer + 4, 0x00be); |
| 332 | 332 | set_word(packet_buffer + 6, 0x0000); |
| 333 | 333 | set_word(packet_buffer + 8, 0x0000); // Apollo network number |
| r14559 | r14560 | |
| 344 | 344 | set_long(packet_buffer + 34, 0x24000000L); |
| 345 | 345 | set_long(packet_buffer + 38, source_node_id); |
| 346 | 346 | set_long(packet_buffer + 42, 0x01002400L); |
| 347 | // set_word(packet_buffer + 46, data_size + 0x22); | |
| 348 | // set_word(packet_buffer + 48, data_size); | |
| 347 | // set_word(packet_buffer + 46, data_size + 0x22); | |
| 348 | // set_word(packet_buffer + 48, data_size); | |
| 349 | 349 | set_word(packet_buffer + 50, 0x0000); |
| 350 | 350 | set_word(packet_buffer + 52, 0x0000); |
| 351 | 351 | // --------- data -------------- |
| r14559 | r14560 | |
| 575 | 575 | service = (rx_data_length > 0x45) ? get_word(rx_data_buffer + 0x44) : 0xffff; |
| 576 | 576 | first_sector = (rx_data_length > 0x6b) ? get_word(rx_data_buffer + 0x6a) : 0; |
| 577 | 577 | // FIXME: hack |
| 578 | // | |
| 578 | // last_sector = (rx_data_length > 0x6d) ? get_word(rx_data_buffer + 0x6c) : 0; | |
| 579 | 579 | last_sector = (rx_data_length > 0x6d) ? get_word(rx_data_buffer + 0x6c) : 0x0f; |
| 580 | 580 | |
| 581 | 581 | set_ethernet_header(tx_data_buffer, client_ethernet_address); |
| r14559 | r14560 | |
| 593 | 593 | get_file_data(APOLLO_NETBOOT_PATH, packet_buffer, first_sector, last_sector); |
| 594 | 594 | DLOG1(("Net Server service=%04x (boot_$sysboot - sector %x of %x-%x)", service, current_sector, first_sector, last_sector)); |
| 595 | 595 | break; |
| 596 | case 0x0a: // boot_$get_uids | |
| 596 | case 0x0a: // boot_$get_uids (get UIDs for OS paging file, network root and the node entry directory) | |
| 597 | 597 | set_packet(packet_buffer, response_070a, sizeof(response_070a)); |
| 598 | 598 | DLOG1(("Net Server service=%04x (boot_$get_uids)", service)); |
| 599 | 599 | break; |
| r14559 | r14560 | |
| 601 | 601 | get_dir_data( node_type == 7 ? APOLLO_SAU7_PATH : node_type == 8 ? APOLLO_SAU8_PATH : APOLLO_SAU14_PATH, packet_buffer); |
| 602 | 602 | DLOG1(("Net Server service=%04x (boot_$mult_ld)", service)); |
| 603 | 603 | break; |
| 604 | case 0x12: // boot_$load | |
| 604 | case 0x12: // boot_$load (ex /sau7/self_test, domain_os, ...) | |
| 605 | 605 | strcpy(pathname, node_type == 7 ? APOLLO_SAU7_PATH : node_type == 8 ? APOLLO_SAU8_PATH : APOLLO_SAU14_PATH); |
| 606 | 606 | strcat(pathname, "/"); |
| 607 | 607 | strcat(pathname, get_file_name(rx_data_buffer + 0x48)); |
| r14559 | r14560 | |
| 702 | 702 | static int is_ip_echo_request(const UINT8 ethernet_header[], const int data_length) { |
| 703 | 703 | return data_length >= 0x30 && // |
| 704 | 704 | get_word(ethernet_header + 0x0c) == ETHERNET_PACKET_TYPE_IP && // |
| 705 | get_byte(ethernet_header + 0x22) == ICMP_ECHO && // | |
| 706 | is_my_ethernet_address(ethernet_header); | |
| 705 | get_byte(ethernet_header + 0x22) == ICMP_ECHO && // | |
| 706 | is_my_ethernet_address(ethernet_header); | |
| 707 | 707 | } |
| 708 | 708 | |
| 709 | 709 | static UINT16 in_checksum(UINT8 *ptr, UINT32 nbytes) |
| r14559 | r14560 | |
| 734 | 734 | const UINT8 rx_data[], int rx_data_length, |
| 735 | 735 | UINT8 tx_data[]) { |
| 736 | 736 | |
| 737 | // static UINT8 arp_response[] = { | |
| 738 | // 0x08,0x00,0x1e,0x02,0x61,0x6d, // 0x00: Ethernet address of destination | |
| 739 | // 0x08,0x00,0x1e,0x04,0x20,0xe8, // 0x06: Ethernet address of sender | |
| 740 | // 0x08,0x06, // 0x0c: Protocol type | |
| 741 | // 0x00,0x01, // 0x0e: Hardware address space | |
| 742 | // 0x80,0x19, // 0x10: Protocol address space | |
| 743 | // 0x06, // 0x12: byte length of each hardware address | |
| 744 | // 0x04, // 0x13: byte length of each protocol address | |
| 745 | // 0x00,0x02, // 0x14: opcode (ares_op$REQUEST | ares_op$REPLY) | |
| 746 | // 0x08,0x00,0x1e,0x04,0x20,0xe8, // 0x16: Hardware address of sender of this packet | |
| 747 | // 0x00,0x04,0x20,0xe8, // 0x1c: Protocol address of sender of this packet | |
| 748 | // 0x08,0x00,0x1e,0x02,0x61,0x6d, // 0x20: Hardware address of target of this packet (if known) | |
| 749 | // 0x00,0x02,0x61,0x6d, // 0x26: Protocol address of target | |
| 750 | // ... | |
| 751 | // }; | |
| 737 | // static UINT8 arp_response[] = { | |
| 738 | // 0x08,0x00,0x1e,0x02,0x61,0x6d, // 0x00: Ethernet address of destination | |
| 739 | // 0x08,0x00,0x1e,0x04,0x20,0xe8, // 0x06: Ethernet address of sender | |
| 740 | // 0x08,0x06, // 0x0c: Protocol type | |
| 741 | // 0x00,0x01, // 0x0e: Hardware address space | |
| 742 | // 0x80,0x19, // 0x10: Protocol address space | |
| 743 | // 0x06, // 0x12: byte length of each hardware address | |
| 744 | // 0x04, // 0x13: byte length of each protocol address | |
| 745 | // 0x00,0x02, // 0x14: opcode (ares_op$REQUEST | ares_op$REPLY) | |
| 746 | // 0x08,0x00,0x1e,0x04,0x20,0xe8, // 0x16: Hardware address of sender of this packet | |
| 747 | // 0x00,0x04,0x20,0xe8, // 0x1c: Protocol address of sender of this packet | |
| 748 | // 0x08,0x00,0x1e,0x02,0x61,0x6d, // 0x20: Hardware address of target of this packet (if known) | |
| 749 | // 0x00,0x02,0x61,0x6d, // 0x26: Protocol address of target | |
| 750 | // ... | |
| 751 | // }; | |
| 752 | 752 | |
| 753 | 753 | UINT16 tx_data_length = rx_data_length; |
| 754 | 754 | memcpy(tx_data, rx_data, tx_data_length); |
| r14559 | r14560 | |
| 830 | 830 | case 1: // Paging socket |
| 831 | 831 | break; |
| 832 | 832 | case 2: // File socket |
| 833 | // | |
| 833 | // return file_server(device, rx_data, rx_data_length, tx_data); | |
| 834 | 834 | break; |
| 835 | 835 | case 3: // NETMAN socket |
| 836 | 836 | return netman_server(device, rx_data, rx_data_length, tx_data); |
| r14559 | r14560 | |
|---|---|---|
| 83 | 83 | UINT8 c64_epyx_fast_load_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2) |
| 84 | 84 | { |
| 85 | 85 | UINT8 data = 0; |
| 86 | ||
| 86 | ||
| 87 | 87 | if (!roml) |
| 88 | 88 | { |
| 89 | 89 | m_exrom = 0; |
| 90 | 90 | m_exrom_timer->adjust(attotime::from_usec(TIMER_PERIOD), 0); |
| 91 | ||
| 91 | ||
| 92 | 92 | data = m_roml[offset & 0x1fff]; |
| 93 | 93 | } |
| 94 | 94 | else if (!io1) |
| r14559 | r14560 | |
|---|---|---|
| 62 | 62 | UINT8 c64_super_games_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2) |
| 63 | 63 | { |
| 64 | 64 | UINT8 data = 0; |
| 65 | ||
| 65 | ||
| 66 | 66 | if (!roml || !romh) |
| 67 | 67 | { |
| 68 | 68 | offs_t addr = (m_bank << 14) | (offset & 0x3fff); |
| r14559 | r14560 | |
| 82 | 82 | if (!io2) |
| 83 | 83 | { |
| 84 | 84 | m_bank = data & 0x03; |
| 85 | ||
| 85 | ||
| 86 | 86 | m_game = BIT(data, 2); |
| 87 | 87 | m_exrom = BIT(data, 3); |
| 88 | 88 | } |
| r14559 | r14560 | |
|---|---|---|
| 40 | 40 | // device_c64_expansion_card_interface overrides |
| 41 | 41 | virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2); |
| 42 | 42 | virtual void c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2); |
| 43 | ||
| 43 | ||
| 44 | 44 | private: |
| 45 | 45 | UINT8 m_bank; |
| 46 | 46 | }; |
| r14559 | r14560 | |
|---|---|---|
| 96 | 96 | UINT8 *ram = machine.region("maincpu")->base() + 0x8000; |
| 97 | 97 | UINT8 *cpu = sc61860_internal_ram(main_cpu); |
| 98 | 98 | |
| 99 | machine.device<nvram_device>("cpu_nvram")->set_base(cpu, 96); | |
| 99 | machine.device<nvram_device>("cpu_nvram")->set_base(cpu, 96); | |
| 100 | 100 | machine.device<nvram_device>("ram_nvram")->set_base(ram, 0x4800); |
| 101 | 101 | } |
| 102 | 102 |
| r14559 | r14560 | |
|---|---|---|
| 99 | 99 | void c64_dela_ep7x8_cartridge_device::device_start() |
| 100 | 100 | { |
| 101 | 101 | m_rom = subregion("rom")->base(); |
| 102 | ||
| 102 | ||
| 103 | 103 | // state saving |
| 104 | 104 | save_item(NAME(m_bank)); |
| 105 | 105 | } |
| r14559 | r14560 | |
| 123 | 123 | UINT8 c64_dela_ep7x8_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2) |
| 124 | 124 | { |
| 125 | 125 | UINT8 data = 0; |
| 126 | ||
| 126 | ||
| 127 | 127 | if (!roml) |
| 128 | 128 | { |
| 129 | 129 | offs_t addr = offset & 0x1fff; |
| 130 | ||
| 130 | ||
| 131 | 131 | if (!BIT(m_bank, 0)) data |= m_roml[addr]; |
| 132 | 132 | if (!BIT(m_bank, 1)) data |= m_rom[0x2000 + addr]; |
| 133 | 133 | if (!BIT(m_bank, 2)) data |= m_rom[0x4000 + addr]; |
| r14559 | r14560 | |
| 151 | 151 | if (!io1) |
| 152 | 152 | { |
| 153 | 153 | m_bank = data; |
| 154 | ||
| 154 | ||
| 155 | 155 | m_exrom = (data == 0xff); |
| 156 | 156 | } |
| 157 | 157 | } |
| r14559 | r14560 | |
|---|---|---|
| 46 | 46 | // device_c64_expansion_card_interface overrides |
| 47 | 47 | virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2); |
| 48 | 48 | virtual void c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2); |
| 49 | ||
| 49 | ||
| 50 | 50 | private: |
| 51 | 51 | UINT8 *m_rom; |
| 52 | ||
| 52 | ||
| 53 | 53 | UINT8 m_bank; |
| 54 | 54 | }; |
| 55 | 55 |
| r14559 | r14560 | |
|---|---|---|
| 64 | 64 | UINT8 c64_structured_basic_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2) |
| 65 | 65 | { |
| 66 | 66 | UINT8 data = 0; |
| 67 | ||
| 67 | ||
| 68 | 68 | if (!roml) |
| 69 | 69 | { |
| 70 | 70 | offs_t addr = (m_bank << 13) | (offset & 0x1fff); |
| 71 | ||
| 71 | ||
| 72 | 72 | data = m_roml[addr]; |
| 73 | 73 | } |
| 74 | 74 | |
| r14559 | r14560 | |
| 91 | 91 | m_exrom = 0; |
| 92 | 92 | m_bank = 0; |
| 93 | 93 | break; |
| 94 | ||
| 94 | ||
| 95 | 95 | case 2: |
| 96 | 96 | m_exrom = 0; |
| 97 | 97 | m_bank = 1; |
| r14559 | r14560 | |
|---|---|---|
| 41 | 41 | // device_c64_expansion_card_interface overrides |
| 42 | 42 | virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2); |
| 43 | 43 | virtual void c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2); |
| 44 | ||
| 44 | ||
| 45 | 45 | private: |
| 46 | 46 | UINT8 m_bank; |
| 47 | 47 | }; |
| r14559 | r14560 | |
|---|---|---|
| 359 | 359 | |
| 360 | 360 | if (lun > OMTI_MAX_LUN) { |
| 361 | 361 | sense_code = OMTI_SENSE_CODE_DRIVE_NOT_READY; |
| 362 | } else | |
| 362 | } else | |
| 363 | 363 | sense_code = OMTI_SENSE_CODE_DRIVE_NOT_READY; |
| 364 | } else | |
| 364 | } else | |
| 365 | 365 | sense_code = OMTI_SENSE_CODE_ILLEGAL_ADDRESS | OMTI_SENSE_CODE_ADDRESS_VALID; |
| 366 | 366 | } else if (head >= disk->heads) { |
| 367 | 367 | sense_code = OMTI_SENSE_CODE_ILLEGAL_ADDRESS | OMTI_SENSE_CODE_ADDRESS_VALID; |
| r14559 | r14560 | |
| 627 | 627 | default: |
| 628 | 628 | logerror("!!! Unexpected Command !!!"); |
| 629 | 629 | } |
| 630 | // | |
| 630 | // logerror(" (%02x, length=%02x)", cdb[0], cdb_length); | |
| 631 | 631 | for (i = 0; i < cdb_length; i++) { |
| 632 | 632 | logerror(" %02x", cdb[i]); |
| 633 | 633 | } |
| r14559 | r14560 | |
| 823 | 823 | } |
| 824 | 824 | |
| 825 | 825 | if (state->mask_port & OMTI_MASK_INTE) { |
| 826 | // if (state->omti_state != OMTI_STATE_STATUS) { | |
| 827 | // LOG(("do_command: UNEXPECTED omti_state %02x",state->omti_state)); | |
| 828 | // } | |
| 826 | // if (state->omti_state != OMTI_STATE_STATUS) { | |
| 827 | // LOG(("do_command: UNEXPECTED omti_state %02x",state->omti_state)); | |
| 828 | // } | |
| 829 | 829 | state->status_port |= OMTI_STATUS_IREQ; |
| 830 | 830 | if (command_duration == 0) { |
| 831 | 831 | set_interrupt(state, ASSERT_LINE); |
| r14559 | r14560 | |
| 1011 | 1011 | // omit excessive logging |
| 1012 | 1012 | if (data != last_data) { |
| 1013 | 1013 | LOG2(("reading OMTI 8621 Status Register at offset %02x = %02x", offset, data)); |
| 1014 | // | |
| 1014 | // last_data = data; | |
| 1015 | 1015 | } |
| 1016 | 1016 | break; |
| 1017 | 1017 | |
| r14559 | r14560 | |
| 1256 | 1256 | |
| 1257 | 1257 | if (disk->image->image_core_file() == NULL) |
| 1258 | 1258 | { |
| 1259 | ||
| 1259 | ||
| 1260 | 1260 | } |
| 1261 | 1261 | else |
| 1262 | 1262 | { |
| 1263 | ||
| 1263 | ||
| 1264 | 1264 | } |
| 1265 | 1265 | |
| 1266 | 1266 | // default disk type |
| r14559 | r14560 | |
| 1322 | 1322 | { |
| 1323 | 1323 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 1324 | 1324 | case DEVINFO_INT_TOKEN_BYTES: info->i = sizeof(disk_data); break; |
| 1325 | case DEVINFO_INT_INLINE_CONFIG_BYTES: info->i = 0; | |
| 1325 | case DEVINFO_INT_INLINE_CONFIG_BYTES: info->i = 0; | |
| 1326 | 1326 | case DEVINFO_INT_IMAGE_TYPE: info->i = IO_HARDDISK; break; |
| 1327 | 1327 | case DEVINFO_INT_IMAGE_READABLE: info->i = 1; break; |
| 1328 | 1328 | case DEVINFO_INT_IMAGE_WRITEABLE: info->i = 1; break; |
| r14559 | r14560 | |
| 1332 | 1332 | case DEVINFO_FCT_START: info->start = DEVICE_START_NAME(omti_disk); break; |
| 1333 | 1333 | case DEVINFO_FCT_STOP: /* Nothing */ break; |
| 1334 | 1334 | case DEVINFO_FCT_RESET: info->reset = DEVICE_RESET_NAME(omti_disk); break; |
| 1335 | // case DEVINFO_FCT_IMAGE_LOAD: info->f = (genf *) DEVICE_IMAGE_LOAD_NAME(omti_disk); break; | |
| 1336 | // case DEVINFO_FCT_IMAGE_UNLOAD: info->f = (genf *) DEVICE_IMAGE_UNLOAD_NAME(omti_disk); break; | |
| 1335 | // case DEVINFO_FCT_IMAGE_LOAD: info->f = (genf *) DEVICE_IMAGE_LOAD_NAME(omti_disk); break; | |
| 1336 | // case DEVINFO_FCT_IMAGE_UNLOAD: info->f = (genf *) DEVICE_IMAGE_UNLOAD_NAME(omti_disk); break; | |
| 1337 | 1337 | case DEVINFO_FCT_IMAGE_CREATE: info->f = (genf *)DEVICE_IMAGE_CREATE_NAME(omti_disk); break; |
| 1338 | 1338 | |
| 1339 | 1339 |
| r14559 | r14560 | |
|---|---|---|
| 88 | 88 | UINT8 c64_super_explode_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2) |
| 89 | 89 | { |
| 90 | 90 | UINT8 data = 0; |
| 91 | ||
| 91 | ||
| 92 | 92 | if (!roml) |
| 93 | 93 | { |
| 94 | 94 | m_exrom = 0; |
| 95 | 95 | m_exrom_timer->adjust(attotime::from_usec(TIMER_PERIOD), 0); |
| 96 | ||
| 96 | ||
| 97 | 97 | data = m_roml[(m_bank << 13) | (offset & 0x1fff)]; |
| 98 | 98 | } |
| 99 | 99 | else if (!io1) |
| r14559 | r14560 | |
|---|---|---|
| 78 | 78 | m_isa->install_device(0x03b0, 0x03bf, 0, 0, FUNC(vga_port_03b0_r), FUNC(vga_port_03b0_w)); |
| 79 | 79 | m_isa->install_device(0x03c0, 0x03cf, 0, 0, FUNC(vga_port_03c0_r), FUNC(vga_port_03c0_w)); |
| 80 | 80 | m_isa->install_device(0x03d0, 0x03df, 0, 0, FUNC(vga_port_03d0_r), FUNC(vga_port_03d0_w)); |
| 81 | // | |
| 81 | // m_isa->install_device(0x9ae8, 0x9aeb, 0, 0, FUNC(s3_port_9ae8_r), FUNC(s3_port_9ae8_w)); | |
| 82 | 82 | |
| 83 | 83 | m_isa->install_memory(0xa0000, 0xbffff, 0, 0, FUNC(vga_mem_r), FUNC(vga_mem_w)); |
| 84 | 84 | } |
| r14559 | r14560 | |
|---|---|---|
| 145 | 145 | UINT8 diffs = screen_data->cr1 ^ data; |
| 146 | 146 | screen_data->cr1 = data; |
| 147 | 147 | |
| 148 | // if (screen_data->cr1 & CR1_SYNC_EN) { | |
| 149 | // // normal mode | |
| 150 | // } else | |
| 148 | // if (screen_data->cr1 & CR1_SYNC_EN) { | |
| 149 | // // normal mode | |
| 150 | // } else | |
| 151 | 151 | |
| 152 | 152 | if ((screen_data->cr1 & CR1_RESET) == 0) { |
| 153 | 153 | if (diffs & CR1_RESET) { |
| r14559 | r14560 | |
| 272 | 272 | |
| 273 | 273 | if ((screen_data->cr1 & CR1_DISP_EN) == 0) { |
| 274 | 274 | screen_data->status_register &= ~SR_V_DATA; |
| 275 | }else | |
| 275 | }else | |
| 276 | 276 | UINT16 pixel = screen_data->image_memory[screen_data->data_clock / 16] |
| 277 | 277 | & (0x8000 >> (screen_data->data_clock % 16)); |
| 278 | 278 | pixel = (pixel ? 1 : 0) ^ ((screen_data->cr1 & CR1_INV) ? 0 : 1); |
| r14559 | r14560 | |
| 734 | 734 | MCFG_DEFAULT_LAYOUT( layout_apollo ) |
| 735 | 735 | MCFG_SCREEN_ADD(VIDEO_SCREEN_TAG, RASTER) |
| 736 | 736 | MCFG_VIDEO_ATTRIBUTES(VIDEO_UPDATE_AFTER_VBLANK) |
| 737 | // | |
| 737 | // MCFG_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) | |
| 738 | 738 | MCFG_PALETTE_LENGTH(2) |
| 739 | 739 | MCFG_PALETTE_INIT(black_and_white) |
| 740 | 740 | // dot clock, htotal, hstart, hend, vtotal, vstart, vend |
| r14559 | r14560 | |
| 751 | 751 | MCFG_DEFAULT_LAYOUT( layout_apollo_15i ) |
| 752 | 752 | MCFG_SCREEN_ADD(VIDEO_SCREEN_TAG, RASTER) |
| 753 | 753 | MCFG_VIDEO_ATTRIBUTES(VIDEO_UPDATE_AFTER_VBLANK) |
| 754 | // | |
| 754 | // MCFG_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) | |
| 755 | 755 | MCFG_PALETTE_LENGTH(2) |
| 756 | 756 | MCFG_PALETTE_INIT(black_and_white) |
| 757 | 757 | // dot clock, htotal, hstart, hend, vtotal, vstart, vend |
| r14559 | r14560 | |
| 778 | 778 | /* allocate the memory image */ |
| 779 | 779 | screen_data->image_memory_size = screen_data->buffer_height |
| 780 | 780 | * screen_data->buffer_width / 16; |
| 781 | // | |
| 781 | // screen_data->image_memory = (UINT16 *) malloc(screen_data->image_memory_size * 2); | |
| 782 | 782 | screen_data->image_memory = auto_alloc_array(device->machine(), UINT16, screen_data->image_memory_size); |
| 783 | 783 | assert(screen_data->image_memory != NULL); |
| 784 | 784 |
| r14559 | r14560 | |
|---|---|---|
| 71 | 71 | /* allocate video memory */ |
| 72 | 72 | m_video_memory = machine().region_alloc( "videoram", (AVIGO_SCREEN_WIDTH>>3) * AVIGO_SCREEN_HEIGHT + 1, 1, ENDIANNESS_LITTLE )->base(); |
| 73 | 73 | memset(m_video_memory, 0, (AVIGO_SCREEN_WIDTH>>3) * AVIGO_SCREEN_HEIGHT + 1); |
| 74 | ||
| 74 | ||
| 75 | 75 | save_pointer(NAME(m_video_memory), (AVIGO_SCREEN_WIDTH>>3) * AVIGO_SCREEN_HEIGHT + 1); |
| 76 | 76 | } |
| 77 | 77 |
| r14559 | r14560 | |
|---|---|---|
| 113 | 113 | void mo_irq(bool state); |
| 114 | 114 | void mo_drq(bool state); |
| 115 | 115 | |
| 116 | // | |
| 116 | // static const SCSIConfigTable scsi_devices; | |
| 117 | 117 | static const floppy_format_type floppy_formats[]; |
| 118 | 118 | static const cdrom_interface cdrom_intf; |
| 119 | 119 | static const harddisk_interface harddisk_intf; |
| r14559 | r14560 | |
|---|---|---|
| 89 | 89 | class apollo_state : public driver_device |
| 90 | 90 | { |
| 91 | 91 | public: |
| 92 | // apollo_state(running_machine &machine, const driver_device_config_base &config) | |
| 93 | // : driver_device(machine, config) { } | |
| 92 | // apollo_state(running_machine &machine, const driver_device_config_base &config) | |
| 93 | // : driver_device(machine, config) { } | |
| 94 | 94 | |
| 95 | 95 | apollo_state(const machine_config &mconfig, device_type type, const char *tag) |
| 96 | 96 | : driver_device(mconfig, type, tag) { } |
| r14559 | r14560 | |
|---|---|---|
| 44 | 44 | void refresh_memory(UINT8 bank, UINT8 chip_select); |
| 45 | 45 | void refresh_ints(); |
| 46 | 46 | void nvram_init(nvram_device &nvram, void *base, size_t size); |
| 47 | ||
| 47 | ||
| 48 | 48 | DECLARE_WRITE_LINE_MEMBER( tc8521_alarm_int ); |
| 49 | 49 | DECLARE_WRITE_LINE_MEMBER( com_interrupt ); |
| 50 | 50 |
| r14559 | r14560 | |
|---|---|---|
| 614 | 614 | $(MESSOBJ)/apf.a: \ |
| 615 | 615 | $(MESS_DRIVERS)/apf.o \ |
| 616 | 616 | |
| 617 | $(MESSOBJ)/apollo.a: \ | |
| 618 | $(MESS_DRIVERS)/apollo.o \ | |
| 619 | $(MESS_VIDEO)/apollo.o \ | |
| 620 | $(MESS_MACHINE)/sc499.o \ | |
| 617 | $(MESSOBJ)/apollo.a: \ | |
| 618 | $(MESS_DRIVERS)/apollo.o \ | |
| 619 | $(MESS_VIDEO)/apollo.o \ | |
| 620 | $(MESS_MACHINE)/sc499.o \ | |
| 621 | 621 | $(MESS_MACHINE)/omti8621.o \ |
| 622 | 622 | $(MESS_MACHINE)/apollo_dbg.o \ |
| 623 | 623 | $(MESS_MACHINE)/apollo_eth.o \ |
| r14559 | r14560 | |
|---|---|---|
| 801 | 801 | UINT8 *ram = machine.region("maincpu")->base() + 0x4000; |
| 802 | 802 | UINT8 *cpu = sc61860_internal_ram(main_cpu); |
| 803 | 803 | |
| 804 | machine.device<nvram_device>("cpu_nvram")->set_base(cpu, 96); | |
| 804 | machine.device<nvram_device>("cpu_nvram")->set_base(cpu, 96); | |
| 805 | 805 | machine.device<nvram_device>("ram_nvram")->set_base(ram, 0x2800); |
| 806 | 806 | } |
| 807 | 807 |
| r14559 | r14560 | |
|---|---|---|
| 1522 | 1522 | // SCSI init |
| 1523 | 1523 | wd33c93_init(machine, &scsi_intf); |
| 1524 | 1524 | machine.add_notifier(MACHINE_NOTIFY_EXIT, machine_notify_delegate(FUNC(ip225015_exit),&machine)); |
| 1525 | ||
| 1526 | machine.device<nvram_device>("nvram_user")->set_base(state->m_RTC.nUserRAM, 0x200); | |
| 1527 | machine.device<nvram_device>("nvram")->set_base(state->m_RTC.nRAM, 0x200); | |
| 1525 | ||
| 1526 | machine.device<nvram_device>("nvram_user")->set_base(state->m_RTC.nUserRAM, 0x200); | |
| 1527 | machine.device<nvram_device>("nvram")->set_base(state->m_RTC.nRAM, 0x200); | |
| 1528 | 1528 | } |
| 1529 | 1529 | |
| 1530 | 1530 | static DRIVER_INIT( ip225015 ) |
| r14559 | r14560 | |
| 1665 | 1665 | |
| 1666 | 1666 | MCFG_MACHINE_START( ip225015 ) |
| 1667 | 1667 | MCFG_MACHINE_RESET( ip225015 ) |
| 1668 | ||
| 1668 | ||
| 1669 | 1669 | MCFG_NVRAM_ADD_0FILL("nvram") |
| 1670 | 1670 | MCFG_NVRAM_ADD_0FILL("nvram_user") |
| 1671 | 1671 |
| r14559 | r14560 | |
|---|---|---|
| 853 | 853 | memory_configure_bank(machine(), "bank4", 0, 8, rom, 0x4000); |
| 854 | 854 | |
| 855 | 855 | m_vram = (UINT8*)machine().region("lcd_vram")->base(); |
| 856 | ||
| 857 | machine().device<nvram_device>("nvram")->set_base(ram, m_ram->size()); | |
| 856 | ||
| 857 | machine().device<nvram_device>("nvram")->set_base(ram, m_ram->size()); | |
| 858 | 858 | } |
| 859 | 859 | |
| 860 | 860 | void pcg850v_state::machine_start() |
| r14559 | r14560 | |
| 868 | 868 | memory_configure_bank(machine(), "bank4", 0, 22, rom, 0x4000); |
| 869 | 869 | |
| 870 | 870 | m_vram = (UINT8*)machine().region("lcd_vram")->base(); |
| 871 | machine().device<nvram_device>("nvram")->set_base(ram, m_ram->size()); | |
| 871 | machine().device<nvram_device>("nvram")->set_base(ram, m_ram->size()); | |
| 872 | 872 | } |
| 873 | 873 | |
| 874 | 874 | void pce220_state::machine_reset() |
| r14559 | r14560 | |
|---|---|---|
| 4 | 4 | |
| 5 | 5 | TODO: |
| 6 | 6 | |
| 7 | - Find out why the pager doesn't work on the mach_init loading | |
| 8 | task (yes, that's the big one) | |
| 7 | - Find out why the pager doesn't work on the mach_init loading | |
| 8 | task (yes, that's the big one) | |
| 9 | 9 | |
| 10 | ||
| 10 | - Hook up the mouse (not before the system boots though, see the first problem) | |
| 11 | 11 | |
| 12 | ||
| 12 | - Fix the kernel bitching at boot (non-volatile memory readback error) | |
| 13 | 13 | |
| 14 | ||
| 14 | - Hook up the sound output, it seems to be shared with the keyboard port somehow | |
| 15 | 15 | |
| 16 | - Implement more of the scc and its dma interactions so that the | |
| 17 | start up test passes, but not before sound out is done (if the scc | |
| 18 | test passes all the other test pass up to sound out which | |
| 19 | infloops) | |
| 16 | - Implement more of the scc and its dma interactions so that the | |
| 17 | start up test passes, but not before sound out is done (if the scc | |
| 18 | test passes all the other test pass up to sound out which | |
| 19 | infloops) | |
| 20 | 20 | |
| 21 | ||
| 21 | - Really implement the MO, it's only faking it for the startup test right now | |
| 22 | 22 | |
| 23 | ||
| 23 | - Find out why netbsd goes to hell even before loading the kernel | |
| 24 | 24 | |
| 25 | 25 | Memory map and other bits can be found here: |
| 26 | 26 | http://fxr.watson.org/fxr/source/arch/next68k/include/cpu.h?v=NETBSD5#L366 |
| r14559 | r14560 | |
| 164 | 164 | ---- ---- ---- ---- ---- ---- ---x x--- mem speed |
| 165 | 165 | ---- ---- ---- ---- ---- ---- ---- -xxx cpu speed 16/20/25/33/40/50/66/80 |
| 166 | 166 | |
| 167 | machine types: | |
| 168 | 0 NeXT_CUBE | |
| 169 | 1 NeXT_WARP9 | |
| 170 | 2 NeXT_X15 | |
| 171 | 3 NeXT_WARP9C | |
| 172 | 4 NeXT_Turbo | |
| 173 | 5 NeXT_TurboC | |
| 174 | 6 Unknown | |
| 175 | 7 Unknown | |
| 176 | 8 NeXT_TurboCube | |
| 177 | 9 NeXT_TurboCubeC | |
| 167 | machine types: | |
| 168 | 0 NeXT_CUBE | |
| 169 | 1 NeXT_WARP9 | |
| 170 | 2 NeXT_X15 | |
| 171 | 3 NeXT_WARP9C | |
| 172 | 4 NeXT_Turbo | |
| 173 | 5 NeXT_TurboC | |
| 174 | 6 Unknown | |
| 175 | 7 Unknown | |
| 176 | 8 NeXT_TurboCube | |
| 177 | 9 NeXT_TurboCubeC | |
| 178 | 178 | |
| 179 | 179 | 68040-25: 00011102 |
| 180 | 180 | 68040-25: 00013002 (non-turbo, color) |
| r14559 | r14560 | |
| 623 | 623 | // The rom strangely can't boot on anything else than ED, it has |
| 624 | 624 | // code for the other densities but forces ED for some mysterious |
| 625 | 625 | // reason. The kernel otoh behaves as expected. |
| 626 | ||
| 626 | ||
| 627 | 627 | if(fdc) { |
| 628 | 628 | floppy_image_device *fdev = machine().device<floppy_connector>(":fd0")->get_device(); |
| 629 | 629 | if(fdev->exists()) { |
| r14559 | r14560 | |
| 1131 | 1131 | |
| 1132 | 1132 | /* Driver */ |
| 1133 | 1133 | |
| 1134 | /* YEAR NAME PARENT COMPAT MACHINE INPUT INIT COMPANY FULLNAME | |
| 1134 | /* YEAR NAME PARENT COMPAT MACHINE INPUT INIT COMPANY FULLNAME FLAGS */ | |
| 1135 | 1135 | COMP( 1987, next, 0, 0, next, next, next, "Next Software Inc", "NeXT Cube", GAME_NOT_WORKING | GAME_NO_SOUND) |
| 1136 | 1136 | COMP( 1990, nexts, 0, 0, nexts, next, nexts, "Next Software Inc", "NeXTstation", GAME_NOT_WORKING | GAME_NO_SOUND) |
| 1137 | 1137 | COMP( 1990, nexts2, nexts, 0, nexts2, next, nexts2, "Next Software Inc", "NeXTstation (X15 variant)", GAME_NOT_WORKING | GAME_NO_SOUND) |
| r14559 | r14560 | |
| 1143 | 1143 | |
| 1144 | 1144 | /* |
| 1145 | 1145 | |
| 1146 | UINT32 *rom = (UINT32 *)(machine.region("user1")->base()); | |
| 1147 | rom[0x3f48/4] = 0x2f017000; // memory test funcall | |
| 1148 | rom[0x3f4c/4] = 0x4e712400; | |
| 1149 | rom[0x00b8/4] = 0x001a4e71; // rom checksum | |
| 1150 | rom[0x00bc/4] = 0x4e714e71; | |
| 1146 | UINT32 *rom = (UINT32 *)(machine.region("user1")->base()); | |
| 1147 | rom[0x3f48/4] = 0x2f017000; // memory test funcall | |
| 1148 | rom[0x3f4c/4] = 0x4e712400; | |
| 1149 | rom[0x00b8/4] = 0x001a4e71; // rom checksum | |
| 1150 | rom[0x00bc/4] = 0x4e714e71; | |
| 1151 | 1151 | |
| 1152 | 1152 | v74 |
| 1153 | UINT32 *rom = (UINT32 *)(machine.region("user1")->base()); | |
| 1154 | rom[0x329c/4] = 0x70004e71; // memory test funcall | |
| 1155 | rom[0x32a0/4] = 0x4e712400; | |
| 1156 | rom[0x03f8/4] = 0x001a4e71; // rom checksum | |
| 1157 | rom[0x03fc/4] = 0x4e714e71; | |
| 1158 | */ | |
| 1153 | UINT32 *rom = (UINT32 *)(machine.region("user1")->base()); | |
| 1154 | rom[0x329c/4] = 0x70004e71; // memory test funcall | |
| 1155 | rom[0x32a0/4] = 0x4e712400; | |
| 1156 | rom[0x03f8/4] = 0x001a4e71; // rom checksum | |
| 1157 | rom[0x03fc/4] = 0x4e714e71; | |
| 1158 | */ |
| r14559 | r14560 | |
|---|---|---|
| 6 | 6 | * |
| 7 | 7 | * Released for general non-commercial use under the MAME license |
| 8 | 8 | * Visit http://mamedev.org for licensing and usage restrictions. |
| 9 | * | |
| 9 | * | |
| 10 | 10 | * Adapted February 19, 2012 for general MAME/MESS standards by R. Belmont |
| 11 | * | |
| 11 | * | |
| 12 | 12 | * TODO: use MESS ram device and MCFG_RAM_* to handle RAM sizing. |
| 13 | 13 | * AT bus stuff indicates ISA compatibility? If so, convert to use MESS ISA bus infrastructure, including 3c505? |
| 14 | 14 | * Remove need for instruction hook. |
| 15 | 15 | * Convert to modern address map. |
| 16 | * | |
| 16 | * | |
| 17 | 17 | * see also: |
| 18 | 18 | * - Domain Series 3000/Series 4000 Hardware Architecture Handbook (Order No. 007861 Rev. 02) |
| 19 | 19 | * - Domain Personal Workstations and Servers Technical Reference (Apollo Order No. 008778-A01) |
| r14559 | r14560 | |
| 153 | 153 | |
| 154 | 154 | /*void apollo_set_cpu_has_fpu(device_t *device, int onoff) |
| 155 | 155 | { |
| 156 | if (device == NULL || (device->type() != M68020PMMU && device->type() != M68030)) | |
| 157 | { | |
| 158 | DLOG1(("set_cpu_has_fpu: unexpected CPU device")); | |
| 159 | } | |
| 160 | else | |
| 161 | { | |
| 162 | m68ki_cpu_core *cpu = (m68ki_cpu_core *) downcast<legacy_cpu_device *> (device)->token(); | |
| 163 | cpu->has_fpu = onoff; | |
| 164 | DLOG1(("set_cpu_has_fpu: FPU has been %s", onoff ? "enabled" : "disabled")); | |
| 165 | } | |
| 156 | if (device == NULL || (device->type() != M68020PMMU && device->type() != M68030)) | |
| 157 | { | |
| 158 | DLOG1(("set_cpu_has_fpu: unexpected CPU device")); | |
| 159 | } | |
| 160 | else | |
| 161 | { | |
| 162 | m68ki_cpu_core *cpu = (m68ki_cpu_core *) downcast<legacy_cpu_device *> (device)->token(); | |
| 163 | cpu->has_fpu = onoff; | |
| 164 | DLOG1(("set_cpu_has_fpu: FPU has been %s", onoff ? "enabled" : "disabled")); | |
| 165 | } | |
| 166 | 166 | }*/ |
| 167 | 167 | |
| 168 | 168 | /*************************************************************************** |
| r14559 | r14560 | |
| 240 | 240 | |
| 241 | 241 | // check for NULLPROC: |
| 242 | 242 | // 027C F8FF AND.W #F8FF,SR |
| 243 | // 60FA | |
| 243 | // 60FA BRA *-4 | |
| 244 | 244 | |
| 245 | 245 | if ((next_ir == 0x60fa && last_ir == 0x027c) || (next_ir == 0x027c && last_ir == 0x60fa)) |
| 246 | 246 | { |
| r14559 | r14560 | |
| 465 | 465 | |
| 466 | 466 | if (apollo_csr_get_control_register() & APOLLO_CSR_CR_INTERRUPT_ENABLE) { |
| 467 | 467 | // force parity error (if NMI is enabled) |
| 468 | // | |
| 468 | // cpu_set_input_line_and_vector(&space->device(), 7, ASSERT_LINE, M68K_INT_ACK_AUTOVECTOR); | |
| 469 | 469 | cputag_set_input_line_and_vector(space->machine(), MAINCPU, 7, ASSERT_LINE, M68K_INT_ACK_AUTOVECTOR); |
| 470 | 470 | |
| 471 | 471 | } |
| r14559 | r14560 | |
| 487 | 487 | |
| 488 | 488 | parity_error_offset = offset; |
| 489 | 489 | |
| 490 | // SLOG1(("memory dword write with parity to %08x = %08x & %08x parity_byte=%04x", | |
| 491 | // ram_base_address +offset * 4, data, mem_mask, parity_error_byte_mask)); | |
| 490 | // SLOG1(("memory dword write with parity to %08x = %08x & %08x parity_byte=%04x", | |
| 491 | // ram_base_address +offset * 4, data, mem_mask, parity_error_byte_mask)); | |
| 492 | 492 | |
| 493 | 493 | if (parity_error_handler_is_installed == 0) { |
| 494 | 494 | // no more than 192 read/write handlers may be used |
| r14559 | r14560 | |
| 518 | 518 | DN3000/DN3500 unmapped memory |
| 519 | 519 | ***************************************************************************/ |
| 520 | 520 | |
| 521 | static READ32_HANDLER( apollo_unmapped_r ) | |
| 521 | static READ32_HANDLER( apollo_unmapped_r ) | |
| 522 | 522 | { |
| 523 | 523 | offs_t address = offset * 4; |
| 524 | 524 | |
| r14559 | r14560 | |
| 542 | 542 | SLOG1(("unmapped memory dword read from %08x with mask %08x (ir=%04x)", address , mem_mask, m68k->ir)); |
| 543 | 543 | } |
| 544 | 544 | |
| 545 | // if (address == 0xfffffffc) { | |
| 546 | // // temporary hack for disp7d.dex @ 010456D8 | |
| 547 | // return 0xffffffff; | |
| 548 | // } | |
| 545 | // if (address == 0xfffffffc) { | |
| 546 | // // temporary hack for disp7d.dex @ 010456D8 | |
| 547 | // return 0xffffffff; | |
| 548 | // } | |
| 549 | 549 | /* unmapped; access causes a bus error */ |
| 550 | 550 | apollo_bus_error(space->machine()); |
| 551 | 551 | |
| 552 | 552 | return 0xffffffff; |
| 553 | 553 | } |
| 554 | 554 | |
| 555 | static WRITE32_HANDLER( apollo_unmapped_w ) | |
| 555 | static WRITE32_HANDLER( apollo_unmapped_w ) | |
| 556 | 556 | { |
| 557 | 557 | SLOG(("unmapped memory dword write to %08x = %08x & %08x", offset * 4, data, mem_mask)); |
| 558 | 558 | |
| r14559 | r14560 | |
| 564 | 564 | DN3000/DN3500 ROM write |
| 565 | 565 | ***************************************************************************/ |
| 566 | 566 | |
| 567 | static WRITE32_HANDLER( apollo_rom_w ) | |
| 567 | static WRITE32_HANDLER( apollo_rom_w ) | |
| 568 | 568 | { |
| 569 | 569 | offs_t address = offset * 4; |
| 570 | 570 | offs_t pc = cpu_get_previouspc(&space->device()); |
| r14559 | r14560 | |
| 609 | 609 | |
| 610 | 610 | // set bit AT-Compatible I/O Timeout in CPU Status Register |
| 611 | 611 | // Note: should be set for broken hardware only |
| 612 | // apollo_csr_set_status_register(APOLLO_CSR_SR_ATBUS_IO_TIMEOUT, | |
| 612 | // apollo_csr_set_status_register(APOLLO_CSR_SR_ATBUS_IO_TIMEOUT, APOLLO_CSR_SR_ATBUS_IO_TIMEOUT); | |
| 613 | 613 | return data; |
| 614 | 614 | } |
| 615 | 615 | |
| r14559 | r14560 | |
| 641 | 641 | |
| 642 | 642 | // set bit AT-Compatible I/O Timeout in CPU Status Register |
| 643 | 643 | // Note: should be set for broken hardware only |
| 644 | // apollo_csr_set_status_register(APOLLO_CSR_SR_ATBUS_IO_TIMEOUT, | |
| 644 | // apollo_csr_set_status_register(APOLLO_CSR_SR_ATBUS_IO_TIMEOUT, APOLLO_CSR_SR_ATBUS_IO_TIMEOUT); | |
| 645 | 645 | } |
| 646 | 646 | |
| 647 | 647 | /*************************************************************************** |
| r14559 | r14560 | |
| 782 | 782 | |
| 783 | 783 | AM_RANGE(ATBUS_MEMORY_BASE, ATBUS_MEMORY_END) AM_READWRITE(apollo_atbus_memory_r, apollo_atbus_memory_w) |
| 784 | 784 | |
| 785 | // AM_RANGE(0x03020000, 0x0303ffff) Cache Tag Store (DN4500 only) | |
| 786 | // AM_RANGE(0x04000000, 0x0400ffff) Cache Tag Data (DN4500 only) | |
| 787 | // AM_RANGE(0x0e000000, 0x0fffffff) FPA address space | |
| 785 | // AM_RANGE(0x03020000, 0x0303ffff) Cache Tag Store (DN4500 only) | |
| 786 | // AM_RANGE(0x04000000, 0x0400ffff) Cache Tag Data (DN4500 only) | |
| 787 | // AM_RANGE(0x0e000000, 0x0fffffff) FPA address space | |
| 788 | 788 | |
| 789 | // | |
| 789 | // AM_RANGE(0xf8000000, 0xffffffff) AM_READWRITE(apollo_f8_r, apollo_f8_w) | |
| 790 | 790 | AM_RANGE(0x00000000, 0xffffffff) AM_READWRITE(apollo_unmapped_r, apollo_unmapped_w) |
| 791 | 791 | ADDRESS_MAP_END |
| 792 | 792 | |
| r14559 | r14560 | |
| 817 | 817 | AM_RANGE(0x058000, 0x058007) AM_DEVREADWRITE8( APOLLO_ETH_TAG, threecom3c505_r, threecom3c505_w, 0xffffffff) |
| 818 | 818 | AM_RANGE(0x05f800, 0x05f807) AM_READWRITE8( apollo_fdc_r, apollo_fdc_w, 0xffffffff) |
| 819 | 819 | |
| 820 | // AM_RANGE(0x05d800, 0x05dc07) AM_DEVREADWRITE16( APOLLO_SCREEN_TAG, apollo_mcr_r, apollo_mcr_w, 0xffffffff) | |
| 821 | // AM_RANGE(0xfa0000, 0xfdffff) AM_DEVREADWRITE16( APOLLO_SCREEN_TAG, apollo_mgm_r, apollo_mgm_w, 0xffffffff) | |
| 820 | // AM_RANGE(0x05d800, 0x05dc07) AM_DEVREADWRITE16( APOLLO_SCREEN_TAG, apollo_mcr_r, apollo_mcr_w, 0xffffffff) | |
| 821 | // AM_RANGE(0xfa0000, 0xfdffff) AM_DEVREADWRITE16( APOLLO_SCREEN_TAG, apollo_mgm_r, apollo_mgm_w, 0xffffffff) | |
| 822 | 822 | |
| 823 | 823 | AM_RANGE(ATBUS_IO_BASE, ATBUS_IO_END) AM_READWRITE16(apollo_atbus_io_r, apollo_atbus_io_w, 0xffffffff) |
| 824 | 824 | |
| r14559 | r14560 | |
| 830 | 830 | |
| 831 | 831 | AM_RANGE(ATBUS_MEMORY_BASE, ATBUS_MEMORY_END) AM_READWRITE(apollo_atbus_memory_r, apollo_atbus_memory_w) |
| 832 | 832 | |
| 833 | // | |
| 833 | // AM_RANGE(0xf8000000, 0xffffffff) AM_READWRITE(apollo_f8_r, apollo_f8_w) | |
| 834 | 834 | AM_RANGE(0x00000000, 0xffffffff) AM_READWRITE(apollo_unmapped_r, apollo_unmapped_w) |
| 835 | 835 | ADDRESS_MAP_END |
| 836 | 836 | |
| r14559 | r14560 | |
| 894 | 894 | AM_RANGE(0x058000, 0x058007) AM_DEVREADWRITE8( APOLLO_ETH_TAG, threecom3c505_r, threecom3c505_w, 0xffffffff) |
| 895 | 895 | AM_RANGE(0x05f800, 0x05f807) AM_READWRITE8( apollo_fdc_r, apollo_fdc_w, 0xffffffff) |
| 896 | 896 | |
| 897 | // AM_RANGE(0x05d800, 0x05dc07) AM_DEVREADWRITE16( APOLLO_SCREEN_TAG, apollo_mcr_r, apollo_mcr_w, 0xffffffff) | |
| 898 | // AM_RANGE(0xfa0000, 0xfdffff) AM_DEVREADWRITE16( APOLLO_SCREEN_TAG, apollo_mgm_r, apollo_mgm_w, 0xffffffff) | |
| 897 | // AM_RANGE(0x05d800, 0x05dc07) AM_DEVREADWRITE16( APOLLO_SCREEN_TAG, apollo_mcr_r, apollo_mcr_w, 0xffffffff) | |
| 898 | // AM_RANGE(0xfa0000, 0xfdffff) AM_DEVREADWRITE16( APOLLO_SCREEN_TAG, apollo_mgm_r, apollo_mgm_w, 0xffffffff) | |
| 899 | 899 | |
| 900 | 900 | AM_RANGE(ATBUS_IO_BASE, ATBUS_IO_END) AM_READWRITE16(apollo_atbus_io_r, apollo_atbus_io_w, 0xffffffff) |
| 901 | 901 | |
| r14559 | r14560 | |
| 953 | 953 | |
| 954 | 954 | AM_RANGE(ATBUS_MEMORY_BASE, ATBUS_MEMORY_END) AM_READWRITE(apollo_atbus_memory_r, apollo_atbus_memory_w) |
| 955 | 955 | |
| 956 | // AM_RANGE(0x03020000, 0x0303ffff) Cache Tag Store (DN4500 only) | |
| 957 | // AM_RANGE(0x04000000, 0x0400ffff) Cache Tag Data (DN4500 only) | |
| 956 | // AM_RANGE(0x03020000, 0x0303ffff) Cache Tag Store (DN4500 only) | |
| 957 | // AM_RANGE(0x04000000, 0x0400ffff) Cache Tag Data (DN4500 only) | |
| 958 | 958 | AM_RANGE(0x07000000, 0x0700FFFF) AM_READWRITE8( dn5500_io_protection_map_r, dn5500_io_protection_map_w, 0xffffffff ) |
| 959 | // | |
| 959 | // AM_RANGE(0x0e000000, 0x0fffffff) FPA address space | |
| 960 | 960 | |
| 961 | // | |
| 961 | // AM_RANGE(0xf8000000, 0xffffffff) AM_READWRITE(apollo_f8_r, apollo_f8_w) | |
| 962 | 962 | AM_RANGE(0x00000000, 0xffffffff) AM_READWRITE(apollo_unmapped_r, apollo_unmapped_w) |
| 963 | 963 | ADDRESS_MAP_END |
| 964 | 964 | |
| r14559 | r14560 | |
| 992 | 992 | AM_RANGE(0x058000, 0x058007) AM_DEVREADWRITE8( APOLLO_ETH_TAG, threecom3c505_r, threecom3c505_w, 0xffffffff) |
| 993 | 993 | AM_RANGE(0x05f800, 0x05f807) AM_READWRITE8( apollo_fdc_r, apollo_fdc_w, 0xffffffff) |
| 994 | 994 | |
| 995 | // AM_RANGE(0x05d800, 0x05dc07) AM_DEVREADWRITE16( APOLLO_SCREEN_TAG, apollo_mcr_r, apollo_mcr_w, 0xffffffff) | |
| 996 | // AM_RANGE(0xfa0000, 0xfdffff) AM_DEVREADWRITE16( APOLLO_SCREEN_TAG, apollo_mgm_r, apollo_mgm_w, 0xffffffff) | |
| 995 | // AM_RANGE(0x05d800, 0x05dc07) AM_DEVREADWRITE16( APOLLO_SCREEN_TAG, apollo_mcr_r, apollo_mcr_w, 0xffffffff) | |
| 996 | // AM_RANGE(0xfa0000, 0xfdffff) AM_DEVREADWRITE16( APOLLO_SCREEN_TAG, apollo_mgm_r, apollo_mgm_w, 0xffffffff) | |
| 997 | 997 | |
| 998 | 998 | AM_RANGE(ATBUS_IO_BASE, ATBUS_IO_END) AM_READWRITE16(apollo_atbus_io_r, apollo_atbus_io_w, 0xffffffff) |
| 999 | 999 | |
| r14559 | r14560 | |
| 1005 | 1005 | AM_RANGE(ATBUS_MEMORY_BASE, ATBUS_MEMORY_END) AM_READWRITE(apollo_atbus_memory_r, apollo_atbus_memory_w) |
| 1006 | 1006 | |
| 1007 | 1007 | AM_RANGE(0x07000000, 0x0700FFFF) AM_READWRITE8( dn5500_io_protection_map_r, dn5500_io_protection_map_w, 0xffffffff ) |
| 1008 | // | |
| 1008 | // AM_RANGE(0xf8000000, 0xffffffff) AM_READWRITE(apollo_f8_r, apollo_f8_w) | |
| 1009 | 1009 | AM_RANGE(0x00000000, 0xffffffff) AM_READWRITE(apollo_unmapped_r, apollo_unmapped_w) |
| 1010 | 1010 | ADDRESS_MAP_END |
| 1011 | 1011 | |
| r14559 | r14560 | |
| 1013 | 1013 | Machine Reset |
| 1014 | 1014 | ***************************************************************************/ |
| 1015 | 1015 | |
| 1016 | static MACHINE_RESET( dn3500 ) | |
| 1016 | static MACHINE_RESET( dn3500 ) | |
| 1017 | 1017 | { |
| 1018 | 1018 | device_t *cpu = machine.device(MAINCPU); |
| 1019 | 1019 | |
| r14559 | r14560 | |
| 1048 | 1048 | m68k_set_instruction_hook(cpu, apollo_instruction_hook); |
| 1049 | 1049 | } |
| 1050 | 1050 | |
| 1051 | static void apollo_reset_instr_callback(device_t *device) | |
| 1051 | static void apollo_reset_instr_callback(device_t *device) | |
| 1052 | 1052 | { |
| 1053 | 1053 | DLOG1(("apollo_reset_instr_callback")); |
| 1054 | 1054 | // FIXME: this will reset the CPU too |
| 1055 | // | |
| 1055 | // device->machine().schedule_soft_reset(); // needs to call reset on the devices other than the CPU | |
| 1056 | 1056 | } |
| 1057 | 1057 | |
| 1058 | 1058 | /*************************************************************************** |
| r14559 | r14560 | |
| 1147 | 1147 | |
| 1148 | 1148 | static WRITE8_DEVICE_HANDLER( apollo_kbd_putchar ) { |
| 1149 | 1149 | // put keyboard character to the keyboard sio |
| 1150 | // | |
| 1150 | // DLOG1(("apollo_kbd_putchar: 0x%02x", data)); | |
| 1151 | 1151 | apollo_sio_rx_data(device->machine().device(APOLLO_SIO_TAG), 0, data); |
| 1152 | 1152 | } |
| 1153 | 1153 | |
| r14559 | r14560 | |
| 1212 | 1212 | MCFG_CPU_PROGRAM_MAP(dsp3500_map) |
| 1213 | 1213 | /* terminal hardware */ |
| 1214 | 1214 | MCFG_DEFAULT_LAYOUT( layout_apollo_dsp ) |
| 1215 | // | |
| 1215 | // MCFG_FRAGMENT_ADD( generic_terminal ) | |
| 1216 | 1216 | MCFG_GENERIC_TERMINAL_ADD(TERMINAL_TAG, apollo_terminal_config) |
| 1217 | 1217 | MACHINE_CONFIG_END |
| 1218 | 1218 | |
| r14559 | r14560 | |
| 1247 | 1247 | MCFG_CPU_PROGRAM_MAP(dsp3000_map) |
| 1248 | 1248 | /* terminal hardware */ |
| 1249 | 1249 | MCFG_DEFAULT_LAYOUT( layout_apollo_dsp ) |
| 1250 | // | |
| 1250 | // MCFG_FRAGMENT_ADD( generic_terminal ) | |
| 1251 | 1251 | MCFG_GENERIC_TERMINAL_ADD(TERMINAL_TAG, apollo_terminal_config) |
| 1252 | 1252 | MACHINE_CONFIG_END |
| 1253 | 1253 | |
| r14559 | r14560 | |
| 1277 | 1277 | MCFG_CPU_PROGRAM_MAP(dsp5500_map) |
| 1278 | 1278 | /* terminal hardware */ |
| 1279 | 1279 | MCFG_DEFAULT_LAYOUT( layout_apollo_dsp ) |
| 1280 | // | |
| 1280 | // MCFG_FRAGMENT_ADD( generic_terminal ) | |
| 1281 | 1281 | MCFG_GENERIC_TERMINAL_ADD(TERMINAL_TAG, apollo_terminal_config) |
| 1282 | 1282 | MACHINE_CONFIG_END |
| 1283 | 1283 |
| r14559 | r14560 | |
|---|---|---|
| 342 | 342 | ROM_END |
| 343 | 343 | |
| 344 | 344 | CONS(1996, n64, 0, 0, n64, n64, 0, "Nintendo", "Nintendo 64", GAME_NOT_WORKING | GAME_IMPERFECT_GRAPHICS ) |
| 345 | CONS(1996, n64dd, | |
| 345 | CONS(1996, n64dd, |
| r14559 | r14560 | |
|---|---|---|
| 323 | 323 | DEVICE_INPUT_DEFAULTS_END |
| 324 | 324 | |
| 325 | 325 | //static DEVICE_INPUT_DEFAULTS_START(ega) |
| 326 | // | |
| 326 | // DEVICE_INPUT_DEFAULTS("DSW0",0x30, 0x00) | |
| 327 | 327 | //DEVICE_INPUT_DEFAULTS_END |
| 328 | 328 | |
| 329 | 329 | static SLOT_INTERFACE_START(ibm_isa8_cards) |
| r14559 | r14560 | |
|---|---|---|
| 268 | 268 | m_flashes[0] = machine().device<intelfsh8_device>("flash0"); |
| 269 | 269 | m_flashes[1] = machine().device<intelfsh8_device>("flash1"); |
| 270 | 270 | m_flashes[2] = machine().device<intelfsh8_device>("flash2"); |
| 271 | ||
| 271 | ||
| 272 | 272 | machine().device<nvram_device>("nvram")->set_base(m_ram_base, m_ram->size()); |
| 273 | 273 | m_warm_start = 1; |
| 274 | ||
| 274 | ||
| 275 | 275 | // register for state saving |
| 276 | 276 | save_item(NAME(m_key_line)); |
| 277 | 277 | save_item(NAME(m_irq)); |
| r14559 | r14560 | |
|---|---|---|
| 3 | 3 | TODO: |
| 4 | 4 | |
| 5 | 5 | - 64C PLA dump |
| 6 | - clean up inputs | |
| 7 | - Multiscreen crashes on boot | |
| 8 | ||
| 9 | 805A: lda $01 | |
| 10 | 805C: and #$FE | |
| 11 | 805E: sta $01 | |
| 12 | 8060: m6502_brk#$00 <-- BOOM! | |
| 6 | - clean up inputs | |
| 7 | - Multiscreen crashes on boot | |
| 13 | 8 | |
| 9 | 805A: lda $01 | |
| 10 | 805C: and #$FE | |
| 11 | 805E: sta $01 | |
| 12 | 8060: m6502_brk#$00 <-- BOOM! | |
| 13 | ||
| 14 | 14 | */ |
| 15 | 15 | |
| 16 | 16 | #include "includes/c64.h" |
| r14559 | r14560 | |
| 85 | 85 | { |
| 86 | 86 | int io1 = 1; |
| 87 | 87 | int io2 = 1; |
| 88 | ||
| 88 | ||
| 89 | 89 | UINT8 data = 0; |
| 90 | 90 | |
| 91 | 91 | if (!casram) |
| r14559 | r14560 | |
| 139 | 139 | case 2: // I/O1 |
| 140 | 140 | io1 = 0; |
| 141 | 141 | break; |
| 142 | ||
| 142 | ||
| 143 | 143 | case 3: // I/O2 |
| 144 | 144 | io2 = 0; |
| 145 | 145 | break; |
| r14559 | r14560 | |
| 147 | 147 | break; |
| 148 | 148 | } |
| 149 | 149 | } |
| 150 | ||
| 150 | ||
| 151 | 151 | data |= m_exp->cd_r(space, offset, roml, romh, io1, io2); |
| 152 | 152 | |
| 153 | 153 | return data; |
| r14559 | r14560 | |
| 180 | 180 | int casram, basic, kernal, charom, grw, io, roml, romh; |
| 181 | 181 | |
| 182 | 182 | bankswitch(offset, 0, 0, 0, 1, 0, &casram, &basic, &kernal, &charom, &grw, &io, &roml, &romh); |
| 183 | ||
| 183 | ||
| 184 | 184 | if (!casram) |
| 185 | 185 | { |
| 186 | 186 | m_ram->pointer()[offset] = data; |
| r14559 | r14560 | |
| 223 | 223 | break; |
| 224 | 224 | } |
| 225 | 225 | } |
| 226 | ||
| 226 | ||
| 227 | 227 | m_exp->cd_w(space, offset, data, roml, romh, io1, io2); |
| 228 | 228 | } |
| 229 | 229 |
| r14559 | r14560 | |
|---|---|---|
| 1 | 0.145 | |
| 1 | 0.145u1 | |
| 2 | 2 | |
| 3 | 3 | New System Drivers Supported: |
| 4 | 4 | ----------------------------- |
| 5 | Apollo DN3000 15" Monochrome [Hans Ostermeyer] | |
| 6 | Apollo DN3000 19" Monochrome [Hans Ostermeyer] | |
| 7 | Apollo DSP3000 Server [Hans Ostermeyer] | |
| 8 | Apollo DN3500 15" Monochrome [Hans Ostermeyer] | |
| 9 | Apollo DN3500 19" Monochrome [Hans Ostermeyer] | |
| 10 | Apollo DSP3500 Server [Hans Ostermeyer] | |
| 11 | Apollo DN5500 15" Monochrome [Hans Ostermeyer] | |
| 12 | Apollo DN5500 19" Monochrome [Hans Ostermeyer] | |
| 13 | Apollo DSP5500 Server [Hans Ostermeyer] | |
| 5 | - Apollo DN3000 15" Monochrome [Hans Ostermeyer] | |
| 6 | - Apollo DN3000 19" Monochrome [Hans Ostermeyer] | |
| 7 | - Apollo DSP3000 Server [Hans Ostermeyer] | |
| 8 | - Apollo DN3500 15" Monochrome [Hans Ostermeyer] | |
| 9 | - Apollo DN3500 19" Monochrome [Hans Ostermeyer] | |
| 10 | - Apollo DSP3500 Server [Hans Ostermeyer] | |
| 11 | - Apollo DN5500 15" Monochrome [Hans Ostermeyer] | |
| 12 | - Apollo DN5500 19" Monochrome [Hans Ostermeyer] | |
| 13 | - Apollo DSP5500 Server [Hans Ostermeyer] | |
| 14 | 14 | |
| 15 | 15 | Systems Promoted from GAME_NOT_WORKING: |
| 16 | 16 | --------------------------------------- |
| r14559 | r14560 | |
| 18 | 18 | |
| 19 | 19 | Skeleton drivers: |
| 20 | 20 | ----------------- |
| 21 | - Sanyo SX-16 [minataku] | |
| 22 | ||
| 23 | System Driver Changes: | |
| 24 | ---------------------- | |
| 25 | -c64: Added support for the following cartridge types: [Curt Coder] | |
| 26 | COMAL 80, Dinamic, Fun Play, GeoRAM, Magic Desk, Mikro Assembler, Ocean, | |
| 27 | Rex, System 3, Westermann, Zaxxon, Super Games, Epyx Fast Load, | |
| 28 | Dela EP7x8, Dela EP256, Dela EP64, Rex EP256, Ross, Structured Basic, | |
| 29 | EasyFlash, StarDOS, Warp Speed, ExOS, MACH5, Magic Formel. | |
| 30 | - Added support for the Commodore IEEE-488 cartridge. You can now connect any | |
| 31 | IEEE-488 disk drive to C64 and even another cartridge using the passthru. | |
| 32 | (e.g. mess c64p -exp ieee488 -exp:ieee488:ieee9 sfd1001 -cart2 congo) | |
| 33 | - Added support for .CRT cartridge image files. Only standard cartridges | |
| 34 | (8/16KB) are supported for the moment, soon all will be assimilated. | |
| 35 | ||
| 36 | -lynx: removed game_not_working and game_imperfect_sound flags [Huygens] | |
| 37 | fixed sprite scaling bug (fixed blue lightning). | |
| 38 | Implemented mikey sleep register (viking child, dinolympics timing corrected) | |
| 39 | Fixed timer value reading bug (used for pseudo random number generation in blockout) | |
| 40 | Update of layout screen measures approximately 72x46mm (not 4:3) | |
| 41 | ||
| 42 | -next: Normalize the delegates, split the different NeXT variants [O. Galibert] | |
| 43 | - Handle command-~ | |
| 44 | - Make the floppy work | |
| 45 | -n64: Multithreaded RDP. Speedups of 1.6x to 2.8x have been observed. [Ryan Holtz] | |
| 46 | - Modified VI_V_INTR_REG and VI_V_CURRENT_LINE_REG actually be treated as half-lines, | |
| 47 | not full lines. Fixes Rampage: World Tour video. | |
| 48 | - Modified code to interrupt at the line specified by VI_V_INTR_REG, rather than a | |
| 49 | fixed 60Hz vblank interrupt. | |
| 50 | - Doubled the number of available span structs on the stack, fixes crashing in | |
| 51 | Mario Kart 64, Star Fox 64, and probably others. | |
| 52 | - Partially fix PIF access, several more games recognize cart SRAM, cart FlashROM, | |
| 53 | cart EEPROM, and controller paks | |
| 54 | - Fixed missing text in Super Mario 64 and other games. | |
| 55 | - Added skeleton 64DD driver. Boots the 64DD IPL, but does not emulate the hardware yet. | |
| 56 | - User Note: You will need an unmodified 64DD IPL dump. NOT one that has had the | |
| 57 | first 4K replaced with a CIC-6102 or other game's boot block. | |
| 58 | - Tweaked MI interrupt handling to guard against interrupts getting "lost" | |
| 59 | - Hook up 64DD RTC and interrupts. Please insert disc. | |
| 60 | - Warm reset support. | |
| 61 | - Get Jet Force Gemini to boot and Ocarina of Time to boot without crashing. | |
| 62 | - Use bitmap.fill instead of a manual fill when blanking to avoid trashing memory. | |
| 63 | - Return DP start/end/current/status/clock registers at correct window for RSP to see. | |
| 64 | - Clear DP clock when requested by writing the right bit in DP_STATUS_REG. | |
| 65 | - Avoid modifying SP DMA length register during DMA, to return correct reads | |
| 66 | on SP_RD_LEN and SP_WR_LEN. | |
| 67 | - Fix Super Smash Bros. booting. | |
| 68 | - Don't try to call render_triangle_custom if a DrawTriangle command generated no spans. | |
| 69 | - Include the delay slot when checksumming single-instruction blocks in the MIPS3 and RSP DRCs. | |
| 70 | Fixes Sim City 2000 (Japan). | |
| 71 | - Various PIF fixes, gets Command & Conquer to boot and games to recognize and save to controller paks. | |
| 72 | - Added a trivial Y reject to N64 triangle draw commands. Fixes crashes in both Castlevania games, | |
| 73 | Virtual Pool, and maybe others. | |
| 74 | -ti99: The Grand TI-99 Family Rewrite, using class structures and modern address maps [Michael Zapf] | |
| 75 | -wswan: converted rotation to core method used by lynx [Huygens] | |
| 76 | controls are rotated with the console for vertical games | |
| 77 | buffered sprite table data (fixes pbobble etc.) | |
| 78 | corrected voice audio mode (voice volume is unsigned not signed) | |
| 79 | -vic20: Cleaned up cartridge interface, and added preliminary .CRT image support. [Curt Coder] | |
| 80 | -next: Add information and correct some about the various next roms [Lord Nightmare] | |
| 81 | -a7800: Added reasonable return values for the TIA collision registers [Dan Boris] | |
| 82 | -hec2hp: Fixed regressions [JJ Stacino] | |
| 83 | ||
| 84 | Software Lists: | |
| 85 | ---------------- | |
| 86 | -mbc55x.xml: added software list for the Sanyo MBC-550 and MBC-555 systems [Kaylee] | |
| 87 | ||
| 88 | Source Changes: | |
| 89 | ---------------- | |
| 90 | - ISA Gravis Ultrasound device [Barry Rodewald] | |
| 91 | - Work on et4000 16bbp and 24bbp video modes [Carl] | |
| 92 | - Made generic serial port and RS232 port as slot devices, implemented pc mouse as example device [Carl] | |
| 93 | - 68040 CPU: FSAVE fix, Add correct idle frames, Show the correct virtual map [O. Galibert] | |
| 94 | - Added basic wrapper for Diamond Multimedia (Cirrus Logic based) ISA SVGA [Kaylee] | |
| 95 | - Added null_modem and serial_terminal as slot devices [Carl] | |
| 96 | - i386: Fix cmpsb (dir /s and edit works now) [Carl] | |
| 97 | ||
| 98 | 0.145 | |
| 99 | ||
| 100 | New System Drivers Supported: | |
| 101 | ----------------------------- | |
| 102 | (none) | |
| 103 | ||
| 104 | Systems Promoted from GAME_NOT_WORKING: | |
| 105 | --------------------------------------- | |
| 106 | (none) | |
| 107 | ||
| 108 | Skeleton drivers: | |
| 109 | ----------------- | |
| 21 | 110 | - Olympia People PC [Robert aka rfka01] |
| 22 | 111 | |
| 23 | 112 | System Driver Changes: |
| Previous | 15994 Revisions | Next |