Previous 15994 Revisions Next

r2214 Wednesday 2nd April, 2008 at 11:34:20 UTC by Robbbert
[TI99_2] Fixed divide by zero error, fixed palette. Marked as NOT WORKING due to no roms.
[src/mess/drivers]ti99_2.c

src/mess/drivers/ti99_2.c
r2213r2214
125125    the CPU can get more bus time.
126126*/
127127
128static const unsigned char ti99_2_palette[] =
129{
130   255, 255, 255,
131   0, 0, 0
132};
133128
134#define TI99_2_PALETTE_SIZE sizeof(ti99_2_palette)/3
135
136129static PALETTE_INIT(ti99_2)
137130{
138   int i;
139
140   for ( i = 0; i < TI99_2_PALETTE_SIZE; i++ ) {
141      palette_set_color_rgb(machine, i, ti99_2_palette[i*3], ti99_2_palette[i*3+1], ti99_2_palette[i*3+2]);
142   }
131   palette_set_color(machine,0,RGB_WHITE); /* white */
132   palette_set_color(machine,1,RGB_BLACK); /* black */
143133}
144134
145135
r2213r2214
181171};
182172
183173static GFXDECODE_START( ti99_2 )
184   GFXDECODE_ENTRY( REGION_CPU1, 0x1c00,  ti99_2_charlayout, 0, 0 )
174   GFXDECODE_ENTRY( REGION_CPU1, 0x1c00,  ti99_2_charlayout, 0, 1 )
185175GFXDECODE_END
186176
187177
r2213r2214
383373   MDRV_SCREEN_SIZE(256, 192)
384374   MDRV_SCREEN_VISIBLE_AREA(0, 256-1, 0, 192-1)
385375   MDRV_GFXDECODE(ti99_2)
386   MDRV_PALETTE_LENGTH(TI99_2_PALETTE_SIZE)
376   MDRV_PALETTE_LENGTH(2)
387377   MDRV_PALETTE_INIT(ti99_2)
388378
389379   MDRV_VIDEO_UPDATE(ti99_2)
r2213r2214
415405SYSTEM_CONFIG_END
416406
417407/*      YEAR    NAME        PARENT      COMPAT  MACHINE     INPUT   INIT        CONFIG      COMPANY                 FULLNAME */
418COMP(   1983,   ti99_224,   0,         0,      ti99_2,      ti99_2,   ti99_2_24,   ti99_2,      "Texas Instruments",   "TI-99/2 BASIC Computer (24kb ROMs)" , 0)
419COMP(   1983,   ti99_232,   ti99_224,   0,      ti99_2,      ti99_2,   ti99_2_32,   ti99_2,      "Texas Instruments",   "TI-99/2 BASIC Computer (32kb ROMs)" , 0)
408COMP(   1983,   ti99_224,   0,      0,   ti99_2,   ti99_2,   ti99_2_24,   ti99_2,      "Texas Instruments",   "TI-99/2 BASIC Computer (24kb ROMs)" , GAME_NOT_WORKING )
409COMP(   1983,   ti99_232,   ti99_224,   0,   ti99_2,   ti99_2,   ti99_2_32,   ti99_2,      "Texas Instruments",   "TI-99/2 BASIC Computer (32kb ROMs)" , GAME_NOT_WORKING )

Previous 15994 Revisions Next


© 1998-2018 The MESS Team