Previous 15994 Revisions Next

r15691 Friday 27th July, 2012 at 22:28:11 UTC by Curt Coder
[VIDBRAIN] Fixed memory map, improved colors. [Sean Riddle]
[src/mess/drivers]vidbrain.c
[src/mess/video]uv201.c

src/mess/video/uv201.c
r15690r15691
192192 
193193void uv201_device::initialize_palette()
194194{
195   static const UINT8 INTENSITY[] = { 0x90, 0xb0, 0xd0, 0xff };
195   UINT8 offlointensity = 0x00;
196   UINT8 offhiintensity = 0xc0;
196197 
198   UINT8 onlointensity = 0xa0;
199   UINT8 onhiintensity = 0xff;
200 
197201   for (int i = 0; i < 4; i++)
198202   {
199203      int offset = i * 8;
200      UINT8 value = INTENSITY[i];
204      UINT8 onvalue, offvalue;
201205 
202      palette_set_color_rgb(machine(), offset + 0, 0,      0,      0);      // black
203      palette_set_color_rgb(machine(), offset + 1, value,   0,      0);      // red
204      palette_set_color_rgb(machine(), offset + 2, 0,      value,   0);      // green
205      palette_set_color_rgb(machine(), offset + 3, value,   value,   0);      // red-green
206      palette_set_color_rgb(machine(), offset + 4, 0,      0,      value); // blue
207      palette_set_color_rgb(machine(), offset + 5, value,   0,      value); // red-blue
208      palette_set_color_rgb(machine(), offset + 6, 0,      value,   value); // green-blue
209      palette_set_color_rgb(machine(), offset + 7, value,   value,   value); // white
206      if (offset < 16)
207      {
208         offvalue = offlointensity;
209         onvalue = onlointensity;
210      }
211      else
212      {
213         offvalue = offhiintensity;
214         onvalue = onhiintensity;
215      }
216 
217      palette_set_color_rgb(machine(), offset + 0, offvalue, offvalue, offvalue); // black
218      palette_set_color_rgb(machine(), offset + 1, onvalue, offvalue, offvalue); // red
219      palette_set_color_rgb(machine(), offset + 2, offvalue, onvalue, offvalue); // green
220      palette_set_color_rgb(machine(), offset + 3, onvalue, onvalue, offvalue); // red-green
221      palette_set_color_rgb(machine(), offset + 4, offvalue, offvalue, onvalue); // blue
222      palette_set_color_rgb(machine(), offset + 5, onvalue, offvalue, onvalue); // red-blue
223      palette_set_color_rgb(machine(), offset + 6, offvalue, onvalue, onvalue); // green-blue
224      palette_set_color_rgb(machine(), offset + 7, onvalue, onvalue, onvalue); // white
210225   }
211226}
212227 
r15690r15691
293308 
294309            bit     signal      description
295310 
296            0       Y-C8        current Y counter high order (MSB) bit
297            1       Y-F8        Y freeze high order (MSB) bit
311            0       Y-F8        Y freeze high order (MSB) bit
312            1       Y-C8        current Y counter high order (MSB) bit
298313            2
299314            3
300315            4
r15690r15691
304319 
305320        */
306321 
307      data = (get_field() << 7) | BIT(m_freeze_y, 8) << 1 | BIT(get_field_vpos(), 8);
322      data = (get_field() << 7) | (BIT(get_field_vpos(), 8) << 1) | BIT(m_freeze_y, 8);
308323 
309324      if (LOG) logerror("Y-Freeze High %02x\n", data);
310325      break;
src/mess/drivers/vidbrain.c
r15690r15691
233233//-------------------------------------------------
234234
235235static ADDRESS_MAP_START( vidbrain_mem, AS_PROGRAM, 8, vidbrain_state )
236   AM_RANGE(0x0000, 0x07ff) AM_MIRROR(0xc000) AM_ROM
237   AM_RANGE(0x0800, 0x08ff) AM_MIRROR(0x0300) AM_DEVREADWRITE(UV201_TAG, uv201_device, read, write)
238   AM_RANGE(0x0c00, 0x0fff) AM_MIRROR(0xe000) AM_RAM
239   AM_RANGE(0x1000, 0x1fff) AM_MIRROR(0xe000) AM_ROM
240   AM_RANGE(0x2000, 0x27ff) AM_MIRROR(0xc000) AM_ROM
236   ADDRESS_MAP_GLOBAL_MASK(0x3fff)
237   AM_RANGE(0x0000, 0x07ff) AM_ROM
238   AM_RANGE(0x0800, 0x08ff) AM_MIRROR(0x2300) AM_DEVREADWRITE(UV201_TAG, uv201_device, read, write)
239   AM_RANGE(0x0c00, 0x0fff) AM_MIRROR(0x2000) AM_RAM
240   AM_RANGE(0x1000, 0x17ff) AM_ROM
241   AM_RANGE(0x1800, 0x1fff) AM_ROM // RAM for Timeshare
242   AM_RANGE(0x2000, 0x27ff) AM_ROM
243   AM_RANGE(0x3000, 0x37ff) AM_UNMAP
244   AM_RANGE(0x3800, 0x3fff) AM_RAM // RAM for Money Minder
241245ADDRESS_MAP_END
242246
243247

Previous 15994 Revisions Next


© 1998-2018 The MESS Team