Previous 15994 Revisions Next

r4668 Monday 11th May, 2009 at 13:14:23 UTC by Miodrag Milanović
[SPC1000] New driver for Samsung SPC-1000 also
[M6847] Added reading of attribute byte from memory
[docs]messnew.txt
[src/mess]mess.mak messdriv.c
[src/mess/includes]coco.h
[src/mess/video]apf.c atom.c coco.c m6847.c m6847.h vtech1.c z80ne.c

src/mess/video/z80ne.c
r4667r4668
2929 * 1  0    0     1     1   Semigraphic 6
3030 * 1  1    1     0     0   Inverted Alphanumeric
3131 */
32static ATTR_CONST UINT8 lx388_get_attributes(running_machine *machine, UINT8 video_byte)
32static ATTR_CONST UINT8 lx388_get_attributes(running_machine *machine, UINT8 video_byte, UINT8 attr)
3333{
3434   UINT8 result = 0x00;
3535   if (video_byte & 0x80)
src/mess/video/coco.c
r4667r4668
2929 *
3030 *************************************/
3131
32ATTR_CONST UINT8 coco_get_attributes(running_machine *machine, UINT8 c)
32ATTR_CONST UINT8 coco_get_attributes(running_machine *machine, UINT8 c, UINT8 attr)
3333{
3434   coco_state *state = machine->driver_data;
3535   UINT8 result = 0x00;
src/mess/video/m6847.c
r4667r4668
108108   /* callbacks */
109109   void (*horizontal_sync_callback)(running_machine *machine, int line);
110110   void (*field_sync_callback)(running_machine *machine, int line);
111   UINT8 (*get_attributes)(running_machine *machine, UINT8 video_byte);
111   UINT8 (*get_attributes)(running_machine *machine, UINT8 video_byte,UINT8 attr);
112112   const UINT8 *(*get_video_ram)(running_machine *machine, int scanline);
113113   int (*new_frame_callback)(void);   /* returns whether the M6847 is in charge of this frame */
114114   void (*custom_prepare_scanline)(int scanline);
r4667r4668
15131513      else
15141514      {
15151515         /* has the border color changed? */
1516         attrs = (*m6847->get_attributes)(machine, 0x00);
1516         attrs = (*m6847->get_attributes)(machine, 0x00, 0x00);
15171517         if (attrs != m6847->attrs[scanline])
15181518         {
15191519            m6847->dirty = TRUE;
r4667r4668
15421542            for (i = xpos; i < 32; i++)
15431543            {
15441544               data = video_ram[i];
1545               attr = (*m6847->get_attributes)(machine, video_ram[i]);
1545               attr = (*m6847->get_attributes)(machine, video_ram[i],video_ram[i + 0x0800]);
15461546
15471547               if ((data != scanline_data[i].data)   || (attr != scanline_data[i].attr))
15481548               {
r4667r4668
17441744            ch += 0x40;
17451745         }
17461746
1747         if ((ch > 0x20) && (attr & M6847_GM0) && !(attr & M6847_INV)) {
1748            ch += 0x20;
1749         }
1750
17471751         if (attr & M6847_GM1)
17481752            attr ^= M6847_INV;
1753         
17491754      }
17501755
17511756      if (attr & M6847_INV)
src/mess/video/m6847.h
r4667r4668
5353   /* callbacks */
5454   void (*horizontal_sync_callback)(running_machine *machine, int line);
5555   void (*field_sync_callback)(running_machine *machine,int line);
56   UINT8 (*get_attributes)(running_machine *machine, UINT8 video_byte) ATTR_CONST;
56   UINT8 (*get_attributes)(running_machine *machine, UINT8 video_byte,UINT8 attr) ATTR_CONST;
5757   const UINT8 *(*get_video_ram)(running_machine *machine, int scanline);
5858
5959   /* needed for the CoCo 3 */
src/mess/video/atom.c
r4667r4668
1010#include "includes/atom.h"
1111
1212
13static ATTR_CONST UINT8 atom_get_attributes(running_machine *machine, UINT8 c)
13static ATTR_CONST UINT8 atom_get_attributes(running_machine *machine, UINT8 c, UINT8 attr)
1414{
1515   UINT8 result = 0x00;
1616   if (c & 0x40)            result |= M6847_AS | M6847_INTEXT;
src/mess/video/apf.c
r4667r4668
1010UINT8 apf_m6847_attr;
1111static UINT8 apf_chars[0x20], apf_video[0x20];
1212
13static ATTR_CONST UINT8 apf_get_attributes(running_machine *machine, UINT8 c)
13static ATTR_CONST UINT8 apf_get_attributes(running_machine *machine, UINT8 c, UINT8 attr)
1414{
1515
1616   /* this seems to be the same so far, as it gives the same result as vapf */
src/mess/video/vtech1.c
r4667r4668
6060};
6161
6262
63static ATTR_CONST UINT8 vtech1_get_attributes(running_machine *machine, UINT8 c)
63static ATTR_CONST UINT8 vtech1_get_attributes(running_machine *machine, UINT8 c, UINT8 attr)
6464{
6565   UINT8 result = 0x00;
6666   if (c & 0x40)            result |= M6847_INV;
src/mess/includes/coco.h
r4667r4668
5050
5151/*----------- defined in video/coco.c -----------*/
5252
53ATTR_CONST UINT8 coco_get_attributes(running_machine *machine, UINT8 c);
53ATTR_CONST UINT8 coco_get_attributes(running_machine *machine, UINT8 c, UINT8 attr);
5454
5555VIDEO_START( dragon );
5656VIDEO_START( coco );
src/mess/messdriv.c
r4667r4668
11191119   /* Ei Nis */
11201120   DRIVER(pecom64)
11211121
1122   /* Samsung SPC-1000 */
1123   DRIVER(spc1000)
1124
11221125   /* Bondwell */
11231126   DRIVER( bw2 )
11241127
src/mess/mess.mak
r4667r4668
331331   $(MESSOBJ)/rockwell.a \
332332   $(MESSOBJ)/robotron.a \
333333   $(MESSOBJ)/samcoupe.a \
334   $(MESSOBJ)/samsung.a \
334335   $(MESSOBJ)/sapi1.a \
335336   $(MESSOBJ)/sega.a \
336337   $(MESSOBJ)/sgi.a \
r4667r4668
12921293   $(MESS_DRIVERS)/vt100.o \
12931294   $(MESS_VIDEO)/vtvideo.o \
12941295
1296$(MESSOBJ)/samsung.a: \
1297   $(MESS_DRIVERS)/spc1000.o \
1298
12951299$(MESSOBJ)/grundy.a: \
12961300   $(MESS_DRIVERS)/newbrain.o \
12971301   $(MESS_VIDEO)/newbrain.o \
docs/messnew.txt
r4667r4668
77- CD-I (not working)  [incog nito]
88- NTS DreamWriter T200 (not working)  [Roberto Carlos
99  Fernandez Gerhardt, Wilbert Pol]
10- Samsung SPC-1000 [Miodrag Milanovic]
1011
1112
12
1313System Driver Changes:
1414----------------------
1515- [COLECO] Fixed controller bug introduced in 0.131. [Fabio Priuli]

Previous 15994 Revisions Next


© 1998-2018 The MESS Team