Previous 15994 Revisions Next

r10871 Sunday 20th March, 2011 at 14:19:15 UTC by Robbbert
[EINSTEIN] einstei2 - added F4 display for the 80-column chargen.
[src/mess/drivers]einstein.c

src/mess/drivers/einstein.c
r10870r10871
433433   TMS9928A_reset();
434434
435435   /* a reset causes the fire int, adc int, keyboard int mask
436    to be set to 1, which causes all these to be DISABLED */
436   to be set to 1, which causes all these to be DISABLED */
437437   einstein->interrupt = 0;
438438   einstein->interrupt_mask = 0;
439439
r10870r10871
467467   palette_set_color(machine, TMS9928A_PALETTE_SIZE, RGB_BLACK);
468468   palette_set_color(machine, TMS9928A_PALETTE_SIZE + 1, MAKE_RGB(0, 224, 0));
469469}
470
470471static MACHINE_START( einstein2 )
471472{
472473   einstein_state *einstein = machine->driver_data<einstein_state>();
r10870r10871
752753   "floppy_5_25"
753754};
754755
756
757/* F4 Character Displayer */
758static const gfx_layout einstei2_charlayout =
759{
760   8, 10,               /* 8 x 10 characters */
761   256,               /* 256*2 characters */
762   1,               /* 1 bits per pixel */
763   { 0 },
764   /* x offsets */
765   { 0, 1, 2, 3, 4, 5, 6, 7 },
766   /* y offsets */
767   { 0*8, 1*8, 2*8, 3*8, 4*8, 5*8, 6*8, 7*8, 0x800*8, 0x801*8 },
768   8*8
769};
770
771static GFXDECODE_START( einstei2 )
772   GFXDECODE_ENTRY( "gfx1", 0x0000, einstei2_charlayout, 16, 1 )
773   GFXDECODE_ENTRY( "gfx1", 0x1000, einstei2_charlayout, 16, 1 )
774GFXDECODE_END
775
776
755777static MACHINE_CONFIG_START( einstein, einstein_state )
756778   /* basic machine hardware */
757779   MCFG_CPU_ADD(IC_I001, Z80, XTAL_X002 / 2)
r10870r10871
763785   MCFG_MACHINE_RESET(einstein)
764786
765787   /* this is actually clocked at the system clock 4 MHz, but this would be too fast for our
766    driver. So we update at 50Hz and hope this is good enough. */
788   driver. So we update at 50Hz and hope this is good enough. */
767789   MCFG_TIMER_ADD_PERIODIC("keyboard", einstein_keyboard_timer_callback, attotime::from_hz(50))
768790
769791   MCFG_Z80PIO_ADD(IC_I063, XTAL_X002 / 2, einstein_pio_intf)
r10870r10871
777799   MCFG_DEVICE_ADD("adc_daisy", EINSTEIN_ADC_DAISY, 0)
778800   MCFG_DEVICE_ADD("fire_daisy", EINSTEIN_FIRE_DAISY, 0)
779801
780    /* video hardware */
802   /* video hardware */
781803   MCFG_FRAGMENT_ADD(tms9928a)
782804   MCFG_SCREEN_MODIFY("screen")
783805   MCFG_SCREEN_REFRESH_RATE(50)
r10870r10871
817839   MCFG_MACHINE_START(einstein2)
818840   MCFG_MACHINE_RESET(einstein2)
819841
820    /* video hardware */
842   /* video hardware */
821843   MCFG_DEFAULT_LAYOUT(layout_dualhsxs)
822844
823845   MCFG_SCREEN_ADD("80column", RASTER)
r10870r10871
827849   MCFG_SCREEN_VISIBLE_AREA(0, 640-1, 0, 400-1)
828850   MCFG_SCREEN_REFRESH_RATE(50)
829851   MCFG_SCREEN_UPDATE(einstein2)
852   MCFG_GFXDECODE(einstei2)
830853
831854   /* 2 additional colors for the 80 column screen */
832855   MCFG_PALETTE_LENGTH(TMS9928A_PALETTE_SIZE + 2)
833856
834857   MCFG_MC6845_ADD("crtc", MC6845, XTAL_X002 / 4, einstein_crtc6845_interface)
835
836858MACHINE_CONFIG_END
837859
838860

Previous 15994 Revisions Next


© 1998-2018 The MESS Team