trunk/src/build/verinfo.c
| r0 | r243518 | |
| 1 | //============================================================ |
| 2 | // |
| 3 | // verinfo.c - Version resource emitter code |
| 4 | // |
| 5 | // Copyright Nicola Salmoria and the MAME Team. |
| 6 | // Visit http://mamedev.org for licensing and usage restrictions. |
| 7 | // |
| 8 | //============================================================ |
| 9 | |
| 10 | #include <stdio.h> |
| 11 | #include <ctype.h> |
| 12 | |
| 13 | #include <string.h> |
| 14 | #include <stdlib.h> |
| 15 | |
| 16 | typedef unsigned char UINT8; |
| 17 | |
| 18 | #define ARRAY_LENGTH(x) (sizeof(x) / sizeof(x[0])) |
| 19 | #define BUILD_MAME (0) |
| 20 | #define BUILD_MESS (1) |
| 21 | #define BUILD_UME (2) |
| 22 | |
| 23 | //============================================================ |
| 24 | // TYPE DEFINITIONS |
| 25 | //============================================================ |
| 26 | |
| 27 | struct version_info |
| 28 | { |
| 29 | int version_major; |
| 30 | int version_minor; |
| 31 | int version_build; |
| 32 | int version_subbuild; |
| 33 | const char *version_string; |
| 34 | const char *author; |
| 35 | const char *comments; |
| 36 | const char *company_name; |
| 37 | const char *file_description; |
| 38 | const char *internal_name; |
| 39 | const char *legal_copyright; |
| 40 | const char *original_filename; |
| 41 | const char *product_name; |
| 42 | }; |
| 43 | |
| 44 | |
| 45 | |
| 46 | //============================================================ |
| 47 | // STATIC |
| 48 | //============================================================ |
| 49 | |
| 50 | static int build; |
| 51 | |
| 52 | |
| 53 | //============================================================ |
| 54 | // emit_version_info |
| 55 | //============================================================ |
| 56 | |
| 57 | static void emit_version_info(const version_info *v) |
| 58 | { |
| 59 | printf("VS_VERSION_INFO VERSIONINFO\n"); |
| 60 | printf("\tFILEVERSION %d,%d,%d,%d\n", v->version_major, v->version_minor, v->version_build, v->version_subbuild); |
| 61 | printf("\tPRODUCTVERSION %d,%d,%d,%d\n", v->version_major, v->version_minor, v->version_build, v->version_subbuild); |
| 62 | printf("\tFILEFLAGSMASK 0x3fL\n"); |
| 63 | #ifdef MAME_DEBUG |
| 64 | if (v->version_build == 0) |
| 65 | printf("\tFILEFLAGS VS_FF_DEBUG\n"); |
| 66 | else |
| 67 | printf("\tFILEFLAGS VS_FF_PRERELEASE | VS_FF_DEBUG\n"); |
| 68 | #else |
| 69 | if (v->version_build == 0) |
| 70 | printf("\tFILEFLAGS 0x0L\n"); |
| 71 | else |
| 72 | printf("\tFILEFLAGS VS_FF_PRERELEASE\n"); |
| 73 | #endif |
| 74 | printf("\tFILEOS VOS_NT_WINDOWS32\n"); |
| 75 | printf("\tFILETYPE VFT_APP\n"); |
| 76 | printf("\tFILESUBTYPE VFT2_UNKNOWN\n"); |
| 77 | printf("BEGIN\n"); |
| 78 | printf("\tBLOCK \"StringFileInfo\"\n"); |
| 79 | printf("\tBEGIN\n"); |
| 80 | printf("#ifdef UNICODE\n"); |
| 81 | printf("\t\tBLOCK \"040904b0\"\n"); |
| 82 | printf("#else\n"); |
| 83 | printf("\t\tBLOCK \"040904E4\"\n"); |
| 84 | printf("#endif\n"); |
| 85 | printf("\t\tBEGIN\n"); |
| 86 | if (v->author != NULL) |
| 87 | printf("\t\t\tVALUE \"Author\", \"%s\\0\"\n", v->author); |
| 88 | if (v->comments != NULL) |
| 89 | printf("\t\t\tVALUE \"Comments\", \"%s\\0\"\n", v->comments); |
| 90 | if (v->company_name != NULL) |
| 91 | printf("\t\t\tVALUE \"CompanyName\", \"%s\\0\"\n", v->company_name); |
| 92 | if (v->file_description != NULL) |
| 93 | printf("\t\t\tVALUE \"FileDescription\", \"%s\\0\"\n", v->file_description); |
| 94 | printf("\t\t\tVALUE \"FileVersion\", \"%d, %d, %d, %d\\0\"\n", v->version_major, v->version_minor, v->version_build, v->version_subbuild); |
| 95 | if (v->internal_name != NULL) |
| 96 | printf("\t\t\tVALUE \"InternalName\", \"%s\\0\"\n", v->internal_name); |
| 97 | if (v->legal_copyright != NULL) |
| 98 | printf("\t\t\tVALUE \"LegalCopyright\", \"%s\\0\"\n", v->legal_copyright); |
| 99 | if (v->original_filename != NULL) |
| 100 | printf("\t\t\tVALUE \"OriginalFilename\", \"%s\\0\"\n", v->original_filename); |
| 101 | if (v->product_name != NULL) |
| 102 | printf("\t\t\tVALUE \"ProductName\", \"%s\\0\"\n", v->product_name); |
| 103 | printf("\t\t\tVALUE \"ProductVersion\", \"%s\\0\"\n", v->version_string); |
| 104 | printf("\t\tEND\n"); |
| 105 | printf("\tEND\n"); |
| 106 | printf("\tBLOCK \"VarFileInfo\"\n"); |
| 107 | printf("\tBEGIN\n"); |
| 108 | printf("#ifdef UNICODE\n"); |
| 109 | printf("\t\tVALUE \"Translation\", 0x409, 1200\n"); |
| 110 | printf("#else\n"); |
| 111 | printf("\t\tVALUE \"Translation\", 0x409, 1252\n"); |
| 112 | printf("#endif\n"); |
| 113 | printf("\tEND\n"); |
| 114 | printf("END\n"); |
| 115 | } |
| 116 | |
| 117 | |
| 118 | |
| 119 | //============================================================ |
| 120 | // parse_version_digit |
| 121 | //============================================================ |
| 122 | |
| 123 | static bool parse_version_digit(const char *str, int *position, int* value) |
| 124 | { |
| 125 | int res = 0; |
| 126 | |
| 127 | while (str[*position] != 0 && !isspace((UINT8)str[*position]) && !isdigit((UINT8)str[*position])) |
| 128 | (*position)++; |
| 129 | |
| 130 | if (str[*position] != 0 && isdigit((UINT8)str[*position])) |
| 131 | { |
| 132 | res = sscanf(&str[*position], "%d", value); |
| 133 | while (isdigit((UINT8)str[*position])) |
| 134 | (*position)++; |
| 135 | } |
| 136 | return res == 1; |
| 137 | } |
| 138 | |
| 139 | |
| 140 | |
| 141 | //============================================================ |
| 142 | // parse_version |
| 143 | //============================================================ |
| 144 | |
| 145 | static int parse_version(char *str, int *version_major, int *version_minor, const char **version_string) |
| 146 | { |
| 147 | char *version; |
| 148 | int position = 0; |
| 149 | |
| 150 | // find the version string |
| 151 | version = strstr(str, "BARE_BUILD_VERSION"); |
| 152 | if (version != NULL) |
| 153 | version = strchr(version, '"'); |
| 154 | if (version == NULL || *version == '\0' || strchr(version, '.') == NULL) |
| 155 | { |
| 156 | fprintf(stderr, "Unable to find version string\n"); |
| 157 | return 1; |
| 158 | } |
| 159 | version++; |
| 160 | *strchr(version, '"') = 0; |
| 161 | |
| 162 | *version_string = version; |
| 163 | if (!parse_version_digit(version, &position, version_major)) |
| 164 | { |
| 165 | fprintf(stderr, "Unable to parse major version\n"); |
| 166 | return 1; |
| 167 | } |
| 168 | if (!parse_version_digit(version, &position, version_minor)) |
| 169 | { |
| 170 | fprintf(stderr, "Unable to parse minor version\n"); |
| 171 | return 1; |
| 172 | } |
| 173 | return 0; |
| 174 | } |
| 175 | |
| 176 | |
| 177 | |
| 178 | //============================================================ |
| 179 | // main |
| 180 | //============================================================ |
| 181 | static int usage(char *me) |
| 182 | { |
| 183 | fprintf(stderr, "Usage: %s [-b mame|mess|ume] <filename>\n", me); |
| 184 | return 1; |
| 185 | } |
| 186 | |
| 187 | |
| 188 | //============================================================ |
| 189 | // main |
| 190 | //============================================================ |
| 191 | |
| 192 | int main(int argc, char *argv[]) |
| 193 | { |
| 194 | version_info v; |
| 195 | char legal_copyright[512]; |
| 196 | char *buffer; |
| 197 | size_t size; |
| 198 | int opt; |
| 199 | FILE *f; |
| 200 | |
| 201 | memset(&v, 0, sizeof(v)); |
| 202 | build = BUILD_MAME; |
| 203 | |
| 204 | // validate parameters |
| 205 | opt = 1; |
| 206 | while (opt < argc && *argv[opt] == '-') |
| 207 | { |
| 208 | if (!strcmp(argv[opt], "-b")) |
| 209 | { |
| 210 | char *p = argv[++opt]; |
| 211 | if (!strcmp(p,"mame")) |
| 212 | build = BUILD_MAME; |
| 213 | else if (!strcmp(p,"mess")) |
| 214 | build = BUILD_MESS; |
| 215 | else if (!strcmp(p,"ume")) |
| 216 | build = BUILD_UME; |
| 217 | else |
| 218 | return usage(argv[0]); |
| 219 | } |
| 220 | else |
| 221 | return usage(argv[0]); |
| 222 | opt++; |
| 223 | } |
| 224 | |
| 225 | if (opt != argc-1 ) |
| 226 | { |
| 227 | return usage(argv[0]); |
| 228 | } |
| 229 | |
| 230 | // open the file |
| 231 | f = fopen(argv[argc-1], "rb"); |
| 232 | if (f == NULL) |
| 233 | { |
| 234 | fprintf(stderr, "Error opening file %s\n", argv[argc-1]); |
| 235 | return 1; |
| 236 | } |
| 237 | |
| 238 | // get the file size |
| 239 | fseek(f, 0, SEEK_END); |
| 240 | size = ftell(f); |
| 241 | fseek(f, 0, SEEK_SET); |
| 242 | |
| 243 | // allocate a buffer |
| 244 | buffer = (char *)malloc(size + 1); |
| 245 | if (buffer == NULL) |
| 246 | { |
| 247 | fclose(f); |
| 248 | fprintf(stderr, "Error allocating %ld bytes\n", (long) size + 1); |
| 249 | return 1; |
| 250 | } |
| 251 | |
| 252 | // read the file contents and NULL-terminate |
| 253 | fread(buffer, 1, size, f); |
| 254 | fclose(f); |
| 255 | buffer[size] = 0; |
| 256 | |
| 257 | // parse out version string |
| 258 | if (parse_version(buffer, &v.version_major, &v.version_minor, &v.version_string)) |
| 259 | { |
| 260 | fprintf(stderr, "Error parsing version\n"); |
| 261 | free(buffer); |
| 262 | return 1; |
| 263 | } |
| 264 | |
| 265 | if (build == BUILD_MESS) |
| 266 | { |
| 267 | // MESS |
| 268 | v.author = "MESS Team"; |
| 269 | v.comments = "Multi Emulation Super System"; |
| 270 | v.company_name = "MESS Team"; |
| 271 | v.file_description = "Multi Emulation Super System"; |
| 272 | v.internal_name = "MESS"; |
| 273 | v.original_filename = "MESS"; |
| 274 | v.product_name = "MESS"; |
| 275 | } |
| 276 | else if (build == BUILD_UME) |
| 277 | { |
| 278 | // UME |
| 279 | v.author = "MAME and MESS Team"; |
| 280 | v.comments = "Universal Machine Emulator"; |
| 281 | v.company_name = "MAME and MESS Team"; |
| 282 | v.file_description = "Universal Machine Emulator"; |
| 283 | v.internal_name = "UME"; |
| 284 | v.original_filename = "UME"; |
| 285 | v.product_name = "UME"; |
| 286 | } |
| 287 | else |
| 288 | { |
| 289 | // MAME |
| 290 | v.author = "Nicola Salmoria and the MAME Team"; |
| 291 | v.comments = "Multiple Arcade Machine Emulator"; |
| 292 | v.company_name = "MAME Team"; |
| 293 | v.file_description = "Multiple Arcade Machine Emulator"; |
| 294 | v.internal_name = "MAME"; |
| 295 | v.original_filename = "MAME"; |
| 296 | v.product_name = "MAME"; |
| 297 | } |
| 298 | |
| 299 | // build legal_copyright string |
| 300 | v.legal_copyright = legal_copyright; |
| 301 | snprintf(legal_copyright, ARRAY_LENGTH(legal_copyright), "Copyright Nicola Salmoria and the MAME team"); |
| 302 | |
| 303 | // emit the info |
| 304 | emit_version_info(&v); |
| 305 | |
| 306 | free(buffer); |
| 307 | return 0; |
| 308 | } |
trunk/src/mess/drivers/alnchase.c
| r243517 | r243518 | |
| 5 | 5 | Tomy Alien Chase (manufactured in Japan) |
| 6 | 6 | * boards are labeled TN-16 |
| 7 | 7 | * NEC uCOM-43 MCU, labeled D553C 258 |
| 8 | | * red/green VFD display with color overlay, 2-sided* |
| 9 | | |
| 10 | | *Player one views the VFD from the front (grid+filament side) while the |
| 11 | | opposite player views it from the back side (through the conductive traces), |
| 12 | | basically a mirror-image. |
| 13 | | |
| 14 | | This is a space-themed tabletop VFD electronic game. To start, simply |
| 15 | | press [UP]. Hold a joystick direction to move around. |
| 8 | * red/green VFD display with color overlay, 2-sided (opposing player sees a mirrored image) |
| 16 | 9 | |
| 17 | | NOTE!: MESS external artwork is required to be able to play |
| 18 | 10 | |
| 19 | 11 | ***************************************************************************/ |
| 20 | 12 | |
| r243517 | r243518 | |
| 31 | 23 | alnchase_state(const machine_config &mconfig, device_type type, const char *tag) |
| 32 | 24 | : driver_device(mconfig, type, tag), |
| 33 | 25 | m_maincpu(*this, "maincpu"), |
| 34 | | m_button_matrix(*this, "IN"), |
| 35 | 26 | m_speaker(*this, "speaker") |
| 36 | 27 | { } |
| 37 | 28 | |
| 38 | 29 | required_device<cpu_device> m_maincpu; |
| 39 | | required_ioport_array<2> m_button_matrix; |
| 40 | 30 | required_device<speaker_sound_device> m_speaker; |
| 41 | 31 | |
| 42 | | UINT8 m_input_mux; |
| 43 | | UINT32 m_plate; |
| 44 | | UINT16 m_grid; |
| 45 | | |
| 46 | | DECLARE_READ8_MEMBER(input_r); |
| 47 | | DECLARE_WRITE8_MEMBER(display_w); |
| 48 | | DECLARE_WRITE8_MEMBER(port_e_w); |
| 49 | | |
| 50 | | UINT32 m_vfd_state[0x10]; |
| 51 | | void update_vfd(); |
| 52 | | |
| 53 | 32 | virtual void machine_start(); |
| 54 | 33 | }; |
| 55 | 34 | |
| 56 | 35 | |
| 57 | 36 | |
| 58 | | /*************************************************************************** |
| 59 | | |
| 60 | | Display |
| 61 | | |
| 62 | | ***************************************************************************/ |
| 63 | | |
| 64 | | void alnchase_state::update_vfd() |
| 65 | | { |
| 66 | | for (int i = 0; i < 9; i++) |
| 67 | | if (m_grid & (1 << i) && m_vfd_state[i] != m_plate) |
| 68 | | { |
| 69 | | // on difference, send to output |
| 70 | | for (int j = 0; j < 17; j++) |
| 71 | | output_set_lamp_value(i*100 + j, m_plate >> j & 1); |
| 72 | | |
| 73 | | m_vfd_state[i] = m_plate; |
| 74 | | } |
| 75 | | } |
| 76 | | |
| 77 | | |
| 78 | | |
| 79 | | /*************************************************************************** |
| 80 | | |
| 81 | | I/O |
| 82 | | |
| 83 | | ***************************************************************************/ |
| 84 | | |
| 85 | | READ8_MEMBER(alnchase_state::input_r) |
| 86 | | { |
| 87 | | UINT8 inp = 0; |
| 88 | | |
| 89 | | // read selected button rows |
| 90 | | for (int i = 0; i < 2; i++) |
| 91 | | if (m_input_mux >> i & 1) |
| 92 | | inp |= m_button_matrix[i]->read(); |
| 93 | | |
| 94 | | return inp; |
| 95 | | } |
| 96 | | |
| 97 | | WRITE8_MEMBER(alnchase_state::display_w) |
| 98 | | { |
| 99 | | int shift; |
| 100 | | |
| 101 | | if (offset <= NEC_UCOM4_PORTE) |
| 102 | | { |
| 103 | | // C/D/E0: vfd matrix grid |
| 104 | | shift = (offset - NEC_UCOM4_PORTC) * 4; |
| 105 | | m_grid = (m_grid & ~(0xf << shift)) | (data << shift); |
| 106 | | |
| 107 | | // C0(grid 0): input enable PL1 |
| 108 | | // D0(grid 4): input enable PL2 |
| 109 | | m_input_mux = (m_grid & 1) | (m_grid >> 3 & 2); |
| 110 | | } |
| 111 | | |
| 112 | | if (offset >= NEC_UCOM4_PORTE) |
| 113 | | { |
| 114 | | // E23/F/G/H/I: vfd matrix plate |
| 115 | | shift = (offset - NEC_UCOM4_PORTE) * 4; |
| 116 | | m_plate = ((m_plate << 2 & ~(0xf << shift)) | (data << shift)) >> 2; |
| 117 | | } |
| 118 | | |
| 119 | | update_vfd(); |
| 120 | | } |
| 121 | | |
| 122 | | WRITE8_MEMBER(alnchase_state::port_e_w) |
| 123 | | { |
| 124 | | display_w(space, offset, data); |
| 125 | | |
| 126 | | // E1: speaker out |
| 127 | | m_speaker->level_w(data >> 1 & 1); |
| 128 | | } |
| 129 | | |
| 130 | | |
| 131 | | |
| 132 | | /*************************************************************************** |
| 133 | | |
| 134 | | Inputs |
| 135 | | |
| 136 | | ***************************************************************************/ |
| 137 | | |
| 138 | | /* physical button layout and labels is like this: |
| 139 | | |
| 140 | | POWER SOUND LEVEL PLAYER |
| 141 | | ON ON PRO TWO START |
| 142 | | o o | | |
| 143 | | | | | | [joystick] |
| 144 | | | | o o |
| 145 | | OFF OFF AMA ONE GAME 0,1,2,3 |
| 146 | | |
| 147 | | 1 PLAYER SIDE |
| 148 | | |
| 149 | | other player side only has a joystick |
| 150 | | */ |
| 151 | | |
| 152 | 37 | static INPUT_PORTS_START( alnchase ) |
| 153 | | PORT_START("IN.0") // C0 port A |
| 154 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) |
| 155 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) |
| 156 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) |
| 157 | | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) |
| 158 | | |
| 159 | | PORT_START("IN.1") // D0 port A |
| 160 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(2) // on non-mirrored view, swap P2 left/right |
| 161 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_PLAYER(2) // " |
| 162 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_PLAYER(2) |
| 163 | | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_PLAYER(2) |
| 164 | | |
| 165 | | PORT_START("SW") // port B |
| 166 | | PORT_CONFNAME( 0x01, 0x01, "Players" ) |
| 167 | | PORT_CONFSETTING( 0x01, "1" ) |
| 168 | | PORT_CONFSETTING( 0x00, "2" ) |
| 169 | | PORT_CONFNAME( 0x02, 0x00, DEF_STR( Difficulty ) ) |
| 170 | | PORT_CONFSETTING( 0x00, "Amateur" ) |
| 171 | | PORT_CONFSETTING( 0x02, "Professional" ) |
| 172 | | PORT_BIT( 0x0c, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 173 | 38 | INPUT_PORTS_END |
| 174 | 39 | |
| 175 | 40 | |
| r243517 | r243518 | |
| 182 | 47 | |
| 183 | 48 | void alnchase_state::machine_start() |
| 184 | 49 | { |
| 185 | | // zerofill |
| 186 | | memset(m_vfd_state, 0, sizeof(m_vfd_state)); |
| 187 | | m_input_mux = 0; |
| 188 | | m_plate = 0; |
| 189 | | m_grid = 0; |
| 190 | | |
| 191 | | // register for savestates |
| 192 | | save_item(NAME(m_vfd_state)); |
| 193 | | save_item(NAME(m_input_mux)); |
| 194 | | save_item(NAME(m_plate)); |
| 195 | | save_item(NAME(m_grid)); |
| 196 | 50 | } |
| 197 | 51 | |
| 198 | 52 | |
| r243517 | r243518 | |
| 200 | 54 | |
| 201 | 55 | /* basic machine hardware */ |
| 202 | 56 | MCFG_CPU_ADD("maincpu", NEC_D553, XTAL_400kHz) |
| 203 | | MCFG_UCOM4_READ_A_CB(READ8(alnchase_state, input_r)) |
| 204 | | MCFG_UCOM4_READ_B_CB(IOPORT("SW")) |
| 205 | | MCFG_UCOM4_WRITE_C_CB(WRITE8(alnchase_state, display_w)) |
| 206 | | MCFG_UCOM4_WRITE_D_CB(WRITE8(alnchase_state, display_w)) |
| 207 | | MCFG_UCOM4_WRITE_E_CB(WRITE8(alnchase_state, port_e_w)) |
| 208 | | MCFG_UCOM4_WRITE_F_CB(WRITE8(alnchase_state, display_w)) |
| 209 | | MCFG_UCOM4_WRITE_G_CB(WRITE8(alnchase_state, display_w)) |
| 210 | | MCFG_UCOM4_WRITE_H_CB(WRITE8(alnchase_state, display_w)) |
| 211 | | MCFG_UCOM4_WRITE_I_CB(WRITE8(alnchase_state, display_w)) |
| 212 | 57 | |
| 213 | 58 | MCFG_DEFAULT_LAYOUT(layout_alnchase) |
| 214 | 59 | |
| r243517 | r243518 | |
| 234 | 79 | ROM_END |
| 235 | 80 | |
| 236 | 81 | |
| 237 | | CONS( 1984, alnchase, 0, 0, alnchase, alnchase, driver_device, 0, "Tomy", "Alien Chase", GAME_NOT_WORKING ) |
| 82 | CONS( 1984, alnchase, 0, 0, alnchase, alnchase, driver_device, 0, "Tomy", "Alien Chase", GAME_NOT_WORKING | GAME_SUPPORTS_SAVE ) |
trunk/src/mess/drivers/mbee.c
| r243517 | r243518 | |
| 30 | 30 | - Although certain models came with particular drives as standard, users could add |
| 31 | 31 | the other size if they wished. We support both sizes on any model. |
| 32 | 32 | |
| 33 | Microbee Standard / Plus memory map |
| 34 | |
| 35 | 0000-7FFF RAM |
| 36 | 8000-BFFF SYSTEM roms |
| 37 | C000-DFFF Edasm or WBee (edasm.rom or wbeee12.rom, optional) |
| 38 | E000-EFFF Telcom 1.2 (netrom.ic34; optional) |
| 39 | F000-F7FF Video RAM |
| 40 | F800-FFFF PCG RAM (graphics) |
| 41 | |
| 42 | Microbee IC memory map (preliminary) |
| 43 | |
| 44 | 0000-7FFF RAM |
| 45 | 8000-BFFF SYSTEM roms (bas522a.rom, bas522b.rom) |
| 46 | C000-DFFF Edasm or WBee (edasm.rom or wbeee12.rom, optional) |
| 47 | E000-EFFF Telcom (optional) |
| 48 | F000-F7FF Video RAM |
| 49 | F800-FFFF PCG RAM (graphics), Colour RAM (banked) |
| 50 | |
| 51 | Microbee 56KB ROM memory map (preliminary) |
| 52 | |
| 53 | 0000-DFFF RAM |
| 54 | E000-EFFF ROM 56kb.rom CP/M bootstrap loader |
| 55 | F000-F7FF Video RAM |
| 56 | F800-FFFF PCG RAM (graphics), Colour RAM (banked) |
| 57 | |
| 33 | 58 | Early machines have 'standard' video (128 hires characters). |
| 34 | 59 | Later machines had the option of 'premium' video which |
| 35 | 60 | provides thousands of hires characters, enough to simulate |
| r243517 | r243518 | |
| 40 | 65 | This rom can be replaced with the Dreamdisk Chip-8 rom. |
| 41 | 66 | Note that Telcom 3.21 is 8k, it uses a rombank switch |
| 42 | 67 | (by reading port 0A) to swap between the two halves. |
| 43 | | See Telcom notes below. |
| 68 | See Telcom notes below. |
| 44 | 69 | |
| 45 | 70 | EDASM - Jump to C000, usually the Editor/Assembler package. |
| 46 | 71 | |
| r243517 | r243518 | |
| 50 | 75 | |
| 51 | 76 | These early colour computers have a PROM to create the foreground palette. |
| 52 | 77 | |
| 78 | |
| 53 | 79 | Notes about the printer: |
| 54 | 80 | - When computer turned on, defaults to 1200 baud serial printer |
| 55 | 81 | - Change it to parallel by entering OUTL#1 |
| r243517 | r243518 | |
| 70 | 96 | - Telcom 1.2 (used in mbeeic) has a bug. If you enter NET CLOCK, the status line is |
| 71 | 97 | filled with inverse K. You can fix this from Basic by doing NET CLOCK 3 times. |
| 72 | 98 | |
| 73 | | Notes about Disk System |
| 74 | | - Ports 44 to 47 are for standard connection to FD2793. |
| 75 | | - Port 48 is used for drive/side/density select on write, and intrq/drq on read. |
| 76 | | intrq and drq are OR'd together, then gated to bit 7 of the data bus whenever |
| 77 | | port 48 is activated on read. There are no interrupts used. |
| 78 | | |
| 79 | | Tests of old keyboard. Start mbeeic. |
| 80 | | 1. Load ASTEROIDS PLUS, stay in attract mode, hold down spacebar, |
| 81 | | it should only fire bullets. If it sometimes starts turning, |
| 82 | | thrusting or using the shield, then there is a problem. |
| 83 | | |
| 84 | | 2. Load SCAVENGER and make sure it doesn't go to the next level |
| 85 | | until you find the Exit. |
| 86 | | |
| 87 | | 3. At the Basic prompt, type in EDASM press enter. At the memory size |
| 88 | | prompt press enter. Now, make sure the keyboard works properly. |
| 89 | | |
| 90 | 99 | *************************************************************************** |
| 91 | 100 | |
| 92 | 101 | TODO/not working: |
| 93 | 102 | |
| 94 | 103 | - Printer needs to be understood and fixed. |
| 104 | - Keyboard loses characters if you type at a normal rate. |
| 105 | - Fix Paste (it loses most of the characters) |
| 95 | 106 | |
| 96 | | - 256tc: Paste ignores shift key |
| 97 | | - All others: Paste drops most characters, shift operates randomly. |
| 98 | | |
| 99 | 107 | - various fdc issues: |
| 100 | 108 | - B drive doesn't work. |
| 101 | 109 | - some disks cause MESS to freeze. |
| 102 | 110 | - ENMF pin missing from wd_fdc. |
| 103 | 111 | - incorrect timing for track register causes 256tc failure to boot a disk. |
| 104 | | - 56k model takes 120 seconds to boot a disk if loaded via command line. |
| 105 | | |
| 106 | | - mbeeppc, mbee128p: In Basic, keyboard loses characters. Works fine in Wordbee. |
| 107 | | |
| 112 | - 56k model takes about 2 minutes to boot a disk if loaded via command line. |
| 113 | |
| 108 | 114 | - 256tc: At the menu, if F2 pressed to activate the Monitor, the emulated machine |
| 109 | 115 | crashes due to a bug in z80pio emulation. |
| 110 | | |
| 116 | |
| 111 | 117 | - 256tc: Keyboard ROM U60 needs to be dumped. |
| 112 | 118 | - 128k: GOLD PAL needs to be dumped for the bankswitching. |
| 113 | 119 | - 64k: RED PAL needs to be dumped for the bankswitching. |
| r243517 | r243518 | |
| 119 | 125 | |
| 120 | 126 | - Mouse: a few programs support the use of a serial mouse which interfaced |
| 121 | 127 | directly to the Z80PIO. However there's little info to be found. |
| 122 | | PIO B3 to ground activates the mouse pointer in Shell v3.01. |
| 123 | 128 | |
| 124 | | *******************************************************************************/ |
| 129 | *************************************************************************** |
| 125 | 130 | |
| 131 | Description of Disk System |
| 132 | |
| 133 | - Ports 44 to 47 are for standard connection to FD2793. |
| 134 | - Port 48 is used for drive/side/density select on write, |
| 135 | and intrq/drq on read. |
| 136 | intrq and drq are OR'd together, then gated to bit 7 of the |
| 137 | data bus whenever port 48 is activated on read. There are |
| 138 | no interrupts used. |
| 139 | |
| 140 | ****************************************************************************/ |
| 141 | |
| 142 | |
| 126 | 143 | #include "includes/mbee.h" |
| 127 | 144 | #include "formats/mbee_cas.h" |
| 128 | 145 | |
| 146 | |
| 129 | 147 | #define XTAL_13_5MHz 13500000 |
| 130 | 148 | |
| 131 | 149 | /********** NOTE !!! *********************************************************** |
| r243517 | r243518 | |
| 138 | 156 | ADDRESS_MAP_UNMAP_HIGH |
| 139 | 157 | AM_RANGE(0x0000, 0x0fff) AM_RAMBANK("boot") |
| 140 | 158 | AM_RANGE(0x1000, 0x3fff) AM_RAM |
| 141 | | AM_RANGE(0x4000, 0x7fff) AM_WRITENOP // Needed because quickload to here will crash MESS |
| 159 | AM_RANGE(0x4000, 0x7fff) AM_WRITENOP /* Needed because quickload to here will crash MESS otherwise */ |
| 142 | 160 | AM_RANGE(0x8000, 0xefff) AM_ROM |
| 143 | 161 | AM_RANGE(0xf000, 0xf7ff) AM_READWRITE(mbee_low_r, mbee_low_w) |
| 144 | 162 | AM_RANGE(0xf800, 0xffff) AM_READWRITE(mbee_high_r, mbee_high_w) |
| r243517 | r243518 | |
| 294 | 312 | ADDRESS_MAP_GLOBAL_MASK(0xff) |
| 295 | 313 | ADDRESS_MAP_UNMAP_HIGH |
| 296 | 314 | AM_RANGE(0x00, 0x03) AM_DEVREADWRITE("z80pio", z80pio_device, read_alt, write_alt) |
| 297 | | AM_RANGE(0x04, 0x04) AM_WRITE(mbee_04_w) |
| 298 | | AM_RANGE(0x06, 0x06) AM_WRITE(mbee_06_w) |
| 299 | | AM_RANGE(0x07, 0x07) AM_READ(mbee_07_r) |
| 300 | 315 | AM_RANGE(0x08, 0x08) AM_READWRITE(mbeeic_08_r, mbeeic_08_w) |
| 301 | 316 | AM_RANGE(0x0b, 0x0b) AM_READWRITE(mbee_0b_r, mbee_0b_w) |
| 302 | 317 | AM_RANGE(0x0c, 0x0c) AM_READWRITE(m6545_status_r, m6545_index_w) |
| r243517 | r243518 | |
| 348 | 363 | ADDRESS_MAP_END |
| 349 | 364 | |
| 350 | 365 | static INPUT_PORTS_START( mbee ) |
| 351 | | PORT_START("X.0") /* IN0 KEY ROW 0 [000] */ |
| 366 | PORT_START("X0") /* IN0 KEY ROW 0 [000] */ |
| 352 | 367 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("@") PORT_CODE(KEYCODE_ASTERISK) PORT_CHAR('@') PORT_CHAR('`') |
| 353 | 368 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("A") PORT_CODE(KEYCODE_A) PORT_CHAR('a') PORT_CHAR('A') PORT_CHAR(0x01) |
| 354 | 369 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("B") PORT_CODE(KEYCODE_B) PORT_CHAR('b') PORT_CHAR('B') PORT_CHAR(0x02) |
| r243517 | r243518 | |
| 358 | 373 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("F") PORT_CODE(KEYCODE_F) PORT_CHAR('f') PORT_CHAR('F') PORT_CHAR(0x06) |
| 359 | 374 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("G") PORT_CODE(KEYCODE_G) PORT_CHAR('g') PORT_CHAR('G') PORT_CHAR(0x07) |
| 360 | 375 | |
| 361 | | PORT_START("X.1") /* IN1 KEY ROW 1 [080] */ |
| 376 | PORT_START("X1") /* IN1 KEY ROW 1 [080] */ |
| 362 | 377 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("H") PORT_CODE(KEYCODE_H) PORT_CHAR('h') PORT_CHAR('H') PORT_CHAR(0x08) |
| 363 | 378 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("I") PORT_CODE(KEYCODE_I) PORT_CHAR('i') PORT_CHAR('I') PORT_CHAR(0x09) |
| 364 | 379 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("J") PORT_CODE(KEYCODE_J) PORT_CHAR('j') PORT_CHAR('J') PORT_CHAR(0x0a) |
| r243517 | r243518 | |
| 368 | 383 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("N") PORT_CODE(KEYCODE_N) PORT_CHAR('n') PORT_CHAR('N') PORT_CHAR(0x0e) |
| 369 | 384 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("O") PORT_CODE(KEYCODE_O) PORT_CHAR('o') PORT_CHAR('O') PORT_CHAR(0x0f) |
| 370 | 385 | |
| 371 | | PORT_START("X.2") /* IN2 KEY ROW 2 [100] */ |
| 386 | PORT_START("X2") /* IN2 KEY ROW 2 [100] */ |
| 372 | 387 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("P") PORT_CODE(KEYCODE_P) PORT_CHAR('p') PORT_CHAR('P') PORT_CHAR(0x10) |
| 373 | 388 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("Q") PORT_CODE(KEYCODE_Q) PORT_CHAR('q') PORT_CHAR('Q') PORT_CHAR(0x11) |
| 374 | 389 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("R") PORT_CODE(KEYCODE_R) PORT_CHAR('r') PORT_CHAR('R') PORT_CHAR(0x12) |
| r243517 | r243518 | |
| 378 | 393 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("V") PORT_CODE(KEYCODE_V) PORT_CHAR('v') PORT_CHAR('V') PORT_CHAR(0x16) |
| 379 | 394 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("W") PORT_CODE(KEYCODE_W) PORT_CHAR('w') PORT_CHAR('W') PORT_CHAR(0x17) |
| 380 | 395 | |
| 381 | | PORT_START("X.3") /* IN3 KEY ROW 3 [180] */ |
| 396 | PORT_START("X3") /* IN3 KEY ROW 3 [180] */ |
| 382 | 397 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("X") PORT_CODE(KEYCODE_X) PORT_CHAR('x') PORT_CHAR('X') PORT_CHAR(0x18) |
| 383 | 398 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("Y") PORT_CODE(KEYCODE_Y) PORT_CHAR('u') PORT_CHAR('Y') PORT_CHAR(0x19) |
| 384 | 399 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("Z") PORT_CODE(KEYCODE_Z) PORT_CHAR('z') PORT_CHAR('Z') PORT_CHAR(0x1a) |
| r243517 | r243518 | |
| 388 | 403 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("^") PORT_CODE(KEYCODE_TILDE) PORT_CHAR('^') PORT_CHAR('~') PORT_CHAR(0x1e) |
| 389 | 404 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("Delete") PORT_CODE(KEYCODE_DEL) PORT_CHAR(8) PORT_CHAR(0x5f) PORT_CHAR(0x1f) // port_char not working - hijacked |
| 390 | 405 | |
| 391 | | PORT_START("X.4") /* IN4 KEY ROW 4 [200] */ |
| 406 | PORT_START("X4") /* IN4 KEY ROW 4 [200] */ |
| 392 | 407 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("0") PORT_CODE(KEYCODE_0) PORT_CHAR('0') |
| 393 | 408 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("1 !") PORT_CODE(KEYCODE_1) PORT_CHAR('1') PORT_CHAR('!') |
| 394 | 409 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("2 \"") PORT_CODE(KEYCODE_2) PORT_CHAR('2') PORT_CHAR('\"') |
| r243517 | r243518 | |
| 398 | 413 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("6 &") PORT_CODE(KEYCODE_6) PORT_CHAR('6') PORT_CHAR('&') |
| 399 | 414 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("7 '") PORT_CODE(KEYCODE_7) PORT_CHAR('7') PORT_CHAR('\'') |
| 400 | 415 | |
| 401 | | PORT_START("X.5") /* IN5 KEY ROW 5 [280] */ |
| 416 | PORT_START("X5") /* IN5 KEY ROW 5 [280] */ |
| 402 | 417 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("8 (") PORT_CODE(KEYCODE_8) PORT_CHAR('8') PORT_CHAR('(') |
| 403 | 418 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("9 )") PORT_CODE(KEYCODE_9) PORT_CHAR('9') PORT_CHAR(')') |
| 404 | 419 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("; +") PORT_CODE(KEYCODE_COLON) PORT_CHAR(';') PORT_CHAR('+') |
| r243517 | r243518 | |
| 408 | 423 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME(". >") PORT_CODE(KEYCODE_STOP) PORT_CHAR('.') PORT_CHAR('>') |
| 409 | 424 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("/ ?") PORT_CODE(KEYCODE_SLASH) PORT_CHAR('/') PORT_CHAR('?') |
| 410 | 425 | |
| 411 | | PORT_START("X.6") /* IN6 KEY ROW 6 [300] */ |
| 426 | PORT_START("X6") /* IN6 KEY ROW 6 [300] */ |
| 412 | 427 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("Escape") PORT_CODE(KEYCODE_ESC) PORT_CHAR(27) |
| 413 | 428 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("Backspace") PORT_CODE(KEYCODE_BACKSPACE) PORT_CHAR(8) |
| 414 | 429 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("Tab") PORT_CODE(KEYCODE_TAB) PORT_CHAR(9) |
| r243517 | r243518 | |
| 418 | 433 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("Break") PORT_CODE(KEYCODE_END) PORT_CHAR(3) |
| 419 | 434 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("Space") PORT_CODE(KEYCODE_SPACE) PORT_CHAR(' ') |
| 420 | 435 | |
| 421 | | PORT_START("X.7") /* IN7 KEY ROW 7 [380] */ |
| 436 | PORT_START("X7") /* IN7 KEY ROW 7 [380] */ |
| 422 | 437 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("(Up)") PORT_CODE(KEYCODE_UP) PORT_CHAR(UCHAR_MAMEKEY(UP)) |
| 423 | 438 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("Ctrl") PORT_CODE(KEYCODE_LCONTROL) |
| 424 | 439 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("(Down)") PORT_CODE(KEYCODE_DOWN) PORT_CHAR(UCHAR_MAMEKEY(DOWN)) |
| r243517 | r243518 | |
| 450 | 465 | INPUT_PORTS_END |
| 451 | 466 | |
| 452 | 467 | static INPUT_PORTS_START( mbee256 ) |
| 453 | | PORT_START("Y.0") /* IN0 KEY ROW 0 [+00] */ |
| 468 | PORT_START("X0") /* IN0 KEY ROW 0 [+00] */ |
| 454 | 469 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("F1") PORT_CODE(KEYCODE_F1) |
| 455 | 470 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("Escape") PORT_CODE(KEYCODE_ESC) PORT_CHAR(27) |
| 456 | 471 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("Tab") PORT_CODE(KEYCODE_TAB) PORT_CHAR(9) |
| r243517 | r243518 | |
| 459 | 474 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("DEL (num)") PORT_CODE(KEYCODE_DEL_PAD) |
| 460 | 475 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("Space") PORT_CODE(KEYCODE_SPACE) PORT_CHAR(' ') |
| 461 | 476 | |
| 462 | | PORT_START("Y.1") /* IN1 KEY ROW 1 [+08] */ |
| 477 | PORT_START("X1") /* IN1 KEY ROW 1 [+08] */ |
| 463 | 478 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("F2") PORT_CODE(KEYCODE_F2) |
| 464 | 479 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("1 !") PORT_CODE(KEYCODE_1) PORT_CHAR('1') PORT_CHAR('!') |
| 465 | 480 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("Q") PORT_CODE(KEYCODE_Q) PORT_CHAR('q') PORT_CHAR('Q') PORT_CHAR(0x11) |
| r243517 | r243518 | |
| 468 | 483 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("Linefeed") PORT_CODE(KEYCODE_HOME) PORT_CHAR(10) |
| 469 | 484 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("Insert") PORT_CODE(KEYCODE_INSERT) |
| 470 | 485 | |
| 471 | | PORT_START("Y.2") /* IN2 KEY ROW 2 [+10] */ |
| 486 | PORT_START("X2") /* IN2 KEY ROW 2 [+10] */ |
| 472 | 487 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("F3") PORT_CODE(KEYCODE_F3) |
| 473 | 488 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("2 @") PORT_CODE(KEYCODE_2) PORT_CHAR('2') PORT_CHAR('@') |
| 474 | 489 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("W") PORT_CODE(KEYCODE_W) PORT_CHAR('w') PORT_CHAR('W') PORT_CHAR(0x17) |
| r243517 | r243518 | |
| 478 | 493 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("3 (num)") PORT_CODE(KEYCODE_3_PAD) |
| 479 | 494 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("Z") PORT_CODE(KEYCODE_Z) PORT_CHAR('z') PORT_CHAR('Z') PORT_CHAR(0x1a) |
| 480 | 495 | |
| 481 | | PORT_START("Y.3") /* IN3 KEY ROW 3 [+18] */ |
| 496 | PORT_START("X3") /* IN3 KEY ROW 3 [+18] */ |
| 482 | 497 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("F4") PORT_CODE(KEYCODE_F4) |
| 483 | 498 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("3 #") PORT_CODE(KEYCODE_3) PORT_CHAR('3') PORT_CHAR('#') |
| 484 | 499 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("E") PORT_CODE(KEYCODE_E) PORT_CHAR('e') PORT_CHAR('E') PORT_CHAR(0x05) |
| r243517 | r243518 | |
| 488 | 503 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("6 (num)") PORT_CODE(KEYCODE_6_PAD) |
| 489 | 504 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("X") PORT_CODE(KEYCODE_X) PORT_CHAR('x') PORT_CHAR('X') PORT_CHAR(0x18) |
| 490 | 505 | |
| 491 | | PORT_START("Y.4") /* IN4 KEY ROW 4 [+20] */ |
| 506 | PORT_START("X4") /* IN4 KEY ROW 4 [+20] */ |
| 492 | 507 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("F5") PORT_CODE(KEYCODE_F5) |
| 493 | 508 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("4 $") PORT_CODE(KEYCODE_4) PORT_CHAR('4') PORT_CHAR('$') |
| 494 | 509 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("R") PORT_CODE(KEYCODE_R) PORT_CHAR('r') PORT_CHAR('R') PORT_CHAR(0x12) |
| r243517 | r243518 | |
| 498 | 513 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("9 (num)") PORT_CODE(KEYCODE_9_PAD) |
| 499 | 514 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("C") PORT_CODE(KEYCODE_C) PORT_CHAR('c') PORT_CHAR('C') PORT_CHAR(0x03) |
| 500 | 515 | |
| 501 | | PORT_START("Y.5") /* IN5 KEY ROW 5 [+28] */ |
| 516 | PORT_START("X5") /* IN5 KEY ROW 5 [+28] */ |
| 502 | 517 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("F6") PORT_CODE(KEYCODE_F6) |
| 503 | 518 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("5 %") PORT_CODE(KEYCODE_5) PORT_CHAR('5') PORT_CHAR('%') |
| 504 | 519 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("T") PORT_CODE(KEYCODE_T) PORT_CHAR('t') PORT_CHAR('T') PORT_CHAR(0x14) |
| r243517 | r243518 | |
| 508 | 523 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("4 (num)") PORT_CODE(KEYCODE_4_PAD) |
| 509 | 524 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("V") PORT_CODE(KEYCODE_V) PORT_CHAR('v') PORT_CHAR('V') PORT_CHAR(0x16) |
| 510 | 525 | |
| 511 | | PORT_START("Y.6") /* IN6 KEY ROW 6 [+30] */ |
| 526 | PORT_START("X6") /* IN6 KEY ROW 6 [+30] */ |
| 512 | 527 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("F7") PORT_CODE(KEYCODE_F7) |
| 513 | 528 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("6 &") PORT_CODE(KEYCODE_6) PORT_CHAR('6') PORT_CHAR('&') |
| 514 | 529 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("Y") PORT_CODE(KEYCODE_Y) PORT_CHAR('y') PORT_CHAR('Y') PORT_CHAR(0x19) |
| r243517 | r243518 | |
| 518 | 533 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("(Right)") PORT_CODE(KEYCODE_RIGHT) PORT_CHAR(UCHAR_MAMEKEY(RIGHT)) |
| 519 | 534 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("B") PORT_CODE(KEYCODE_B) PORT_CHAR('b') PORT_CHAR('B') PORT_CHAR(0x02) |
| 520 | 535 | |
| 521 | | PORT_START("Y.7") /* IN7 KEY ROW 7 [+38] */ |
| 536 | PORT_START("X7") /* IN7 KEY ROW 7 [+38] */ |
| 522 | 537 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("F8") PORT_CODE(KEYCODE_F8) |
| 523 | 538 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("7 &") PORT_CODE(KEYCODE_7) PORT_CHAR('7') PORT_CHAR('&') |
| 524 | 539 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("U") PORT_CODE(KEYCODE_U) PORT_CHAR('u') PORT_CHAR('U') PORT_CHAR(0x15) |
| r243517 | r243518 | |
| 526 | 541 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("(Left)") PORT_CODE(KEYCODE_LEFT) PORT_CHAR(UCHAR_MAMEKEY(LEFT)) |
| 527 | 542 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("N") PORT_CODE(KEYCODE_N) PORT_CHAR('n') PORT_CHAR('N') PORT_CHAR(0x0e) |
| 528 | 543 | |
| 529 | | PORT_START("Y.8") /* IN0 KEY ROW 0 [+40] */ |
| 544 | PORT_START("X8") /* IN0 KEY ROW 0 [+40] */ |
| 530 | 545 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("F9") PORT_CODE(KEYCODE_F9) |
| 531 | 546 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("8 *") PORT_CODE(KEYCODE_8) PORT_CHAR('8') PORT_CHAR('*') |
| 532 | 547 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("I") PORT_CODE(KEYCODE_I) PORT_CHAR('i') PORT_CHAR('I') PORT_CHAR(0x09) |
| r243517 | r243518 | |
| 534 | 549 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("(Up)") PORT_CODE(KEYCODE_UP) PORT_CHAR(UCHAR_MAMEKEY(UP)) |
| 535 | 550 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("M") PORT_CODE(KEYCODE_M) PORT_CHAR('m') PORT_CHAR('M') PORT_CHAR(0x0d) |
| 536 | 551 | |
| 537 | | PORT_START("Y.9") /* IN1 KEY ROW 1 [+48] */ |
| 552 | PORT_START("X9") /* IN1 KEY ROW 1 [+48] */ |
| 538 | 553 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("F10") PORT_CODE(KEYCODE_F10) |
| 539 | 554 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("9 (") PORT_CODE(KEYCODE_9) PORT_CHAR('9') PORT_CHAR('(') |
| 540 | 555 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("O") PORT_CODE(KEYCODE_O) PORT_CHAR('o') PORT_CHAR('O') PORT_CHAR(0x0f) |
| r243517 | r243518 | |
| 543 | 558 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("Enter") PORT_CODE(KEYCODE_ENTER) PORT_CODE(KEYCODE_ENTER_PAD) PORT_CHAR(13) |
| 544 | 559 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME(", <") PORT_CODE(KEYCODE_COMMA) PORT_CHAR(',') PORT_CHAR('<') |
| 545 | 560 | |
| 546 | | PORT_START("Y.10") /* IN2 KEY ROW 2 [+50] */ |
| 561 | PORT_START("X10") /* IN2 KEY ROW 2 [+50] */ |
| 547 | 562 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("F11") PORT_CODE(KEYCODE_F11) |
| 548 | 563 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("0 )") PORT_CODE(KEYCODE_0) PORT_CHAR('0') PORT_CHAR(')') |
| 549 | 564 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("P") PORT_CODE(KEYCODE_P) PORT_CHAR('p') PORT_CHAR('P') PORT_CHAR(0x10) |
| r243517 | r243518 | |
| 553 | 568 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("\\ |") PORT_CODE(KEYCODE_BACKSLASH) PORT_CHAR('\\') PORT_CHAR('|') PORT_CHAR(0x1c) |
| 554 | 569 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME(". >") PORT_CODE(KEYCODE_STOP) PORT_CHAR('.') PORT_CHAR('>') |
| 555 | 570 | |
| 556 | | PORT_START("Y.11") /* IN3 KEY ROW 3 [+58] */ |
| 571 | PORT_START("X11") /* IN3 KEY ROW 3 [+58] */ |
| 557 | 572 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("F12") PORT_CODE(KEYCODE_F12) |
| 558 | 573 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("-") PORT_CODE(KEYCODE_MINUS) PORT_CHAR('-') PORT_CHAR('_') |
| 559 | 574 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("[ {") PORT_CODE(KEYCODE_OPENBRACE) PORT_CHAR('[') PORT_CHAR('{') PORT_CHAR(0x1b) |
| r243517 | r243518 | |
| 562 | 577 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("] }") PORT_CODE(KEYCODE_CLOSEBRACE) PORT_CHAR(']') PORT_CHAR('}') PORT_CHAR(0x1d) |
| 563 | 578 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("/ ?") PORT_CODE(KEYCODE_SLASH) PORT_CHAR('/') PORT_CHAR('?') |
| 564 | 579 | |
| 565 | | PORT_START("Y.12") /* IN4 KEY ROW 4 [+60] */ |
| 580 | PORT_START("X12") /* IN4 KEY ROW 4 [+60] */ |
| 566 | 581 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("Shift") PORT_CODE(KEYCODE_LSHIFT) PORT_CODE(KEYCODE_RSHIFT) PORT_CHAR(UCHAR_SHIFT_1) |
| 567 | 582 | |
| 568 | | PORT_START("Y.13") /* IN5 KEY ROW 5 [+68] */ |
| 583 | PORT_START("X13") /* IN5 KEY ROW 5 [+68] */ |
| 569 | 584 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("Ctrl") PORT_CODE(KEYCODE_LCONTROL) PORT_CODE(KEYCODE_RCONTROL) PORT_CHAR(UCHAR_SHIFT_2) |
| 570 | 585 | |
| 571 | | PORT_START("Y.14") /* IN6 KEY ROW 6 [+70] */ |
| 586 | PORT_START("X14") /* IN6 KEY ROW 6 [+70] */ |
| 572 | 587 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("Alt") PORT_CODE(KEYCODE_LALT) PORT_CODE(KEYCODE_RALT) |
| 573 | 588 | |
| 574 | 589 | // Autorun on quickload |
| r243517 | r243518 | |
| 604 | 619 | 8*16 /* every char takes 16 bytes */ |
| 605 | 620 | }; |
| 606 | 621 | |
| 607 | | static GFXDECODE_START( mono ) |
| 622 | static GFXDECODE_START( mbee ) |
| 608 | 623 | GFXDECODE_ENTRY( "gfx", 0x0000, mbee_charlayout, 0, 1 ) |
| 609 | 624 | GFXDECODE_END |
| 610 | 625 | |
| 611 | | static GFXDECODE_START( standard ) |
| 626 | static GFXDECODE_START( mbeeic ) |
| 612 | 627 | GFXDECODE_ENTRY( "gfx", 0x0000, mbee_charlayout, 0, 48 ) |
| 613 | 628 | GFXDECODE_END |
| 614 | 629 | |
| 615 | | static GFXDECODE_START( premium ) |
| 630 | static GFXDECODE_START( mbeeppc ) |
| 616 | 631 | GFXDECODE_ENTRY( "gfx", 0x0000, mbee_charlayout, 0, 8 ) |
| 617 | 632 | GFXDECODE_END |
| 618 | 633 | |
| r243517 | r243518 | |
| 647 | 662 | MCFG_SCREEN_VISIBLE_AREA(0*8, 64*8-1, 0, 19*16-1) |
| 648 | 663 | MCFG_SCREEN_UPDATE_DRIVER(mbee_state, screen_update_mbee) |
| 649 | 664 | |
| 650 | | MCFG_GFXDECODE_ADD("gfxdecode", "palette", mono) |
| 665 | MCFG_GFXDECODE_ADD("gfxdecode", "palette", mbee) |
| 651 | 666 | MCFG_PALETTE_ADD_MONOCHROME_AMBER("palette") // usually sold with amber or green monitor |
| 652 | 667 | |
| 653 | | MCFG_VIDEO_START_OVERRIDE(mbee_state, mono) |
| 668 | MCFG_VIDEO_START_OVERRIDE(mbee_state, mbee) |
| 654 | 669 | |
| 655 | 670 | /* sound hardware */ |
| 656 | 671 | MCFG_SPEAKER_STANDARD_MONO("mono") |
| r243517 | r243518 | |
| 663 | 678 | MCFG_MC6845_ADD("crtc", SY6545_1, "screen", XTAL_12MHz / 8) |
| 664 | 679 | MCFG_MC6845_SHOW_BORDER_AREA(false) |
| 665 | 680 | MCFG_MC6845_CHAR_WIDTH(8) |
| 666 | | MCFG_MC6845_UPDATE_ROW_CB(mbee_state, mono_update_row) |
| 667 | | MCFG_MC6845_ADDR_CHANGED_CB(mbee_state, crtc_update_addr) |
| 681 | MCFG_MC6845_UPDATE_ROW_CB(mbee_state, mbee_update_row) |
| 682 | MCFG_MC6845_ADDR_CHANGED_CB(mbee_state, mbee_update_addr) |
| 668 | 683 | MCFG_MC6845_OUT_VSYNC_CB(WRITELINE(mbee_state, crtc_vs)) |
| 669 | 684 | |
| 670 | 685 | MCFG_QUICKLOAD_ADD("quickload", mbee_state, mbee, "mwb,com,bee", 2) |
| r243517 | r243518 | |
| 703 | 718 | MCFG_SCREEN_VISIBLE_AREA(0, 80*8-1, 0, 19*16-1) |
| 704 | 719 | MCFG_SCREEN_UPDATE_DRIVER(mbee_state, screen_update_mbee) |
| 705 | 720 | |
| 706 | | MCFG_GFXDECODE_ADD("gfxdecode", "palette", standard) |
| 721 | MCFG_GFXDECODE_ADD("gfxdecode", "palette", mbeeic) |
| 707 | 722 | |
| 708 | 723 | MCFG_PALETTE_ADD("palette", 96) |
| 709 | | MCFG_PALETTE_INIT_OWNER(mbee_state, standard) |
| 724 | MCFG_PALETTE_INIT_OWNER(mbee_state, mbeeic) |
| 710 | 725 | |
| 711 | | MCFG_VIDEO_START_OVERRIDE(mbee_state, standard) |
| 726 | MCFG_VIDEO_START_OVERRIDE(mbee_state, mbeeic) |
| 712 | 727 | |
| 713 | 728 | /* sound hardware */ |
| 714 | 729 | MCFG_SPEAKER_STANDARD_MONO("mono") |
| r243517 | r243518 | |
| 721 | 736 | MCFG_MC6845_ADD("crtc", SY6545_1, "screen", XTAL_13_5MHz / 8) |
| 722 | 737 | MCFG_MC6845_SHOW_BORDER_AREA(false) |
| 723 | 738 | MCFG_MC6845_CHAR_WIDTH(8) |
| 724 | | MCFG_MC6845_UPDATE_ROW_CB(mbee_state, colour_update_row) |
| 725 | | MCFG_MC6845_ADDR_CHANGED_CB(mbee_state, crtc_update_addr) |
| 739 | MCFG_MC6845_UPDATE_ROW_CB(mbee_state, mbeeic_update_row) |
| 740 | MCFG_MC6845_ADDR_CHANGED_CB(mbee_state, mbee_update_addr) |
| 726 | 741 | MCFG_MC6845_OUT_VSYNC_CB(WRITELINE(mbee_state, crtc_vs)) |
| 727 | 742 | |
| 728 | 743 | MCFG_QUICKLOAD_ADD("quickload", mbee_state, mbee, "mwb,com,bee", 2) |
| r243517 | r243518 | |
| 758 | 773 | MCFG_CPU_MODIFY( "maincpu" ) |
| 759 | 774 | MCFG_CPU_PROGRAM_MAP(mbeeppc_mem) |
| 760 | 775 | MCFG_CPU_IO_MAP(mbeeppc_io) |
| 761 | | MCFG_VIDEO_START_OVERRIDE(mbee_state, premium) |
| 762 | | MCFG_GFXDECODE_MODIFY("gfxdecode", premium) |
| 776 | MCFG_VIDEO_START_OVERRIDE(mbee_state, mbeeppc) |
| 777 | MCFG_GFXDECODE_MODIFY("gfxdecode", mbeeppc) |
| 763 | 778 | MCFG_PALETTE_MODIFY("palette") |
| 764 | 779 | MCFG_PALETTE_ENTRIES(16) |
| 765 | | MCFG_PALETTE_INIT_OWNER(mbee_state, premium) |
| 780 | MCFG_PALETTE_INIT_OWNER(mbee_state, mbeeppc) |
| 781 | |
| 782 | MCFG_DEVICE_REMOVE("crtc") |
| 783 | MCFG_MC6845_ADD("crtc", SY6545_1, "screen", XTAL_13_5MHz / 8) |
| 784 | MCFG_MC6845_SHOW_BORDER_AREA(false) |
| 785 | MCFG_MC6845_CHAR_WIDTH(8) |
| 786 | MCFG_MC6845_UPDATE_ROW_CB(mbee_state, mbeeppc_update_row) |
| 787 | MCFG_MC6845_ADDR_CHANGED_CB(mbee_state, mbee_update_addr) |
| 788 | MCFG_MC6845_OUT_VSYNC_CB(WRITELINE(mbee_state, crtc_vs)) |
| 766 | 789 | MACHINE_CONFIG_END |
| 767 | 790 | |
| 768 | 791 | static MACHINE_CONFIG_DERIVED( mbee56, mbeeic ) |
| r243517 | r243518 | |
| 782 | 805 | MCFG_CPU_PROGRAM_MAP(mbee256_mem) |
| 783 | 806 | MCFG_CPU_IO_MAP(mbee128_io) |
| 784 | 807 | MCFG_MACHINE_RESET_OVERRIDE(mbee_state, mbee128) |
| 785 | | MCFG_MC146818_ADD( "rtc", XTAL_32_768kHz ) |
| 786 | 808 | MACHINE_CONFIG_END |
| 787 | 809 | |
| 788 | 810 | static MACHINE_CONFIG_DERIVED( mbee128p, mbeeppc ) |
| r243517 | r243518 | |
| 790 | 812 | MCFG_CPU_PROGRAM_MAP(mbee256_mem) |
| 791 | 813 | MCFG_CPU_IO_MAP(mbee128_io) |
| 792 | 814 | MCFG_MACHINE_RESET_OVERRIDE(mbee_state, mbee128) |
| 793 | | MCFG_MC146818_ADD( "rtc", XTAL_32_768kHz ) |
| 794 | 815 | MCFG_WD2793x_ADD("fdc", XTAL_4MHz / 4) |
| 795 | 816 | MCFG_WD_FDC_INTRQ_CALLBACK(WRITELINE(mbee_state, fdc_intrq_w)) |
| 796 | 817 | MCFG_WD_FDC_DRQ_CALLBACK(WRITELINE(mbee_state, fdc_drq_w)) |
| r243517 | r243518 | |
| 803 | 824 | MCFG_CPU_PROGRAM_MAP(mbee256_mem) |
| 804 | 825 | MCFG_CPU_IO_MAP(mbee256_io) |
| 805 | 826 | MCFG_MACHINE_RESET_OVERRIDE(mbee_state, mbee256) |
| 827 | MCFG_MC146818_ADD( "rtc", XTAL_32_768kHz ) |
| 806 | 828 | |
| 829 | MCFG_DEVICE_REMOVE("crtc") |
| 830 | MCFG_MC6845_ADD("crtc", SY6545_1, "screen", XTAL_13_5MHz / 8) |
| 831 | MCFG_MC6845_SHOW_BORDER_AREA(false) |
| 832 | MCFG_MC6845_CHAR_WIDTH(8) |
| 833 | MCFG_MC6845_UPDATE_ROW_CB(mbee_state, mbeeppc_update_row) |
| 834 | MCFG_MC6845_ADDR_CHANGED_CB(mbee_state, mbee256_update_addr) |
| 807 | 835 | MCFG_DEVICE_REMOVE("fdc:0") |
| 808 | 836 | MCFG_DEVICE_REMOVE("fdc:1") |
| 809 | 837 | MCFG_FLOPPY_DRIVE_ADD("fdc:0", mbee_floppies, "drive3a", floppy_image_device::default_floppy_formats) |
| r243517 | r243518 | |
| 814 | 842 | MCFG_CPU_MODIFY( "maincpu" ) |
| 815 | 843 | MCFG_CPU_PROGRAM_MAP(mbeett_mem) |
| 816 | 844 | MCFG_CPU_IO_MAP(mbeett_io) |
| 817 | | MCFG_MACHINE_RESET_OVERRIDE(mbee_state, mbeett) |
| 845 | MCFG_MACHINE_RESET_OVERRIDE(mbee_state, mbeett ) |
| 818 | 846 | MCFG_MC146818_ADD( "rtc", XTAL_32_768kHz ) |
| 847 | |
| 848 | MCFG_DEVICE_REMOVE("crtc") |
| 849 | MCFG_MC6845_ADD("crtc", SY6545_1, "screen", XTAL_13_5MHz / 8) |
| 850 | MCFG_MC6845_SHOW_BORDER_AREA(false) |
| 851 | MCFG_MC6845_CHAR_WIDTH(8) |
| 852 | MCFG_MC6845_UPDATE_ROW_CB(mbee_state, mbeeppc_update_row) |
| 853 | MCFG_MC6845_ADDR_CHANGED_CB(mbee_state, mbee256_update_addr) |
| 819 | 854 | MACHINE_CONFIG_END |
| 820 | 855 | |
| 821 | 856 | /* Unused roms: |
trunk/src/mess/drivers/tmtennis.c
| r243517 | r243518 | |
| 9 | 9 | |
| 10 | 10 | The initial release of this game was in 1979, known as Pro-Tennis, |
| 11 | 11 | it is unknown if the hardware and/or ROM contents differ. |
| 12 | | |
| 13 | | This is an early VFD simple electronic tennis game. Player 1 is on the right |
| 14 | | side, player 2 or CPU on the left. Each player has six possible positions |
| 15 | | where to hit the ball. A backdrop behind the VFD shows a tennis court. |
| 16 | 12 | |
| 17 | | NOTE!: MESS external artwork is required to be able to play |
| 18 | 13 | |
| 14 | TODO: |
| 15 | - 2-player mode doesn't work: the guys auto-serve and the left player |
| 16 | always hits the net, mcu emulation bug? |
| 17 | - difficulty switch changes mcu freq |
| 18 | |
| 19 | 19 | ***************************************************************************/ |
| 20 | 20 | |
| 21 | 21 | #include "emu.h" |
| r243517 | r243518 | |
| 24 | 24 | |
| 25 | 25 | #include "tmtennis.lh" // this is a test layout, external artwork is necessary |
| 26 | 26 | |
| 27 | // master clock is from an LC circuit oscillating by default at 360kHz, |
| 28 | // the difficulty switch puts a capacitor across it to slow it down to 260kHz |
| 29 | #define MASTER_CLOCK_PRO1 (260000) |
| 30 | #define MASTER_CLOCK_PRO2 (360000) |
| 27 | 31 | |
| 32 | |
| 28 | 33 | class tmtennis_state : public driver_device |
| 29 | 34 | { |
| 30 | 35 | public: |
| r243517 | r243518 | |
| 48 | 53 | DECLARE_WRITE8_MEMBER(plate_w); |
| 49 | 54 | DECLARE_WRITE8_MEMBER(grid_w); |
| 50 | 55 | |
| 51 | | DECLARE_INPUT_CHANGED_MEMBER(difficulty_switch); |
| 52 | | void update_clock(); |
| 53 | | |
| 54 | 56 | UINT16 m_vfd_state[0x10]; |
| 55 | 57 | void update_vfd(); |
| 56 | 58 | |
| 57 | | virtual void machine_reset(); |
| 58 | 59 | virtual void machine_start(); |
| 59 | 60 | }; |
| 60 | 61 | |
| 61 | | // master clock is from an LC circuit oscillating by default at 360kHz, but... |
| 62 | | #define MASTER_CLOCK (360000) |
| 63 | 62 | |
| 64 | | void tmtennis_state::update_clock() |
| 65 | | { |
| 66 | | // ...on PRO1, the difficulty switch puts a capacitor across the LC circuit |
| 67 | | // to slow it down to approx. 260kHz (28%) |
| 68 | | m_maincpu->set_clock_scale(m_button_matrix[1]->read() & 0x100 ? 0.72 : 1); |
| 69 | | } |
| 70 | 63 | |
| 71 | | |
| 72 | | |
| 73 | 64 | /*************************************************************************** |
| 74 | 65 | |
| 75 | 66 | Display |
| r243517 | r243518 | |
| 104 | 95 | |
| 105 | 96 | // read selected button rows |
| 106 | 97 | for (int i = 0; i < 2; i++) |
| 107 | | if (m_input_mux >> i & 1) |
| 98 | if (~m_input_mux >> i & 1) |
| 108 | 99 | inp &= m_button_matrix[i]->read(); |
| 109 | 100 | |
| 110 | 101 | return inp >> (offset*4); |
| r243517 | r243518 | |
| 146 | 137 | |
| 147 | 138 | ***************************************************************************/ |
| 148 | 139 | |
| 149 | | INPUT_CHANGED_MEMBER(tmtennis_state::difficulty_switch) |
| 150 | | { |
| 151 | | update_clock(); |
| 152 | | } |
| 153 | | |
| 154 | 140 | /* Pro-Tennis physical button layout and labels is like this: |
| 155 | 141 | |
| 156 | 142 | [SERVE] [1] [2] [3] [3] [2] [1] [SERVE] |
| r243517 | r243518 | |
| 160 | 146 | */ |
| 161 | 147 | |
| 162 | 148 | static INPUT_PORTS_START( tmtennis ) |
| 163 | | PORT_START("IN.0") // E0 port A/B |
| 164 | | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 ) PORT_NAME("P1 Serve") |
| 165 | | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 ) PORT_NAME("P2 Serve") |
| 166 | | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| 167 | | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON4 ) |
| 168 | | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON2 ) |
| 169 | | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON5 ) |
| 170 | | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON3 ) |
| 171 | | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON6 ) |
| 172 | | |
| 173 | | PORT_START("IN.1") // E1 port A/B |
| 174 | | PORT_CONFNAME( 0x101, 0x101, DEF_STR( Difficulty ) ) PORT_CHANGED_MEMBER(DEVICE_SELF, tmtennis_state, difficulty_switch, NULL) |
| 149 | PORT_START("IN.0") // E0 port A/B (left side) |
| 150 | PORT_CONFNAME( 0x101, 0x001, DEF_STR( Difficulty ) ) |
| 175 | 151 | PORT_CONFSETTING( 0x000, "Practice" ) |
| 176 | | PORT_CONFSETTING( 0x101, "Pro 1" ) // -> difficulty_switch |
| 177 | | PORT_CONFSETTING( 0x001, "Pro 2" ) |
| 178 | | PORT_CONFNAME( 0x02, 0x02, "Players" ) |
| 179 | | PORT_CONFSETTING( 0x02, "1" ) |
| 180 | | PORT_CONFSETTING( 0x00, "2" ) |
| 152 | PORT_CONFSETTING( 0x001, "Pro 1" ) |
| 153 | PORT_CONFSETTING( 0x101, "Pro 2" ) |
| 154 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 ) // P2 serve |
| 181 | 155 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) |
| 182 | 156 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(2) |
| 183 | 157 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) |
| 184 | 158 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON5 ) PORT_PLAYER(2) |
| 185 | 159 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) |
| 186 | 160 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON6 ) PORT_PLAYER(2) |
| 161 | |
| 162 | PORT_START("IN.1") // E1 port A/B (right side) |
| 163 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 ) // P1 serve |
| 164 | PORT_CONFNAME( 0x02, 0x02, "Players" ) |
| 165 | PORT_CONFSETTING( 0x02, "1" ) |
| 166 | PORT_CONFSETTING( 0x00, "2" ) |
| 167 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| 168 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON4 ) |
| 169 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON2 ) |
| 170 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON5 ) |
| 171 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON3 ) |
| 172 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON6 ) |
| 187 | 173 | INPUT_PORTS_END |
| 188 | 174 | |
| 189 | 175 | |
| r243517 | r243518 | |
| 194 | 180 | |
| 195 | 181 | ***************************************************************************/ |
| 196 | 182 | |
| 197 | | void tmtennis_state::machine_reset() |
| 198 | | { |
| 199 | | update_clock(); |
| 200 | | } |
| 201 | | |
| 202 | 183 | void tmtennis_state::machine_start() |
| 203 | 184 | { |
| 204 | 185 | // zerofill |
| r243517 | r243518 | |
| 218 | 199 | static MACHINE_CONFIG_START( tmtennis, tmtennis_state ) |
| 219 | 200 | |
| 220 | 201 | /* basic machine hardware */ |
| 221 | | MCFG_CPU_ADD("maincpu", NEC_D552, MASTER_CLOCK) |
| 202 | MCFG_CPU_ADD("maincpu", NEC_D552, MASTER_CLOCK_PRO2) |
| 222 | 203 | MCFG_UCOM4_READ_A_CB(READ8(tmtennis_state, input_r)) |
| 223 | 204 | MCFG_UCOM4_READ_B_CB(READ8(tmtennis_state, input_r)) |
| 224 | 205 | MCFG_UCOM4_WRITE_C_CB(WRITE8(tmtennis_state, plate_w)) |
| r243517 | r243518 | |
| 253 | 234 | ROM_END |
| 254 | 235 | |
| 255 | 236 | |
| 256 | | CONS( 1980, tmtennis, 0, 0, tmtennis, tmtennis, driver_device, 0, "Tomy", "Tennis (Tomytronic)", GAME_SUPPORTS_SAVE ) |
| 237 | CONS( 1980, tmtennis, 0, 0, tmtennis, tmtennis, driver_device, 0, "Tomy", "Tennis (Tomytronic)", GAME_NOT_WORKING | GAME_SUPPORTS_SAVE ) |
trunk/src/mess/layout/alnchase.lay
| r243517 | r243518 | |
| 5 | 5 | |
| 6 | 6 | <element name="static_black"><rect><color red="0.0" green="0.0" blue="0.0" /></rect></element> |
| 7 | 7 | |
| 8 | | <element name="led" defstate="0"> |
| 9 | | <disk state="0"><color red="0.1" green="0.2" blue="0.12" /></disk> |
| 10 | | <disk state="1"><color red="0.5" green="1.0" blue="0.6" /></disk> |
| 8 | <element name="green" defstate="0"> |
| 9 | <disk state="0"><color red="0.0" green="0.1" blue="0.0" /></disk> |
| 10 | <disk state="1"><color red="0.2" green="1.0" blue="0.2" /></disk> |
| 11 | 11 | </element> |
| 12 | <element name="red" defstate="0"> |
| 13 | <disk state="0"><color red="0.1" green="0.0" blue="0.0" /></disk> |
| 14 | <disk state="1"><color red="1.0" green="0.2" blue="0.2" /></disk> |
| 15 | </element> |
| 12 | 16 | |
| 13 | 17 | |
| 14 | 18 | <!-- build screen --> |
| 15 | 19 | |
| 16 | 20 | <view name="Test Layout"> |
| 17 | | <bounds left="0" right="64" top="0" bottom="64" /> |
| 21 | <bounds left="0" right="100" top="0" bottom="100" /> |
| 18 | 22 | <bezel element="static_black"> |
| 19 | | <bounds left="0" right="64" top="0" bottom="64" /> |
| 23 | <bounds left="0" right="100" top="0" bottom="100" /> |
| 20 | 24 | </bezel> |
| 21 | 25 | |
| 22 | | <!-- 17*9 matrix --> |
| 26 | <!-- matrix --> |
| 23 | 27 | |
| 24 | | <bezel name="lamp800" element="led"><bounds x="0" y="0" width="1" height="1" /></bezel> |
| 25 | | <bezel name="lamp801" element="led"><bounds x="2" y="0" width="1" height="1" /></bezel> |
| 26 | | <bezel name="lamp802" element="led"><bounds x="4" y="0" width="1" height="1" /></bezel> |
| 27 | | <bezel name="lamp803" element="led"><bounds x="6" y="0" width="1" height="1" /></bezel> |
| 28 | | <bezel name="lamp804" element="led"><bounds x="8" y="0" width="1" height="1" /></bezel> |
| 29 | | <bezel name="lamp805" element="led"><bounds x="10" y="0" width="1" height="1" /></bezel> |
| 30 | | <bezel name="lamp806" element="led"><bounds x="12" y="0" width="1" height="1" /></bezel> |
| 31 | | <bezel name="lamp807" element="led"><bounds x="14" y="0" width="1" height="1" /></bezel> |
| 32 | | <bezel name="lamp808" element="led"><bounds x="16" y="0" width="1" height="1" /></bezel> |
| 33 | | <bezel name="lamp809" element="led"><bounds x="18" y="0" width="1" height="1" /></bezel> |
| 34 | | <bezel name="lamp810" element="led"><bounds x="20" y="0" width="1" height="1" /></bezel> |
| 35 | | <bezel name="lamp811" element="led"><bounds x="22" y="0" width="1" height="1" /></bezel> |
| 36 | | <bezel name="lamp812" element="led"><bounds x="24" y="0" width="1" height="1" /></bezel> |
| 37 | | <bezel name="lamp813" element="led"><bounds x="26" y="0" width="1" height="1" /></bezel> |
| 38 | | <bezel name="lamp814" element="led"><bounds x="28" y="0" width="1" height="1" /></bezel> |
| 39 | | <bezel name="lamp815" element="led"><bounds x="30" y="0" width="1" height="1" /></bezel> |
| 40 | | <bezel name="lamp816" element="led"><bounds x="32" y="0" width="1" height="1" /></bezel> |
| 28 | <bezel name="lamp0" element="green"><bounds x="0" y="0" width="1" height="1" /></bezel> |
| 41 | 29 | |
| 42 | | <bezel name="lamp700" element="led"><bounds x="0" y="2" width="1" height="1" /></bezel> |
| 43 | | <bezel name="lamp701" element="led"><bounds x="2" y="2" width="1" height="1" /></bezel> |
| 44 | | <bezel name="lamp702" element="led"><bounds x="4" y="2" width="1" height="1" /></bezel> |
| 45 | | <bezel name="lamp703" element="led"><bounds x="6" y="2" width="1" height="1" /></bezel> |
| 46 | | <bezel name="lamp704" element="led"><bounds x="8" y="2" width="1" height="1" /></bezel> |
| 47 | | <bezel name="lamp705" element="led"><bounds x="10" y="2" width="1" height="1" /></bezel> |
| 48 | | <bezel name="lamp706" element="led"><bounds x="12" y="2" width="1" height="1" /></bezel> |
| 49 | | <bezel name="lamp707" element="led"><bounds x="14" y="2" width="1" height="1" /></bezel> |
| 50 | | <bezel name="lamp708" element="led"><bounds x="16" y="2" width="1" height="1" /></bezel> |
| 51 | | <bezel name="lamp709" element="led"><bounds x="18" y="2" width="1" height="1" /></bezel> |
| 52 | | <bezel name="lamp710" element="led"><bounds x="20" y="2" width="1" height="1" /></bezel> |
| 53 | | <bezel name="lamp711" element="led"><bounds x="22" y="2" width="1" height="1" /></bezel> |
| 54 | | <bezel name="lamp712" element="led"><bounds x="24" y="2" width="1" height="1" /></bezel> |
| 55 | | <bezel name="lamp713" element="led"><bounds x="26" y="2" width="1" height="1" /></bezel> |
| 56 | | <bezel name="lamp714" element="led"><bounds x="28" y="2" width="1" height="1" /></bezel> |
| 57 | | <bezel name="lamp715" element="led"><bounds x="30" y="2" width="1" height="1" /></bezel> |
| 58 | | <bezel name="lamp716" element="led"><bounds x="32" y="2" width="1" height="1" /></bezel> |
| 59 | 30 | |
| 60 | | <bezel name="lamp600" element="led"><bounds x="0" y="4" width="1" height="1" /></bezel> |
| 61 | | <bezel name="lamp601" element="led"><bounds x="2" y="4" width="1" height="1" /></bezel> |
| 62 | | <bezel name="lamp602" element="led"><bounds x="4" y="4" width="1" height="1" /></bezel> |
| 63 | | <bezel name="lamp603" element="led"><bounds x="6" y="4" width="1" height="1" /></bezel> |
| 64 | | <bezel name="lamp604" element="led"><bounds x="8" y="4" width="1" height="1" /></bezel> |
| 65 | | <bezel name="lamp605" element="led"><bounds x="10" y="4" width="1" height="1" /></bezel> |
| 66 | | <bezel name="lamp606" element="led"><bounds x="12" y="4" width="1" height="1" /></bezel> |
| 67 | | <bezel name="lamp607" element="led"><bounds x="14" y="4" width="1" height="1" /></bezel> |
| 68 | | <bezel name="lamp608" element="led"><bounds x="16" y="4" width="1" height="1" /></bezel> |
| 69 | | <bezel name="lamp609" element="led"><bounds x="18" y="4" width="1" height="1" /></bezel> |
| 70 | | <bezel name="lamp610" element="led"><bounds x="20" y="4" width="1" height="1" /></bezel> |
| 71 | | <bezel name="lamp611" element="led"><bounds x="22" y="4" width="1" height="1" /></bezel> |
| 72 | | <bezel name="lamp612" element="led"><bounds x="24" y="4" width="1" height="1" /></bezel> |
| 73 | | <bezel name="lamp613" element="led"><bounds x="26" y="4" width="1" height="1" /></bezel> |
| 74 | | <bezel name="lamp614" element="led"><bounds x="28" y="4" width="1" height="1" /></bezel> |
| 75 | | <bezel name="lamp615" element="led"><bounds x="30" y="4" width="1" height="1" /></bezel> |
| 76 | | <bezel name="lamp616" element="led"><bounds x="32" y="4" width="1" height="1" /></bezel> |
| 77 | | |
| 78 | | <bezel name="lamp500" element="led"><bounds x="0" y="6" width="1" height="1" /></bezel> |
| 79 | | <bezel name="lamp501" element="led"><bounds x="2" y="6" width="1" height="1" /></bezel> |
| 80 | | <bezel name="lamp502" element="led"><bounds x="4" y="6" width="1" height="1" /></bezel> |
| 81 | | <bezel name="lamp503" element="led"><bounds x="6" y="6" width="1" height="1" /></bezel> |
| 82 | | <bezel name="lamp504" element="led"><bounds x="8" y="6" width="1" height="1" /></bezel> |
| 83 | | <bezel name="lamp505" element="led"><bounds x="10" y="6" width="1" height="1" /></bezel> |
| 84 | | <bezel name="lamp506" element="led"><bounds x="12" y="6" width="1" height="1" /></bezel> |
| 85 | | <bezel name="lamp507" element="led"><bounds x="14" y="6" width="1" height="1" /></bezel> |
| 86 | | <bezel name="lamp508" element="led"><bounds x="16" y="6" width="1" height="1" /></bezel> |
| 87 | | <bezel name="lamp509" element="led"><bounds x="18" y="6" width="1" height="1" /></bezel> |
| 88 | | <bezel name="lamp510" element="led"><bounds x="20" y="6" width="1" height="1" /></bezel> |
| 89 | | <bezel name="lamp511" element="led"><bounds x="22" y="6" width="1" height="1" /></bezel> |
| 90 | | <bezel name="lamp512" element="led"><bounds x="24" y="6" width="1" height="1" /></bezel> |
| 91 | | <bezel name="lamp513" element="led"><bounds x="26" y="6" width="1" height="1" /></bezel> |
| 92 | | <bezel name="lamp514" element="led"><bounds x="28" y="6" width="1" height="1" /></bezel> |
| 93 | | <bezel name="lamp515" element="led"><bounds x="30" y="6" width="1" height="1" /></bezel> |
| 94 | | <bezel name="lamp516" element="led"><bounds x="32" y="6" width="1" height="1" /></bezel> |
| 95 | | |
| 96 | | <bezel name="lamp400" element="led"><bounds x="0" y="8" width="1" height="1" /></bezel> |
| 97 | | <bezel name="lamp401" element="led"><bounds x="2" y="8" width="1" height="1" /></bezel> |
| 98 | | <bezel name="lamp402" element="led"><bounds x="4" y="8" width="1" height="1" /></bezel> |
| 99 | | <bezel name="lamp403" element="led"><bounds x="6" y="8" width="1" height="1" /></bezel> |
| 100 | | <bezel name="lamp404" element="led"><bounds x="8" y="8" width="1" height="1" /></bezel> |
| 101 | | <bezel name="lamp405" element="led"><bounds x="10" y="8" width="1" height="1" /></bezel> |
| 102 | | <bezel name="lamp406" element="led"><bounds x="12" y="8" width="1" height="1" /></bezel> |
| 103 | | <bezel name="lamp407" element="led"><bounds x="14" y="8" width="1" height="1" /></bezel> |
| 104 | | <bezel name="lamp408" element="led"><bounds x="16" y="8" width="1" height="1" /></bezel> |
| 105 | | <bezel name="lamp409" element="led"><bounds x="18" y="8" width="1" height="1" /></bezel> |
| 106 | | <bezel name="lamp410" element="led"><bounds x="20" y="8" width="1" height="1" /></bezel> |
| 107 | | <bezel name="lamp411" element="led"><bounds x="22" y="8" width="1" height="1" /></bezel> |
| 108 | | <bezel name="lamp412" element="led"><bounds x="24" y="8" width="1" height="1" /></bezel> |
| 109 | | <bezel name="lamp413" element="led"><bounds x="26" y="8" width="1" height="1" /></bezel> |
| 110 | | <bezel name="lamp414" element="led"><bounds x="28" y="8" width="1" height="1" /></bezel> |
| 111 | | <bezel name="lamp415" element="led"><bounds x="30" y="8" width="1" height="1" /></bezel> |
| 112 | | <bezel name="lamp416" element="led"><bounds x="32" y="8" width="1" height="1" /></bezel> |
| 113 | | |
| 114 | | <bezel name="lamp300" element="led"><bounds x="0" y="10" width="1" height="1" /></bezel> |
| 115 | | <bezel name="lamp301" element="led"><bounds x="2" y="10" width="1" height="1" /></bezel> |
| 116 | | <bezel name="lamp302" element="led"><bounds x="4" y="10" width="1" height="1" /></bezel> |
| 117 | | <bezel name="lamp303" element="led"><bounds x="6" y="10" width="1" height="1" /></bezel> |
| 118 | | <bezel name="lamp304" element="led"><bounds x="8" y="10" width="1" height="1" /></bezel> |
| 119 | | <bezel name="lamp305" element="led"><bounds x="10" y="10" width="1" height="1" /></bezel> |
| 120 | | <bezel name="lamp306" element="led"><bounds x="12" y="10" width="1" height="1" /></bezel> |
| 121 | | <bezel name="lamp307" element="led"><bounds x="14" y="10" width="1" height="1" /></bezel> |
| 122 | | <bezel name="lamp308" element="led"><bounds x="16" y="10" width="1" height="1" /></bezel> |
| 123 | | <bezel name="lamp309" element="led"><bounds x="18" y="10" width="1" height="1" /></bezel> |
| 124 | | <bezel name="lamp310" element="led"><bounds x="20" y="10" width="1" height="1" /></bezel> |
| 125 | | <bezel name="lamp311" element="led"><bounds x="22" y="10" width="1" height="1" /></bezel> |
| 126 | | <bezel name="lamp312" element="led"><bounds x="24" y="10" width="1" height="1" /></bezel> |
| 127 | | <bezel name="lamp313" element="led"><bounds x="26" y="10" width="1" height="1" /></bezel> |
| 128 | | <bezel name="lamp314" element="led"><bounds x="28" y="10" width="1" height="1" /></bezel> |
| 129 | | <bezel name="lamp315" element="led"><bounds x="30" y="10" width="1" height="1" /></bezel> |
| 130 | | <bezel name="lamp316" element="led"><bounds x="32" y="10" width="1" height="1" /></bezel> |
| 131 | | |
| 132 | | <bezel name="lamp200" element="led"><bounds x="0" y="12" width="1" height="1" /></bezel> |
| 133 | | <bezel name="lamp201" element="led"><bounds x="2" y="12" width="1" height="1" /></bezel> |
| 134 | | <bezel name="lamp202" element="led"><bounds x="4" y="12" width="1" height="1" /></bezel> |
| 135 | | <bezel name="lamp203" element="led"><bounds x="6" y="12" width="1" height="1" /></bezel> |
| 136 | | <bezel name="lamp204" element="led"><bounds x="8" y="12" width="1" height="1" /></bezel> |
| 137 | | <bezel name="lamp205" element="led"><bounds x="10" y="12" width="1" height="1" /></bezel> |
| 138 | | <bezel name="lamp206" element="led"><bounds x="12" y="12" width="1" height="1" /></bezel> |
| 139 | | <bezel name="lamp207" element="led"><bounds x="14" y="12" width="1" height="1" /></bezel> |
| 140 | | <bezel name="lamp208" element="led"><bounds x="16" y="12" width="1" height="1" /></bezel> |
| 141 | | <bezel name="lamp209" element="led"><bounds x="18" y="12" width="1" height="1" /></bezel> |
| 142 | | <bezel name="lamp210" element="led"><bounds x="20" y="12" width="1" height="1" /></bezel> |
| 143 | | <bezel name="lamp211" element="led"><bounds x="22" y="12" width="1" height="1" /></bezel> |
| 144 | | <bezel name="lamp212" element="led"><bounds x="24" y="12" width="1" height="1" /></bezel> |
| 145 | | <bezel name="lamp213" element="led"><bounds x="26" y="12" width="1" height="1" /></bezel> |
| 146 | | <bezel name="lamp214" element="led"><bounds x="28" y="12" width="1" height="1" /></bezel> |
| 147 | | <bezel name="lamp215" element="led"><bounds x="30" y="12" width="1" height="1" /></bezel> |
| 148 | | <bezel name="lamp216" element="led"><bounds x="32" y="12" width="1" height="1" /></bezel> |
| 149 | | |
| 150 | | <bezel name="lamp100" element="led"><bounds x="0" y="14" width="1" height="1" /></bezel> |
| 151 | | <bezel name="lamp101" element="led"><bounds x="2" y="14" width="1" height="1" /></bezel> |
| 152 | | <bezel name="lamp102" element="led"><bounds x="4" y="14" width="1" height="1" /></bezel> |
| 153 | | <bezel name="lamp103" element="led"><bounds x="6" y="14" width="1" height="1" /></bezel> |
| 154 | | <bezel name="lamp104" element="led"><bounds x="8" y="14" width="1" height="1" /></bezel> |
| 155 | | <bezel name="lamp105" element="led"><bounds x="10" y="14" width="1" height="1" /></bezel> |
| 156 | | <bezel name="lamp106" element="led"><bounds x="12" y="14" width="1" height="1" /></bezel> |
| 157 | | <bezel name="lamp107" element="led"><bounds x="14" y="14" width="1" height="1" /></bezel> |
| 158 | | <bezel name="lamp108" element="led"><bounds x="16" y="14" width="1" height="1" /></bezel> |
| 159 | | <bezel name="lamp109" element="led"><bounds x="18" y="14" width="1" height="1" /></bezel> |
| 160 | | <bezel name="lamp110" element="led"><bounds x="20" y="14" width="1" height="1" /></bezel> |
| 161 | | <bezel name="lamp111" element="led"><bounds x="22" y="14" width="1" height="1" /></bezel> |
| 162 | | <bezel name="lamp112" element="led"><bounds x="24" y="14" width="1" height="1" /></bezel> |
| 163 | | <bezel name="lamp113" element="led"><bounds x="26" y="14" width="1" height="1" /></bezel> |
| 164 | | <bezel name="lamp114" element="led"><bounds x="28" y="14" width="1" height="1" /></bezel> |
| 165 | | <bezel name="lamp115" element="led"><bounds x="30" y="14" width="1" height="1" /></bezel> |
| 166 | | <bezel name="lamp116" element="led"><bounds x="32" y="14" width="1" height="1" /></bezel> |
| 167 | | |
| 168 | | <bezel name="lamp0" element="led"><bounds x="0" y="16" width="1" height="1" /></bezel> |
| 169 | | <bezel name="lamp1" element="led"><bounds x="2" y="16" width="1" height="1" /></bezel> |
| 170 | | <bezel name="lamp2" element="led"><bounds x="4" y="16" width="1" height="1" /></bezel> |
| 171 | | <bezel name="lamp3" element="led"><bounds x="6" y="16" width="1" height="1" /></bezel> |
| 172 | | <bezel name="lamp4" element="led"><bounds x="8" y="16" width="1" height="1" /></bezel> |
| 173 | | <bezel name="lamp5" element="led"><bounds x="10" y="16" width="1" height="1" /></bezel> |
| 174 | | <bezel name="lamp6" element="led"><bounds x="12" y="16" width="1" height="1" /></bezel> |
| 175 | | <bezel name="lamp7" element="led"><bounds x="14" y="16" width="1" height="1" /></bezel> |
| 176 | | <bezel name="lamp8" element="led"><bounds x="16" y="16" width="1" height="1" /></bezel> |
| 177 | | <bezel name="lamp9" element="led"><bounds x="18" y="16" width="1" height="1" /></bezel> |
| 178 | | <bezel name="lamp10" element="led"><bounds x="20" y="16" width="1" height="1" /></bezel> |
| 179 | | <bezel name="lamp11" element="led"><bounds x="22" y="16" width="1" height="1" /></bezel> |
| 180 | | <bezel name="lamp12" element="led"><bounds x="24" y="16" width="1" height="1" /></bezel> |
| 181 | | <bezel name="lamp13" element="led"><bounds x="26" y="16" width="1" height="1" /></bezel> |
| 182 | | <bezel name="lamp14" element="led"><bounds x="28" y="16" width="1" height="1" /></bezel> |
| 183 | | <bezel name="lamp15" element="led"><bounds x="30" y="16" width="1" height="1" /></bezel> |
| 184 | | <bezel name="lamp16" element="led"><bounds x="32" y="16" width="1" height="1" /></bezel> |
| 185 | | |
| 186 | | |
| 187 | 31 | </view> |
| 188 | 32 | </mamelayout> |
trunk/src/mess/layout/edracula.lay
| r243517 | r243518 | |
| 5 | 5 | |
| 6 | 6 | <element name="static_black"><rect><color red="0.0" green="0.0" blue="0.0" /></rect></element> |
| 7 | 7 | |
| 8 | | <element name="led" defstate="0"> |
| 9 | | <disk state="0"><color red="0.1" green="0.2" blue="0.2" /></disk> |
| 10 | | <disk state="1"><color red="0.5" green="1.0" blue="1.0" /></disk> |
| 8 | <element name="cyan" defstate="0"> |
| 9 | <disk state="0"><color red="0.0" green="0.1" blue="0.1" /></disk> |
| 10 | <disk state="1"><color red="0.2" green="1.0" blue="1.0" /></disk> |
| 11 | 11 | </element> |
| 12 | <element name="green" defstate="0"> |
| 13 | <disk state="0"><color red="0.0" green="0.1" blue="0.0" /></disk> |
| 14 | <disk state="1"><color red="0.2" green="1.0" blue="0.2" /></disk> |
| 15 | </element> |
| 16 | <element name="red" defstate="0"> |
| 17 | <disk state="0"><color red="0.1" green="0.0" blue="0.0" /></disk> |
| 18 | <disk state="1"><color red="1.0" green="0.2" blue="0.2" /></disk> |
| 19 | </element> |
| 12 | 20 | |
| 13 | 21 | |
| 14 | 22 | <!-- build screen --> |
| 15 | 23 | |
| 16 | 24 | <view name="Test Layout"> |
| 17 | | <bounds left="0" right="64" top="0" bottom="64" /> |
| 25 | <bounds left="0" right="100" top="0" bottom="100" /> |
| 18 | 26 | <bezel element="static_black"> |
| 19 | | <bounds left="0" right="64" top="0" bottom="64" /> |
| 27 | <bounds left="0" right="100" top="0" bottom="100" /> |
| 20 | 28 | </bezel> |
| 21 | 29 | |
| 22 | | <!-- 8*18 matrix --> |
| 30 | <!-- matrix --> |
| 23 | 31 | |
| 24 | | <bezel name="lamp700" element="led"><bounds x="0" y="0" width="1" height="1" /></bezel> |
| 25 | | <bezel name="lamp701" element="led"><bounds x="0" y="2" width="1" height="1" /></bezel> |
| 26 | | <bezel name="lamp702" element="led"><bounds x="0" y="4" width="1" height="1" /></bezel> |
| 27 | | <bezel name="lamp703" element="led"><bounds x="0" y="6" width="1" height="1" /></bezel> |
| 28 | | <bezel name="lamp704" element="led"><bounds x="0" y="8" width="1" height="1" /></bezel> |
| 29 | | <bezel name="lamp705" element="led"><bounds x="0" y="10" width="1" height="1" /></bezel> |
| 30 | | <bezel name="lamp706" element="led"><bounds x="0" y="12" width="1" height="1" /></bezel> |
| 31 | | <bezel name="lamp707" element="led"><bounds x="0" y="14" width="1" height="1" /></bezel> |
| 32 | | <bezel name="lamp708" element="led"><bounds x="0" y="16" width="1" height="1" /></bezel> |
| 33 | | <bezel name="lamp709" element="led"><bounds x="0" y="18" width="1" height="1" /></bezel> |
| 34 | | <bezel name="lamp710" element="led"><bounds x="0" y="20" width="1" height="1" /></bezel> |
| 35 | | <bezel name="lamp711" element="led"><bounds x="0" y="22" width="1" height="1" /></bezel> |
| 36 | | <bezel name="lamp712" element="led"><bounds x="0" y="24" width="1" height="1" /></bezel> |
| 37 | | <bezel name="lamp713" element="led"><bounds x="0" y="26" width="1" height="1" /></bezel> |
| 38 | | <bezel name="lamp714" element="led"><bounds x="0" y="28" width="1" height="1" /></bezel> |
| 39 | | <bezel name="lamp715" element="led"><bounds x="0" y="30" width="1" height="1" /></bezel> |
| 40 | | <bezel name="lamp716" element="led"><bounds x="0" y="32" width="1" height="1" /></bezel> |
| 41 | | <bezel name="lamp717" element="led"><bounds x="0" y="34" width="1" height="1" /></bezel> |
| 32 | <bezel name="lamp0" element="green"><bounds x="0" y="0" width="1" height="1" /></bezel> |
| 42 | 33 | |
| 43 | | <bezel name="lamp600" element="led"><bounds x="2" y="0" width="1" height="1" /></bezel> |
| 44 | | <bezel name="lamp601" element="led"><bounds x="2" y="2" width="1" height="1" /></bezel> |
| 45 | | <bezel name="lamp602" element="led"><bounds x="2" y="4" width="1" height="1" /></bezel> |
| 46 | | <bezel name="lamp603" element="led"><bounds x="2" y="6" width="1" height="1" /></bezel> |
| 47 | | <bezel name="lamp604" element="led"><bounds x="2" y="8" width="1" height="1" /></bezel> |
| 48 | | <bezel name="lamp605" element="led"><bounds x="2" y="10" width="1" height="1" /></bezel> |
| 49 | | <bezel name="lamp606" element="led"><bounds x="2" y="12" width="1" height="1" /></bezel> |
| 50 | | <bezel name="lamp607" element="led"><bounds x="2" y="14" width="1" height="1" /></bezel> |
| 51 | | <bezel name="lamp608" element="led"><bounds x="2" y="16" width="1" height="1" /></bezel> |
| 52 | | <bezel name="lamp609" element="led"><bounds x="2" y="18" width="1" height="1" /></bezel> |
| 53 | | <bezel name="lamp610" element="led"><bounds x="2" y="20" width="1" height="1" /></bezel> |
| 54 | | <bezel name="lamp611" element="led"><bounds x="2" y="22" width="1" height="1" /></bezel> |
| 55 | | <bezel name="lamp612" element="led"><bounds x="2" y="24" width="1" height="1" /></bezel> |
| 56 | | <bezel name="lamp613" element="led"><bounds x="2" y="26" width="1" height="1" /></bezel> |
| 57 | | <bezel name="lamp614" element="led"><bounds x="2" y="28" width="1" height="1" /></bezel> |
| 58 | | <bezel name="lamp615" element="led"><bounds x="2" y="30" width="1" height="1" /></bezel> |
| 59 | | <bezel name="lamp616" element="led"><bounds x="2" y="32" width="1" height="1" /></bezel> |
| 60 | | <bezel name="lamp617" element="led"><bounds x="2" y="34" width="1" height="1" /></bezel> |
| 61 | 34 | |
| 62 | | <bezel name="lamp500" element="led"><bounds x="4" y="0" width="1" height="1" /></bezel> |
| 63 | | <bezel name="lamp501" element="led"><bounds x="4" y="2" width="1" height="1" /></bezel> |
| 64 | | <bezel name="lamp502" element="led"><bounds x="4" y="4" width="1" height="1" /></bezel> |
| 65 | | <bezel name="lamp503" element="led"><bounds x="4" y="6" width="1" height="1" /></bezel> |
| 66 | | <bezel name="lamp504" element="led"><bounds x="4" y="8" width="1" height="1" /></bezel> |
| 67 | | <bezel name="lamp505" element="led"><bounds x="4" y="10" width="1" height="1" /></bezel> |
| 68 | | <bezel name="lamp506" element="led"><bounds x="4" y="12" width="1" height="1" /></bezel> |
| 69 | | <bezel name="lamp507" element="led"><bounds x="4" y="14" width="1" height="1" /></bezel> |
| 70 | | <bezel name="lamp508" element="led"><bounds x="4" y="16" width="1" height="1" /></bezel> |
| 71 | | <bezel name="lamp509" element="led"><bounds x="4" y="18" width="1" height="1" /></bezel> |
| 72 | | <bezel name="lamp510" element="led"><bounds x="4" y="20" width="1" height="1" /></bezel> |
| 73 | | <bezel name="lamp511" element="led"><bounds x="4" y="22" width="1" height="1" /></bezel> |
| 74 | | <bezel name="lamp512" element="led"><bounds x="4" y="24" width="1" height="1" /></bezel> |
| 75 | | <bezel name="lamp513" element="led"><bounds x="4" y="26" width="1" height="1" /></bezel> |
| 76 | | <bezel name="lamp514" element="led"><bounds x="4" y="28" width="1" height="1" /></bezel> |
| 77 | | <bezel name="lamp515" element="led"><bounds x="4" y="30" width="1" height="1" /></bezel> |
| 78 | | <bezel name="lamp516" element="led"><bounds x="4" y="32" width="1" height="1" /></bezel> |
| 79 | | <bezel name="lamp517" element="led"><bounds x="4" y="34" width="1" height="1" /></bezel> |
| 80 | | |
| 81 | | <bezel name="lamp400" element="led"><bounds x="6" y="0" width="1" height="1" /></bezel> |
| 82 | | <bezel name="lamp401" element="led"><bounds x="6" y="2" width="1" height="1" /></bezel> |
| 83 | | <bezel name="lamp402" element="led"><bounds x="6" y="4" width="1" height="1" /></bezel> |
| 84 | | <bezel name="lamp403" element="led"><bounds x="6" y="6" width="1" height="1" /></bezel> |
| 85 | | <bezel name="lamp404" element="led"><bounds x="6" y="8" width="1" height="1" /></bezel> |
| 86 | | <bezel name="lamp405" element="led"><bounds x="6" y="10" width="1" height="1" /></bezel> |
| 87 | | <bezel name="lamp406" element="led"><bounds x="6" y="12" width="1" height="1" /></bezel> |
| 88 | | <bezel name="lamp407" element="led"><bounds x="6" y="14" width="1" height="1" /></bezel> |
| 89 | | <bezel name="lamp408" element="led"><bounds x="6" y="16" width="1" height="1" /></bezel> |
| 90 | | <bezel name="lamp409" element="led"><bounds x="6" y="18" width="1" height="1" /></bezel> |
| 91 | | <bezel name="lamp410" element="led"><bounds x="6" y="20" width="1" height="1" /></bezel> |
| 92 | | <bezel name="lamp411" element="led"><bounds x="6" y="22" width="1" height="1" /></bezel> |
| 93 | | <bezel name="lamp412" element="led"><bounds x="6" y="24" width="1" height="1" /></bezel> |
| 94 | | <bezel name="lamp413" element="led"><bounds x="6" y="26" width="1" height="1" /></bezel> |
| 95 | | <bezel name="lamp414" element="led"><bounds x="6" y="28" width="1" height="1" /></bezel> |
| 96 | | <bezel name="lamp415" element="led"><bounds x="6" y="30" width="1" height="1" /></bezel> |
| 97 | | <bezel name="lamp416" element="led"><bounds x="6" y="32" width="1" height="1" /></bezel> |
| 98 | | <bezel name="lamp417" element="led"><bounds x="6" y="34" width="1" height="1" /></bezel> |
| 99 | | |
| 100 | | <bezel name="lamp300" element="led"><bounds x="8" y="0" width="1" height="1" /></bezel> |
| 101 | | <bezel name="lamp301" element="led"><bounds x="8" y="2" width="1" height="1" /></bezel> |
| 102 | | <bezel name="lamp302" element="led"><bounds x="8" y="4" width="1" height="1" /></bezel> |
| 103 | | <bezel name="lamp303" element="led"><bounds x="8" y="6" width="1" height="1" /></bezel> |
| 104 | | <bezel name="lamp304" element="led"><bounds x="8" y="8" width="1" height="1" /></bezel> |
| 105 | | <bezel name="lamp305" element="led"><bounds x="8" y="10" width="1" height="1" /></bezel> |
| 106 | | <bezel name="lamp306" element="led"><bounds x="8" y="12" width="1" height="1" /></bezel> |
| 107 | | <bezel name="lamp307" element="led"><bounds x="8" y="14" width="1" height="1" /></bezel> |
| 108 | | <bezel name="lamp308" element="led"><bounds x="8" y="16" width="1" height="1" /></bezel> |
| 109 | | <bezel name="lamp309" element="led"><bounds x="8" y="18" width="1" height="1" /></bezel> |
| 110 | | <bezel name="lamp310" element="led"><bounds x="8" y="20" width="1" height="1" /></bezel> |
| 111 | | <bezel name="lamp311" element="led"><bounds x="8" y="22" width="1" height="1" /></bezel> |
| 112 | | <bezel name="lamp312" element="led"><bounds x="8" y="24" width="1" height="1" /></bezel> |
| 113 | | <bezel name="lamp313" element="led"><bounds x="8" y="26" width="1" height="1" /></bezel> |
| 114 | | <bezel name="lamp314" element="led"><bounds x="8" y="28" width="1" height="1" /></bezel> |
| 115 | | <bezel name="lamp315" element="led"><bounds x="8" y="30" width="1" height="1" /></bezel> |
| 116 | | <bezel name="lamp316" element="led"><bounds x="8" y="32" width="1" height="1" /></bezel> |
| 117 | | <bezel name="lamp317" element="led"><bounds x="8" y="34" width="1" height="1" /></bezel> |
| 118 | | |
| 119 | | <bezel name="lamp200" element="led"><bounds x="10" y="0" width="1" height="1" /></bezel> |
| 120 | | <bezel name="lamp201" element="led"><bounds x="10" y="2" width="1" height="1" /></bezel> |
| 121 | | <bezel name="lamp202" element="led"><bounds x="10" y="4" width="1" height="1" /></bezel> |
| 122 | | <bezel name="lamp203" element="led"><bounds x="10" y="6" width="1" height="1" /></bezel> |
| 123 | | <bezel name="lamp204" element="led"><bounds x="10" y="8" width="1" height="1" /></bezel> |
| 124 | | <bezel name="lamp205" element="led"><bounds x="10" y="10" width="1" height="1" /></bezel> |
| 125 | | <bezel name="lamp206" element="led"><bounds x="10" y="12" width="1" height="1" /></bezel> |
| 126 | | <bezel name="lamp207" element="led"><bounds x="10" y="14" width="1" height="1" /></bezel> |
| 127 | | <bezel name="lamp208" element="led"><bounds x="10" y="16" width="1" height="1" /></bezel> |
| 128 | | <bezel name="lamp209" element="led"><bounds x="10" y="18" width="1" height="1" /></bezel> |
| 129 | | <bezel name="lamp210" element="led"><bounds x="10" y="20" width="1" height="1" /></bezel> |
| 130 | | <bezel name="lamp211" element="led"><bounds x="10" y="22" width="1" height="1" /></bezel> |
| 131 | | <bezel name="lamp212" element="led"><bounds x="10" y="24" width="1" height="1" /></bezel> |
| 132 | | <bezel name="lamp213" element="led"><bounds x="10" y="26" width="1" height="1" /></bezel> |
| 133 | | <bezel name="lamp214" element="led"><bounds x="10" y="28" width="1" height="1" /></bezel> |
| 134 | | <bezel name="lamp215" element="led"><bounds x="10" y="30" width="1" height="1" /></bezel> |
| 135 | | <bezel name="lamp216" element="led"><bounds x="10" y="32" width="1" height="1" /></bezel> |
| 136 | | <bezel name="lamp217" element="led"><bounds x="10" y="34" width="1" height="1" /></bezel> |
| 137 | | |
| 138 | | <bezel name="lamp100" element="led"><bounds x="12" y="0" width="1" height="1" /></bezel> |
| 139 | | <bezel name="lamp101" element="led"><bounds x="12" y="2" width="1" height="1" /></bezel> |
| 140 | | <bezel name="lamp102" element="led"><bounds x="12" y="4" width="1" height="1" /></bezel> |
| 141 | | <bezel name="lamp103" element="led"><bounds x="12" y="6" width="1" height="1" /></bezel> |
| 142 | | <bezel name="lamp104" element="led"><bounds x="12" y="8" width="1" height="1" /></bezel> |
| 143 | | <bezel name="lamp105" element="led"><bounds x="12" y="10" width="1" height="1" /></bezel> |
| 144 | | <bezel name="lamp106" element="led"><bounds x="12" y="12" width="1" height="1" /></bezel> |
| 145 | | <bezel name="lamp107" element="led"><bounds x="12" y="14" width="1" height="1" /></bezel> |
| 146 | | <bezel name="lamp108" element="led"><bounds x="12" y="16" width="1" height="1" /></bezel> |
| 147 | | <bezel name="lamp109" element="led"><bounds x="12" y="18" width="1" height="1" /></bezel> |
| 148 | | <bezel name="lamp110" element="led"><bounds x="12" y="20" width="1" height="1" /></bezel> |
| 149 | | <bezel name="lamp111" element="led"><bounds x="12" y="22" width="1" height="1" /></bezel> |
| 150 | | <bezel name="lamp112" element="led"><bounds x="12" y="24" width="1" height="1" /></bezel> |
| 151 | | <bezel name="lamp113" element="led"><bounds x="12" y="26" width="1" height="1" /></bezel> |
| 152 | | <bezel name="lamp114" element="led"><bounds x="12" y="28" width="1" height="1" /></bezel> |
| 153 | | <bezel name="lamp115" element="led"><bounds x="12" y="30" width="1" height="1" /></bezel> |
| 154 | | <bezel name="lamp116" element="led"><bounds x="12" y="32" width="1" height="1" /></bezel> |
| 155 | | <bezel name="lamp117" element="led"><bounds x="12" y="34" width="1" height="1" /></bezel> |
| 156 | | |
| 157 | | <bezel name="lamp0" element="led"><bounds x="14" y="0" width="1" height="1" /></bezel> |
| 158 | | <bezel name="lamp1" element="led"><bounds x="14" y="2" width="1" height="1" /></bezel> |
| 159 | | <bezel name="lamp2" element="led"><bounds x="14" y="4" width="1" height="1" /></bezel> |
| 160 | | <bezel name="lamp3" element="led"><bounds x="14" y="6" width="1" height="1" /></bezel> |
| 161 | | <bezel name="lamp4" element="led"><bounds x="14" y="8" width="1" height="1" /></bezel> |
| 162 | | <bezel name="lamp5" element="led"><bounds x="14" y="10" width="1" height="1" /></bezel> |
| 163 | | <bezel name="lamp6" element="led"><bounds x="14" y="12" width="1" height="1" /></bezel> |
| 164 | | <bezel name="lamp7" element="led"><bounds x="14" y="14" width="1" height="1" /></bezel> |
| 165 | | <bezel name="lamp8" element="led"><bounds x="14" y="16" width="1" height="1" /></bezel> |
| 166 | | <bezel name="lamp9" element="led"><bounds x="14" y="18" width="1" height="1" /></bezel> |
| 167 | | <bezel name="lamp10" element="led"><bounds x="14" y="20" width="1" height="1" /></bezel> |
| 168 | | <bezel name="lamp11" element="led"><bounds x="14" y="22" width="1" height="1" /></bezel> |
| 169 | | <bezel name="lamp12" element="led"><bounds x="14" y="24" width="1" height="1" /></bezel> |
| 170 | | <bezel name="lamp13" element="led"><bounds x="14" y="26" width="1" height="1" /></bezel> |
| 171 | | <bezel name="lamp14" element="led"><bounds x="14" y="28" width="1" height="1" /></bezel> |
| 172 | | <bezel name="lamp15" element="led"><bounds x="14" y="30" width="1" height="1" /></bezel> |
| 173 | | <bezel name="lamp16" element="led"><bounds x="14" y="32" width="1" height="1" /></bezel> |
| 174 | | <bezel name="lamp17" element="led"><bounds x="14" y="34" width="1" height="1" /></bezel> |
| 175 | | |
| 176 | | |
| 177 | 35 | </view> |
| 178 | 36 | </mamelayout> |
trunk/src/mess/layout/tmtennis.lay
| r243517 | r243518 | |
| 5 | 5 | |
| 6 | 6 | <element name="static_black"><rect><color red="0.0" green="0.0" blue="0.0" /></rect></element> |
| 7 | 7 | |
| 8 | | <element name="led" defstate="0"> |
| 9 | | <disk state="0"><color red="0.05" green="0.15" blue="0.05" /></disk> |
| 10 | | <disk state="1"><color red="0.3" green="1.0" blue="0.3" /></disk> |
| 8 | <element name="green" defstate="0"> |
| 9 | <disk state="0"><color red="0.0" green="0.1" blue="0.0" /></disk> |
| 10 | <disk state="1"><color red="0.2" green="1.0" blue="0.2" /></disk> |
| 11 | 11 | </element> |
| 12 | 12 | |
| 13 | 13 | |
| 14 | 14 | <!-- build screen --> |
| 15 | 15 | |
| 16 | 16 | <view name="Test Layout"> |
| 17 | | <bounds left="0" right="64" top="0" bottom="64" /> |
| 17 | <bounds left="0" right="100" top="0" bottom="100" /> |
| 18 | 18 | <bezel element="static_black"> |
| 19 | | <bounds left="0" right="64" top="0" bottom="64" /> |
| 19 | <bounds left="0" right="100" top="0" bottom="100" /> |
| 20 | 20 | </bezel> |
| 21 | 21 | |
| 22 | | <!-- 12*12 matrix --> |
| 22 | <!-- matrix --> |
| 23 | 23 | |
| 24 | | <bezel name="lamp0" element="led"><bounds x="0" y="0" width="1" height="1" /></bezel> |
| 25 | | <bezel name="lamp1" element="led"><bounds x="0" y="2" width="1" height="1" /></bezel> |
| 26 | | <bezel name="lamp2" element="led"><bounds x="0" y="4" width="1" height="1" /></bezel> |
| 27 | | <bezel name="lamp3" element="led"><bounds x="0" y="6" width="1" height="1" /></bezel> |
| 28 | | <bezel name="lamp4" element="led"><bounds x="0" y="8" width="1" height="1" /></bezel> |
| 29 | | <bezel name="lamp5" element="led"><bounds x="0" y="10" width="1" height="1" /></bezel> |
| 30 | | <bezel name="lamp6" element="led"><bounds x="0" y="12" width="1" height="1" /></bezel> |
| 31 | | <bezel name="lamp7" element="led"><bounds x="0" y="14" width="1" height="1" /></bezel> |
| 32 | | <bezel name="lamp8" element="led"><bounds x="0" y="16" width="1" height="1" /></bezel> |
| 33 | | <bezel name="lamp9" element="led"><bounds x="0" y="18" width="1" height="1" /></bezel> |
| 34 | | <bezel name="lamp10" element="led"><bounds x="0" y="20" width="1" height="1" /></bezel> |
| 35 | | <bezel name="lamp11" element="led"><bounds x="0" y="22" width="1" height="1" /></bezel> |
| 24 | <bezel name="lamp0" element="green"><bounds x="0" y="0" width="1" height="1" /></bezel> |
| 25 | <bezel name="lamp1" element="green"><bounds x="0" y="2" width="1" height="1" /></bezel> |
| 26 | <bezel name="lamp2" element="green"><bounds x="0" y="4" width="1" height="1" /></bezel> |
| 27 | <bezel name="lamp3" element="green"><bounds x="0" y="6" width="1" height="1" /></bezel> |
| 28 | <bezel name="lamp4" element="green"><bounds x="0" y="8" width="1" height="1" /></bezel> |
| 29 | <bezel name="lamp5" element="green"><bounds x="0" y="10" width="1" height="1" /></bezel> |
| 30 | <bezel name="lamp6" element="green"><bounds x="0" y="12" width="1" height="1" /></bezel> |
| 31 | <bezel name="lamp7" element="green"><bounds x="0" y="14" width="1" height="1" /></bezel> |
| 32 | <bezel name="lamp8" element="green"><bounds x="0" y="16" width="1" height="1" /></bezel> |
| 33 | <bezel name="lamp9" element="green"><bounds x="0" y="18" width="1" height="1" /></bezel> |
| 34 | <bezel name="lamp10" element="green"><bounds x="0" y="20" width="1" height="1" /></bezel> |
| 35 | <bezel name="lamp11" element="green"><bounds x="0" y="22" width="1" height="1" /></bezel> |
| 36 | 36 | |
| 37 | | <bezel name="lamp100" element="led"><bounds x="2" y="0" width="1" height="1" /></bezel> |
| 38 | | <bezel name="lamp101" element="led"><bounds x="2" y="2" width="1" height="1" /></bezel> |
| 39 | | <bezel name="lamp102" element="led"><bounds x="2" y="4" width="1" height="1" /></bezel> |
| 40 | | <bezel name="lamp103" element="led"><bounds x="2" y="6" width="1" height="1" /></bezel> |
| 41 | | <bezel name="lamp104" element="led"><bounds x="2" y="8" width="1" height="1" /></bezel> |
| 42 | | <bezel name="lamp105" element="led"><bounds x="2" y="10" width="1" height="1" /></bezel> |
| 43 | | <bezel name="lamp106" element="led"><bounds x="2" y="12" width="1" height="1" /></bezel> |
| 44 | | <bezel name="lamp107" element="led"><bounds x="2" y="14" width="1" height="1" /></bezel> |
| 45 | | <bezel name="lamp108" element="led"><bounds x="2" y="16" width="1" height="1" /></bezel> |
| 46 | | <bezel name="lamp109" element="led"><bounds x="2" y="18" width="1" height="1" /></bezel> |
| 47 | | <bezel name="lamp110" element="led"><bounds x="2" y="20" width="1" height="1" /></bezel> |
| 48 | | <bezel name="lamp111" element="led"><bounds x="2" y="22" width="1" height="1" /></bezel> |
| 37 | <bezel name="lamp100" element="green"><bounds x="2" y="0" width="1" height="1" /></bezel> |
| 38 | <bezel name="lamp101" element="green"><bounds x="2" y="2" width="1" height="1" /></bezel> |
| 39 | <bezel name="lamp102" element="green"><bounds x="2" y="4" width="1" height="1" /></bezel> |
| 40 | <bezel name="lamp103" element="green"><bounds x="2" y="6" width="1" height="1" /></bezel> |
| 41 | <bezel name="lamp104" element="green"><bounds x="2" y="8" width="1" height="1" /></bezel> |
| 42 | <bezel name="lamp105" element="green"><bounds x="2" y="10" width="1" height="1" /></bezel> |
| 43 | <bezel name="lamp106" element="green"><bounds x="2" y="12" width="1" height="1" /></bezel> |
| 44 | <bezel name="lamp107" element="green"><bounds x="2" y="14" width="1" height="1" /></bezel> |
| 45 | <bezel name="lamp108" element="green"><bounds x="2" y="16" width="1" height="1" /></bezel> |
| 46 | <bezel name="lamp109" element="green"><bounds x="2" y="18" width="1" height="1" /></bezel> |
| 47 | <bezel name="lamp110" element="green"><bounds x="2" y="20" width="1" height="1" /></bezel> |
| 48 | <bezel name="lamp111" element="green"><bounds x="2" y="22" width="1" height="1" /></bezel> |
| 49 | 49 | |
| 50 | | <bezel name="lamp200" element="led"><bounds x="4" y="0" width="1" height="1" /></bezel> |
| 51 | | <bezel name="lamp201" element="led"><bounds x="4" y="2" width="1" height="1" /></bezel> |
| 52 | | <bezel name="lamp202" element="led"><bounds x="4" y="4" width="1" height="1" /></bezel> |
| 53 | | <bezel name="lamp203" element="led"><bounds x="4" y="6" width="1" height="1" /></bezel> |
| 54 | | <bezel name="lamp204" element="led"><bounds x="4" y="8" width="1" height="1" /></bezel> |
| 55 | | <bezel name="lamp205" element="led"><bounds x="4" y="10" width="1" height="1" /></bezel> |
| 56 | | <bezel name="lamp206" element="led"><bounds x="4" y="12" width="1" height="1" /></bezel> |
| 57 | | <bezel name="lamp207" element="led"><bounds x="4" y="14" width="1" height="1" /></bezel> |
| 58 | | <bezel name="lamp208" element="led"><bounds x="4" y="16" width="1" height="1" /></bezel> |
| 59 | | <bezel name="lamp209" element="led"><bounds x="4" y="18" width="1" height="1" /></bezel> |
| 60 | | <bezel name="lamp210" element="led"><bounds x="4" y="20" width="1" height="1" /></bezel> |
| 61 | | <bezel name="lamp211" element="led"><bounds x="4" y="22" width="1" height="1" /></bezel> |
| 50 | <bezel name="lamp200" element="green"><bounds x="4" y="0" width="1" height="1" /></bezel> |
| 51 | <bezel name="lamp201" element="green"><bounds x="4" y="2" width="1" height="1" /></bezel> |
| 52 | <bezel name="lamp202" element="green"><bounds x="4" y="4" width="1" height="1" /></bezel> |
| 53 | <bezel name="lamp203" element="green"><bounds x="4" y="6" width="1" height="1" /></bezel> |
| 54 | <bezel name="lamp204" element="green"><bounds x="4" y="8" width="1" height="1" /></bezel> |
| 55 | <bezel name="lamp205" element="green"><bounds x="4" y="10" width="1" height="1" /></bezel> |
| 56 | <bezel name="lamp206" element="green"><bounds x="4" y="12" width="1" height="1" /></bezel> |
| 57 | <bezel name="lamp207" element="green"><bounds x="4" y="14" width="1" height="1" /></bezel> |
| 58 | <bezel name="lamp208" element="green"><bounds x="4" y="16" width="1" height="1" /></bezel> |
| 59 | <bezel name="lamp209" element="green"><bounds x="4" y="18" width="1" height="1" /></bezel> |
| 60 | <bezel name="lamp210" element="green"><bounds x="4" y="20" width="1" height="1" /></bezel> |
| 61 | <bezel name="lamp211" element="green"><bounds x="4" y="22" width="1" height="1" /></bezel> |
| 62 | 62 | |
| 63 | | <bezel name="lamp300" element="led"><bounds x="6" y="0" width="1" height="1" /></bezel> |
| 64 | | <bezel name="lamp301" element="led"><bounds x="6" y="2" width="1" height="1" /></bezel> |
| 65 | | <bezel name="lamp302" element="led"><bounds x="6" y="4" width="1" height="1" /></bezel> |
| 66 | | <bezel name="lamp303" element="led"><bounds x="6" y="6" width="1" height="1" /></bezel> |
| 67 | | <bezel name="lamp304" element="led"><bounds x="6" y="8" width="1" height="1" /></bezel> |
| 68 | | <bezel name="lamp305" element="led"><bounds x="6" y="10" width="1" height="1" /></bezel> |
| 69 | | <bezel name="lamp306" element="led"><bounds x="6" y="12" width="1" height="1" /></bezel> |
| 70 | | <bezel name="lamp307" element="led"><bounds x="6" y="14" width="1" height="1" /></bezel> |
| 71 | | <bezel name="lamp308" element="led"><bounds x="6" y="16" width="1" height="1" /></bezel> |
| 72 | | <bezel name="lamp309" element="led"><bounds x="6" y="18" width="1" height="1" /></bezel> |
| 73 | | <bezel name="lamp310" element="led"><bounds x="6" y="20" width="1" height="1" /></bezel> |
| 74 | | <bezel name="lamp311" element="led"><bounds x="6" y="22" width="1" height="1" /></bezel> |
| 63 | <bezel name="lamp300" element="green"><bounds x="6" y="0" width="1" height="1" /></bezel> |
| 64 | <bezel name="lamp301" element="green"><bounds x="6" y="2" width="1" height="1" /></bezel> |
| 65 | <bezel name="lamp302" element="green"><bounds x="6" y="4" width="1" height="1" /></bezel> |
| 66 | <bezel name="lamp303" element="green"><bounds x="6" y="6" width="1" height="1" /></bezel> |
| 67 | <bezel name="lamp304" element="green"><bounds x="6" y="8" width="1" height="1" /></bezel> |
| 68 | <bezel name="lamp305" element="green"><bounds x="6" y="10" width="1" height="1" /></bezel> |
| 69 | <bezel name="lamp306" element="green"><bounds x="6" y="12" width="1" height="1" /></bezel> |
| 70 | <bezel name="lamp307" element="green"><bounds x="6" y="14" width="1" height="1" /></bezel> |
| 71 | <bezel name="lamp308" element="green"><bounds x="6" y="16" width="1" height="1" /></bezel> |
| 72 | <bezel name="lamp309" element="green"><bounds x="6" y="18" width="1" height="1" /></bezel> |
| 73 | <bezel name="lamp310" element="green"><bounds x="6" y="20" width="1" height="1" /></bezel> |
| 74 | <bezel name="lamp311" element="green"><bounds x="6" y="22" width="1" height="1" /></bezel> |
| 75 | 75 | |
| 76 | | <bezel name="lamp400" element="led"><bounds x="8" y="0" width="1" height="1" /></bezel> |
| 77 | | <bezel name="lamp401" element="led"><bounds x="8" y="2" width="1" height="1" /></bezel> |
| 78 | | <bezel name="lamp402" element="led"><bounds x="8" y="4" width="1" height="1" /></bezel> |
| 79 | | <bezel name="lamp403" element="led"><bounds x="8" y="6" width="1" height="1" /></bezel> |
| 80 | | <bezel name="lamp404" element="led"><bounds x="8" y="8" width="1" height="1" /></bezel> |
| 81 | | <bezel name="lamp405" element="led"><bounds x="8" y="10" width="1" height="1" /></bezel> |
| 82 | | <bezel name="lamp406" element="led"><bounds x="8" y="12" width="1" height="1" /></bezel> |
| 83 | | <bezel name="lamp407" element="led"><bounds x="8" y="14" width="1" height="1" /></bezel> |
| 84 | | <bezel name="lamp408" element="led"><bounds x="8" y="16" width="1" height="1" /></bezel> |
| 85 | | <bezel name="lamp409" element="led"><bounds x="8" y="18" width="1" height="1" /></bezel> |
| 86 | | <bezel name="lamp410" element="led"><bounds x="8" y="20" width="1" height="1" /></bezel> |
| 87 | | <bezel name="lamp411" element="led"><bounds x="8" y="22" width="1" height="1" /></bezel> |
| 76 | <bezel name="lamp400" element="green"><bounds x="8" y="0" width="1" height="1" /></bezel> |
| 77 | <bezel name="lamp401" element="green"><bounds x="8" y="2" width="1" height="1" /></bezel> |
| 78 | <bezel name="lamp402" element="green"><bounds x="8" y="4" width="1" height="1" /></bezel> |
| 79 | <bezel name="lamp403" element="green"><bounds x="8" y="6" width="1" height="1" /></bezel> |
| 80 | <bezel name="lamp404" element="green"><bounds x="8" y="8" width="1" height="1" /></bezel> |
| 81 | <bezel name="lamp405" element="green"><bounds x="8" y="10" width="1" height="1" /></bezel> |
| 82 | <bezel name="lamp406" element="green"><bounds x="8" y="12" width="1" height="1" /></bezel> |
| 83 | <bezel name="lamp407" element="green"><bounds x="8" y="14" width="1" height="1" /></bezel> |
| 84 | <bezel name="lamp408" element="green"><bounds x="8" y="16" width="1" height="1" /></bezel> |
| 85 | <bezel name="lamp409" element="green"><bounds x="8" y="18" width="1" height="1" /></bezel> |
| 86 | <bezel name="lamp410" element="green"><bounds x="8" y="20" width="1" height="1" /></bezel> |
| 87 | <bezel name="lamp411" element="green"><bounds x="8" y="22" width="1" height="1" /></bezel> |
| 88 | 88 | |
| 89 | | <bezel name="lamp500" element="led"><bounds x="10" y="0" width="1" height="1" /></bezel> |
| 90 | | <bezel name="lamp501" element="led"><bounds x="10" y="2" width="1" height="1" /></bezel> |
| 91 | | <bezel name="lamp502" element="led"><bounds x="10" y="4" width="1" height="1" /></bezel> |
| 92 | | <bezel name="lamp503" element="led"><bounds x="10" y="6" width="1" height="1" /></bezel> |
| 93 | | <bezel name="lamp504" element="led"><bounds x="10" y="8" width="1" height="1" /></bezel> |
| 94 | | <bezel name="lamp505" element="led"><bounds x="10" y="10" width="1" height="1" /></bezel> |
| 95 | | <bezel name="lamp506" element="led"><bounds x="10" y="12" width="1" height="1" /></bezel> |
| 96 | | <bezel name="lamp507" element="led"><bounds x="10" y="14" width="1" height="1" /></bezel> |
| 97 | | <bezel name="lamp508" element="led"><bounds x="10" y="16" width="1" height="1" /></bezel> |
| 98 | | <bezel name="lamp509" element="led"><bounds x="10" y="18" width="1" height="1" /></bezel> |
| 99 | | <bezel name="lamp510" element="led"><bounds x="10" y="20" width="1" height="1" /></bezel> |
| 100 | | <bezel name="lamp511" element="led"><bounds x="10" y="22" width="1" height="1" /></bezel> |
| 89 | <bezel name="lamp500" element="green"><bounds x="10" y="0" width="1" height="1" /></bezel> |
| 90 | <bezel name="lamp501" element="green"><bounds x="10" y="2" width="1" height="1" /></bezel> |
| 91 | <bezel name="lamp502" element="green"><bounds x="10" y="4" width="1" height="1" /></bezel> |
| 92 | <bezel name="lamp503" element="green"><bounds x="10" y="6" width="1" height="1" /></bezel> |
| 93 | <bezel name="lamp504" element="green"><bounds x="10" y="8" width="1" height="1" /></bezel> |
| 94 | <bezel name="lamp505" element="green"><bounds x="10" y="10" width="1" height="1" /></bezel> |
| 95 | <bezel name="lamp506" element="green"><bounds x="10" y="12" width="1" height="1" /></bezel> |
| 96 | <bezel name="lamp507" element="green"><bounds x="10" y="14" width="1" height="1" /></bezel> |
| 97 | <bezel name="lamp508" element="green"><bounds x="10" y="16" width="1" height="1" /></bezel> |
| 98 | <bezel name="lamp509" element="green"><bounds x="10" y="18" width="1" height="1" /></bezel> |
| 99 | <bezel name="lamp510" element="green"><bounds x="10" y="20" width="1" height="1" /></bezel> |
| 100 | <bezel name="lamp511" element="green"><bounds x="10" y="22" width="1" height="1" /></bezel> |
| 101 | 101 | |
| 102 | | <bezel name="lamp600" element="led"><bounds x="12" y="0" width="1" height="1" /></bezel> |
| 103 | | <bezel name="lamp601" element="led"><bounds x="12" y="2" width="1" height="1" /></bezel> |
| 104 | | <bezel name="lamp602" element="led"><bounds x="12" y="4" width="1" height="1" /></bezel> |
| 105 | | <bezel name="lamp603" element="led"><bounds x="12" y="6" width="1" height="1" /></bezel> |
| 106 | | <bezel name="lamp604" element="led"><bounds x="12" y="8" width="1" height="1" /></bezel> |
| 107 | | <bezel name="lamp605" element="led"><bounds x="12" y="10" width="1" height="1" /></bezel> |
| 108 | | <bezel name="lamp606" element="led"><bounds x="12" y="12" width="1" height="1" /></bezel> |
| 109 | | <bezel name="lamp607" element="led"><bounds x="12" y="14" width="1" height="1" /></bezel> |
| 110 | | <bezel name="lamp608" element="led"><bounds x="12" y="16" width="1" height="1" /></bezel> |
| 111 | | <bezel name="lamp609" element="led"><bounds x="12" y="18" width="1" height="1" /></bezel> |
| 112 | | <bezel name="lamp610" element="led"><bounds x="12" y="20" width="1" height="1" /></bezel> |
| 113 | | <bezel name="lamp611" element="led"><bounds x="12" y="22" width="1" height="1" /></bezel> |
| 102 | <bezel name="lamp600" element="green"><bounds x="12" y="0" width="1" height="1" /></bezel> |
| 103 | <bezel name="lamp601" element="green"><bounds x="12" y="2" width="1" height="1" /></bezel> |
| 104 | <bezel name="lamp602" element="green"><bounds x="12" y="4" width="1" height="1" /></bezel> |
| 105 | <bezel name="lamp603" element="green"><bounds x="12" y="6" width="1" height="1" /></bezel> |
| 106 | <bezel name="lamp604" element="green"><bounds x="12" y="8" width="1" height="1" /></bezel> |
| 107 | <bezel name="lamp605" element="green"><bounds x="12" y="10" width="1" height="1" /></bezel> |
| 108 | <bezel name="lamp606" element="green"><bounds x="12" y="12" width="1" height="1" /></bezel> |
| 109 | <bezel name="lamp607" element="green"><bounds x="12" y="14" width="1" height="1" /></bezel> |
| 110 | <bezel name="lamp608" element="green"><bounds x="12" y="16" width="1" height="1" /></bezel> |
| 111 | <bezel name="lamp609" element="green"><bounds x="12" y="18" width="1" height="1" /></bezel> |
| 112 | <bezel name="lamp610" element="green"><bounds x="12" y="20" width="1" height="1" /></bezel> |
| 113 | <bezel name="lamp611" element="green"><bounds x="12" y="22" width="1" height="1" /></bezel> |
| 114 | 114 | |
| 115 | | <bezel name="lamp700" element="led"><bounds x="14" y="0" width="1" height="1" /></bezel> |
| 116 | | <bezel name="lamp701" element="led"><bounds x="14" y="2" width="1" height="1" /></bezel> |
| 117 | | <bezel name="lamp702" element="led"><bounds x="14" y="4" width="1" height="1" /></bezel> |
| 118 | | <bezel name="lamp703" element="led"><bounds x="14" y="6" width="1" height="1" /></bezel> |
| 119 | | <bezel name="lamp704" element="led"><bounds x="14" y="8" width="1" height="1" /></bezel> |
| 120 | | <bezel name="lamp705" element="led"><bounds x="14" y="10" width="1" height="1" /></bezel> |
| 121 | | <bezel name="lamp706" element="led"><bounds x="14" y="12" width="1" height="1" /></bezel> |
| 122 | | <bezel name="lamp707" element="led"><bounds x="14" y="14" width="1" height="1" /></bezel> |
| 123 | | <bezel name="lamp708" element="led"><bounds x="14" y="16" width="1" height="1" /></bezel> |
| 124 | | <bezel name="lamp709" element="led"><bounds x="14" y="18" width="1" height="1" /></bezel> |
| 125 | | <bezel name="lamp710" element="led"><bounds x="14" y="20" width="1" height="1" /></bezel> |
| 126 | | <bezel name="lamp711" element="led"><bounds x="14" y="22" width="1" height="1" /></bezel> |
| 115 | <bezel name="lamp700" element="green"><bounds x="14" y="0" width="1" height="1" /></bezel> |
| 116 | <bezel name="lamp701" element="green"><bounds x="14" y="2" width="1" height="1" /></bezel> |
| 117 | <bezel name="lamp702" element="green"><bounds x="14" y="4" width="1" height="1" /></bezel> |
| 118 | <bezel name="lamp703" element="green"><bounds x="14" y="6" width="1" height="1" /></bezel> |
| 119 | <bezel name="lamp704" element="green"><bounds x="14" y="8" width="1" height="1" /></bezel> |
| 120 | <bezel name="lamp705" element="green"><bounds x="14" y="10" width="1" height="1" /></bezel> |
| 121 | <bezel name="lamp706" element="green"><bounds x="14" y="12" width="1" height="1" /></bezel> |
| 122 | <bezel name="lamp707" element="green"><bounds x="14" y="14" width="1" height="1" /></bezel> |
| 123 | <bezel name="lamp708" element="green"><bounds x="14" y="16" width="1" height="1" /></bezel> |
| 124 | <bezel name="lamp709" element="green"><bounds x="14" y="18" width="1" height="1" /></bezel> |
| 125 | <bezel name="lamp710" element="green"><bounds x="14" y="20" width="1" height="1" /></bezel> |
| 126 | <bezel name="lamp711" element="green"><bounds x="14" y="22" width="1" height="1" /></bezel> |
| 127 | 127 | |
| 128 | | <bezel name="lamp800" element="led"><bounds x="16" y="0" width="1" height="1" /></bezel> |
| 129 | | <bezel name="lamp801" element="led"><bounds x="16" y="2" width="1" height="1" /></bezel> |
| 130 | | <bezel name="lamp802" element="led"><bounds x="16" y="4" width="1" height="1" /></bezel> |
| 131 | | <bezel name="lamp803" element="led"><bounds x="16" y="6" width="1" height="1" /></bezel> |
| 132 | | <bezel name="lamp804" element="led"><bounds x="16" y="8" width="1" height="1" /></bezel> |
| 133 | | <bezel name="lamp805" element="led"><bounds x="16" y="10" width="1" height="1" /></bezel> |
| 134 | | <bezel name="lamp806" element="led"><bounds x="16" y="12" width="1" height="1" /></bezel> |
| 135 | | <bezel name="lamp807" element="led"><bounds x="16" y="14" width="1" height="1" /></bezel> |
| 136 | | <bezel name="lamp808" element="led"><bounds x="16" y="16" width="1" height="1" /></bezel> |
| 137 | | <bezel name="lamp809" element="led"><bounds x="16" y="18" width="1" height="1" /></bezel> |
| 138 | | <bezel name="lamp810" element="led"><bounds x="16" y="20" width="1" height="1" /></bezel> |
| 139 | | <bezel name="lamp811" element="led"><bounds x="16" y="22" width="1" height="1" /></bezel> |
| 128 | <bezel name="lamp800" element="green"><bounds x="16" y="0" width="1" height="1" /></bezel> |
| 129 | <bezel name="lamp801" element="green"><bounds x="16" y="2" width="1" height="1" /></bezel> |
| 130 | <bezel name="lamp802" element="green"><bounds x="16" y="4" width="1" height="1" /></bezel> |
| 131 | <bezel name="lamp803" element="green"><bounds x="16" y="6" width="1" height="1" /></bezel> |
| 132 | <bezel name="lamp804" element="green"><bounds x="16" y="8" width="1" height="1" /></bezel> |
| 133 | <bezel name="lamp805" element="green"><bounds x="16" y="10" width="1" height="1" /></bezel> |
| 134 | <bezel name="lamp806" element="green"><bounds x="16" y="12" width="1" height="1" /></bezel> |
| 135 | <bezel name="lamp807" element="green"><bounds x="16" y="14" width="1" height="1" /></bezel> |
| 136 | <bezel name="lamp808" element="green"><bounds x="16" y="16" width="1" height="1" /></bezel> |
| 137 | <bezel name="lamp809" element="green"><bounds x="16" y="18" width="1" height="1" /></bezel> |
| 138 | <bezel name="lamp810" element="green"><bounds x="16" y="20" width="1" height="1" /></bezel> |
| 139 | <bezel name="lamp811" element="green"><bounds x="16" y="22" width="1" height="1" /></bezel> |
| 140 | 140 | |
| 141 | | <bezel name="lamp900" element="led"><bounds x="18" y="0" width="1" height="1" /></bezel> |
| 142 | | <bezel name="lamp901" element="led"><bounds x="18" y="2" width="1" height="1" /></bezel> |
| 143 | | <bezel name="lamp902" element="led"><bounds x="18" y="4" width="1" height="1" /></bezel> |
| 144 | | <bezel name="lamp903" element="led"><bounds x="18" y="6" width="1" height="1" /></bezel> |
| 145 | | <bezel name="lamp904" element="led"><bounds x="18" y="8" width="1" height="1" /></bezel> |
| 146 | | <bezel name="lamp905" element="led"><bounds x="18" y="10" width="1" height="1" /></bezel> |
| 147 | | <bezel name="lamp906" element="led"><bounds x="18" y="12" width="1" height="1" /></bezel> |
| 148 | | <bezel name="lamp907" element="led"><bounds x="18" y="14" width="1" height="1" /></bezel> |
| 149 | | <bezel name="lamp908" element="led"><bounds x="18" y="16" width="1" height="1" /></bezel> |
| 150 | | <bezel name="lamp909" element="led"><bounds x="18" y="18" width="1" height="1" /></bezel> |
| 151 | | <bezel name="lamp910" element="led"><bounds x="18" y="20" width="1" height="1" /></bezel> |
| 152 | | <bezel name="lamp911" element="led"><bounds x="18" y="22" width="1" height="1" /></bezel> |
| 141 | <bezel name="lamp900" element="green"><bounds x="18" y="0" width="1" height="1" /></bezel> |
| 142 | <bezel name="lamp901" element="green"><bounds x="18" y="2" width="1" height="1" /></bezel> |
| 143 | <bezel name="lamp902" element="green"><bounds x="18" y="4" width="1" height="1" /></bezel> |
| 144 | <bezel name="lamp903" element="green"><bounds x="18" y="6" width="1" height="1" /></bezel> |
| 145 | <bezel name="lamp904" element="green"><bounds x="18" y="8" width="1" height="1" /></bezel> |
| 146 | <bezel name="lamp905" element="green"><bounds x="18" y="10" width="1" height="1" /></bezel> |
| 147 | <bezel name="lamp906" element="green"><bounds x="18" y="12" width="1" height="1" /></bezel> |
| 148 | <bezel name="lamp907" element="green"><bounds x="18" y="14" width="1" height="1" /></bezel> |
| 149 | <bezel name="lamp908" element="green"><bounds x="18" y="16" width="1" height="1" /></bezel> |
| 150 | <bezel name="lamp909" element="green"><bounds x="18" y="18" width="1" height="1" /></bezel> |
| 151 | <bezel name="lamp910" element="green"><bounds x="18" y="20" width="1" height="1" /></bezel> |
| 152 | <bezel name="lamp911" element="green"><bounds x="18" y="22" width="1" height="1" /></bezel> |
| 153 | 153 | |
| 154 | | <bezel name="lamp1000" element="led"><bounds x="20" y="0" width="1" height="1" /></bezel> |
| 155 | | <bezel name="lamp1001" element="led"><bounds x="20" y="2" width="1" height="1" /></bezel> |
| 156 | | <bezel name="lamp1002" element="led"><bounds x="20" y="4" width="1" height="1" /></bezel> |
| 157 | | <bezel name="lamp1003" element="led"><bounds x="20" y="6" width="1" height="1" /></bezel> |
| 158 | | <bezel name="lamp1004" element="led"><bounds x="20" y="8" width="1" height="1" /></bezel> |
| 159 | | <bezel name="lamp1005" element="led"><bounds x="20" y="10" width="1" height="1" /></bezel> |
| 160 | | <bezel name="lamp1006" element="led"><bounds x="20" y="12" width="1" height="1" /></bezel> |
| 161 | | <bezel name="lamp1007" element="led"><bounds x="20" y="14" width="1" height="1" /></bezel> |
| 162 | | <bezel name="lamp1008" element="led"><bounds x="20" y="16" width="1" height="1" /></bezel> |
| 163 | | <bezel name="lamp1009" element="led"><bounds x="20" y="18" width="1" height="1" /></bezel> |
| 164 | | <bezel name="lamp1010" element="led"><bounds x="20" y="20" width="1" height="1" /></bezel> |
| 165 | | <bezel name="lamp1011" element="led"><bounds x="20" y="22" width="1" height="1" /></bezel> |
| 154 | <bezel name="lamp1000" element="green"><bounds x="20" y="0" width="1" height="1" /></bezel> |
| 155 | <bezel name="lamp1001" element="green"><bounds x="20" y="2" width="1" height="1" /></bezel> |
| 156 | <bezel name="lamp1002" element="green"><bounds x="20" y="4" width="1" height="1" /></bezel> |
| 157 | <bezel name="lamp1003" element="green"><bounds x="20" y="6" width="1" height="1" /></bezel> |
| 158 | <bezel name="lamp1004" element="green"><bounds x="20" y="8" width="1" height="1" /></bezel> |
| 159 | <bezel name="lamp1005" element="green"><bounds x="20" y="10" width="1" height="1" /></bezel> |
| 160 | <bezel name="lamp1006" element="green"><bounds x="20" y="12" width="1" height="1" /></bezel> |
| 161 | <bezel name="lamp1007" element="green"><bounds x="20" y="14" width="1" height="1" /></bezel> |
| 162 | <bezel name="lamp1008" element="green"><bounds x="20" y="16" width="1" height="1" /></bezel> |
| 163 | <bezel name="lamp1009" element="green"><bounds x="20" y="18" width="1" height="1" /></bezel> |
| 164 | <bezel name="lamp1010" element="green"><bounds x="20" y="20" width="1" height="1" /></bezel> |
| 165 | <bezel name="lamp1011" element="green"><bounds x="20" y="22" width="1" height="1" /></bezel> |
| 166 | 166 | |
| 167 | | <bezel name="lamp1100" element="led"><bounds x="22" y="0" width="1" height="1" /></bezel> |
| 168 | | <bezel name="lamp1101" element="led"><bounds x="22" y="2" width="1" height="1" /></bezel> |
| 169 | | <bezel name="lamp1102" element="led"><bounds x="22" y="4" width="1" height="1" /></bezel> |
| 170 | | <bezel name="lamp1103" element="led"><bounds x="22" y="6" width="1" height="1" /></bezel> |
| 171 | | <bezel name="lamp1104" element="led"><bounds x="22" y="8" width="1" height="1" /></bezel> |
| 172 | | <bezel name="lamp1105" element="led"><bounds x="22" y="10" width="1" height="1" /></bezel> |
| 173 | | <bezel name="lamp1106" element="led"><bounds x="22" y="12" width="1" height="1" /></bezel> |
| 174 | | <bezel name="lamp1107" element="led"><bounds x="22" y="14" width="1" height="1" /></bezel> |
| 175 | | <bezel name="lamp1108" element="led"><bounds x="22" y="16" width="1" height="1" /></bezel> |
| 176 | | <bezel name="lamp1109" element="led"><bounds x="22" y="18" width="1" height="1" /></bezel> |
| 177 | | <bezel name="lamp1110" element="led"><bounds x="22" y="20" width="1" height="1" /></bezel> |
| 178 | | <bezel name="lamp1111" element="led"><bounds x="22" y="22" width="1" height="1" /></bezel> |
| 167 | <bezel name="lamp1100" element="green"><bounds x="22" y="0" width="1" height="1" /></bezel> |
| 168 | <bezel name="lamp1101" element="green"><bounds x="22" y="2" width="1" height="1" /></bezel> |
| 169 | <bezel name="lamp1102" element="green"><bounds x="22" y="4" width="1" height="1" /></bezel> |
| 170 | <bezel name="lamp1103" element="green"><bounds x="22" y="6" width="1" height="1" /></bezel> |
| 171 | <bezel name="lamp1104" element="green"><bounds x="22" y="8" width="1" height="1" /></bezel> |
| 172 | <bezel name="lamp1105" element="green"><bounds x="22" y="10" width="1" height="1" /></bezel> |
| 173 | <bezel name="lamp1106" element="green"><bounds x="22" y="12" width="1" height="1" /></bezel> |
| 174 | <bezel name="lamp1107" element="green"><bounds x="22" y="14" width="1" height="1" /></bezel> |
| 175 | <bezel name="lamp1108" element="green"><bounds x="22" y="16" width="1" height="1" /></bezel> |
| 176 | <bezel name="lamp1109" element="green"><bounds x="22" y="18" width="1" height="1" /></bezel> |
| 177 | <bezel name="lamp1110" element="green"><bounds x="22" y="20" width="1" height="1" /></bezel> |
| 178 | <bezel name="lamp1111" element="green"><bounds x="22" y="22" width="1" height="1" /></bezel> |
| 179 | 179 | |
| 180 | 180 | |
| 181 | 181 | </view> |
trunk/src/mess/video/mbee.c
| r243517 | r243518 | |
| 4 | 4 | video hardware |
| 5 | 5 | Juergen Buchmueller <pullmoll@t-online.de>, Dec 1999 |
| 6 | 6 | |
| 7 | | Rewritten by Robbbert |
| 7 | Tests of keyboard. Start mbeeic. |
| 8 | 8 | |
| 9 | 1. Load ASTEROIDS PLUS, stay in attract mode, hold down spacebar, |
| 10 | it should only fire bullets. If it sometimes starts turning, |
| 11 | thrusting or using the shield, then there is a problem. |
| 12 | |
| 13 | 2. Load SCAVENGER and make sure it doesn't go to the next level |
| 14 | until you find the Exit. |
| 15 | |
| 16 | 3. At the Basic prompt, type in EDASM press enter. At the memory size |
| 17 | prompt press enter. Now, make sure the keyboard works properly. |
| 18 | |
| 19 | |
| 20 | |
| 21 | TODO: |
| 22 | |
| 23 | 1. mbeeppc keyboard response is quite slow. You need to hold each |
| 24 | key until it responds. It works much better if you overclock the cpu. |
| 25 | |
| 9 | 26 | ****************************************************************************/ |
| 10 | 27 | |
| 11 | 28 | |
| r243517 | r243518 | |
| 197 | 214 | ************************************************************/ |
| 198 | 215 | |
| 199 | 216 | |
| 217 | /* The direction keys are used by the pc85 menu. Do not know what uses the "insert" key. */ |
| 200 | 218 | void mbee_state::keyboard_matrix_r(int offs) |
| 201 | 219 | { |
| 202 | 220 | UINT8 port = (offs >> 7) & 7; |
| 203 | 221 | UINT8 bit = (offs >> 4) & 7; |
| 204 | | UINT8 data = m_io_oldkb[port]->read(); |
| 205 | | bool keydown = ( data >> bit ) & 1; |
| 222 | UINT8 data = 0; |
| 206 | 223 | |
| 207 | | // This adds premium-style cursor keys to the old keyboard |
| 208 | | // They are used by the pc85 & ppc menu, and the 128k shell. |
| 209 | | if (!keydown) |
| 224 | switch ( port ) |
| 210 | 225 | { |
| 226 | case 0: data = m_io_x0->read(); break; |
| 227 | case 1: data = m_io_x1->read(); break; |
| 228 | case 2: data = m_io_x2->read(); break; |
| 229 | case 3: data = m_io_x3->read(); break; |
| 230 | case 4: data = m_io_x4->read(); break; |
| 231 | case 5: data = m_io_x5->read(); break; |
| 232 | case 6: data = m_io_x6->read(); break; |
| 233 | case 7: data = m_io_x7->read(); break; |
| 234 | } |
| 235 | data = ( data >> bit ) & 1; |
| 236 | |
| 237 | if ((data | m_is_premium) == 0) |
| 238 | { |
| 211 | 239 | UINT8 extra = m_io_extra->read(); |
| 212 | 240 | |
| 213 | | if (extra && port == 7 && bit == 1) keydown = 1; /* Control */ |
| 214 | | |
| 215 | | if (BIT(extra, 0) && ( port == 0 && bit == 5 )) keydown = 1; // cursor up = ^E |
| 241 | if( extra & 0x01 ) /* extra: cursor up */ |
| 242 | { |
| 243 | if( port == 7 && bit == 1 ) data = 1; /* Control */ |
| 244 | if( port == 0 && bit == 5 ) data = 1; /* E */ |
| 245 | } |
| 216 | 246 | else |
| 217 | | if (BIT(extra, 1) && ( port == 3 && bit == 0 )) keydown = 1; // cursor down = ^X |
| 247 | if( extra & 0x02 ) /* extra: cursor down */ |
| 248 | { |
| 249 | if( port == 7 && bit == 1 ) data = 1; /* Control */ |
| 250 | if( port == 3 && bit == 0 ) data = 1; /* X */ |
| 251 | } |
| 218 | 252 | else |
| 219 | | if (BIT(extra, 2) && ( port == 2 && bit == 3 )) keydown = 1; // cursor left = ^S |
| 253 | if( extra & 0x04 ) /* extra: cursor left */ |
| 254 | { |
| 255 | if( port == 7 && bit == 1 ) data = 1; /* Control */ |
| 256 | if( port == 2 && bit == 3 ) data = 1; /* S */ |
| 257 | } |
| 220 | 258 | else |
| 221 | | if (BIT(extra, 3) && ( port == 0 && bit == 4 )) keydown = 1; // cursor right = ^D |
| 259 | if( extra & 0x08 ) /* extra: cursor right */ |
| 260 | { |
| 261 | if( port == 7 && bit == 1 ) data = 1; /* Control */ |
| 262 | if( port == 0 && bit == 4 ) data = 1; /* D */ |
| 263 | } |
| 222 | 264 | #if 0 |
| 223 | | // this key doesn't appear on any keyboard afaik. It is a Wordbee function. |
| 265 | // this key doesn't appear on any keyboard afaik |
| 224 | 266 | else |
| 225 | | if (BIT(extra, 4) && ( port == 2 && bit == 6 )) keydown = 1; // insert = ^V |
| 267 | if( extra & 0x10 ) /* extra: insert */ |
| 268 | { |
| 269 | if( port == 7 && bit == 1 ) data = 1; /* Control */ |
| 270 | if( port == 2 && bit == 6 ) data = 1; /* V */ |
| 271 | } |
| 226 | 272 | #endif |
| 227 | 273 | } |
| 228 | 274 | |
| 229 | | if( keydown ) |
| 275 | if( data ) |
| 230 | 276 | { |
| 231 | 277 | m_sy6545_reg[17] = offs; |
| 232 | 278 | m_sy6545_reg[16] = (offs >> 8) & 0x3f; |
| r243517 | r243518 | |
| 237 | 283 | |
| 238 | 284 | void mbee_state::mbee_video_kbd_scan( int param ) |
| 239 | 285 | { |
| 240 | | if (m_0b) return; // can't remember why this is here |
| 241 | | if (param & 15) return; // only scan once per row instead of 16 times |
| 286 | if (m_0b) return; |
| 287 | |
| 242 | 288 | keyboard_matrix_r(param); |
| 243 | 289 | } |
| 244 | 290 | |
| r243517 | r243518 | |
| 329 | 375 | |
| 330 | 376 | ************************************************************/ |
| 331 | 377 | |
| 332 | | VIDEO_START_MEMBER( mbee_state, mono ) |
| 378 | VIDEO_START_MEMBER( mbee_state, mbee ) |
| 333 | 379 | { |
| 334 | 380 | m_p_videoram = memregion("videoram")->base(); |
| 335 | 381 | m_p_gfxram = memregion("gfx")->base()+0x1000; |
| 336 | 382 | m_is_premium = 0; |
| 337 | 383 | } |
| 338 | 384 | |
| 339 | | VIDEO_START_MEMBER( mbee_state, standard ) |
| 385 | VIDEO_START_MEMBER( mbee_state, mbeeic ) |
| 340 | 386 | { |
| 341 | 387 | m_p_videoram = memregion("videoram")->base(); |
| 342 | 388 | m_p_colorram = memregion("colorram")->base(); |
| r243517 | r243518 | |
| 344 | 390 | m_is_premium = 0; |
| 345 | 391 | } |
| 346 | 392 | |
| 347 | | VIDEO_START_MEMBER( mbee_state, premium ) |
| 393 | VIDEO_START_MEMBER( mbee_state, mbeeppc ) |
| 348 | 394 | { |
| 349 | 395 | m_p_videoram = memregion("videoram")->base(); |
| 350 | 396 | m_p_colorram = memregion("colorram")->base(); |
| r243517 | r243518 | |
| 361 | 407 | } |
| 362 | 408 | |
| 363 | 409 | |
| 364 | | MC6845_ON_UPDATE_ADDR_CHANGED( mbee_state::crtc_update_addr ) |
| 410 | MC6845_ON_UPDATE_ADDR_CHANGED( mbee_state::mbee_update_addr ) |
| 365 | 411 | { |
| 366 | | // not sure what goes in here - parameters passed are device, address, strobe |
| 367 | | // not used on 256TC |
| 412 | /* not sure what goes in here - parameters passed are device, address, strobe */ |
| 368 | 413 | } |
| 369 | 414 | |
| 415 | MC6845_ON_UPDATE_ADDR_CHANGED( mbee_state::mbee256_update_addr ) |
| 416 | { |
| 417 | /* not used on 256TC */ |
| 418 | } |
| 370 | 419 | |
| 420 | |
| 371 | 421 | /* monochrome bee */ |
| 372 | | MC6845_UPDATE_ROW( mbee_state::mono_update_row ) |
| 422 | MC6845_UPDATE_ROW( mbee_state::mbee_update_row ) |
| 373 | 423 | { |
| 374 | 424 | const rgb_t *palette = m_palette->palette()->entry_list_raw(); |
| 375 | 425 | UINT8 chr,gfx; |
| r243517 | r243518 | |
| 403 | 453 | } |
| 404 | 454 | } |
| 405 | 455 | |
| 406 | | /* colour bee */ |
| 407 | | MC6845_UPDATE_ROW( mbee_state::colour_update_row ) |
| 456 | /* prom-based colours */ |
| 457 | MC6845_UPDATE_ROW( mbee_state::mbeeic_update_row ) |
| 408 | 458 | { |
| 409 | 459 | const rgb_t *palette = m_palette->palette()->entry_list_raw(); |
| 410 | | UINT8 inv,attr,gfx,fg,bg; |
| 411 | | UINT16 mem,x,col,chr; |
| 460 | UINT8 chr,gfx,fg,bg; |
| 461 | UINT16 mem,x,col; |
| 412 | 462 | UINT16 colourm = (m_08 & 0x0e) << 7; |
| 413 | 463 | UINT32 *p = &bitmap.pix32(y); |
| 414 | 464 | |
| 415 | 465 | for (x = 0; x < x_count; x++) // for each character |
| 416 | 466 | { |
| 417 | | inv = 0; |
| 467 | UINT8 inv=0; |
| 418 | 468 | mem = (ma + x) & 0x7ff; |
| 419 | 469 | chr = m_p_videoram[mem]; |
| 470 | col = m_p_colorram[mem] | colourm; // read a byte of colour |
| 471 | |
| 472 | mbee_video_kbd_scan(x+ma); |
| 473 | |
| 474 | /* process cursor */ |
| 475 | if (x == cursor_x) |
| 476 | inv ^= m_sy6545_cursor[ra]; // cursor scan row |
| 477 | |
| 478 | /* get pattern of pixels for that character scanline */ |
| 479 | gfx = m_p_gfxram[(chr<<4) | ra] ^ inv; |
| 480 | fg = (col & 0x001f) | 64; // map to foreground palette |
| 481 | bg = (col & 0x07e0) >> 5; // and background palette |
| 482 | |
| 483 | /* Display a scanline of a character (8 pixels) */ |
| 484 | *p++ = palette[BIT(gfx, 7) ? fg : bg]; |
| 485 | *p++ = palette[BIT(gfx, 6) ? fg : bg]; |
| 486 | *p++ = palette[BIT(gfx, 5) ? fg : bg]; |
| 487 | *p++ = palette[BIT(gfx, 4) ? fg : bg]; |
| 488 | *p++ = palette[BIT(gfx, 3) ? fg : bg]; |
| 489 | *p++ = palette[BIT(gfx, 2) ? fg : bg]; |
| 490 | *p++ = palette[BIT(gfx, 1) ? fg : bg]; |
| 491 | *p++ = palette[BIT(gfx, 0) ? fg : bg]; |
| 492 | } |
| 493 | } |
| 494 | |
| 495 | |
| 496 | /* new colours & hires2 */ |
| 497 | MC6845_UPDATE_ROW( mbee_state::mbeeppc_update_row ) |
| 498 | { |
| 499 | const rgb_t *palette = m_palette->palette()->entry_list_raw(); |
| 500 | UINT8 gfx,fg,bg; |
| 501 | UINT16 mem,x,col,chr; |
| 502 | UINT32 *p = &bitmap.pix32(y); |
| 503 | |
| 504 | for (x = 0; x < x_count; x++) // for each character |
| 505 | { |
| 506 | UINT8 inv=0; |
| 507 | mem = (ma + x) & 0x7ff; |
| 508 | chr = m_p_videoram[mem]; |
| 420 | 509 | col = m_p_colorram[mem]; // read a byte of colour |
| 421 | 510 | |
| 422 | | if (m_is_premium) |
| 511 | if (m_1c & 0x80) // are extended features enabled? |
| 423 | 512 | { |
| 424 | | if (m_1c & 0x80) // are extended features enabled? |
| 425 | | { |
| 426 | | attr = m_p_attribram[mem]; |
| 513 | UINT8 attr = m_p_attribram[mem]; |
| 427 | 514 | |
| 428 | | if (chr & 0x80) |
| 429 | | chr += ((attr & 15) << 7); // bump chr to its particular pcg definition |
| 515 | if (chr & 0x80) |
| 516 | chr += ((attr & 15) << 7); // bump chr to its particular pcg definition |
| 430 | 517 | |
| 431 | | if (attr & 0x40) |
| 432 | | inv ^= 0xff; // inverse attribute |
| 518 | if (attr & 0x40) |
| 519 | inv ^= 0xff; // inverse attribute |
| 433 | 520 | |
| 434 | | if ((attr & 0x80) && (m_framecnt & 0x10)) // flashing attribute |
| 435 | | chr = 0x20; |
| 436 | | } |
| 521 | if ((attr & 0x80) && (m_framecnt & 0x10)) // flashing attribute |
| 522 | chr = 0x20; |
| 437 | 523 | } |
| 438 | | else |
| 439 | | col |= colourm; |
| 440 | 524 | |
| 441 | | if (m_has_oldkb) |
| 442 | | mbee_video_kbd_scan(x+ma); |
| 525 | mbee_video_kbd_scan(x+ma); |
| 443 | 526 | |
| 444 | 527 | /* process cursor */ |
| 445 | 528 | if (x == cursor_x) |
| r243517 | r243518 | |
| 447 | 530 | |
| 448 | 531 | /* get pattern of pixels for that character scanline */ |
| 449 | 532 | gfx = m_p_gfxram[(chr<<4) | ra] ^ inv; |
| 533 | fg = col & 15; // map to foreground palette |
| 534 | bg = (col & 0xf0) >> 4; // and background palette |
| 450 | 535 | |
| 451 | | // get colours |
| 452 | | if (m_is_premium) |
| 453 | | { |
| 454 | | fg = col & 15; |
| 455 | | bg = (col & 0xf0) >> 4; |
| 456 | | } |
| 457 | | else |
| 458 | | { |
| 459 | | fg = (col & 0x001f) | 64; |
| 460 | | bg = (col & 0x07e0) >> 5; |
| 461 | | } |
| 462 | | |
| 463 | 536 | /* Display a scanline of a character (8 pixels) */ |
| 464 | 537 | *p++ = palette[BIT(gfx, 7) ? fg : bg]; |
| 465 | 538 | *p++ = palette[BIT(gfx, 6) ? fg : bg]; |
| r243517 | r243518 | |
| 479 | 552 | |
| 480 | 553 | ************************************************************/ |
| 481 | 554 | |
| 482 | | PALETTE_INIT_MEMBER( mbee_state, standard ) |
| 555 | PALETTE_INIT_MEMBER( mbee_state, mbeeic ) |
| 483 | 556 | { |
| 484 | 557 | const UINT8 *color_prom = memregion("proms")->base(); |
| 485 | 558 | UINT16 i; |
| r243517 | r243518 | |
| 537 | 610 | } |
| 538 | 611 | |
| 539 | 612 | |
| 540 | | PALETTE_INIT_MEMBER( mbee_state, premium ) |
| 613 | PALETTE_INIT_MEMBER( mbee_state, mbeeppc ) |
| 541 | 614 | { |
| 542 | 615 | UINT16 i; |
| 543 | 616 | UINT8 r, b, g; |