src/mess/drivers/aquarius.c
| r2081 | r2082 | |
| 69 | 69 | GFXDECODE_ENTRY( REGION_GFX1, 0x0000, aquarius_charlayout, 0, 256 ) |
| 70 | 70 | GFXDECODE_END |
| 71 | 71 | |
| 72 | | static const rgb_t aquarius_palette[] = |
| 72 | static const rgb_t aquarius_colors[] = |
| 73 | 73 | { |
| 74 | 74 | RGB_BLACK, /* Black */ |
| 75 | 75 | MAKE_RGB(0xff, 0x00, 0x00), /* Red */ |
| r2081 | r2082 | |
| 89 | 89 | MAKE_RGB(0x7f, 0x7f, 0x7f) /* Dark Gray */ |
| 90 | 90 | }; |
| 91 | 91 | |
| 92 | | static const unsigned short aquarius_colortable[] = |
| 92 | static const unsigned short aquarius_palette[] = |
| 93 | 93 | { |
| 94 | 94 | 0, 0, 1, 0, 2, 0, 3, 0, 4, 0, 5, 0, 6, 0, 7, 0, 8, 0, 9, 0,10, 0,11, 0,12, 0,13, 0,14, 0,15, 0, |
| 95 | 95 | 0, 1, 1, 1, 2, 1, 3, 1, 4, 1, 5, 1, 6, 1, 7, 1, 8, 1, 9, 1,10, 1,11, 1,12, 1,13, 1,14, 1,15, 1, |
| r2081 | r2082 | |
| 111 | 111 | |
| 112 | 112 | static PALETTE_INIT( aquarius ) |
| 113 | 113 | { |
| 114 | | palette_set_colors(machine, 0, aquarius_palette, ARRAY_LENGTH(aquarius_palette)); |
| 114 | int i; |
| 115 | |
| 116 | machine->colortable = colortable_alloc(machine, 16); |
| 117 | |
| 118 | for ( i = 0; i < 16; i++ ) |
| 119 | colortable_palette_set_color(machine->colortable, i, aquarius_colors[i]); |
| 120 | |
| 121 | for (i=0; i < 512; i++) |
| 122 | colortable_entry_set_value(machine->colortable, i, aquarius_palette[i]); |
| 115 | 123 | } |
| 116 | 124 | |
| 117 | 125 | /* Keyboard input */ |
| r2081 | r2082 | |
| 121 | 129 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("= + NEXT") PORT_CODE(KEYCODE_EQUALS) PORT_CHAR('=') PORT_CHAR('+') |
| 122 | 130 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Del \\") PORT_CODE(KEYCODE_CLOSEBRACE) PORT_CHAR(8) PORT_CHAR('\\') |
| 123 | 131 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME(": * PEEK") PORT_CODE(KEYCODE_QUOTE) PORT_CHAR(':') PORT_CHAR('*') |
| 124 | | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Rtn") PORT_CODE(KEYCODE_SLASH) PORT_CHAR(13) |
| 132 | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Rtn") PORT_CODE(KEYCODE_ENTER) PORT_CHAR(13) |
| 125 | 133 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("; @ POKE") PORT_CODE(KEYCODE_COLON) PORT_CHAR(';') PORT_CHAR('@') |
| 126 | 134 | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME(". > VAL") PORT_CODE(KEYCODE_STOP) PORT_CHAR('.') PORT_CHAR('>') |
| 127 | 135 | PORT_BIT(0xc0, IP_ACTIVE_LOW, IPT_UNUSED) |
| r2081 | r2082 | |
| 176 | 184 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("e E DIM") PORT_CODE(KEYCODE_E) PORT_CHAR('e') PORT_CHAR('E') PORT_CHAR(5) |
| 177 | 185 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("s S Stplst") PORT_CODE(KEYCODE_S) PORT_CHAR('s') PORT_CHAR('S') PORT_CHAR(19) |
| 178 | 186 | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("z Z CLOAD") PORT_CODE(KEYCODE_Z) PORT_CHAR('z') PORT_CHAR('Z') PORT_CHAR(26) |
| 179 | | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Space CHR$") PORT_CODE(KEYCODE_LSHIFT) PORT_CHAR(32) |
| 187 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Space CHR$") PORT_CODE(KEYCODE_SPACE) PORT_CHAR(32) |
| 180 | 188 | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("a A CSAVE") PORT_CODE(KEYCODE_A) PORT_CHAR('a') PORT_CHAR('A') PORT_CHAR(1) |
| 181 | 189 | PORT_BIT(0xc0, IP_ACTIVE_LOW, IPT_UNUSED) |
| 182 | 190 | |