Previous 199869 Revisions Next

r19468 Tuesday 11th December, 2012 at 08:09:45 UTC by Robbbert
(MESS) modellot : fixed F4 display, and made video readable (nw)
[src/mess/drivers]modellot.c

trunk/src/mess/drivers/modellot.c
r19467r19468
6565
6666const gfx_layout modellot_charlayout =
6767{
68   8, 16,            /* 8x8 characters */
69   128,            /* 256 characters */
70   1,                /* 1 bits per pixel */
68   8, 16,            /* 8x16 characters */
69   128,            /* 128 characters */
70   1,            /* 1 bits per pixel */
7171   {0},            /* no bitplanes; 1 bit per pixel */
7272   {0,1,2,3,4,5,6,7},
73   {0 * 8, 1 * 8, 2 * 8, 3 * 8, 4 * 8, 5 * 8, 6 * 8, 7 * 8, 
74    0 * 8+0x200, 1 * 8+0x200, 2 * 8+0x200, 3 * 8+0x200, 4 * 8+0x200, 5 * 8+0x200, 6 * 8+0x200, 7 * 8+0x200},
75   8*16               /* size of one char */
73   {0, 8, 2 * 8, 3 * 8, 4 * 8, 5 * 8, 6 * 8, 7 * 8, 
74    0x400*8, 0x401*8, 0x402*8, 0x403*8, 0x404*8, 0x405*8, 0x406*8, 0x407*8},
75   8*8            /* space between characters */
7676};
7777
7878static GFXDECODE_START( modellot )
79   GFXDECODE_ENTRY( "gfx1", 0x0000, modellot_charlayout, 0, 1 )
79   GFXDECODE_ENTRY( "chargen", 0x0000, modellot_charlayout, 0, 1 )
8080GFXDECODE_END
8181
8282
r19467r19468
8888   {
8989      for(x = 0; x < 64; x++ )
9090      {
91         int code = m_video_ram[15 + x + y*64];
92         drawgfx_opaque(bitmap, cliprect, machine().gfx[0],  code , 0, 0,0, x*8,y*16);
91         int code = m_video_ram[x + y*64];
92         drawgfx_opaque(bitmap, cliprect, machine().gfx[0], code, 0, 0, 0, x*8, y*16);
9393      }
9494   }
9595   return 0;
9696}
97
9798static MACHINE_CONFIG_START( modellot, modellot_state )
98    /* basic machine hardware */
99    MCFG_CPU_ADD("maincpu",Z80, XTAL_4MHz)
100    MCFG_CPU_PROGRAM_MAP(modellot_mem)
101    MCFG_CPU_IO_MAP(modellot_io)   
99   /* basic machine hardware */
100   MCFG_CPU_ADD("maincpu",Z80, XTAL_4MHz)
101   MCFG_CPU_PROGRAM_MAP(modellot_mem)
102   MCFG_CPU_IO_MAP(modellot_io)   
102103   
103    /* video hardware */
104   /* video hardware */
104105   MCFG_SCREEN_ADD("screen", RASTER)
105106   MCFG_SCREEN_REFRESH_RATE(50)
106107   MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */
r19467r19468
111112   MCFG_GFXDECODE( modellot )
112113
113114   MCFG_PALETTE_LENGTH(2)
114   MCFG_PALETTE_INIT(black_and_white)   
115   MCFG_PALETTE_INIT(black_and_white)
115116MACHINE_CONFIG_END
116117
117118/* ROM definition */
118119ROM_START( modellot )
119    ROM_REGION( 0x10000, "maincpu", ROMREGION_ERASEFF )
120   ROM_REGION( 0x10000, "maincpu", ROMREGION_ERASEFF )
120121   //ROM_LOAD( "fdc8119.u3", 0x0000, 0x0400, CRC(a8aee944) SHA1(f2cc598ed2e7a1a620e2f3f53c1a573965f6af26))
121122   ROM_LOAD( "dt49-48.u1", 0xe000, 0x0400, CRC(2441c438) SHA1(832994a4214a744b7e19e5f74000c95ae65e3759))
122123   ROM_LOAD( "ht20.u2",    0xe400, 0x0400, CRC(497c0495) SHA1(d03beebc4c31284729f6eac3bdf1fbf44adf7fff))
123    ROM_REGION( 0x0800, "gfx1", ROMREGION_ERASEFF )
124   ROM_LOAD( "gcem1.u3", 0x0000, 0x0400, CRC(e7739268) SHA1(091ef69282abe657d5f38c70a572964f5200a1d5))
125   ROM_LOAD( "gcem2.u4", 0x0400, 0x0400, CRC(6614330e) SHA1(880a541fb0ef6f37ac89439f9ea75a313c3e53d6))
124
125   ROM_REGION( 0x0800, "chargen", ROMREGION_INVERT )
126   ROM_LOAD( "gcem1.u3", 0x0000, 0x0200, CRC(e7739268) SHA1(091ef69282abe657d5f38c70a572964f5200a1d5))
127   ROM_CONTINUE(0x400, 0x200)
128   ROM_LOAD( "gcem2.u4", 0x0200, 0x0200, CRC(6614330e) SHA1(880a541fb0ef6f37ac89439f9ea75a313c3e53d6))
129   ROM_CONTINUE(0x600, 0x200)
126130ROM_END
127131
128132/* Driver */
129
130COMP( 1979, modellot,  0,       0,    modellot,    modellot,     driver_device, 0,      "General Processor",   "Modello T",      GAME_IS_SKELETON)
131
133COMP( 1979, modellot, 0, 0, modellot, modellot, driver_device, 0, "General Processor", "Modello T", GAME_IS_SKELETON)

Previous 199869 Revisions Next


© 1997-2024 The MAME Team