Previous 15994 Revisions Next

r4456 Saturday 4th April, 2009 at 07:38:10 UTC by Robbbert
[TRS80] WIP
[src/mess/drivers]trs80.c
[src/mess/includes]trs80.h
[src/mess/machine]trs80.c
[src/mess/video]trs80.c

src/mess/video/trs80.c
r4455r4456
1010
1111/* Bit assignment for "trs80_mode"
1212   d7 Page select
13   d3 Invert characters with bit 7 set (1=invert)
13   d6 LNW80 switch to graphics ram
14   d5 LNW80 colour or monochrome (1=colour)
15   d4 LNW80 lores or hires (1=hires) also does 64 or 80 chars per line
16   d3 LNW80 invert entire screen / Model III/4 Invert characters with bit 7 set (1=invert)
1417   d2 80/40 or 64/32 characters per line (1=80)
18   d1 7 or 8 bit video (1=requires 7-bit, 0=don't care)
1519   d0 80/64 or 40/32 characters per line (1=32) */
1620
1721static UINT16 start_address=0;
r4455r4456
8185            }
8286            else
8387            {
84               if ((trs80_seven_bit) && (chr < 32)) chr+=64;
88               if ((trs80_mode & 2) && (chr < 32)) chr+=64;
8589
8690               /* get pattern of pixels for that character scanline */
8791               if (ra < 8)
r4455r4456
219223            }
220224            else
221225            {
222               if ((trs80_seven_bit) && (chr < 32)) chr+=64;
226               if ((trs80_mode & 2) && (chr < 32)) chr+=64;
223227
224228               /* get pattern of pixels for that character scanline */
225229               gfx = FNT[(chr<<4) | ra ];
r4455r4456
239243   return 0;
240244}
241245
246/* 8-bit video, 64/80 characters per line = lnw80 */
242247VIDEO_UPDATE( lnw80 )
243248{
244249   const UINT16 rows[] = { 0, 0x200, 0x100, 0x300, 1, 0x201, 0x101, 0x301 };
245   UINT8 y,ra,chr,gfx,gfxbit;
250   UINT8 y,ra,chr,gfx,gfxbit,bg=7,fg=0;
246251   UINT16 sy=0,ma=0,x;
247252   UINT8 *FNT = memory_region(screen->machine, "gfx1");
248253   static UINT8 size_store=0xff;
249   static UINT8 cols=64,skip=1;
254   static UINT8 cols=64;
250255
256   /* Although the OS can select 32-character mode, it is not supported by hardware */
251257   if ((trs80_mode & 0x7f) != size_store)
252258   {
253259      size_store = trs80_mode & 0x7f;
254      cols = (trs80_mode & 1) ? 32 : 64;
255      skip = (trs80_mode & 1) ? 2 : 1;
260      cols = (trs80_mode & 16) ? 80 : 64;
256261      video_screen_set_visarea(screen, 0, cols*FW-1, 0, 16*FH-1);
257262   }
258263
259   for (y = 0; y < 16; y++)
264   if (trs80_mode & 8)
260265   {
261      for (ra = 0; ra < FH; ra++)
262      {
263         UINT16  *p = BITMAP_ADDR16(bitmap, sy++, 0);
266      bg = 0;
267      fg = 7;
268   }
264269
265         for (x = ma; x < ma + 64; x+=skip)
270   switch (trs80_mode & 0x30)
271   {
272      case 0:               // MODE 0
273         for (y = 0; y < 16; y++)
266274         {
267            chr = videoram[x];
275            for (ra = 0; ra < FH; ra++)
276            {
277               UINT16  *p = BITMAP_ADDR16(bitmap, sy++, 0);
268278
269            if (chr & 0x80)
270            {
271               gfxbit = 1<<((ra & 0x0c)>>1);
272               /* Display one line of a lores character (6 pixels) */
273               *p = ( chr & gfxbit ) ? 1 : 0; p++;
274               *p = ( chr & gfxbit ) ? 1 : 0; p++;
275               *p = ( chr & gfxbit ) ? 1 : 0; p++;
276               gfxbit <<= 1;
277               *p = ( chr & gfxbit ) ? 1 : 0; p++;
278               *p = ( chr & gfxbit ) ? 1 : 0; p++;
279               *p = ( chr & gfxbit ) ? 1 : 0; p++;
279               for (x = ma; x < ma + 64; x++)
280               {
281                  chr = videoram[x];
282
283                  if (chr & 0x80)
284                  {
285                     gfxbit = 1<<((ra & 0x0c)>>1);
286                     /* Display one line of a lores character (6 pixels) */
287                     *p = ( chr & gfxbit ) ? fg : bg; p++;
288                     *p = ( chr & gfxbit ) ? fg : bg; p++;
289                     *p = ( chr & gfxbit ) ? fg : bg; p++;
290                     gfxbit <<= 1;
291                     *p = ( chr & gfxbit ) ? fg : bg; p++;
292                     *p = ( chr & gfxbit ) ? fg : bg; p++;
293                     *p = ( chr & gfxbit ) ? fg : bg; p++;
294                  }
295                  else
296                  {
297                     /* get pattern of pixels for that character scanline */
298                     if (ra < 8)
299                        gfx = FNT[(chr<<1) | rows[ra] ];
300                     else
301                        gfx = 0;
302
303                     /* Display a scanline of a character (6 pixels) */
304                     *p = ( gfx & 0x04 ) ? fg : bg; p++;
305                     *p = ( gfx & 0x02 ) ? fg : bg; p++;
306                     *p = ( gfx & 0x40 ) ? fg : bg; p++;
307                     *p = ( gfx & 0x80 ) ? fg : bg; p++;
308                     *p = ( gfx & 0x20 ) ? fg : bg; p++;
309                     *p = ( gfx & 0x08 ) ? fg : bg; p++;
310                  }
311               }
280312            }
281            else
313            ma+=64;
314         }
315         break;
316
317      case 0x10:               // MODE 1
318#if 0   // not ready yet
319         for (y = 0x40; y < 0x400; y+=0x40)
320         {
321            for (ra = 0x400; ra < 0x3000; ra+=0x400)
282322            {
283               /* get pattern of pixels for that character scanline */
284               if (ra < 8)
285                  gfx = FNT[(chr<<1) | rows[ra] ];
286               else
287                  gfx = 0;
323               UINT16  *p = BITMAP_ADDR16(bitmap, sy++, 0);
288324
289               /* Display a scanline of a character (6 pixels) */
290               *p = ( gfx & 0x04 ) ? 1 : 0; p++;
291               *p = ( gfx & 0x02 ) ? 1 : 0; p++;
292               *p = ( gfx & 0x40 ) ? 1 : 0; p++;
293               *p = ( gfx & 0x80 ) ? 1 : 0; p++;
294               *p = ( gfx & 0x20 ) ? 1 : 0; p++;
295               *p = ( gfx & 0x08 ) ? 1 : 0; p++;
325               for (x = 0; x < 0x40; x++)
326               {
327                  gfx = gfxram[ y | x | ra];     
328                  /* Display 6 pixels in normal region */
329                  *p = ( gfx & 0x04 ) ? fg : bg; p++;
330                  *p = ( gfx & 0x02 ) ? fg : bg; p++;
331                  *p = ( gfx & 0x40 ) ? fg : bg; p++;
332                  *p = ( gfx & 0x80 ) ? fg : bg; p++;
333                  *p = ( gfx & 0x20 ) ? fg : bg; p++;
334                  *p = ( gfx & 0x08 ) ? fg : bg; p++;
335               }
336
337               for (x = 0; x < 0x10; x++)
338               {
339                  gfx = gfxram[ 0x3000 | x | ra & 0xc00 | (ra & 0x3000) >> 8];     
340                  /* Display 6 pixels in extended region */
341                  *p = ( gfx & 0x04 ) ? fg : bg; p++;
342                  *p = ( gfx & 0x02 ) ? fg : bg; p++;
343                  *p = ( gfx & 0x40 ) ? fg : bg; p++;
344                  *p = ( gfx & 0x80 ) ? fg : bg; p++;
345                  *p = ( gfx & 0x20 ) ? fg : bg; p++;
346                  *p = ( gfx & 0x08 ) ? fg : bg; p++;
347               }
296348            }
297349         }
298      }
299      ma+=64;
350#endif
351         break;
352      case 0x20:               // MODE 2
353         break;
354      case 0x30:               // MODE 3
355         break;
300356   }
301357   return 0;
302358}
r4455r4456
364420   videoram[offset] = data;
365421}
366422
423/***************************************************************************
424  Write to graphics ram
425***************************************************************************/
426#if 0               // not ready yet
427READ8_HANDLER( trs80_gfxram_r )
428{
429   return gfxram[offset];
430}
431
432WRITE8_HANDLER( trs80_gfxram_w )
433{
434   gfxram[offset] = data;
435}
436#endif
437
438/***************************************************************************
439  Palettes
440***************************************************************************/
441
442/* Levels are unknown - guessing */
443static const rgb_t lnw80_palette[] =
444{
445   MAKE_RGB(200, 200, 200), // white
446   MAKE_RGB(0, 175, 0), // green
447   MAKE_RGB(200, 200, 0), // yellow
448   MAKE_RGB(255, 0, 0), // red
449   MAKE_RGB(255, 0, 255), // magenta
450   MAKE_RGB(0, 0, 175), // blue
451   MAKE_RGB(0, 255, 255), // cyan
452   MAKE_RGB(0, 0, 0), // black
453};
454
455PALETTE_INIT( lnw80 )
456{
457   palette_set_colors(machine, 0, lnw80_palette, ARRAY_LENGTH(lnw80_palette));
458}
src/mess/includes/trs80.h
r4455r4456
1919extern const wd17xx_interface trs80_wd17xx_interface;
2020extern UINT8 trs80_mode;
2121extern UINT8 trs80_model4;
22extern UINT8 trs80_seven_bit;
2322
2423DEVICE_IMAGE_LOAD( trs80_floppy );
2524QUICKLOAD_LOAD( trs80_cmd );
r4455r4456
4241WRITE8_HANDLER ( trs80m4_90_w );
4342WRITE8_HANDLER ( trs80m4_88_w );
4443WRITE8_HANDLER ( trs80m4_84_w );
44READ8_HANDLER ( lnw80_fe_r );
4545READ8_HANDLER ( trs80_ff_r );
4646READ8_HANDLER ( trs80_fe_r );
4747READ8_HANDLER ( sys80_f9_r );
r4455r4456
8181READ8_HANDLER( trs80_videoram_r );
8282WRITE8_HANDLER( trs80_videoram_w );
8383
84PALETTE_INIT( lnw80 );
8485
86
8587#endif   /* TRS80_H_ */
src/mess/machine/trs80.c
r4455r4456
4040static UINT8 trs80_tape_unit=1;      /* selected cassette unit (trs80l2 and sys80 only) (not implemented yet) */
4141static UINT8 trs80_reg_load=1;      /* Controls what port EA will do */
4242static UINT8 trs80_nmi_data=0xff;   /* Passes FDC int to NMI handler */
43static UINT8 lnw80_port_fe=0xf0;   /* LNW80 video control bits */
4344UINT8 trs80_mode = 0;         /* Control bits passed to video output routine */
4445
4546#define IRQ_M1_RTC      0x80   /* RTC on Model I */
r4455r4456
248249   trs80_speaker = devtag_get_device(machine, "speaker");
249250   trs80_fdc = devtag_get_device(machine, "wd179x");
250251   videoram_size = 0x800;
252   trs80_reg_load = 1;      /* for LNW80 */
251253}
252254
253255
r4455r4456
279281
280282READ8_HANDLER( trs80m4_e4_r )
281283{
282/* Indicates which devices are interrupting - not emulated.
284/* Indicates which devices are interrupting - d6..d5 not emulated.
283285   Whenever an NMI occurs, this port is immediately read
284286   to find out which device requires service. Lowest-numbered
285287   bit takes precedence. We take this opportunity to clear the
r4455r4456
369371   return data;
370372}
371373
374READ8_HANDLER( lnw80_fe_r )
375{
376   return lnw80_port_fe | 0xf0;
377}
378
372379READ8_HANDLER( trs80_ff_r )
373380{
374381/* ModeSel and cassette data
r4455r4456
593600WRITE8_HANDLER( lnw80_fe_w )
594601{
595602/* d3..d2 not emulated
596   d3 bankswitch lower 16k between roms and hires ram
597   d2 enable colour
598   d0 inverse video */
603   d3 bankswitch lower 16k between roms and hires ram (1=hires)
604   d2 enable colour   \
605   d1 hres         /   these 2 are the bits from the MODE command of LNWBASIC
606   d0 inverse video (entire screen) */
599607
600   trs80_mode = (trs80_mode & 0xf7) | ((data & 1) ? 8 : 0);
608   trs80_mode = (trs80_mode & 0x87) | ((data & 0x0f) << 3);
609   lnw80_port_fe = data;
601610}
602611
603612WRITE8_HANDLER( trs80_ff_w )
r4455r4456
612621   cassette_output( trs80_cass, levels[data & 3]);
613622   cassette_data &= ~0x80;
614623
615   trs80_mode = (data & 8) ? 1 : 0;
624   trs80_mode = (trs80_mode & 0xfe) | ((data & 8) >> 3);
616625}
617626
618627WRITE8_HANDLER( trs80m4_ff_w )
src/mess/drivers/trs80.c
r4455r4456
103103About the ht1080z - This was made for schools in Hungary. Each comes with a BASIC extension roms
104104      which activated Hungarian features. To activate - start emulation - enter SYSTEM
105105      Enter /12288 and the extensions will be installed and you are returned to READY.
106      The ht1080z is identical to the System 80, apart from the character rom.
107      The ht1080z2 has a modified extension rom and character generator.
106108
107109***************************************************************************
108110
r4455r4456
117119Not emulated:
118120 TRS80 Japanese kana/ascii switch and alternate keyboard
119121 TRS80 Model III/4 Hard drive, Graphics board, Alternate Character set
120 LNW80 1.77 / 4.0 MHz switch
122 LNW80 1.77 / 4.0 MHz switch (this is a physical switch)
121123 LNW80 Colour board
122124 LNW80 Hires graphics
123125 LNW80 24x80 screen
r4455r4456
143145#include "formats/trs_cas.h"
144146
145147UINT8 trs80_model4;
146UINT8 trs80_seven_bit;
147148
148149static READ8_DEVICE_HANDLER (trs80_wd179x_r)
149150{
150151   if (input_port_read(device->machine, "CONFIG") & 0x80)
151   {
152152      return wd17xx_status_r(device, offset);
153   }
154153   else
155   {
156154      return 0xff;
157   }
158155}
159156
160157static ADDRESS_MAP_START( trs80_map, ADDRESS_SPACE_PROGRAM, 8 )
r4455r4456
169166   AM_RANGE(0xff, 0xff) AM_READWRITE(trs80_ff_r, trs80_ff_w)
170167ADDRESS_MAP_END
171168
172/* memory from 37de-37ff, 8000-ffff only exists when expansion box is used */
173169static ADDRESS_MAP_START( model1_map, ADDRESS_SPACE_PROGRAM, 8 )
174   AM_RANGE(0x0000, 0x377f) AM_ROM   // ht108064 needs up to 375F
170   AM_RANGE(0x0000, 0x377f) AM_ROM   // sys80,ht1080 needs up to 375F
175171   AM_RANGE(0x37de, 0x37de) AM_READWRITE(sys80_f9_r, sys80_f8_w)
176172   AM_RANGE(0x37df, 0x37df) AM_READWRITE(trs80m4_eb_r, trs80m4_eb_w)
177173   AM_RANGE(0x37e0, 0x37e3) AM_READWRITE(trs80_irq_status_r, trs80_motor_w)
r4455r4456
200196   AM_RANGE(0xff, 0xff) AM_READWRITE(trs80_ff_r, trs80_ff_w)
201197ADDRESS_MAP_END
202198
199static ADDRESS_MAP_START( lnw80_io, ADDRESS_SPACE_IO, 8 )
200   ADDRESS_MAP_GLOBAL_MASK(0xff)
201   AM_RANGE(0xe8, 0xe8) AM_READWRITE(trs80m4_e8_r, trs80m4_e8_w)
202   AM_RANGE(0xe9, 0xe9) AM_READ_PORT("E9")
203   AM_RANGE(0xea, 0xea) AM_READWRITE(trs80m4_ea_r, trs80m4_ea_w)
204   AM_RANGE(0xeb, 0xeb) AM_READWRITE(trs80m4_eb_r, trs80m4_eb_w)
205   AM_RANGE(0xfe, 0xfe) AM_READWRITE(lnw80_fe_r, lnw80_fe_w)
206   AM_RANGE(0xff, 0xff) AM_READWRITE(trs80_ff_r, trs80_ff_w)
207ADDRESS_MAP_END
208
203209static ADDRESS_MAP_START( model3_map, ADDRESS_SPACE_PROGRAM, 8 )
204210   AM_RANGE(0x0000, 0x37ff) AM_ROM
205211   AM_RANGE(0x3800, 0x38ff) AM_MIRROR(0x300) AM_READ(trs80_keyboard_r)
r4455r4456
454460   MDRV_CPU_PROGRAM_MAP( model3_map, 0 )
455461   MDRV_CPU_IO_MAP( model3_io, 0 )
456462   MDRV_CPU_PERIODIC_INT(trs80_rtc_interrupt, 30)
463
457464   MDRV_VIDEO_UPDATE( trs80m4 )
458465   MDRV_SCREEN_MODIFY("screen")
459466   MDRV_SCREEN_SIZE(80*FW, 240)
r4455r4456
473480
474481static MACHINE_DRIVER_START( lnw80 )
475482   MDRV_IMPORT_FROM( model1 )
476   MDRV_VIDEO_UPDATE( lnw80 )
483   MDRV_CPU_MODIFY( "maincpu" )
484   MDRV_CPU_PROGRAM_MAP( model1_map, 0 )
485   MDRV_CPU_IO_MAP( lnw80_io, 0 )
486
487   MDRV_PALETTE_LENGTH(8)
488   MDRV_PALETTE_INIT(lnw80)
489   MDRV_VIDEO_UPDATE(lnw80)
490   MDRV_SCREEN_MODIFY("screen")
491   MDRV_SCREEN_SIZE(80*FW, 16*FH)
492   MDRV_SCREEN_VISIBLE_AREA(0,80*FW-1,0,16*FH-1)
477493MACHINE_DRIVER_END
478494
479495static MACHINE_DRIVER_START( radionic )
r4455r4456
493509
494510ROM_START(trs80)
495511   ROM_REGION(0x10000, "maincpu",0)
496   ROM_LOAD("level1.rom",  0x0000, 0x1000, CRC(70d06dff) SHA1(20d75478fbf42214381e05b14f57072f3970f765))
512   ROM_LOAD("level1.rom",  0x0000, 0x1000, CRC(70d06dff) SHA1(20d75478fbf42214381e05b14f57072f3970f765))
497513
498514   ROM_REGION(0x00400, "gfx1",0)
499   ROM_LOAD("trs80m1.chr", 0x0000, 0x0400, CRC(0033f2b9) SHA1(0d2cd4197d54e2e872b515bbfdaa98efe502eda7))
515   ROM_LOAD("trs80m1.chr", 0x0000, 0x0400, CRC(0033f2b9) SHA1(0d2cd4197d54e2e872b515bbfdaa98efe502eda7))
500516ROM_END
501517
502518ROM_START(trs80l2)
r4455r4456
511527   ROMX_LOAD("trs80alt.zl2",0x2000, 0x1000, CRC(55b3ad13) SHA1(6279f6a68f927ea8628458b278616736f0b3c339), ROM_BIOS(2))
512528
513529   ROM_REGION(0x00400, "gfx1",0)
514   ROM_LOAD("trs80m1.chr", 0x0000, 0x0400, CRC(0033f2b9) SHA1(0d2cd4197d54e2e872b515bbfdaa98efe502eda7))
530   ROM_LOAD("trs80m1.chr", 0x0000, 0x0400, CRC(0033f2b9) SHA1(0d2cd4197d54e2e872b515bbfdaa98efe502eda7))
515531ROM_END
516532
517533ROM_START(radionic)
518534   ROM_REGION(0x10000, "maincpu",0)
519   ROM_LOAD("ep1.bin",0x0000, 0x1000, CRC(e8908f44) SHA1(7a5a60c3afbeb6b8434737dd302332179a7fca59))
520   ROM_LOAD("ep2.bin",0x1000, 0x1000, CRC(46e88fbf) SHA1(a3ca32757f269e09316e1e91ba1502774e2f5155))
521   ROM_LOAD("ep3.bin",0x2000, 0x1000, CRC(306e5d66) SHA1(1e1abcfb5b02d4567cf6a81ffc35318723442369))
522   ROM_LOAD("ep4.bin",0x3000, 0x0400, CRC(70f90f26) SHA1(cbee70da04a3efac08e50b8e3a270262c2440120))
535   ROM_LOAD("ep1.bin",      0x0000, 0x1000, CRC(e8908f44) SHA1(7a5a60c3afbeb6b8434737dd302332179a7fca59))
536   ROM_LOAD("ep2.bin",      0x1000, 0x1000, CRC(46e88fbf) SHA1(a3ca32757f269e09316e1e91ba1502774e2f5155))
537   ROM_LOAD("ep3.bin",      0x2000, 0x1000, CRC(306e5d66) SHA1(1e1abcfb5b02d4567cf6a81ffc35318723442369))
538   ROM_LOAD("ep4.bin",      0x3000, 0x0400, CRC(70f90f26) SHA1(cbee70da04a3efac08e50b8e3a270262c2440120))
523539   ROM_CONTINUE(0x3000, 0x400)
524540   ROM_CONTINUE(0x3000, 0x600)
525541   ROM_IGNORE(0x200)
526542
527543   ROM_REGION(0x01000, "gfx1",0)
528   ROM_LOAD("trschar.bin", 0x0000, 0x1000, CRC(02e767b6) SHA1(c431fcc6bd04ce2800ca8c36f6f8aeb2f91ce9f7))
544   ROM_LOAD("trschar.bin", 0x0000, 0x1000, CRC(02e767b6) SHA1(c431fcc6bd04ce2800ca8c36f6f8aeb2f91ce9f7))
529545ROM_END
530546
531547ROM_START(sys80)
532548   ROM_REGION(0x10000, "maincpu",0)
533   ROM_LOAD("sys80rom.1", 0x0000, 0x1000, CRC(8f5214de) SHA1(d8c052be5a2d0ec74433043684791d0554bf203b))
534   ROM_LOAD("sys80rom.2", 0x1000, 0x1000, CRC(46e88fbf) SHA1(a3ca32757f269e09316e1e91ba1502774e2f5155))
535   ROM_LOAD("trs80.zl2",  0x2000, 0x1000, CRC(306e5d66) SHA1(1e1abcfb5b02d4567cf6a81ffc35318723442369))
549   ROM_LOAD("sys80rom.1",   0x0000, 0x1000, CRC(8f5214de) SHA1(d8c052be5a2d0ec74433043684791d0554bf203b))
550   ROM_LOAD("sys80rom.2",   0x1000, 0x1000, CRC(46e88fbf) SHA1(a3ca32757f269e09316e1e91ba1502774e2f5155))
551   ROM_LOAD("trs80.zl2",    0x2000, 0x1000, CRC(306e5d66) SHA1(1e1abcfb5b02d4567cf6a81ffc35318723442369))
552   /* This rom turns the system80 into the "blue label" version. SYSTEM then /12288 to activate. */
553   ROM_LOAD("sys80.ext",    0x3000, 0x0800, CRC(2a851e33) SHA1(dad21ec60973eb66e499fe0ecbd469118826a715))
536554
537555   ROM_REGION(0x00400, "gfx1",0)
538   ROM_LOAD("trs80m1.chr", 0x0000, 0x0400, CRC(0033f2b9) SHA1(0d2cd4197d54e2e872b515bbfdaa98efe502eda7))
556   ROM_LOAD("trs80m1.chr", 0x0000, 0x0400, CRC(0033f2b9) SHA1(0d2cd4197d54e2e872b515bbfdaa98efe502eda7))
539557ROM_END
540558
541559ROM_START(lnw80)
542560   ROM_REGION(0x10000, "maincpu",0)
543   ROM_LOAD("lnw_a.bin",  0x0000, 0x0800, CRC(e09f7e91) SHA1(cd28e72efcfebde6cf1c7dbec4a4880a69e683da))
544   ROM_LOAD("lnw_a1.bin", 0x0800, 0x0800, CRC(ac297d99) SHA1(ccf31d3f9d02c3b68a0ee3be4984424df0e83ab0))
545   ROM_LOAD("lnw_b.bin",  0x1000, 0x0800, CRC(c4303568) SHA1(13e3d81c6f0de0e93956fa58c465b5368ea51682))
546   ROM_LOAD("lnw_b1.bin", 0x1800, 0x0800, CRC(3a5ea239) SHA1(8c489670977892d7f2bfb098f5df0b4dfa8fbba6))
547   ROM_LOAD("lnw_c.bin",  0x2000, 0x0800, CRC(2ba025d7) SHA1(232efbe23c3f5c2c6655466ebc0a51cf3697be9b))
548   ROM_LOAD("lnw_c1.bin", 0x2800, 0x0800, CRC(ed547445) SHA1(20102de89a3ee4a65366bc2d62be94da984a156b))
561   ROM_LOAD("lnw_a.bin",    0x0000, 0x0800, CRC(e09f7e91) SHA1(cd28e72efcfebde6cf1c7dbec4a4880a69e683da))
562   ROM_LOAD("lnw_a1.bin",   0x0800, 0x0800, CRC(ac297d99) SHA1(ccf31d3f9d02c3b68a0ee3be4984424df0e83ab0))
563   ROM_LOAD("lnw_b.bin",    0x1000, 0x0800, CRC(c4303568) SHA1(13e3d81c6f0de0e93956fa58c465b5368ea51682))
564   ROM_LOAD("lnw_b1.bin",   0x1800, 0x0800, CRC(3a5ea239) SHA1(8c489670977892d7f2bfb098f5df0b4dfa8fbba6))
565   ROM_LOAD("lnw_c.bin",    0x2000, 0x0800, CRC(2ba025d7) SHA1(232efbe23c3f5c2c6655466ebc0a51cf3697be9b))
566   ROM_LOAD("lnw_c1.bin",   0x2800, 0x0800, CRC(ed547445) SHA1(20102de89a3ee4a65366bc2d62be94da984a156b))
549567
550568   ROM_REGION(0x00800, "gfx1",0)
551   ROM_LOAD("lnw_chr.bin",0x0000, 0x0800, CRC(c89b27df) SHA1(be2a009a07e4378d070002a558705e9a0de59389))
569   ROM_LOAD("lnw_chr.bin",  0x0000, 0x0800, CRC(c89b27df) SHA1(be2a009a07e4378d070002a558705e9a0de59389))
552570ROM_END
553571
554572ROM_START(trs80m3)
555573   ROM_REGION(0x10000, "maincpu",0)
556   ROM_LOAD("trs80m3.rom", 0x0000, 0x3800, CRC(bddbf843) SHA1(04a1f062cf73c3931c038434e3f299482b6bf613))
574   ROM_LOAD("trs80m3.rom", 0x0000, 0x3800, CRC(bddbf843) SHA1(04a1f062cf73c3931c038434e3f299482b6bf613))
557575
558576   ROM_REGION(0x00400, "gfx1",0)   /* incorrect rom */
559   ROM_LOAD("trs80m1.chr", 0x0000, 0x0400, NO_DUMP CRC(0033f2b9) SHA1(0d2cd4197d54e2e872b515bbfdaa98efe502eda7))
577   ROM_LOAD("trs80m1.chr", 0x0000, 0x0400, NO_DUMP CRC(0033f2b9) SHA1(0d2cd4197d54e2e872b515bbfdaa98efe502eda7))
560578ROM_END
561579
562580ROM_START(trs80m4)
563581   ROM_REGION(0x10000, "maincpu",0)
564   ROM_LOAD("trs80m4.rom", 0x0000, 0x3800, CRC(1a92d54d) SHA1(752555fdd0ff23abc9f35c6e03d9d9b4c0e9677b))
582   ROM_LOAD("trs80m4.rom", 0x0000, 0x3800, CRC(1a92d54d) SHA1(752555fdd0ff23abc9f35c6e03d9d9b4c0e9677b))
565583
566584   ROM_REGION(0x00400, "gfx1",0)
567585   /* this rom unlikely to be the correct one, but it will do for now */
568   ROM_LOAD("trs80m1.chr", 0x0000, 0x0400, NO_DUMP CRC(0033f2b9) SHA1(0d2cd4197d54e2e872b515bbfdaa98efe502eda7))
586   ROM_LOAD("trs80m1.chr", 0x0000, 0x0400, NO_DUMP CRC(0033f2b9) SHA1(0d2cd4197d54e2e872b515bbfdaa98efe502eda7))
569587ROM_END
570588
571589ROM_START(trs80m4p)
r4455r4456
580598ROM_START(ht1080z)
581599   ROM_REGION(0x10000, "maincpu",0)
582600   ROM_LOAD("ht1080z.rom",  0x0000, 0x3000, CRC(2bfef8f7) SHA1(7a350925fd05c20a3c95118c1ae56040c621be8f))
583   ROM_LOAD("ht1080z.ext",  0x3000, 0x0800, CRC(2a851e33) SHA1(dad21ec60973eb66e499fe0ecbd469118826a715))
601   ROM_LOAD("sys80.ext",    0x3000, 0x0800, CRC(2a851e33) SHA1(dad21ec60973eb66e499fe0ecbd469118826a715))
584602
585603   ROM_REGION(0x00800, "gfx1",0)
586604   ROM_LOAD("ht1080z.chr",  0x0000, 0x0800, CRC(e8c59d4f) SHA1(a15f30a543e53d3e30927a2e5b766fcf80f0ae31))
r4455r4456
606624
607625static DRIVER_INIT( trs80 )
608626{
609   trs80_seven_bit = 0;
627   trs80_mode = 0;
610628   trs80_model4 = 0;
611629}
612630
613631static DRIVER_INIT( trs80l2 )
614632{
615   trs80_seven_bit = 1;
633   trs80_mode = 2;
616634   trs80_model4 = 0;
617635}
618636
619637static DRIVER_INIT( trs80m4 )
620638{
621   trs80_seven_bit = 0;
639   trs80_mode = 0;
622640   trs80_model4 = 1;
623641}
624642

Previous 15994 Revisions Next


© 1998-2018 The MESS Team