Previous 15994 Revisions Next

r4433 Monday 23rd March, 2009 at 12:53:56 UTC by Robbbert
[TRS80] WIP: added printer to clones, added UART.
[src/mess/drivers]trs80.c
[src/mess/includes]trs80.h
[src/mess/machine]trs80.c

src/mess/includes/trs80.h
r4432r4433
2929DRIVER_INIT( ht1080z );
3030DRIVER_INIT( ht108064 );
3131
32WRITE8_HANDLER ( trs80_port_ff_w );
33READ8_HANDLER ( trs80_port_ff_r );
34READ8_HANDLER ( trs80_port_xx_r );
32WRITE8_HANDLER ( trs80_ff_w );
33WRITE8_HANDLER ( trs80m3_eb_w );
34WRITE8_HANDLER ( trs80m3_ea_w );
35WRITE8_HANDLER ( trs80m3_e9_w );
36WRITE8_HANDLER ( trs80m3_e8_w );
37READ8_HANDLER ( trs80_ff_r );
38READ8_HANDLER ( trs80_fe_r );
39READ8_HANDLER ( trs80m3_eb_r );
40READ8_HANDLER ( trs80m3_ea_r );
41READ8_HANDLER ( trs80m3_e8_r );
3542
3643INTERRUPT_GEN( trs80_frame_interrupt );
3744INTERRUPT_GEN( trs80_timer_interrupt );
src/mess/machine/trs80.c
r4432r4433
1010/* Core includes */
1111#include "driver.h"
1212#include "machine/ctronics.h"
13#include "machine/ay31015.h"
1314#include "includes/trs80.h"
1415
1516/* Components */
r4432r4433
4950static UINT8 sector[4] = {0, };          /* current sector per drive */
5051#endif
5152static UINT8 irq_mask = 0;
53static UINT8 trs80_reg_load=1;
5254
5355#define FW TRS80_FONT_W
5456#define FH TRS80_FONT_H
r4432r4433
5759static UINT8 cassette_data;
5860static emu_timer *cassette_data_timer;
5961static const device_config *trs80_printer;
62static const device_config *trs80_ay31015;
63static const device_config *trs80_cass;
6064
6165static TIMER_CALLBACK( cassette_data_callback )
6266{
63   double new_val = cassette_input(devtag_get_device(machine, "cassette"));
67   double new_val = cassette_input(trs80_cass);
6468
6569   /* Check for HI-LO transition */
6670   if ( old_cassette_val > -0.2 && new_val < -0.2 )
r4432r4433
201205      /* set deleted data address mark for sector specified */
202206      basicdsk_set_ddam(image, track, side, sector_id, 1);
203207   }
204    return INIT_PASS;
208   return INIT_PASS;
205209}
206210
207211MACHINE_RESET( trs80 )
208212{
209   cassette_data = 0x00;
213   cassette_data = 0;
210214   cassette_data_timer = timer_alloc(machine,  cassette_data_callback, NULL );
211215   timer_adjust_periodic( cassette_data_timer, attotime_zero, 0, ATTOTIME_IN_HZ(11025) );
212216   trs80_printer = devtag_get_device(machine, "centronics");
217   trs80_ay31015 = devtag_get_device(machine, "tr1602");
218   trs80_cass = devtag_get_device(machine, "cassette");
213219}
214220
215221
r4432r4433
324330 *
325331 *************************************/
326332
333READ8_HANDLER( trs80m3_e8_r )
334{
335/* These bits directly read pins on the RS-232 socket, and are not emulated
336   d7 Clear-to-Send (CTS), Pin 5
337   d6 Data-Set-Ready (DSR), pin 6
338   d5 Carrier Detect (CD), pin 8
339   d4 Ring Indicator (RI), pin 22
340   d3..d1 Not used
341   d0 ?? UART Receiver Input, pin 20 (pin 20 is also DTR) */
327342
328 READ8_HANDLER( trs80_port_xx_r )
329{
330   return 0;
343   return 0;   // this is a guess
331344}
332345
333
334WRITE8_HANDLER( trs80_port_ff_w )
346READ8_HANDLER( trs80m3_ea_r )
335347{
336   static const double levels[4] = { 0.0, -1.0, 0.0, 1.0 };
337   const device_config *cass = devtag_get_device(space->machine, "cassette");
348/* UART Status Register
349   d7 Data Received ('1'=condition true)
350   d6 Transmitter Holding Register empty ('1'=condition true)
351   d5 Overrun Error ('1'=condition true)
352   d4 Framing Error ('1'=condition true)
353   d3 Parity Error ('1'=condition true)
354   d2..d0 Not used */
338355
339   cassette_change_state( cass, ( data & 0x04 ) ? CASSETTE_MOTOR_ENABLED : CASSETTE_MOTOR_DISABLED, CASSETTE_MASK_MOTOR );
356   UINT8 data=7;
357   ay31015_set_input_pin( trs80_ay31015, AY31015_SWE, 0 );
358   data |= ay31015_get_output_pin( trs80_ay31015, AY31015_TBMT ) ? 0x40 : 0;
359   data |= ay31015_get_output_pin( trs80_ay31015, AY31015_DAV  ) ? 0x80 : 0;
360   data |= ay31015_get_output_pin( trs80_ay31015, AY31015_OR   ) ? 0x20 : 0;
361   data |= ay31015_get_output_pin( trs80_ay31015, AY31015_FE   ) ? 0x10 : 0;
362   data |= ay31015_get_output_pin( trs80_ay31015, AY31015_PE   ) ? 0x08 : 0;
363   ay31015_set_input_pin( trs80_ay31015, AY31015_SWE, 1 );
340364
341   cassette_output( cass, levels[data & 0x03]);
365   return data;
366}
342367
343   cassette_data &= ~0x80;
344   trs80_port_ff = data;
368READ8_HANDLER( trs80m3_eb_r )
369{
370/* UART received data */
371   UINT8 data = ay31015_get_received_data( trs80_ay31015 );
372   ay31015_set_input_pin( trs80_ay31015, AY31015_RDAV, 0 );
373   ay31015_set_input_pin( trs80_ay31015, AY31015_RDAV, 1 );
374   return data;
345375}
346376
377READ8_HANDLER( trs80_fe_r )
378{
379/* not emulated yet */
380   return 0xff;
381}
347382
348 READ8_HANDLER( trs80_port_ff_r )
383
384READ8_HANDLER( trs80_ff_r )
349385{
350386   UINT8 data = (~trs80_port_ff & 8) << 3;   // MODESEL bit (32 or 64 chars per line)
351387   return data | cassette_data;
352388}
353389
390
391WRITE8_HANDLER( trs80m3_e8_w )
392{
393/* d1 when '1' enables control register load (see below) */
394   trs80_reg_load = data & 1;
395}
396
397WRITE8_HANDLER( trs80m3_e9_w )
398{
399/* UART set baud rate. Rx = bits 0..3, Tx = bits 4..7
400   00h    50 
401   11h    75 
402   22h    100 
403   33h    134.5 
404   44h    150 
405   55h    300 
406   66h    600 
407   77h    1200 
408   88h    1800 
409   99h    2000 
410   AAh    2400 
411   BBh    3600 
412   CCh    4800 
413   DDh    7200 
414   EEh    9600 
415   FFh    19200 */
416
417   int baud_clock[]={ 800, 1200, 1600, 2152, 2400, 4800, 9600, 19200, 28800, 32000, 38400, 57600, 76800, 115200, 153600, 307200 };
418   ay31015_set_receiver_clock( trs80_ay31015, baud_clock[data & 0x0f]);
419   ay31015_set_transmitter_clock( trs80_ay31015, baud_clock[data>>4]);
420}
421
422WRITE8_HANDLER( trs80m3_ea_w )
423{
424   if (trs80_reg_load)
425
426/* bits d7..d3 are UART control; d2..d0 directly adjust levels at the RS-232 socket - we emulate UART control only
427   d7 Even Parity Enable ('1'=even, '0'=odd)
428   d6='1',d5='1' for 8 bits
429   d6='0',d5='1' for 7 bits
430   d6='1',d5='0' for 6 bits
431   d6='0',d5='0' for 5 bits
432   d4 Stop Bit Select ('1'=two stop bits, '0'=one stop bit)
433   d3 Parity Inhibit ('1'=disable; No parity, '0'=parity enabled)
434   d2 Break ('0'=disable transmit data; continuous RS232 'SPACE' condition)
435   d1 Data-Terminal-Ready (DTR), pin 20
436   d0 Request-to-Send (RTS), pin 4 */
437
438   {
439      ay31015_set_input_pin( trs80_ay31015, AY31015_CS, 0 );
440      ay31015_set_input_pin( trs80_ay31015, AY31015_NB1, ( data & 0x40 ) ? 1 : 0 );
441      ay31015_set_input_pin( trs80_ay31015, AY31015_NB2, ( data & 0x20 ) ? 1 : 0 );
442      ay31015_set_input_pin( trs80_ay31015, AY31015_TSB, ( data & 0x10 ) ? 1 : 0 );
443      ay31015_set_input_pin( trs80_ay31015, AY31015_EPS, ( data & 0x80 ) ? 1 : 0 );
444      ay31015_set_input_pin( trs80_ay31015, AY31015_NP,  ( data & 0x08 ) ? 1 : 0 );
445      ay31015_set_input_pin( trs80_ay31015, AY31015_CS, 1 );
446   }
447   else
448
449/* These directly adjust levels at the RS-232 socket - not emulated
450   d7,d6 Not used
451   d5 Secondary Unassigned, pin 18
452   d4 Secondary Transmit Data, pin 14
453   d3 Secondary Request-to-Send, pin 19
454   d2 Break ('0'=disable transmit data; continuous RS232 'SPACE' condition)
455   d1 Data-Terminal-Ready (DTR), pin 20
456   d0 Request-to-Send (RTS), pin 4 */
457
458   {
459   }
460}
461
462WRITE8_HANDLER( trs80m3_eb_w )
463{
464   ay31015_set_transmit_data( trs80_ay31015, data );
465}
466
467WRITE8_HANDLER( trs80_ff_w )
468{
469   static const double levels[4] = { 0.0, -1.0, 0.0, 1.0 };
470
471   cassette_change_state( trs80_cass, ( data & 0x04 ) ? CASSETTE_MOTOR_ENABLED : CASSETTE_MOTOR_DISABLED, CASSETTE_MASK_MOTOR );
472   cassette_output( trs80_cass, levels[data & 0x03]);
473
474   cassette_data &= ~0x80;
475   trs80_port_ff = data;
476}
477
478
354479/*************************************
355480 *
356481 *      Interrupt handlers.
src/mess/drivers/trs80.c
r4432r4433
3838I/O ports
3939FF:
4040- bits 0 and 1 are for writing a cassette
41- bit 2 must be high to turn the cassette player on, enables cassette data paths on a system-80
41- bit 2 must be high to turn the cassette motor on, enables cassette data paths on a system-80
4242- bit 3 switches the display between 64 or 32 characters per line
4343- bit 6 remembers the 32/64 screen mode (inverted)
4444- bit 7 is for reading from a cassette
r4432r4433
5959F8:
6060- UART data (read) status (write) on a system-80
6161For Model 4...
62F8h Write (output) send data to the printer data lines with strobe pulsed low.
63F8h Read (input) reads printer status as follows:
64d7 BUSY ('1'=true)
65d6 Out-of-Paper ('1'=true)
66d5 Device Select ('1'=true)
67d4 ERROR, printer fault ('1'=true)
68d3..d0 Reserved
62F8h Write (output) send data to the printer data lines with strobe pulsed low.
63F8h Read (input) reads printer status as follows:
64d7 BUSY ('1'=true)
65d6 Out-of-Paper ('1'=true)
66d5 Device Select ('1'=true)
67d4 ERROR, printer fault ('1'=true)
68d3..d0 Reserved
6969
7070EB:
7171- UART data (read and write) on a Model III/4
r4432r4433
7373EA:
7474- UART status (read and write) on a Model III/4
7575EAh Output (Write), when E8h bit d1 is '1' (Control Register enabled):
76bits d7..d3 are UART control; d2..d0 are Modem line control
77d7 Even Parity Enable ('1'=even, '0'=odd)
78d6='1',d5='1' for 8 bits
79d6='0',d5='1' for 7 bits
80d6='1',d5='0' for 6 bits
76bits d7..d3 are UART control; d2..d0 are Modem line control
77d7 Even Parity Enable ('1'=even, '0'=odd)
78d6='1',d5='1' for 8 bits
79d6='0',d5='1' for 7 bits
80d6='1',d5='0' for 6 bits
8181d6='0',d5='0' for 5 bits
82d4 Stop Bit Select ('1'=two stop bits, '0'=one stop bit)
83d3 Parity Inhibit ('1'=disable; No parity, '0'=parity enabled)
84d2 Break ('0'=disable transmit data; continuous RS232 'SPACE' condition)
85d1 Data-Terminal-Ready (DTR), pin 20
82d4 Stop Bit Select ('1'=two stop bits, '0'=one stop bit)
83d3 Parity Inhibit ('1'=disable; No parity, '0'=parity enabled)
84d2 Break ('0'=disable transmit data; continuous RS232 'SPACE' condition)
85d1 Data-Terminal-Ready (DTR), pin 20
8686d0 Request-to-Send (RTS), pin 4
87EAh Output (Write), when E8h bit d1 is '0' (Control Register disabled): bits d5..d3 are secondary line control, and could even be used for steering or multiplexing logic; d2..d0 are Modem line control same as above
88d7,d6 Not used
89d5 Secondary Unassigned, pin 18
90d4 Secondary Transmit Data, pin 14
91d3 Secondary Request-to-Send, pin 19
92d2 Break ('0'=disable transmit data; continuous RS232 'SPACE' condition)
93d1 Data-Terminal-Ready (DTR), pin 20
94d0 Request-to-Send (RTS), pin 4
95EAh Input (Read): UART Status Register
96d7 Data Received ('1'=condition true)
97d6 Transmitter Holding Register empty ('1'=condition true)
98d5 Overrun Error ('1'=condition true)
99d4 Framing Error ('1'=condition true)
100d3 Parity Error ('1'=condition true)
101d2..d0 Not used
87EAh Output (Write), when E8h bit d1 is '0' (Control Register disabled): bits d5..d3 are secondary line control, and could even be used for steering or multiplexing logic; d2..d0 are Modem line control same as above
88d7,d6 Not used
89d5 Secondary Unassigned, pin 18
90d4 Secondary Transmit Data, pin 14
91d3 Secondary Request-to-Send, pin 19
92d2 Break ('0'=disable transmit data; continuous RS232 'SPACE' condition)
93d1 Data-Terminal-Ready (DTR), pin 20
94d0 Request-to-Send (RTS), pin 4
95EAh Input (Read): UART Status Register
96d7 Data Received ('1'=condition true)
97d6 Transmitter Holding Register empty ('1'=condition true)
98d5 Overrun Error ('1'=condition true)
99d4 Framing Error ('1'=condition true)
100d3 Parity Error ('1'=condition true)
101d2..d0 Not used
102102
103103E9:
104- UART Configuration jumpers (read) on a Model III/4
104- UART Configuration jumpers (read) on a Model III/4 (?)
105105Rx = bits 0..3, Tx = bits 4..7
10600h    50 
10711h    75 
10822h    100 
10933h    134.5 
11044h    150 
11155h    300 
11266h    600 
11377h    1200 
11488h    1800 
11599h    2000 
116AAh    2400 
117BBh    3600 
118CCh    4800 
119DDh    7200 
120EEh    9600 
121FFh    19200 
10600h    50
10711h    75
10822h    100
10933h    134.5
11044h    150
11155h    300
11266h    600
11377h    1200
11488h    1800
11599h    2000
116AAh    2400
117BBh    3600
118CCh    4800
119DDh    7200
120EEh    9600
121FFh    19200
122122
123123E8:
124124- UART Modem Status register (read) on a Model III/4
125125- UART Master Reset (write) on a Model III/4
126Port E8h
126Port E8h
127127E8h Output: UART Master Reset, enables UART control register load
128d1 when '1' enables control register load (see Port EAh description below).
129Input: Modem Status Register
130d7 Clear-to-Send (CTS), Pin 5
131d6 Data-Set-Ready (DSR), pin 6
132d5 Carrier Detect (CD), pin 8
133d4 Ring Indicator (RI), pin 22
134d3..d2 Not used
135d0 ?? UART Receiver Input, pin 20 (pin 20 is also DTR)
128d1 when '1' enables control register load (see Port EAh description above).
129Input: Modem Status Register
130d7 Clear-to-Send (CTS), Pin 5
131d6 Data-Set-Ready (DSR), pin 6
132d5 Carrier Detect (CD), pin 8
133d4 Ring Indicator (RI), pin 22
134d3..d1 Not used
135d0 ?? UART Receiver Input, pin 20 (pin 20 is also DTR)
136136
137137***************************************************************************
138138
r4432r4433
157157#include "cpu/z80/z80.h"
158158#include "sound/wave.h"
159159#include "machine/ctronics.h"
160#include "machine/ay31015.h"
160161#include "includes/trs80.h"
161162
162163/* Components */
r4432r4433
184185   }
185186}
186187
187static ADDRESS_MAP_START( trs80_mem, ADDRESS_SPACE_PROGRAM, 8 )
188static ADDRESS_MAP_START( trs80_map, ADDRESS_SPACE_PROGRAM, 8 )
188189   AM_RANGE(0x0000, 0x0fff) AM_ROM
189190   AM_RANGE(0x3800, 0x38ff) AM_READ(trs80_keyboard_r)
190191   AM_RANGE(0x3c00, 0x3fff) AM_READWRITE(SMH_RAM, trs80_videoram_w) AM_BASE(&videoram) AM_SIZE(&videoram_size)
r4432r4433
193194
194195static ADDRESS_MAP_START( trs80_io, ADDRESS_SPACE_IO, 8 )
195196   ADDRESS_MAP_GLOBAL_MASK(0xff)
196   AM_RANGE(0xff, 0xff) AM_READWRITE(trs80_port_ff_r, trs80_port_ff_w)
197   AM_RANGE(0xff, 0xff) AM_READWRITE(trs80_ff_r, trs80_ff_w)
197198ADDRESS_MAP_END
198199
199200/* memory from 3700-37ff, 8000-ffff only exists when expansion box is used */
200static ADDRESS_MAP_START( mem_model1, ADDRESS_SPACE_PROGRAM, 8 )
201static ADDRESS_MAP_START( model1_map, ADDRESS_SPACE_PROGRAM, 8 )
201202   AM_RANGE(0x0000, 0x35ff) AM_ROM
202203   AM_RANGE(0x37e0, 0x37e3) AM_READWRITE(trs80_irq_status_r, trs80_motor_w)
203204//   AM_RANGE(0x37e4, 0x37e7) AM_NOP
r4432r4433
212213   AM_RANGE(0x4000, 0xffff) AM_RAM
213214ADDRESS_MAP_END
214215
215static ADDRESS_MAP_START( io_model1, ADDRESS_SPACE_IO, 8 )
216static ADDRESS_MAP_START( model1_io, ADDRESS_SPACE_IO, 8 )
216217   ADDRESS_MAP_GLOBAL_MASK(0xff)
217   AM_RANGE(0xfe, 0xfe) AM_READ(trs80_port_xx_r)
218   AM_RANGE(0xff, 0xff) AM_READWRITE(trs80_port_ff_r, trs80_port_ff_w)
218   AM_RANGE(0xfe, 0xfe) AM_READ(trs80_fe_r)
219   AM_RANGE(0xff, 0xff) AM_READWRITE(trs80_ff_r, trs80_ff_w)
219220ADDRESS_MAP_END
220221
221static ADDRESS_MAP_START( mem_model3, ADDRESS_SPACE_PROGRAM, 8 )
222static ADDRESS_MAP_START( sys80_io, ADDRESS_SPACE_IO, 8 )
223   ADDRESS_MAP_GLOBAL_MASK(0xff)
224   AM_RANGE(0xfd, 0xfd) AM_READWRITE(trs80_printer_r, trs80_printer_w)
225   AM_RANGE(0xfe, 0xfe) AM_READ(trs80_fe_r)
226   AM_RANGE(0xff, 0xff) AM_READWRITE(trs80_ff_r, trs80_ff_w)
227ADDRESS_MAP_END
228
229static ADDRESS_MAP_START( model3_map, ADDRESS_SPACE_PROGRAM, 8 )
222230   AM_RANGE(0x0000, 0x37ff) AM_ROM
223231   AM_RANGE(0x3800, 0x38ff) AM_READ(trs80_keyboard_r)
224232   AM_RANGE(0x3c00, 0x3fff) AM_READWRITE(SMH_RAM, trs80_videoram_w) AM_BASE(&videoram) AM_SIZE(&videoram_size)
225233   AM_RANGE(0x4000, 0xffff) AM_RAM
226234ADDRESS_MAP_END
227235
228static ADDRESS_MAP_START( io_model3, ADDRESS_SPACE_IO, 8 )
236static ADDRESS_MAP_START( model3_io, ADDRESS_SPACE_IO, 8 )
229237   ADDRESS_MAP_GLOBAL_MASK(0xff)
230238   /* the ports marked NOP are not emulated yet */
231239//   AM_RANGE(0xe0, 0xe3) AM_READWRITE(trs80_irq_status_r, trs80_irq_mask_w)   // needs to be fixed because it breaks the keyboard
232240   AM_RANGE(0xe4, 0xe4) AM_READWRITE(SMH_NOP,trs80_motor_w)
233   AM_RANGE(0xe8, 0xe8) AM_NOP
234   AM_RANGE(0xe9, 0xe9) AM_WRITENOP
235   AM_RANGE(0xea, 0xea) AM_NOP
236   AM_RANGE(0xeb, 0xeb) AM_NOP
241   AM_RANGE(0xe8, 0xe8) AM_READWRITE(trs80m3_e8_r, trs80m3_e8_w)
242   AM_RANGE(0xe9, 0xe9) AM_WRITE(trs80m3_e9_w)
243   AM_RANGE(0xea, 0xea) AM_READWRITE(trs80m3_ea_r, trs80m3_ea_w)
244   AM_RANGE(0xeb, 0xeb) AM_READWRITE(trs80m3_eb_r, trs80m3_eb_w)
237245   AM_RANGE(0xec, 0xec) AM_WRITENOP
238246   AM_RANGE(0xf0, 0xf0) AM_DEVREADWRITE("wd179x", trs80_wd179x_r, wd17xx_command_w)
239247   AM_RANGE(0xf1, 0xf1) AM_DEVREADWRITE("wd179x", wd17xx_track_r, wd17xx_track_w)
240248   AM_RANGE(0xf2, 0xf2) AM_DEVREADWRITE("wd179x", wd17xx_sector_r, wd17xx_sector_w)
241249   AM_RANGE(0xf3, 0xf3) AM_DEVREADWRITE("wd179x", wd17xx_data_r, wd17xx_data_w)
242250   AM_RANGE(0xf4, 0xf4) AM_WRITENOP
243   AM_RANGE(0xf8, 0xf8) AM_WRITENOP
244   AM_RANGE(0xff, 0xff) AM_READWRITE(trs80_port_ff_r, trs80_port_ff_w)
251   AM_RANGE(0xf8, 0xf8) AM_READWRITE(trs80_printer_r, trs80_printer_w)
252   AM_RANGE(0xff, 0xff) AM_READWRITE(trs80_ff_r, trs80_ff_w)
245253ADDRESS_MAP_END
246254
247255
r4432r4433
453461   CASSETTE_PLAY
454462};
455463
464static const ay31015_config trs80_ay31015_config =
465{
466   AY_3_1015,
467   0.0,
468   0.0,
469   NULL,
470   NULL,
471   NULL
472};
473
456474static MACHINE_DRIVER_START( trs80 )
457475   /* basic machine hardware */
458476   MDRV_CPU_ADD("maincpu", Z80, 1796000)        /* 1.796 MHz */
459   MDRV_CPU_PROGRAM_MAP(trs80_mem, 0)
477   MDRV_CPU_PROGRAM_MAP(trs80_map, 0)
460478   MDRV_CPU_IO_MAP(trs80_io, 0)
461479   MDRV_CPU_VBLANK_INT("screen", trs80_frame_interrupt)
462480   MDRV_CPU_PERIODIC_INT(trs80_timer_interrupt, 40)
r4432r4433
492510static MACHINE_DRIVER_START( model1 )
493511   MDRV_IMPORT_FROM( trs80 )
494512   MDRV_CPU_MODIFY( "maincpu" )
495   MDRV_CPU_PROGRAM_MAP( mem_model1, 0 )
496   MDRV_CPU_IO_MAP( io_model1, 0 )
513   MDRV_CPU_PROGRAM_MAP( model1_map, 0 )
514   MDRV_CPU_IO_MAP( model1_io, 0 )
497515
498516   MDRV_CASSETTE_MODIFY( "cassette", trs80l2_cassette_config )
499517   MDRV_QUICKLOAD_ADD("quickload", trs80_cmd, "cmd", 0.5)
r4432r4433
506524static MACHINE_DRIVER_START( model3 )
507525   MDRV_IMPORT_FROM( model1 )
508526   MDRV_CPU_MODIFY( "maincpu" )
509   MDRV_CPU_PROGRAM_MAP( mem_model3, 0 )
510   MDRV_CPU_IO_MAP( io_model3, 0 )
527   MDRV_CPU_PROGRAM_MAP( model3_map, 0 )
528   MDRV_CPU_IO_MAP( model3_io, 0 )
511529   MDRV_CPU_VBLANK_INT_HACK(trs80_frame_interrupt, 2)
530   MDRV_AY31015_ADD( "tr1602", trs80_ay31015_config )
512531MACHINE_DRIVER_END
513532
514static MACHINE_DRIVER_START( ht1080z )
533static MACHINE_DRIVER_START( sys80 )
515534   MDRV_IMPORT_FROM( model1 )
516   MDRV_GFXDECODE( ht1080z )
535   MDRV_CPU_MODIFY( "maincpu" )
536   MDRV_CPU_IO_MAP( sys80_io, 0 )
537   //MDRV_AY31015_ADD( "tr1602", trs80_ay31015_config )   // need more info
517538MACHINE_DRIVER_END
518539
519static MACHINE_DRIVER_START( ht108064 )
520   MDRV_IMPORT_FROM( model3 )
540static MACHINE_DRIVER_START( ht1080z )
541   MDRV_IMPORT_FROM( sys80 )
521542   MDRV_GFXDECODE( ht1080z )
522543MACHINE_DRIVER_END
523544
545
524546/***************************************************************************
525547
526548  Game driver(s)
r4432r4433
655677COMP( 1977, trs80,    0,   0,   trs80,    trs80, trs80,    0,      "Tandy Radio Shack",  "TRS-80 Model I (Level I Basic)" , 0)
656678COMP( 1978, trs80l2,  trs80,   0,   model1,   trs80, trs80,    trs8012,   "Tandy Radio Shack",  "TRS-80 Model I (Level II Basic)" , 0)
657679COMP( 1983, radionic, trs80,   0,   model1,   trs80, radionic, trs8012,   "Komtek",  "Radionic" , 0)
658COMP( 1980, sys80,    trs80,   0,   model1,   trs80, trs80,    trs8012,   "EACA Computers Ltd.","System-80" , 0)
680COMP( 1980, sys80,    trs80,   0,   sys80,    trs80, trs80,    trs8012,   "EACA Computers Ltd.","System-80" , 0)
659681COMP( 1981, lnw80,    trs80,   0,   model1,   trs80, lnw80,    trs8012,   "LNW Research","LNW-80", 0 )
660682COMP( 1980, trs80m3,  trs80,   0,   model3,   trs80, trs80,    trs8012,   "Tandy Radio Shack",  "TRS-80 Model III", 0 )
661683COMP( 1980, trs80m4,  trs80,   0,   model3,   trs80, trs80,    trs8012,   "Tandy Radio Shack",  "TRS-80 Model 4", 0 )
662684COMP( 1983, ht1080z,  trs80,   0,   ht1080z,  trs80, ht1080z,  trs8012,   "Hiradastechnika Szovetkezet",  "HT-1080Z Series I" , 0)
663685COMP( 1984, ht1080z2, trs80,   0,   ht1080z,  trs80, ht1080z,  trs8012,   "Hiradastechnika Szovetkezet",  "HT-1080Z Series II" , 0)
664COMP( 1985, ht108064, trs80,   0,   ht108064, trs80, ht108064, trs8012,   "Hiradastechnika Szovetkezet",  "HT-1080Z/64" , 0)
686COMP( 1985, ht108064, trs80,   0,   ht1080z, trs80, ht108064, trs8012,   "Hiradastechnika Szovetkezet",  "HT-1080Z/64" , 0)

Previous 15994 Revisions Next


© 1998-2018 The MESS Team