src/mame/machine/archimds.c
| r8770 | r8771 | |
| 154 | 154 | memc_pages[i] = -1; // indicate unmapped |
| 155 | 155 | } |
| 156 | 156 | |
| 157 | | ioc_regs[4] = 0x10; //set up POR (Power On Register) at start-up |
| 157 | ioc_regs[4] = 0x10; //set up POR (Power On Reset) at start-up |
| 158 | ioc_regs[8] = 0x02; //set up IL[1] On |
| 158 | 159 | } |
| 159 | 160 | |
| 160 | 161 | void archimedes_init(running_machine *machine) |
| r8770 | r8771 | |
| 525 | 526 | }; |
| 526 | 527 | #endif |
| 527 | 528 | |
| 528 | | if (reg >= 0x80 && reg <= 0xbc) |
| 529 | // 0x00 - 0x3c Video Palette Logical Colors (16 colors) |
| 530 | // 0x40 Border Color |
| 531 | // 0x44 - 0x4c Cursor Palette Logical Colors |
| 532 | if (reg >= 0x00 && reg <= 0x4c) |
| 529 | 533 | { |
| 534 | int r,g,b; |
| 535 | |
| 536 | //TODO: 8bpp mode uses a different formula |
| 537 | //i = (val & 0x1000) >> 12; //supremacy bit |
| 538 | b = (val & 0x0f00) >> 8; |
| 539 | g = (val & 0x00f0) >> 4; |
| 540 | r = (val & 0x000f) >> 0; |
| 541 | |
| 542 | palette_set_color_rgb(space->machine, reg >> 2, pal4bit(r), pal4bit(g), pal4bit(b) ); |
| 543 | } |
| 544 | else if (reg >= 0x80 && reg <= 0xbc) |
| 545 | { |
| 530 | 546 | #ifdef DEBUG |
| 531 | 547 | logerror("VIDC: %s = %d\n", vrnames[(reg-0x80)/4], val>>12); |
| 532 | 548 | #endif |