| 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 |
| r4667 | r4668 | |
|---|---|---|
| 29 | 29 | * 1 0 0 1 1 Semigraphic 6 |
| 30 | 30 | * 1 1 1 0 0 Inverted Alphanumeric |
| 31 | 31 | */ |
| 32 | static ATTR_CONST UINT8 lx388_get_attributes(running_machine *machine, UINT8 video_byte) | |
| 32 | static ATTR_CONST UINT8 lx388_get_attributes(running_machine *machine, UINT8 video_byte, UINT8 attr) | |
| 33 | 33 | { |
| 34 | 34 | UINT8 result = 0x00; |
| 35 | 35 | if (video_byte & 0x80) |
| r4667 | r4668 | |
|---|---|---|
| 29 | 29 | * |
| 30 | 30 | *************************************/ |
| 31 | 31 | |
| 32 | ATTR_CONST UINT8 coco_get_attributes(running_machine *machine, UINT8 c) | |
| 32 | ATTR_CONST UINT8 coco_get_attributes(running_machine *machine, UINT8 c, UINT8 attr) | |
| 33 | 33 | { |
| 34 | 34 | coco_state *state = machine->driver_data; |
| 35 | 35 | UINT8 result = 0x00; |
| r4667 | r4668 | |
|---|---|---|
| 108 | 108 | /* callbacks */ |
| 109 | 109 | void (*horizontal_sync_callback)(running_machine *machine, int line); |
| 110 | 110 | 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); | |
| 112 | 112 | const UINT8 *(*get_video_ram)(running_machine *machine, int scanline); |
| 113 | 113 | int (*new_frame_callback)(void); /* returns whether the M6847 is in charge of this frame */ |
| 114 | 114 | void (*custom_prepare_scanline)(int scanline); |
| r4667 | r4668 | |
| 1513 | 1513 | else |
| 1514 | 1514 | { |
| 1515 | 1515 | /* has the border color changed? */ |
| 1516 | attrs = (*m6847->get_attributes)(machine, 0x00); | |
| 1516 | attrs = (*m6847->get_attributes)(machine, 0x00, 0x00); | |
| 1517 | 1517 | if (attrs != m6847->attrs[scanline]) |
| 1518 | 1518 | { |
| 1519 | 1519 | m6847->dirty = TRUE; |
| r4667 | r4668 | |
| 1542 | 1542 | for (i = xpos; i < 32; i++) |
| 1543 | 1543 | { |
| 1544 | 1544 | 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]); | |
| 1546 | 1546 | |
| 1547 | 1547 | if ((data != scanline_data[i].data) || (attr != scanline_data[i].attr)) |
| 1548 | 1548 | { |
| r4667 | r4668 | |
| 1744 | 1744 | ch += 0x40; |
| 1745 | 1745 | } |
| 1746 | 1746 | |
| 1747 | if ((ch > 0x20) && (attr & M6847_GM0) && !(attr & M6847_INV)) { | |
| 1748 | ch += 0x20; | |
| 1749 | } | |
| 1750 | ||
| 1747 | 1751 | if (attr & M6847_GM1) |
| 1748 | 1752 | attr ^= M6847_INV; |
| 1753 | ||
| 1749 | 1754 | } |
| 1750 | 1755 | |
| 1751 | 1756 | if (attr & M6847_INV) |
| r4667 | r4668 | |
|---|---|---|
| 53 | 53 | /* callbacks */ |
| 54 | 54 | void (*horizontal_sync_callback)(running_machine *machine, int line); |
| 55 | 55 | 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; | |
| 57 | 57 | const UINT8 *(*get_video_ram)(running_machine *machine, int scanline); |
| 58 | 58 | |
| 59 | 59 | /* needed for the CoCo 3 */ |
| r4667 | r4668 | |
|---|---|---|
| 10 | 10 | #include "includes/atom.h" |
| 11 | 11 | |
| 12 | 12 | |
| 13 | static ATTR_CONST UINT8 atom_get_attributes(running_machine *machine, UINT8 c) | |
| 13 | static ATTR_CONST UINT8 atom_get_attributes(running_machine *machine, UINT8 c, UINT8 attr) | |
| 14 | 14 | { |
| 15 | 15 | UINT8 result = 0x00; |
| 16 | 16 | if (c & 0x40) result |= M6847_AS | M6847_INTEXT; |
| r4667 | r4668 | |
|---|---|---|
| 10 | 10 | UINT8 apf_m6847_attr; |
| 11 | 11 | static UINT8 apf_chars[0x20], apf_video[0x20]; |
| 12 | 12 | |
| 13 | static ATTR_CONST UINT8 apf_get_attributes(running_machine *machine, UINT8 c) | |
| 13 | static ATTR_CONST UINT8 apf_get_attributes(running_machine *machine, UINT8 c, UINT8 attr) | |
| 14 | 14 | { |
| 15 | 15 | |
| 16 | 16 | /* this seems to be the same so far, as it gives the same result as vapf */ |
| r4667 | r4668 | |
|---|---|---|
| 60 | 60 | }; |
| 61 | 61 | |
| 62 | 62 | |
| 63 | static ATTR_CONST UINT8 vtech1_get_attributes(running_machine *machine, UINT8 c) | |
| 63 | static ATTR_CONST UINT8 vtech1_get_attributes(running_machine *machine, UINT8 c, UINT8 attr) | |
| 64 | 64 | { |
| 65 | 65 | UINT8 result = 0x00; |
| 66 | 66 | if (c & 0x40) result |= M6847_INV; |
| r4667 | r4668 | |
|---|---|---|
| 50 | 50 | |
| 51 | 51 | /*----------- defined in video/coco.c -----------*/ |
| 52 | 52 | |
| 53 | ATTR_CONST UINT8 coco_get_attributes(running_machine *machine, UINT8 c); | |
| 53 | ATTR_CONST UINT8 coco_get_attributes(running_machine *machine, UINT8 c, UINT8 attr); | |
| 54 | 54 | |
| 55 | 55 | VIDEO_START( dragon ); |
| 56 | 56 | VIDEO_START( coco ); |
| r4667 | r4668 | |
|---|---|---|
| 1119 | 1119 | /* Ei Nis */ |
| 1120 | 1120 | DRIVER(pecom64) |
| 1121 | 1121 | |
| 1122 | /* Samsung SPC-1000 */ | |
| 1123 | DRIVER(spc1000) | |
| 1124 | ||
| 1122 | 1125 | /* Bondwell */ |
| 1123 | 1126 | DRIVER( bw2 ) |
| 1124 | 1127 |
| r4667 | r4668 | |
|---|---|---|
| 331 | 331 | $(MESSOBJ)/rockwell.a \ |
| 332 | 332 | $(MESSOBJ)/robotron.a \ |
| 333 | 333 | $(MESSOBJ)/samcoupe.a \ |
| 334 | $(MESSOBJ)/samsung.a \ | |
| 334 | 335 | $(MESSOBJ)/sapi1.a \ |
| 335 | 336 | $(MESSOBJ)/sega.a \ |
| 336 | 337 | $(MESSOBJ)/sgi.a \ |
| r4667 | r4668 | |
| 1292 | 1293 | $(MESS_DRIVERS)/vt100.o \ |
| 1293 | 1294 | $(MESS_VIDEO)/vtvideo.o \ |
| 1294 | 1295 | |
| 1296 | $(MESSOBJ)/samsung.a: \ | |
| 1297 | $(MESS_DRIVERS)/spc1000.o \ | |
| 1298 | ||
| 1295 | 1299 | $(MESSOBJ)/grundy.a: \ |
| 1296 | 1300 | $(MESS_DRIVERS)/newbrain.o \ |
| 1297 | 1301 | $(MESS_VIDEO)/newbrain.o \ |
| r4667 | r4668 | |
|---|---|---|
| 7 | 7 | - CD-I (not working) [incog nito] |
| 8 | 8 | - NTS DreamWriter T200 (not working) [Roberto Carlos |
| 9 | 9 | Fernandez Gerhardt, Wilbert Pol] |
| 10 | - Samsung SPC-1000 [Miodrag Milanovic] | |
| 10 | 11 | |
| 11 | 12 | |
| 12 | ||
| 13 | 13 | System Driver Changes: |
| 14 | 14 | ---------------------- |
| 15 | 15 | - [COLECO] Fixed controller bug introduced in 0.131. [Fabio Priuli] |
| Previous | 15994 Revisions | Next |