Previous 15994 Revisions Next

r13124 Friday 28th October, 2011 at 11:09:14 UTC by Robbbert
UT88 modernised
[src/mess/drivers]ut88.c
[src/mess/includes]ut88.h
[src/mess/machine]ut88.c
[src/mess/video]ut88.c

src/mess/machine/ut88.c
r13123r13124
1818/* Driver initialization */
1919DRIVER_INIT(ut88)
2020{
21   /* set initialy ROM to be visible on first bank */
21   /* set initially ROM to be visible on first bank */
2222   UINT8 *RAM = machine.region("maincpu")->base();
23   memset(RAM,0x0000,0x0800); // make frist page empty by default
23   memset(RAM,0x0000,0x0800); // make first page empty by default
2424   memory_configure_bank(machine, "bank1", 1, 2, RAM, 0x0000);
2525   memory_configure_bank(machine, "bank1", 0, 2, RAM, 0xf800);
2626}
2727
28static READ8_DEVICE_HANDLER (ut88_8255_portb_r )
28READ8_MEMBER( ut88_state::ut88_8255_portb_r )
2929{
30   ut88_state *state = device->machine().driver_data<ut88_state>();
31   UINT8 key = 0xff;
32   if ((state->m_keyboard_mask & 0x01)!=0) { key &= input_port_read(device->machine(),"LINE0"); }
33   if ((state->m_keyboard_mask & 0x02)!=0) { key &= input_port_read(device->machine(),"LINE1"); }
34   if ((state->m_keyboard_mask & 0x04)!=0) { key &= input_port_read(device->machine(),"LINE2"); }
35   if ((state->m_keyboard_mask & 0x08)!=0) { key &= input_port_read(device->machine(),"LINE3"); }
36   if ((state->m_keyboard_mask & 0x10)!=0) { key &= input_port_read(device->machine(),"LINE4"); }
37   if ((state->m_keyboard_mask & 0x20)!=0) { key &= input_port_read(device->machine(),"LINE5"); }
38   if ((state->m_keyboard_mask & 0x40)!=0) { key &= input_port_read(device->machine(),"LINE6"); }
39   if ((state->m_keyboard_mask & 0x80)!=0) { key &= input_port_read(device->machine(),"LINE7"); }
40   return key;
30   UINT8 i, data = 0xff;
31   char kbdrow[12];
32   for (i = 0; i < 8; i++)
33   {
34      if (BIT(m_keyboard_mask, i))
35      {
36         sprintf(kbdrow,"LINE%d", i);
37         data &= input_port_read(machine(), kbdrow);
38      }
39   }
40   return data;
4141}
4242
43static READ8_DEVICE_HANDLER (ut88_8255_portc_r )
43READ8_MEMBER( ut88_state::ut88_8255_portc_r )
4444{
45   return input_port_read(device->machine(), "LINE8");
45   return input_port_read(machine(), "LINE8");
4646}
4747
48static WRITE8_DEVICE_HANDLER (ut88_8255_porta_w )
48WRITE8_MEMBER( ut88_state::ut88_8255_porta_w )
4949{
50   ut88_state *state = device->machine().driver_data<ut88_state>();
51   state->m_keyboard_mask = data ^ 0xff;
50   m_keyboard_mask = data ^ 0xff;
5251}
5352
5453I8255A_INTERFACE( ut88_ppi8255_interface )
5554{
5655   DEVCB_NULL,
57   DEVCB_HANDLER(ut88_8255_porta_w),
58   DEVCB_HANDLER(ut88_8255_portb_r),
56   DEVCB_DRIVER_MEMBER(ut88_state, ut88_8255_porta_w),
57   DEVCB_DRIVER_MEMBER(ut88_state, ut88_8255_portb_r),
5958   DEVCB_NULL,
60   DEVCB_HANDLER(ut88_8255_portc_r),
59   DEVCB_DRIVER_MEMBER(ut88_state, ut88_8255_portc_r),
6160   DEVCB_NULL,
6261};
6362
r13123r13124
7574}
7675
7776
78READ8_HANDLER( ut88_keyboard_r )
77READ8_MEMBER( ut88_state::ut88_keyboard_r )
7978{
80   i8255_device *ppi = space->machine().device<i8255_device>("ppi8255");
81   return ppi->read(*space, offset^0x03);
79   return m_ppi->read(space, offset^0x03);
8280}
8381
8482
85WRITE8_HANDLER( ut88_keyboard_w )
83WRITE8_MEMBER( ut88_state::ut88_keyboard_w )
8684{
87   i8255_device *ppi = space->machine().device<i8255_device>("ppi8255");
88   ppi->write(*space, offset^0x03, data);
85   m_ppi->write(space, offset^0x03, data);
8986}
9087
91WRITE8_HANDLER( ut88_sound_w )
88WRITE8_MEMBER( ut88_state::ut88_sound_w )
9289{
93   device_t *dac_device = space->machine().device("dac");
94   dac_data_w(dac_device, data); //beeper
95   space->machine().device<cassette_image_device>(CASSETTE_TAG)->output(data & 0x01 ? 1 : -1);
90   dac_data_w(m_dac, data); //beeper
91   m_cass->output(BIT(data, 0) ? 1 : -1);
9692}
9793
9894
99READ8_HANDLER( ut88_tape_r )
95READ8_MEMBER( ut88_state::ut88_tape_r )
10096{
101   double level = space->machine().device<cassette_image_device>(CASSETTE_TAG)->input();
102   if (level <  0) {
103         return 0x00;
104   }
105   return 0xff;
97   double level = m_cass->input();
98   return (level <  0) ? 0 : 0xff;
10699}
107100
108READ8_HANDLER( ut88mini_keyboard_r )
101READ8_MEMBER( ut88_state::ut88mini_keyboard_r )
109102{
110103   // This is real keyboard implementation
111   UINT8 *keyrom1 = space->machine().region("maincpu")->base()+ 0x10000;
112   UINT8 *keyrom2 = space->machine().region("maincpu")->base()+ 0x10100;
104   UINT8 *keyrom1 = machine().region("proms")->base();
105   UINT8 *keyrom2 = machine().region("proms")->base()+100;
113106
114   UINT8 key = keyrom2[input_port_read(space->machine(), "LINE1")];
115   // if keyboard 2nd part returned 0 on 4th bit output from
107   UINT8 key = keyrom2[input_port_read(machine(), "LINE1")];
108
109   // if keyboard 2nd part returned 0 on 4th bit, output from
116110   // first part is used
117   if ((key & 0x08) ==0x00) {
118      key = keyrom1[input_port_read(space->machine(), "LINE0")];
119   }
111
112   if (!BIT(key, 3))
113      key = keyrom1[input_port_read(machine(), "LINE0")];
114
120115   // for delete key there is special key producing code 0x80
121   key = (input_port_read(space->machine(), "LINE2") & 0x80)==0x80 ? key : 0x80;
122   // If key 0 is pressed it value is 0x10 this is done by additional
116
117   key = (BIT(input_port_read(machine(), "LINE2"), 7)) ? key : 0x80;
118
119   // If key 0 is pressed its value is 0x10 this is done by additional
123120   // discrete logic
124   key = (input_port_read(space->machine(), "LINE0") & 0x01)==0x01 ? key : 0x10;
121
122   key = (BIT(input_port_read(machine(), "LINE0"), 0)) ? key : 0x10;
125123   return key;
126124}
127125
128126
129WRITE8_HANDLER( ut88mini_write_led )
127WRITE8_MEMBER( ut88_state::ut88mini_write_led )
130128{
131   ut88_state *state = space->machine().driver_data<ut88_state>();
132      switch(offset) {
133         case 0  : state->m_lcd_digit[4] = (data >> 4) & 0x0f;
134                        state->m_lcd_digit[5] = data & 0x0f;
135                        break;
136         case 1  : state->m_lcd_digit[2] = (data >> 4) & 0x0f;
137                        state->m_lcd_digit[3] = data & 0x0f;
138                        break;
139         case 2  : state->m_lcd_digit[0] = (data >> 4) & 0x0f;
140                        state->m_lcd_digit[1] = data & 0x0f;
141                        break;
129   switch(offset)
130   {
131      case 0: m_lcd_digit[4] = (data >> 4) & 0x0f;
132         m_lcd_digit[5] = data & 0x0f;
133         break;
134      case 1: m_lcd_digit[2] = (data >> 4) & 0x0f;
135         m_lcd_digit[3] = data & 0x0f;
136         break;
137      case 2: m_lcd_digit[0] = (data >> 4) & 0x0f;
138         m_lcd_digit[1] = data & 0x0f;
139         break;
142140      }
143141}
144142
r13123r13124
154152{
155153   ut88_state *state = machine.driver_data<ut88_state>();
156154   int i;
157   for (i=0;i<6;i++) {
155   for (i=0;i<6;i++)
158156      output_set_digit_value(i, hex_to_7seg[state->m_lcd_digit[i]]);
159   }
160157}
161158
162159
163160DRIVER_INIT(ut88mini)
164161{
165
166162}
163
167164MACHINE_START( ut88mini )
168165{
169166   machine.scheduler().timer_pulse(attotime::from_hz(60), FUNC(update_display));
src/mess/video/ut88.c
r13123r13124
77****************************************************************************/
88
99
10#include "emu.h"
1110#include "includes/ut88.h"
1211
1312
r13123r13124
3534   {
3635      for(x = 0; x < 64; x++ )
3736      {
38         int code = state->m_video_ram[ x + y*64 ] & 0x7f;
39         int attr = state->m_video_ram[ x+1 + y*64 ] & 0x80;
40         drawgfx_opaque(bitmap, NULL, screen->machine().gfx[0],  code | attr, 0, 0,0, x*8,y*8);
37         int code = state->m_p_videoram[ x + y*64 ] & 0x7f;
38         int attr = state->m_p_videoram[ x+1 + y*64 ] & 0x80;
39         drawgfx_opaque(bitmap, NULL, screen->machine().gfx[0], code | attr, 0, 0,0, x*8,y*8);
4140      }
4241   }
4342   return 0;
src/mess/includes/ut88.h
r13123r13124
77#ifndef UT88_H_
88#define UT88_H_
99
10#include "emu.h"
11#include "cpu/i8085/i8085.h"
12#include "sound/dac.h"
13#include "sound/wave.h"
1014#include "machine/i8255.h"
15#include "imagedev/cassette.h"
1116
17
1218class ut88_state : public driver_device
1319{
1420public:
1521   ut88_state(const machine_config &mconfig, device_type type, const char *tag)
16      : driver_device(mconfig, type, tag) { }
22      : driver_device(mconfig, type, tag),
23   m_cass(*this, CASSETTE_TAG),
24   m_ppi(*this, "ppi8255"),
25   m_dac(*this, "dac")
26   { }
1727
18   UINT8 *m_video_ram;
28   required_device<cassette_image_device> m_cass;
29   optional_device<i8255_device> m_ppi;
30   optional_device<device_t> m_dac;
31   DECLARE_READ8_MEMBER(ut88_keyboard_r);
32   DECLARE_WRITE8_MEMBER(ut88_keyboard_w);
33   DECLARE_WRITE8_MEMBER(ut88_sound_w);
34   DECLARE_READ8_MEMBER(ut88_tape_r);
35   DECLARE_READ8_MEMBER(ut88mini_keyboard_r);
36   DECLARE_WRITE8_MEMBER(ut88mini_write_led);
37   DECLARE_READ8_MEMBER(ut88_8255_portb_r);
38   DECLARE_READ8_MEMBER(ut88_8255_portc_r);
39   DECLARE_WRITE8_MEMBER(ut88_8255_porta_w);
40   UINT8 *m_p_videoram;
1941   int m_keyboard_mask;
2042   int m_lcd_digit[6];
2143};
r13123r13124
2749
2850extern DRIVER_INIT( ut88 );
2951extern MACHINE_RESET( ut88 );
30extern READ8_HANDLER( ut88_keyboard_r );
31extern WRITE8_HANDLER( ut88_keyboard_w );
32extern WRITE8_HANDLER( ut88_sound_w );
33extern READ8_HANDLER( ut88_tape_r );
34
35extern DRIVER_INIT( ut88mini );
3652extern MACHINE_START( ut88mini );
3753extern MACHINE_RESET( ut88mini );
38extern READ8_HANDLER( ut88mini_keyboard_r );
39extern WRITE8_HANDLER( ut88mini_write_led );
54extern DRIVER_INIT( ut88mini );
4055
4156/*----------- defined in video/ut88.c -----------*/
4257
src/mess/drivers/ut88.c
r13123r13124
55        09/03/2008 Keyboard fixed, sound added.
66        06/03/2008 Preliminary driver.
77
8UT88MINI
9********
10Need instructions...
11When started you enter a one-key command, followed by whatever parameters
12are needed.
13
14Pressing 1 will allow entry of bytes into RAM, however the system doesn't
15allow you to view memory (afaik).
16
17Command 3 does a test of the display, however the rest are a mystery.
18
19Paste facility was tested but doesn't work, so all code remnants removed.
20
821****************************************************************************/
22#define ADDRESS_MAP_MODERN
923
10
11#include "emu.h"
12#include "cpu/i8085/i8085.h"
13#include "sound/dac.h"
14#include "sound/wave.h"
1524#include "includes/ut88.h"
16#include "imagedev/cassette.h"
1725#include "formats/rk_cas.h"
1826#include "ut88mini.lh"
1927
2028static GFXDECODE_START( ut88 )
21   GFXDECODE_ENTRY( "gfx1", 0x0000, ut88_charlayout, 0, 1 )
29   GFXDECODE_ENTRY( "chargen", 0x0000, ut88_charlayout, 0, 1 )
2230GFXDECODE_END
2331
2432/* Address maps */
25static ADDRESS_MAP_START(ut88mini_mem, AS_PROGRAM, 8)
33static ADDRESS_MAP_START( ut88mini_mem, AS_PROGRAM, 8, ut88_state )
2634   ADDRESS_MAP_UNMAP_HIGH
27    AM_RANGE( 0x0000, 0x03ff ) AM_ROM  // System ROM
28    AM_RANGE( 0xc000, 0xc3ff ) AM_RAM  // RAM
29    AM_RANGE( 0x9000, 0x9fff ) AM_WRITE(ut88mini_write_led) // 7seg LED
35   AM_RANGE( 0x0000, 0x03ff ) AM_ROM  // System ROM
36   AM_RANGE( 0xc000, 0xc3ff ) AM_RAM  // RAM
37   AM_RANGE( 0x9000, 0x9fff ) AM_WRITE(ut88mini_write_led) // 7seg LED
3038ADDRESS_MAP_END
3139
32static ADDRESS_MAP_START(ut88_mem, AS_PROGRAM, 8)
40static ADDRESS_MAP_START( ut88_mem, AS_PROGRAM, 8, ut88_state )
3341   AM_RANGE( 0x0000, 0x07ff ) AM_RAMBANK("bank1") // First bank
34    AM_RANGE( 0x0800, 0xdfff ) AM_RAM  // RAM
35    AM_RANGE( 0xe000, 0xe7ff ) AM_RAM  // Video RAM (not used)
36    AM_RANGE( 0xe800, 0xefff ) AM_RAM  AM_BASE_MEMBER(ut88_state, m_video_ram) // Video RAM
37    AM_RANGE( 0xf400, 0xf7ff ) AM_RAM  // System RAM
38    AM_RANGE( 0xf800, 0xffff ) AM_ROM  // System ROM
42   AM_RANGE( 0x0800, 0xdfff ) AM_RAM  // RAM
43   AM_RANGE( 0xe000, 0xe7ff ) AM_RAM  // Video RAM (not used)
44   AM_RANGE( 0xe800, 0xefff ) AM_RAM AM_BASE(m_p_videoram) // Video RAM
45   AM_RANGE( 0xf400, 0xf7ff ) AM_RAM  // System RAM
46   AM_RANGE( 0xf800, 0xffff ) AM_ROM  // System ROM
3947ADDRESS_MAP_END
4048
41static ADDRESS_MAP_START( ut88mini_io , AS_IO, 8)
42   AM_RANGE( 0xA0, 0xA0) AM_READ ( ut88mini_keyboard_r )
43   AM_RANGE( 0xA1, 0xA1) AM_READ ( ut88_tape_r )
49static ADDRESS_MAP_START( ut88mini_io, AS_IO, 8, ut88_state )
50   AM_RANGE( 0xA0, 0xA0) AM_READ(ut88mini_keyboard_r)
51   AM_RANGE( 0xA1, 0xA1) AM_READ(ut88_tape_r)
4452ADDRESS_MAP_END
4553
46static ADDRESS_MAP_START( ut88_io , AS_IO, 8)
47   AM_RANGE( 0x04, 0x07) AM_READWRITE ( ut88_keyboard_r, ut88_keyboard_w )
48   AM_RANGE( 0xA1, 0xA1) AM_READWRITE ( ut88_tape_r,     ut88_sound_w     )
54static ADDRESS_MAP_START( ut88_io, AS_IO, 8, ut88_state )
55   AM_RANGE( 0x04, 0x07) AM_READWRITE(ut88_keyboard_r, ut88_keyboard_w)
56   AM_RANGE( 0xA1, 0xA1) AM_READWRITE(ut88_tape_r, ut88_sound_w)
4957ADDRESS_MAP_END
5058
5159/* Input ports */
r13123r13124
143151
144152static INPUT_PORTS_START( ut88mini )
145153   PORT_START("LINE0")
146   PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_0) PORT_CHAR('0')
147   PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_1) PORT_CHAR('1')
148   PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_2) PORT_CHAR('2')
149   PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_3) PORT_CHAR('3')
150   PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_4) PORT_CHAR('4')
151   PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_5) PORT_CHAR('5')
152   PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_6) PORT_CHAR('6')
153   PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_7) PORT_CHAR('7')
154   PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYPAD) PORT_CODE(KEYCODE_0)
155   PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYPAD) PORT_CODE(KEYCODE_1)
156   PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYPAD) PORT_CODE(KEYCODE_2)
157   PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYPAD) PORT_CODE(KEYCODE_3)
158   PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYPAD) PORT_CODE(KEYCODE_4)
159   PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYPAD) PORT_CODE(KEYCODE_5)
160   PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYPAD) PORT_CODE(KEYCODE_6)
161   PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYPAD) PORT_CODE(KEYCODE_7)
154162
155163   PORT_START("LINE1")
156   PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_8) PORT_CHAR('8')
157   PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_9) PORT_CHAR('9')
158   PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_A) PORT_CHAR('A')
159   PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_B) PORT_CHAR('B')
160   PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_C) PORT_CHAR('C')
161   PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_D) PORT_CHAR('D')
162   PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_E) PORT_CHAR('E')
163   PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_F) PORT_CHAR('F')
164   PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYPAD) PORT_CODE(KEYCODE_8)
165   PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYPAD) PORT_CODE(KEYCODE_9)
166   PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYPAD) PORT_CODE(KEYCODE_A)
167   PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYPAD) PORT_CODE(KEYCODE_B)
168   PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYPAD) PORT_CODE(KEYCODE_C)
169   PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYPAD) PORT_CODE(KEYCODE_D)
170   PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYPAD) PORT_CODE(KEYCODE_E)
171   PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYPAD) PORT_CODE(KEYCODE_F)
164172
165173   PORT_START("LINE2")
166   PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Backspace") PORT_CODE(KEYCODE_BACKSPACE) PORT_CHAR(8)
174   PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYPAD) PORT_NAME("Backspace") PORT_CODE(KEYCODE_BACKSPACE)
167175INPUT_PORTS_END
168176
169177static const cassette_interface ut88_cassette_interface =
r13123r13124
178186/* Machine driver */
179187static MACHINE_CONFIG_START( ut88, ut88_state )
180188   /* basic machine hardware */
181    MCFG_CPU_ADD("maincpu", I8080, 2000000)
182    MCFG_CPU_PROGRAM_MAP(ut88_mem)
183    MCFG_CPU_IO_MAP(ut88_io)
184    MCFG_MACHINE_RESET( ut88 )
189   MCFG_CPU_ADD("maincpu", I8080, 2000000)
190   MCFG_CPU_PROGRAM_MAP(ut88_mem)
191   MCFG_CPU_IO_MAP(ut88_io)
192   MCFG_MACHINE_RESET( ut88 )
185193
186   MCFG_I8255A_ADD( "ppi8255", ut88_ppi8255_interface )
187
188    /* video hardware */
194   /* video hardware */
189195   MCFG_SCREEN_ADD("screen", RASTER)
190196   MCFG_SCREEN_REFRESH_RATE(50)
191197   MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */
192198   MCFG_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16)
193199   MCFG_SCREEN_SIZE(64*8, 28*8)
194200   MCFG_SCREEN_VISIBLE_AREA(0, 64*8-1, 0, 28*8-1)
195    MCFG_SCREEN_UPDATE(ut88)
196
201   MCFG_VIDEO_START(ut88)
202   MCFG_SCREEN_UPDATE(ut88)
197203   MCFG_PALETTE_LENGTH(2)
198204   MCFG_PALETTE_INIT(black_and_white)
199205   MCFG_GFXDECODE( ut88 )
200206
201    MCFG_VIDEO_START(ut88)
202
203    /* audio hardware */
207   /* audio hardware */
204208   MCFG_SPEAKER_STANDARD_MONO("mono")
205209   MCFG_SOUND_ADD("dac", DAC, 0)
206210   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25)
207211   MCFG_SOUND_WAVE_ADD(WAVE_TAG, CASSETTE_TAG)
208212   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25)
209213
214   /* Devices */
215   MCFG_I8255A_ADD( "ppi8255", ut88_ppi8255_interface )
210216   MCFG_CASSETTE_ADD( CASSETTE_TAG, ut88_cassette_interface )
211217MACHINE_CONFIG_END
212218
213219static MACHINE_CONFIG_START( ut88mini, ut88_state )
214220   /* basic machine hardware */
215    MCFG_CPU_ADD("maincpu", I8080, 2000000)
216    MCFG_CPU_PROGRAM_MAP(ut88mini_mem)
217    MCFG_CPU_IO_MAP(ut88mini_io)
221   MCFG_CPU_ADD("maincpu", I8080, 2000000)
222   MCFG_CPU_PROGRAM_MAP(ut88mini_mem)
223   MCFG_CPU_IO_MAP(ut88mini_io)
218224   MCFG_MACHINE_START(ut88mini)
219225   MCFG_MACHINE_RESET( ut88mini )
220226
221227   /* video hardware */
222228   MCFG_DEFAULT_LAYOUT(layout_ut88mini)
223229
230   /* Cassette */
231   MCFG_SPEAKER_STANDARD_MONO("mono")
232   MCFG_SOUND_WAVE_ADD(WAVE_TAG, CASSETTE_TAG)
233   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25)
224234   MCFG_CASSETTE_ADD( CASSETTE_TAG, ut88_cassette_interface )
225235MACHINE_CONFIG_END
226236
r13123r13124
228238ROM_START( ut88 )
229239   ROM_REGION( 0x10000, "maincpu", ROMREGION_ERASEFF )
230240   ROM_LOAD( "ut88.rom", 0xf800, 0x0800, CRC(f433202e) SHA1(a5808a4f68fb10eb7f17f2a05c3b8479fec0e05d) )
231   ROM_REGION(0x0800, "gfx1",0)
241   ROM_REGION(0x0800, "chargen",0)
232242   ROM_LOAD ("ut88.fnt", 0x0000, 0x0800, CRC(874b4d29) SHA1(357efbb295cd9e47fa97d4d03f4f1859a915b5c3) )
233243ROM_END
234244
235245ROM_START( ut88mini )
236  ROM_REGION( 0x10200, "maincpu", ROMREGION_ERASEFF )
237  ROM_LOAD( "ut88mini.rom", 0x0000, 0x0400, CRC(ce9213ee) SHA1(16b71b3051a800386d664dbcc5983b783475d0c6) )
238  ROM_LOAD( "ut88key1.rom", 0x10000, 0x0100, CRC(ecfe42c7) SHA1(d7f10bbb05934150c1a258db1c8b4eb65771af59) )
239  ROM_LOAD( "ut88key2.rom", 0x10100, 0x0100, CRC(96324d23) SHA1(9dca3f639fc29d87df56505b3dde668ef2849da3) )
246   ROM_REGION( 0x10000, "maincpu", ROMREGION_ERASEFF )
247   ROM_LOAD( "ut88mini.rom", 0x0000, 0x0400, CRC(ce9213ee) SHA1(16b71b3051a800386d664dbcc5983b783475d0c6) )
248   ROM_REGION( 0x200, "proms", 0 )
249   ROM_LOAD( "ut88key1.rom", 0x0000, 0x0100, CRC(ecfe42c7) SHA1(d7f10bbb05934150c1a258db1c8b4eb65771af59) )
250   ROM_LOAD( "ut88key2.rom", 0x0100, 0x0100, CRC(96324d23) SHA1(9dca3f639fc29d87df56505b3dde668ef2849da3) )
240251ROM_END
241252
242253/* Driver */
243254
244/*    YEAR  NAME       PARENT   COMPAT  MACHINE     INPUT       INIT        COMPANY   FULLNAME       FLAGS */
245COMP( 1989, ut88mini,  0,      0,      ut88mini,   ut88mini,   ut88mini,   "<unknown>",       "UT-88 mini",    GAME_NO_SOUND)
246COMP( 1989, ut88,      ut88mini,0,      ut88,      ut88,      ut88,      "<unknown>",       "UT-88",       0)
255/*    YEAR  NAME       PARENT    COMPAT  MACHINE     INPUT       INIT        COMPANY     FULLNAME       FLAGS */
256COMP( 1989, ut88mini,  0,        0,      ut88mini,   ut88mini,   ut88mini, "<unknown>", "UT-88 mini", 0)
257COMP( 1989, ut88,      ut88mini, 0,      ut88,       ut88,       ut88,     "<unknown>", "UT-88", 0)

Previous 15994 Revisions Next


© 1998-2018 The MESS Team