Previous 15994 Revisions Next

r5311 Tuesday 28th July, 2009 at 07:29:44 UTC by Miodrag Milanović
[COCO] Bug #1839 fixed
[docs]messnew.txt
[src/mess/video]coco.c m6847.c

src/mess/video/coco.c
r5310r5311
2929 *
3030 *************************************/
3131
32ATTR_CONST UINT8 coco_get_attributes_2(running_machine *machine, UINT8 c, int scanline, int pos)
33{
34   coco_state *state = machine->driver_data;
35   UINT8 result = 0x00;
36   UINT8 pia1_pb = pia6821_get_output_b(state->pia_1);
37
38   if (c & 0x40)      result |= M6847_INV;
39   if (c & 0x80)      result |= M6847_AS;
40   if (pia1_pb & 0x08)   result |= M6847_CSS;
41   if (pia1_pb & 0x10)   result |= M6847_GM0;
42   if (pia1_pb & 0x20)   result |= M6847_GM1;
43   if (pia1_pb & 0x40)   result |= M6847_GM2;
44   if (pia1_pb & 0x80)   result |= M6847_AG;
45   return result;
46}
47
3248ATTR_CONST UINT8 coco_get_attributes(running_machine *machine, UINT8 c, int scanline, int pos)
3349{
3450   coco_state *state = machine->driver_data;
r5310r5311
4662}
4763
4864
49
5065static void coco_horizontal_sync_callback(running_machine *machine, int data)
5166{
5267   coco_state *state = machine->driver_data;
r5310r5311
7994   if (machine->gamedrv->name[0] == 'c')
8095      cfg.cpu0_timing_factor = 4;
8196
82   cfg.get_attributes = coco_get_attributes;
97   if (type==M6847_VERSION_M6847T1_NTSC) {
98      cfg.get_attributes = coco_get_attributes;
99   } else {
100      cfg.get_attributes = coco_get_attributes_2;
101   }
83102   cfg.get_video_ram = get_video_ram_coco;
84103   cfg.horizontal_sync_callback = coco_horizontal_sync_callback;
85104   cfg.field_sync_callback = coco_field_sync_callback;
src/mess/video/m6847.c
r5310r5311
12001200      bg_color = color(m6847->colordata[attr_index][(byte & 0x7F) / 16][0]);
12011201      fg_color = color(m6847->colordata[attr_index][(byte & 0x7F) / 16][1]);
12021202     
1203      if( attr & M6847_INTEXT && !(attr & M6847_AS)) {
1203      if( (!m6847->has_lowercase) && (attr & M6847_INTEXT) && !(attr & M6847_AS)) {
12041204         if (m6847->get_char_rom) {
12051205            char_data = m6847->get_char_rom(machine,byte,scanline % 12);
12061206         } else {
docs/messnew.txt
r5310r5311
2424- [NES] Changed the PPU to use a device memory map (bug #1831), enhancements
2525  and improvements to mappers 5, 68, 88, 119.  [Robert Bohms]
2626
27- [COCO] Bug #1839 fixed [Miodrag Milanovic]
2728
28
2929User Interface Changes:
3030-----------------------
3131(none)

Previous 15994 Revisions Next


© 1998-2018 The MESS Team