src/mess/drivers/votrtnt.c
| r0 | r4760 | |
| 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 | |
| 30 | static 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 */ |
| 38 | ADDRESS_MAP_END |
| 39 | |
| 40 | |
| 41 | /****************************************************************************** |
| 42 | Input Ports |
| 43 | ******************************************************************************/ |
| 44 | |
| 45 | static 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" ) |
| 56 | INPUT_PORTS_END |
| 57 | |
| 58 | |
| 59 | /****************************************************************************** |
| 60 | Machine Drivers |
| 61 | ******************************************************************************/ |
| 62 | |
| 63 | static 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 | |
| 83 | MACHINE_DRIVER_END |
| 84 | |
| 85 | |
| 86 | |
| 87 | /****************************************************************************** |
| 88 | ROM Definitions |
| 89 | ******************************************************************************/ |
| 90 | |
| 91 | ROM_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 | |
| 95 | ROM_END |
| 96 | |
| 97 | |
| 98 | |
| 99 | /****************************************************************************** |
| 100 | System Config |
| 101 | ******************************************************************************/ |
| 102 | static SYSTEM_CONFIG_START(votrtnt) |
| 103 | // write me! |
| 104 | SYSTEM_CONFIG_END |
| 105 | |
| 106 | /****************************************************************************** |
| 107 | Stuff that belongs in machine/votrtnt.c |
| 108 | ******************************************************************************/ |
| 109 | /* |
| 110 | static 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 */ |
| 127 | COMP( 1981, votrtnt, 0, 0, votrtnt, votrtnt, 0, votrtnt, "Votrax", "Type-N-Talk", GAME_NOT_WORKING ) |
| 128 | |