trunk/hash/c64_cart.xml
| r20909 | r20910 | |
| 6574 | 6574 | </part> |
| 6575 | 6575 | </software> |
| 6576 | 6576 | |
| 6577 | <software name="vizastar"> |
| 6578 | <description>VizaStar XL4</description> |
| 6579 | <year>1984</year> |
| 6580 | <publisher>Viza</publisher> |
| 6581 | <sharedfeat name="compatibility" value="NTSC,PAL"/> |
| 6582 | |
| 6583 | <part name="cart" interface="c64_cart"> |
| 6584 | <feature name="slot" value="vizastar" /> |
| 6585 | <feature name="game" value="1" /> |
| 6586 | <feature name="exrom" value="0" /> |
| 6587 | |
| 6588 | <dataarea name="roml" size="0x1000"> |
| 6589 | <rom name="v" size="0x1000" crc="d17689a0" sha1="4df4d254d7fae916c473d421515b2b74d77e9fd9" offset="0" /> |
| 6590 | </dataarea> |
| 6591 | </part> |
| 6592 | |
| 6593 | <part name="flop1" interface="floppy_5_25"> |
| 6594 | <dataarea name="flop" size="350952"> |
| 6595 | <rom name="vizastar.g64" size="350952" crc="c4f327ac" sha1="c4d35b895f73d7133a72a5d7642e3a588df5370f" offset="0" /> |
| 6596 | </dataarea> |
| 6597 | </part> |
| 6598 | </software> |
| 6599 | |
| 6577 | 6600 | <!-- Dummy cartridge entries to allow requirement mappings from c64_flop --> |
| 6578 | 6601 | |
| 6579 | 6602 | <software name="cpm"> |
trunk/src/mess/machine/c64_vizastar.c
| r0 | r20910 | |
| 1 | /********************************************************************** |
| 2 | |
| 3 | VizaWrite 64 cartridge emulation |
| 4 | |
| 5 | Copyright MESS Team. |
| 6 | Visit http://mamedev.org for licensing and usage restrictions. |
| 7 | |
| 8 | **********************************************************************/ |
| 9 | |
| 10 | /* |
| 11 | |
| 12 | PCB Layout |
| 13 | ---------- |
| 14 | RB84 (C) MICROPORT |
| 15 | |===========================| |
| 16 | |=| | |
| 17 | |=| | |
| 18 | |=| | |
| 19 | |=| | |
| 20 | |=| ROM | |
| 21 | |=| | |
| 22 | |=| | |
| 23 | |=| | |
| 24 | |===========================| |
| 25 | |
| 26 | ROM - Hitachi HN462732G EPROM "V" |
| 27 | |
| 28 | */ |
| 29 | |
| 30 | #include "c64_vizastar.h" |
| 31 | |
| 32 | |
| 33 | |
| 34 | //************************************************************************** |
| 35 | // MACROS/CONSTANTS |
| 36 | //************************************************************************** |
| 37 | |
| 38 | #define UNSCRAMBLE_ADDRESS(_offset) \ |
| 39 | BITSWAP16(_offset,15,14,13,12,5,0,7,10,11,9,8,6,4,3,2,1) |
| 40 | |
| 41 | #define UNSCRAMBLE_DATA(_data) \ |
| 42 | BITSWAP8(_data,7,6,0,5,1,4,2,3) |
| 43 | |
| 44 | |
| 45 | |
| 46 | //************************************************************************** |
| 47 | // DEVICE DEFINITIONS |
| 48 | //************************************************************************** |
| 49 | |
| 50 | const device_type C64_VIZASTAR = &device_creator<c64_vizastar_cartridge_device>; |
| 51 | |
| 52 | |
| 53 | |
| 54 | //************************************************************************** |
| 55 | // LIVE DEVICE |
| 56 | //************************************************************************** |
| 57 | |
| 58 | //------------------------------------------------- |
| 59 | // c64_vizastar_cartridge_device - constructor |
| 60 | //------------------------------------------------- |
| 61 | |
| 62 | c64_vizastar_cartridge_device::c64_vizastar_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 63 | device_t(mconfig, C64_VIZASTAR, "VizaStar 64", tag, owner, clock), |
| 64 | device_c64_expansion_card_interface(mconfig, *this) |
| 65 | { |
| 66 | } |
| 67 | |
| 68 | |
| 69 | //------------------------------------------------- |
| 70 | // device_start - device-specific startup |
| 71 | //------------------------------------------------- |
| 72 | |
| 73 | void c64_vizastar_cartridge_device::device_start() |
| 74 | { |
| 75 | } |
| 76 | |
| 77 | |
| 78 | //------------------------------------------------- |
| 79 | // c64_cd_r - cartridge data read |
| 80 | //------------------------------------------------- |
| 81 | |
| 82 | UINT8 c64_vizastar_cartridge_device::c64_cd_r(address_space &space, offs_t offset, UINT8 data, int sphi2, int ba, int roml, int romh, int io1, int io2) |
| 83 | { |
| 84 | if (!roml) |
| 85 | { |
| 86 | data = UNSCRAMBLE_DATA(m_roml[UNSCRAMBLE_ADDRESS(offset & 0xfff)]); |
| 87 | } |
| 88 | |
| 89 | return data; |
| 90 | } |
trunk/src/mess/machine/c64_vizastar.h
| r0 | r20910 | |
| 1 | /********************************************************************** |
| 2 | |
| 3 | VizaStar 64 cartridge emulation |
| 4 | |
| 5 | Copyright MESS Team. |
| 6 | Visit http://mamedev.org for licensing and usage restrictions. |
| 7 | |
| 8 | **********************************************************************/ |
| 9 | |
| 10 | #pragma once |
| 11 | |
| 12 | #ifndef __VIZASTAR__ |
| 13 | #define __VIZASTAR__ |
| 14 | |
| 15 | |
| 16 | #include "emu.h" |
| 17 | #include "machine/c64exp.h" |
| 18 | |
| 19 | |
| 20 | |
| 21 | //************************************************************************** |
| 22 | // TYPE DEFINITIONS |
| 23 | //************************************************************************** |
| 24 | |
| 25 | // ======================> c64_vizastar_cartridge_device |
| 26 | |
| 27 | class c64_vizastar_cartridge_device : public device_t, |
| 28 | public device_c64_expansion_card_interface |
| 29 | { |
| 30 | public: |
| 31 | // construction/destruction |
| 32 | c64_vizastar_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 33 | |
| 34 | protected: |
| 35 | // device-level overrides |
| 36 | virtual void device_config_complete() { m_shortname = "c64_vizastar"; } |
| 37 | virtual void device_start(); |
| 38 | |
| 39 | // device_c64_expansion_card_interface overrides |
| 40 | virtual UINT8 c64_cd_r(address_space &space, offs_t offset, UINT8 data, int sphi2, int ba, int roml, int romh, int io1, int io2); |
| 41 | }; |
| 42 | |
| 43 | |
| 44 | // device type definition |
| 45 | extern const device_type C64_VIZASTAR; |
| 46 | |
| 47 | |
| 48 | #endif |