Previous 15994 Revisions Next

r5330 Friday 31st July, 2009 at 15:19:01 UTC by Jonathan Gevaryahu
[socrates] minor fix for msvc; changed gamma to 2.0 for now.
[src/mess/drivers]socrates.c

src/mess/drivers/socrates.c
r5329r5330
174174#define CHROMA_COL_2 0.125125, 0.27525, 0.230225, 0.384875, 0.125125, 0.27525, 0.230225, 0.384875, 0.125125, 0.27525, 0.230225, 0.384875, 0.125125, 0.27525, 0.230225, 0.384875,
175175#define CHROMA_COL_5 0.1235, 0.2695, 0.22625, 0.378, 0.1235, 0.2695, 0.22625, 0.378, 0.1235, 0.2695, 0.22625, 0.378, 0.1235, 0.2695, 0.22625, 0.378,
176176// gamma: this needs to be messed with... may differ on different systems... attach to slider somehow?
177#define GAMMA 2.2
177#define GAMMA 2.0
178178
179179static rgb_t socrates_create_color(UINT8 color)
180180{
r5329r5330
260260return composedcolor;
261261}
262262
263static rgb_t socrates_palette[256] = {
264};
263static rgb_t socrates_palette[256];
265264
266265PALETTE_INIT( socrates )
267266{
r5329r5330
356355   resulting screen line is one of 512 total offsets on 128-byte boundaries in the whole 64k ram
357356   */
358357   AM_RANGE(0x30, 0x30) AM_NOP /* unknown, write only */
359   AM_RANGE(0x40, 0x40) AM_RAM AM_MIRROR(0xF)/* unknown, read and write low 4 bits plus bit 5, bit 7 seems to be fixed at 0, bit 6 and 4 are fixed at 1? is this some sort of control register for timers perhaps? */
360   AM_RANGE(0x50, 0x50) AM_RAM AM_MIRROR(0xE) /* unknown, read and write (bits?) */
361   AM_RANGE(0x51, 0x51) AM_RAM AM_MIRROR(0xE) /* unknown, read and write (bits?) */
358   AM_RANGE(0x40, 0x40) AM_RAM AM_MIRROR(0xF)/* unknown, read and write low 4 bits plus bit 5, bit 7 seems to be fixed at 0, bit 6 and 4 are fixed at 1? is this some sort of control register for timers perhaps? gets a slew of data written to it a few times during startup, may be IR related? */
359   AM_RANGE(0x50, 0x50) AM_RAM AM_MIRROR(0xE) /* unknown, read and write (bits?) reads serially shift 1 bit somewhere? */
360   AM_RANGE(0x51, 0x51) AM_RAM AM_MIRROR(0xE) /* unknown, read and write (bits?) reads serially shift 1 bit somewhere? */
362361   AM_RANGE(0x60, 0x60) AM_NOP AM_MIRROR(0xF) /* unknown, write only  */
363362ADDRESS_MAP_END
364363

Previous 15994 Revisions Next


© 1998-2018 The MESS Team