src/mess/video/uv201.c
| r15690 | r15691 | |
| 192 | 192 | |
| 193 | 193 | void uv201_device::initialize_palette()
|
| 194 | 194 | {
|
| 195 | | static const UINT8 INTENSITY[] = { 0x90, 0xb0, 0xd0, 0xff };
|
| 195 | UINT8 offlointensity = 0x00;
|
| 196 | UINT8 offhiintensity = 0xc0;
|
| 196 | 197 | |
| 198 | UINT8 onlointensity = 0xa0;
|
| 199 | UINT8 onhiintensity = 0xff;
|
| 200 | |
| 197 | 201 | for (int i = 0; i < 4; i++)
|
| 198 | 202 | {
|
| 199 | 203 | int offset = i * 8;
|
| 200 | | UINT8 value = INTENSITY[i];
|
| 204 | UINT8 onvalue, offvalue;
|
| 201 | 205 | |
| 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
|
| 210 | 225 | }
|
| 211 | 226 | }
|
| 212 | 227 | |
| r15690 | r15691 | |
| 293 | 308 | |
| 294 | 309 | bit signal description
|
| 295 | 310 | |
| 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
|
| 298 | 313 | 2
|
| 299 | 314 | 3
|
| 300 | 315 | 4
|
| r15690 | r15691 | |
| 304 | 319 | |
| 305 | 320 | */
|
| 306 | 321 | |
| 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);
|
| 308 | 323 | |
| 309 | 324 | if (LOG) logerror("Y-Freeze High %02x\n", data);
|
| 310 | 325 | break;
|
src/mess/drivers/vidbrain.c
| r15690 | r15691 | |
| 233 | 233 | //------------------------------------------------- |
| 234 | 234 | |
| 235 | 235 | static 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 |
| 241 | 245 | ADDRESS_MAP_END |
| 242 | 246 | |
| 243 | 247 | |