Previous 15994 Revisions Next

r4760 Wednesday 20th May, 2009 at 02:56:43 UTC by Jonathan Gevaryahu
[VOTRTNT] add driver for Votrax Type-N-Talk (Lord Nightmare, Kevtris)
[src/mess]mess.mak messdriv.c
[src/mess/drivers]votrtnt.c*
[src/mess/layout]votrtnt.lay*

src/mess/messdriv.c
r4759r4760
12191219   DRIVER( camply128 )
12201220
12211221   /* Votrax */
1222//   DRIVER( votrtnt ) /* Votrax Type-N-Talk */
1222   DRIVER( votrtnt ) /* Votrax Type-N-Talk */
12231223   DRIVER( votrpss ) /* Votrax Personal Speech System */
12241224
12251225/****************Games*******************************************************/
src/mess/mess.mak
r4759r4760
13191319
13201320$(MESSOBJ)/votrax.a: \
13211321   $(MESS_DRIVERS)/votrpss.o \
1322   $(MESS_DRIVERS)/votrtnt.o \
13221323
13231324$(MESSOBJ)/nokia.a: \
13241325   $(MESS_DRIVERS)/mikromik.o \
r4759r4760
14301431$(MESS_DRIVERS)/tec1.o:      $(MESS_LAYOUT)/tec1.lh
14311432$(MESS_DRIVERS)/ut88.o:      $(MESS_LAYOUT)/ut88mini.lh
14321433$(MESS_DRIVERS)/votrpss.o:   $(MESS_LAYOUT)/votrpss.lh
1434$(MESS_DRIVERS)/votrtnt.o:   $(MESS_LAYOUT)/votrtnt.lh
14331435$(MESS_DRIVERS)/vt100.o:   $(MESS_LAYOUT)/vt100.lh
14341436$(MESS_DRIVERS)/x68k.o:      $(MESS_LAYOUT)/x68000.lh
14351437$(MESS_DRIVERS)/z80ne.o:   $(MESS_LAYOUT)/z80ne.lh   \
src/mess/layout/votrtnt.lay
r0r4760
1<?xml version="1.0"?>
2<mamelayout version="2">
3   <element name="background">
4      <rect>
5         <bounds left="0" top="0" right="1" bottom="1" />
6         <color red="0.0" green="0.0" blue="0.0" />
7      </rect>
8   </element>
9
10   <view name="Simple LCD">
11      <!-- Black background -->
12      <bezel element="background">
13         <bounds left="1" top="1" right="10" bottom="5" />
14      </bezel>
15   </view>
16</mamelayout>
src/mess/drivers/votrtnt.c
r0r4760
1/******************************************************************************
2*
3*  Votrax Type-N-Talk Driver
4*  By Jonathan Gevaryahu AKA Lord Nightmare
5*  with loads of help (dumping, code disassembly, schematics, and other
6*  documentation) from Kevin 'kevtris' Horton
7*
8*  The Votrax TNT was sold from some time in early 1981 until at least 1983
9
10******************************************************************************/
11
12/* Core includes */
13#include "driver.h"
14#include "cpu/m6800/m6800.h"
15#include "votrtnt.lh"
16
17/* Components */
18#include "sound/votrax.h"
19#include "machine/6850acia.h"
20
21/* Devices */
22
23
24/******************************************************************************
25 Address Maps
26******************************************************************************/
27
28/* Note: Expansion memory is dynamically mapped in machine/vtech1.c */
29
30static ADDRESS_MAP_START(6802_mem, ADDRESS_SPACE_PROGRAM, 8)
31    ADDRESS_MAP_UNMAP_HIGH
32   ADDRESS_MAP_GLOBAL_MASK(0x7fff)
33    AM_RANGE(0x0000, 0x07ff) AM_RAM AM_MIRROR(0x9800)/* RAM, 2114*2 (0x400 bytes) mirrored 4x */
34   AM_RANGE(0x2000, 0x2000) AM_NOP AM_MIRROR(0x9ffe)//AM_DEVREADWRITE("acia_0",aciastat_r,aciactrl_w) AM_MIRROR(0x9ffe)/* 6850 ACIA */
35   AM_RANGE(0x2001, 0x2001) AM_NOP AM_MIRROR(0x9ffe)//AM_DEVREADWRITE("acia_0",aciadata_r,aciadata_w) AM_MIRROR(0x9ffe)/* 6850 ACIA */
36   AM_RANGE(0x4000, 0x4000) AM_NOP AM_MIRROR(0x9fff)/* low 6 bits write to 6 bit input of sc-01-a; high 2 bits are ignored (but by adding a buffer chip could be made to control the inflection bits of the sc-01-a which are normally grouned on the tnt) */
37   AM_RANGE(0x6000, 0x6fff) AM_ROM AM_MIRROR(0x9000)/* ROM in potted block */
38ADDRESS_MAP_END
39
40
41/******************************************************************************
42 Input Ports
43******************************************************************************/
44
45static INPUT_PORTS_START(votrtnt)
46   PORT_START("DSW1") /* not connected to cpu, each switch is connected directly to the output of a 4040 counter dividing the cpu m1? clock to feed the 6850 ACIA. Setting more than one switch on is a bad idea. see tnt_schematic.jpg */
47   PORT_DIPNAME( 0xFF, 0x00, "Baud Rate" )   PORT_DIPLOCATION("SW1:1,2,3,4,5,6,7,8")
48   PORT_DIPSETTING(    0x01, "75" )
49   PORT_DIPSETTING(    0x02, "150" )
50   PORT_DIPSETTING(    0x04, "300" )
51   PORT_DIPSETTING(    0x08, "600" )
52   PORT_DIPSETTING(    0x10, "1200" )
53   PORT_DIPSETTING(    0x20, "2400" )
54   PORT_DIPSETTING(    0x40, "4800" )
55   PORT_DIPSETTING(    0x80, "9600" )
56INPUT_PORTS_END
57
58
59/******************************************************************************
60 Machine Drivers
61******************************************************************************/
62
63static MACHINE_DRIVER_START(votrtnt)
64    /* basic machine hardware */
65    MDRV_CPU_ADD("maincpu", M6802, XTAL_2_4576MHz)  /* 2.4576MHz XTAL, verified; divided by 4 inside the m6802*/
66    MDRV_CPU_PROGRAM_MAP(6802_mem)
67    MDRV_QUANTUM_TIME(HZ(60))
68
69    /* video hardware */
70    MDRV_DEFAULT_LAYOUT(layout_votrtnt)
71
72    /* serial hardware */
73    //MDRV_ACIA6850_ADD("acia_0", acia_intf)
74
75    /* sound hardware */
76   //MDRV_SPEAKER_STANDARD_MONO("mono")
77   //MDRV_SOUND_ADD("sc-01-a", VOTRAX, 1700000) /* 1.70 MHz? needs verify */
78   //MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25)
79
80   /* printer */
81   //MDRV_PRINTER_ADD("printer")
82
83MACHINE_DRIVER_END
84
85
86
87/******************************************************************************
88 ROM Definitions
89******************************************************************************/
90
91ROM_START(votrtnt)
92    ROM_REGION(0x10000, "maincpu", 0)
93   ROM_LOAD("cn49752n.bin", 0x6000, 0x1000, CRC(a44e1af3) SHA1(af83b9e84f44c126b24ee754a22e34ca992a8d3d)) /* 2332 mask rom inside potted brick */
94
95ROM_END
96
97
98
99/******************************************************************************
100 System Config
101******************************************************************************/
102static SYSTEM_CONFIG_START(votrtnt)
103// write me!
104SYSTEM_CONFIG_END
105
106/******************************************************************************
107 Stuff that belongs in machine/votrtnt.c
108******************************************************************************/
109/*
110static ACIA6850_INTERFACE( acia_intf )
111{
112   9600, // rx clock, actually based on dipswitches
113   9600, // tx clock, actually based on dipswitches
114   DEVCB_NULL, // rx callback
115   DEVCB_NULL, // tx callback
116   DEVCB_NULL,
117   DEVCB_NULL,
118   DEVCB_NULL,
119   DEVCB_NULL
120};*/
121
122/******************************************************************************
123 Drivers
124******************************************************************************/
125
126/*    YEAR  NAME        PARENT      COMPAT  MACHINE     INPUT   INIT CONFIG      COMPANY                     FULLNAME                            FLAGS */
127COMP( 1981, votrtnt,   0,          0,      votrtnt,   votrtnt, 0,   votrtnt,   "Votrax",        "Type-N-Talk",                        GAME_NOT_WORKING )
128

Previous 15994 Revisions Next


© 1998-2018 The MESS Team