Previous 199869 Revisions Next

r20910 Sunday 10th February, 2013 at 19:58:50 UTC by Curt Coder
(MESS) c64: Added support for the VizaStar cartridge. [Curt Coder]
[hash]c64_cart.xml
[src/mess]mess.mak
[src/mess/machine]c64_vizastar.c* c64_vizastar.h* cbmipt.c cbmipt.h

trunk/hash/c64_cart.xml
r20909r20910
65746574      </part>
65756575   </software>
65766576
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
65776600   <!-- Dummy cartridge entries to allow requirement mappings from c64_flop -->
65786601   
65796602   <software name="cpm">
trunk/src/mess/machine/c64_vizastar.c
r0r20910
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
50const 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
62c64_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
73void c64_vizastar_cartridge_device::device_start()
74{
75}
76
77
78//-------------------------------------------------
79//  c64_cd_r - cartridge data read
80//-------------------------------------------------
81
82UINT8 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}
Property changes on: trunk/src/mess/machine/c64_vizastar.c
Added: svn:mime-type
   + text/plain
Added: svn:eol-style
   + native
trunk/src/mess/machine/c64_vizastar.h
r0r20910
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
27class c64_vizastar_cartridge_device : public device_t,
28                              public device_c64_expansion_card_interface
29{
30public:
31   // construction/destruction
32   c64_vizastar_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
33
34protected:
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
45extern const device_type C64_VIZASTAR;
46
47
48#endif
Property changes on: trunk/src/mess/machine/c64_vizastar.h
Added: svn:eol-style
   + native
Added: svn:mime-type
   + text/plain
trunk/src/mess/machine/cbmipt.c
r20909r20910
11711171   SLOT_INTERFACE_INTERNAL("sw8k", C64_SW8K)
11721172   SLOT_INTERFACE_INTERNAL("system3", C64_SYSTEM3)
11731173   SLOT_INTERFACE_INTERNAL("tdos", C64_TDOS)
1174   SLOT_INTERFACE_INTERNAL("vizastar", C64_VIZASTAR)
11741175   SLOT_INTERFACE_INTERNAL("vizawrite", C64_VW64)
11751176   SLOT_INTERFACE_INTERNAL("warp_speed", C64_WARP_SPEED)
11761177   SLOT_INTERFACE_INTERNAL("westermann", C64_WESTERMANN)
trunk/src/mess/machine/cbmipt.h
r20909r20910
6060#include "machine/c64_system3.h"
6161#include "machine/c64_tdos.h"
6262#include "machine/c64_turbo232.h"
63#include "machine/c64_vizastar.h"
6364#include "machine/c64_vw64.h"
6465#include "machine/c64_warp_speed.h"
6566#include "machine/c64_westermann.h"
trunk/src/mess/mess.mak
r20909r20910
896896   $(MESS_MACHINE)/c64_system3.o   \
897897   $(MESS_MACHINE)/c64_tdos.o  \
898898   $(MESS_MACHINE)/c64_turbo232.o  \
899   $(MESS_MACHINE)/c64_vizastar.o  \
899900   $(MESS_MACHINE)/c64_vw64.o  \
900901   $(MESS_MACHINE)/c64_warp_speed.o    \
901902   $(MESS_MACHINE)/c64_westermann.o    \

Previous 199869 Revisions Next


© 1997-2024 The MAME Team