trunk/src/build/verinfo.c
| r243519 | r243520 | |
| 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
| r243519 | r243520 | |
| 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 (opposing player sees a mirrored image) |
| 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. |
| 9 | 16 | |
| 17 | NOTE!: MESS external artwork is required to be able to play |
| 10 | 18 | |
| 11 | 19 | ***************************************************************************/ |
| 12 | 20 | |
| r243519 | r243520 | |
| 23 | 31 | alnchase_state(const machine_config &mconfig, device_type type, const char *tag) |
| 24 | 32 | : driver_device(mconfig, type, tag), |
| 25 | 33 | m_maincpu(*this, "maincpu"), |
| 34 | m_button_matrix(*this, "IN"), |
| 26 | 35 | m_speaker(*this, "speaker") |
| 27 | 36 | { } |
| 28 | 37 | |
| 29 | 38 | required_device<cpu_device> m_maincpu; |
| 39 | required_ioport_array<2> m_button_matrix; |
| 30 | 40 | required_device<speaker_sound_device> m_speaker; |
| 31 | 41 | |
| 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 | |
| 32 | 53 | virtual void machine_start(); |
| 33 | 54 | }; |
| 34 | 55 | |
| 35 | 56 | |
| 36 | 57 | |
| 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 | |
| 37 | 152 | 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 ) |
| 38 | 173 | INPUT_PORTS_END |
| 39 | 174 | |
| 40 | 175 | |
| r243519 | r243520 | |
| 47 | 182 | |
| 48 | 183 | void alnchase_state::machine_start() |
| 49 | 184 | { |
| 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)); |
| 50 | 196 | } |
| 51 | 197 | |
| 52 | 198 | |
| r243519 | r243520 | |
| 54 | 200 | |
| 55 | 201 | /* basic machine hardware */ |
| 56 | 202 | 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)) |
| 57 | 212 | |
| 58 | 213 | MCFG_DEFAULT_LAYOUT(layout_alnchase) |
| 59 | 214 | |
| r243519 | r243520 | |
| 79 | 234 | ROM_END |
| 80 | 235 | |
| 81 | 236 | |
| 82 | | CONS( 1984, alnchase, 0, 0, alnchase, alnchase, driver_device, 0, "Tomy", "Alien Chase", GAME_NOT_WORKING | GAME_SUPPORTS_SAVE ) |
| 237 | CONS( 1984, alnchase, 0, 0, alnchase, alnchase, driver_device, 0, "Tomy", "Alien Chase", GAME_NOT_WORKING ) |
trunk/src/mess/drivers/mbee.c
| r243519 | r243520 | |
| 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 | | |
| 58 | 33 | Early machines have 'standard' video (128 hires characters). |
| 59 | 34 | Later machines had the option of 'premium' video which |
| 60 | 35 | provides thousands of hires characters, enough to simulate |
| r243519 | r243520 | |
| 65 | 40 | This rom can be replaced with the Dreamdisk Chip-8 rom. |
| 66 | 41 | Note that Telcom 3.21 is 8k, it uses a rombank switch |
| 67 | 42 | (by reading port 0A) to swap between the two halves. |
| 68 | | See Telcom notes below. |
| 43 | See Telcom notes below. |
| 69 | 44 | |
| 70 | 45 | EDASM - Jump to C000, usually the Editor/Assembler package. |
| 71 | 46 | |
| r243519 | r243520 | |
| 75 | 50 | |
| 76 | 51 | These early colour computers have a PROM to create the foreground palette. |
| 77 | 52 | |
| 78 | | |
| 79 | 53 | Notes about the printer: |
| 80 | 54 | - When computer turned on, defaults to 1200 baud serial printer |
| 81 | 55 | - Change it to parallel by entering OUTL#1 |
| r243519 | r243520 | |
| 96 | 70 | - Telcom 1.2 (used in mbeeic) has a bug. If you enter NET CLOCK, the status line is |
| 97 | 71 | filled with inverse K. You can fix this from Basic by doing NET CLOCK 3 times. |
| 98 | 72 | |
| 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 | |
| 99 | 90 | *************************************************************************** |
| 100 | 91 | |
| 101 | 92 | TODO/not working: |
| 102 | 93 | |
| 103 | 94 | - 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) |
| 106 | 95 | |
| 96 | - 256tc: Paste ignores shift key |
| 97 | - All others: Paste drops most characters, shift operates randomly. |
| 98 | |
| 107 | 99 | - various fdc issues: |
| 108 | 100 | - B drive doesn't work. |
| 109 | 101 | - some disks cause MESS to freeze. |
| 110 | 102 | - ENMF pin missing from wd_fdc. |
| 111 | 103 | - incorrect timing for track register causes 256tc failure to boot a disk. |
| 112 | | - 56k model takes about 2 minutes to boot a disk if loaded via command line. |
| 113 | | |
| 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 | |
| 114 | 108 | - 256tc: At the menu, if F2 pressed to activate the Monitor, the emulated machine |
| 115 | 109 | crashes due to a bug in z80pio emulation. |
| 116 | | |
| 110 | |
| 117 | 111 | - 256tc: Keyboard ROM U60 needs to be dumped. |
| 118 | 112 | - 128k: GOLD PAL needs to be dumped for the bankswitching. |
| 119 | 113 | - 64k: RED PAL needs to be dumped for the bankswitching. |
| r243519 | r243520 | |
| 125 | 119 | |
| 126 | 120 | - Mouse: a few programs support the use of a serial mouse which interfaced |
| 127 | 121 | 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. |
| 128 | 123 | |
| 129 | | *************************************************************************** |
| 124 | *******************************************************************************/ |
| 130 | 125 | |
| 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 | | |
| 143 | 126 | #include "includes/mbee.h" |
| 144 | 127 | #include "formats/mbee_cas.h" |
| 145 | 128 | |
| 146 | | |
| 147 | 129 | #define XTAL_13_5MHz 13500000 |
| 148 | 130 | |
| 149 | 131 | /********** NOTE !!! *********************************************************** |
| r243519 | r243520 | |
| 156 | 138 | ADDRESS_MAP_UNMAP_HIGH |
| 157 | 139 | AM_RANGE(0x0000, 0x0fff) AM_RAMBANK("boot") |
| 158 | 140 | AM_RANGE(0x1000, 0x3fff) AM_RAM |
| 159 | | AM_RANGE(0x4000, 0x7fff) AM_WRITENOP /* Needed because quickload to here will crash MESS otherwise */ |
| 141 | AM_RANGE(0x4000, 0x7fff) AM_WRITENOP // Needed because quickload to here will crash MESS |
| 160 | 142 | AM_RANGE(0x8000, 0xefff) AM_ROM |
| 161 | 143 | AM_RANGE(0xf000, 0xf7ff) AM_READWRITE(mbee_low_r, mbee_low_w) |
| 162 | 144 | AM_RANGE(0xf800, 0xffff) AM_READWRITE(mbee_high_r, mbee_high_w) |
| r243519 | r243520 | |
| 312 | 294 | ADDRESS_MAP_GLOBAL_MASK(0xff) |
| 313 | 295 | ADDRESS_MAP_UNMAP_HIGH |
| 314 | 296 | 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) |
| 315 | 300 | AM_RANGE(0x08, 0x08) AM_READWRITE(mbeeic_08_r, mbeeic_08_w) |
| 316 | 301 | AM_RANGE(0x0b, 0x0b) AM_READWRITE(mbee_0b_r, mbee_0b_w) |
| 317 | 302 | AM_RANGE(0x0c, 0x0c) AM_READWRITE(m6545_status_r, m6545_index_w) |
| r243519 | r243520 | |
| 363 | 348 | ADDRESS_MAP_END |
| 364 | 349 | |
| 365 | 350 | static INPUT_PORTS_START( mbee ) |
| 366 | | PORT_START("X0") /* IN0 KEY ROW 0 [000] */ |
| 351 | PORT_START("X.0") /* IN0 KEY ROW 0 [000] */ |
| 367 | 352 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("@") PORT_CODE(KEYCODE_ASTERISK) PORT_CHAR('@') PORT_CHAR('`') |
| 368 | 353 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("A") PORT_CODE(KEYCODE_A) PORT_CHAR('a') PORT_CHAR('A') PORT_CHAR(0x01) |
| 369 | 354 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("B") PORT_CODE(KEYCODE_B) PORT_CHAR('b') PORT_CHAR('B') PORT_CHAR(0x02) |
| r243519 | r243520 | |
| 373 | 358 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("F") PORT_CODE(KEYCODE_F) PORT_CHAR('f') PORT_CHAR('F') PORT_CHAR(0x06) |
| 374 | 359 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("G") PORT_CODE(KEYCODE_G) PORT_CHAR('g') PORT_CHAR('G') PORT_CHAR(0x07) |
| 375 | 360 | |
| 376 | | PORT_START("X1") /* IN1 KEY ROW 1 [080] */ |
| 361 | PORT_START("X.1") /* IN1 KEY ROW 1 [080] */ |
| 377 | 362 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("H") PORT_CODE(KEYCODE_H) PORT_CHAR('h') PORT_CHAR('H') PORT_CHAR(0x08) |
| 378 | 363 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("I") PORT_CODE(KEYCODE_I) PORT_CHAR('i') PORT_CHAR('I') PORT_CHAR(0x09) |
| 379 | 364 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("J") PORT_CODE(KEYCODE_J) PORT_CHAR('j') PORT_CHAR('J') PORT_CHAR(0x0a) |
| r243519 | r243520 | |
| 383 | 368 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("N") PORT_CODE(KEYCODE_N) PORT_CHAR('n') PORT_CHAR('N') PORT_CHAR(0x0e) |
| 384 | 369 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("O") PORT_CODE(KEYCODE_O) PORT_CHAR('o') PORT_CHAR('O') PORT_CHAR(0x0f) |
| 385 | 370 | |
| 386 | | PORT_START("X2") /* IN2 KEY ROW 2 [100] */ |
| 371 | PORT_START("X.2") /* IN2 KEY ROW 2 [100] */ |
| 387 | 372 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("P") PORT_CODE(KEYCODE_P) PORT_CHAR('p') PORT_CHAR('P') PORT_CHAR(0x10) |
| 388 | 373 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("Q") PORT_CODE(KEYCODE_Q) PORT_CHAR('q') PORT_CHAR('Q') PORT_CHAR(0x11) |
| 389 | 374 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("R") PORT_CODE(KEYCODE_R) PORT_CHAR('r') PORT_CHAR('R') PORT_CHAR(0x12) |
| r243519 | r243520 | |
| 393 | 378 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("V") PORT_CODE(KEYCODE_V) PORT_CHAR('v') PORT_CHAR('V') PORT_CHAR(0x16) |
| 394 | 379 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("W") PORT_CODE(KEYCODE_W) PORT_CHAR('w') PORT_CHAR('W') PORT_CHAR(0x17) |
| 395 | 380 | |
| 396 | | PORT_START("X3") /* IN3 KEY ROW 3 [180] */ |
| 381 | PORT_START("X.3") /* IN3 KEY ROW 3 [180] */ |
| 397 | 382 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("X") PORT_CODE(KEYCODE_X) PORT_CHAR('x') PORT_CHAR('X') PORT_CHAR(0x18) |
| 398 | 383 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("Y") PORT_CODE(KEYCODE_Y) PORT_CHAR('u') PORT_CHAR('Y') PORT_CHAR(0x19) |
| 399 | 384 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("Z") PORT_CODE(KEYCODE_Z) PORT_CHAR('z') PORT_CHAR('Z') PORT_CHAR(0x1a) |
| r243519 | r243520 | |
| 403 | 388 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("^") PORT_CODE(KEYCODE_TILDE) PORT_CHAR('^') PORT_CHAR('~') PORT_CHAR(0x1e) |
| 404 | 389 | 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 |
| 405 | 390 | |
| 406 | | PORT_START("X4") /* IN4 KEY ROW 4 [200] */ |
| 391 | PORT_START("X.4") /* IN4 KEY ROW 4 [200] */ |
| 407 | 392 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("0") PORT_CODE(KEYCODE_0) PORT_CHAR('0') |
| 408 | 393 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("1 !") PORT_CODE(KEYCODE_1) PORT_CHAR('1') PORT_CHAR('!') |
| 409 | 394 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("2 \"") PORT_CODE(KEYCODE_2) PORT_CHAR('2') PORT_CHAR('\"') |
| r243519 | r243520 | |
| 413 | 398 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("6 &") PORT_CODE(KEYCODE_6) PORT_CHAR('6') PORT_CHAR('&') |
| 414 | 399 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("7 '") PORT_CODE(KEYCODE_7) PORT_CHAR('7') PORT_CHAR('\'') |
| 415 | 400 | |
| 416 | | PORT_START("X5") /* IN5 KEY ROW 5 [280] */ |
| 401 | PORT_START("X.5") /* IN5 KEY ROW 5 [280] */ |
| 417 | 402 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("8 (") PORT_CODE(KEYCODE_8) PORT_CHAR('8') PORT_CHAR('(') |
| 418 | 403 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("9 )") PORT_CODE(KEYCODE_9) PORT_CHAR('9') PORT_CHAR(')') |
| 419 | 404 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("; +") PORT_CODE(KEYCODE_COLON) PORT_CHAR(';') PORT_CHAR('+') |
| r243519 | r243520 | |
| 423 | 408 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME(". >") PORT_CODE(KEYCODE_STOP) PORT_CHAR('.') PORT_CHAR('>') |
| 424 | 409 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("/ ?") PORT_CODE(KEYCODE_SLASH) PORT_CHAR('/') PORT_CHAR('?') |
| 425 | 410 | |
| 426 | | PORT_START("X6") /* IN6 KEY ROW 6 [300] */ |
| 411 | PORT_START("X.6") /* IN6 KEY ROW 6 [300] */ |
| 427 | 412 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("Escape") PORT_CODE(KEYCODE_ESC) PORT_CHAR(27) |
| 428 | 413 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("Backspace") PORT_CODE(KEYCODE_BACKSPACE) PORT_CHAR(8) |
| 429 | 414 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("Tab") PORT_CODE(KEYCODE_TAB) PORT_CHAR(9) |
| r243519 | r243520 | |
| 433 | 418 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("Break") PORT_CODE(KEYCODE_END) PORT_CHAR(3) |
| 434 | 419 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("Space") PORT_CODE(KEYCODE_SPACE) PORT_CHAR(' ') |
| 435 | 420 | |
| 436 | | PORT_START("X7") /* IN7 KEY ROW 7 [380] */ |
| 421 | PORT_START("X.7") /* IN7 KEY ROW 7 [380] */ |
| 437 | 422 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("(Up)") PORT_CODE(KEYCODE_UP) PORT_CHAR(UCHAR_MAMEKEY(UP)) |
| 438 | 423 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("Ctrl") PORT_CODE(KEYCODE_LCONTROL) |
| 439 | 424 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("(Down)") PORT_CODE(KEYCODE_DOWN) PORT_CHAR(UCHAR_MAMEKEY(DOWN)) |
| r243519 | r243520 | |
| 465 | 450 | INPUT_PORTS_END |
| 466 | 451 | |
| 467 | 452 | static INPUT_PORTS_START( mbee256 ) |
| 468 | | PORT_START("X0") /* IN0 KEY ROW 0 [+00] */ |
| 453 | PORT_START("Y.0") /* IN0 KEY ROW 0 [+00] */ |
| 469 | 454 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("F1") PORT_CODE(KEYCODE_F1) |
| 470 | 455 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("Escape") PORT_CODE(KEYCODE_ESC) PORT_CHAR(27) |
| 471 | 456 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("Tab") PORT_CODE(KEYCODE_TAB) PORT_CHAR(9) |
| r243519 | r243520 | |
| 474 | 459 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("DEL (num)") PORT_CODE(KEYCODE_DEL_PAD) |
| 475 | 460 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("Space") PORT_CODE(KEYCODE_SPACE) PORT_CHAR(' ') |
| 476 | 461 | |
| 477 | | PORT_START("X1") /* IN1 KEY ROW 1 [+08] */ |
| 462 | PORT_START("Y.1") /* IN1 KEY ROW 1 [+08] */ |
| 478 | 463 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("F2") PORT_CODE(KEYCODE_F2) |
| 479 | 464 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("1 !") PORT_CODE(KEYCODE_1) PORT_CHAR('1') PORT_CHAR('!') |
| 480 | 465 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("Q") PORT_CODE(KEYCODE_Q) PORT_CHAR('q') PORT_CHAR('Q') PORT_CHAR(0x11) |
| r243519 | r243520 | |
| 483 | 468 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("Linefeed") PORT_CODE(KEYCODE_HOME) PORT_CHAR(10) |
| 484 | 469 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("Insert") PORT_CODE(KEYCODE_INSERT) |
| 485 | 470 | |
| 486 | | PORT_START("X2") /* IN2 KEY ROW 2 [+10] */ |
| 471 | PORT_START("Y.2") /* IN2 KEY ROW 2 [+10] */ |
| 487 | 472 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("F3") PORT_CODE(KEYCODE_F3) |
| 488 | 473 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("2 @") PORT_CODE(KEYCODE_2) PORT_CHAR('2') PORT_CHAR('@') |
| 489 | 474 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("W") PORT_CODE(KEYCODE_W) PORT_CHAR('w') PORT_CHAR('W') PORT_CHAR(0x17) |
| r243519 | r243520 | |
| 493 | 478 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("3 (num)") PORT_CODE(KEYCODE_3_PAD) |
| 494 | 479 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("Z") PORT_CODE(KEYCODE_Z) PORT_CHAR('z') PORT_CHAR('Z') PORT_CHAR(0x1a) |
| 495 | 480 | |
| 496 | | PORT_START("X3") /* IN3 KEY ROW 3 [+18] */ |
| 481 | PORT_START("Y.3") /* IN3 KEY ROW 3 [+18] */ |
| 497 | 482 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("F4") PORT_CODE(KEYCODE_F4) |
| 498 | 483 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("3 #") PORT_CODE(KEYCODE_3) PORT_CHAR('3') PORT_CHAR('#') |
| 499 | 484 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("E") PORT_CODE(KEYCODE_E) PORT_CHAR('e') PORT_CHAR('E') PORT_CHAR(0x05) |
| r243519 | r243520 | |
| 503 | 488 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("6 (num)") PORT_CODE(KEYCODE_6_PAD) |
| 504 | 489 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("X") PORT_CODE(KEYCODE_X) PORT_CHAR('x') PORT_CHAR('X') PORT_CHAR(0x18) |
| 505 | 490 | |
| 506 | | PORT_START("X4") /* IN4 KEY ROW 4 [+20] */ |
| 491 | PORT_START("Y.4") /* IN4 KEY ROW 4 [+20] */ |
| 507 | 492 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("F5") PORT_CODE(KEYCODE_F5) |
| 508 | 493 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("4 $") PORT_CODE(KEYCODE_4) PORT_CHAR('4') PORT_CHAR('$') |
| 509 | 494 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("R") PORT_CODE(KEYCODE_R) PORT_CHAR('r') PORT_CHAR('R') PORT_CHAR(0x12) |
| r243519 | r243520 | |
| 513 | 498 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("9 (num)") PORT_CODE(KEYCODE_9_PAD) |
| 514 | 499 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("C") PORT_CODE(KEYCODE_C) PORT_CHAR('c') PORT_CHAR('C') PORT_CHAR(0x03) |
| 515 | 500 | |
| 516 | | PORT_START("X5") /* IN5 KEY ROW 5 [+28] */ |
| 501 | PORT_START("Y.5") /* IN5 KEY ROW 5 [+28] */ |
| 517 | 502 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("F6") PORT_CODE(KEYCODE_F6) |
| 518 | 503 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("5 %") PORT_CODE(KEYCODE_5) PORT_CHAR('5') PORT_CHAR('%') |
| 519 | 504 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("T") PORT_CODE(KEYCODE_T) PORT_CHAR('t') PORT_CHAR('T') PORT_CHAR(0x14) |
| r243519 | r243520 | |
| 523 | 508 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("4 (num)") PORT_CODE(KEYCODE_4_PAD) |
| 524 | 509 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("V") PORT_CODE(KEYCODE_V) PORT_CHAR('v') PORT_CHAR('V') PORT_CHAR(0x16) |
| 525 | 510 | |
| 526 | | PORT_START("X6") /* IN6 KEY ROW 6 [+30] */ |
| 511 | PORT_START("Y.6") /* IN6 KEY ROW 6 [+30] */ |
| 527 | 512 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("F7") PORT_CODE(KEYCODE_F7) |
| 528 | 513 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("6 &") PORT_CODE(KEYCODE_6) PORT_CHAR('6') PORT_CHAR('&') |
| 529 | 514 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("Y") PORT_CODE(KEYCODE_Y) PORT_CHAR('y') PORT_CHAR('Y') PORT_CHAR(0x19) |
| r243519 | r243520 | |
| 533 | 518 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("(Right)") PORT_CODE(KEYCODE_RIGHT) PORT_CHAR(UCHAR_MAMEKEY(RIGHT)) |
| 534 | 519 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("B") PORT_CODE(KEYCODE_B) PORT_CHAR('b') PORT_CHAR('B') PORT_CHAR(0x02) |
| 535 | 520 | |
| 536 | | PORT_START("X7") /* IN7 KEY ROW 7 [+38] */ |
| 521 | PORT_START("Y.7") /* IN7 KEY ROW 7 [+38] */ |
| 537 | 522 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("F8") PORT_CODE(KEYCODE_F8) |
| 538 | 523 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("7 &") PORT_CODE(KEYCODE_7) PORT_CHAR('7') PORT_CHAR('&') |
| 539 | 524 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("U") PORT_CODE(KEYCODE_U) PORT_CHAR('u') PORT_CHAR('U') PORT_CHAR(0x15) |
| r243519 | r243520 | |
| 541 | 526 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("(Left)") PORT_CODE(KEYCODE_LEFT) PORT_CHAR(UCHAR_MAMEKEY(LEFT)) |
| 542 | 527 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("N") PORT_CODE(KEYCODE_N) PORT_CHAR('n') PORT_CHAR('N') PORT_CHAR(0x0e) |
| 543 | 528 | |
| 544 | | PORT_START("X8") /* IN0 KEY ROW 0 [+40] */ |
| 529 | PORT_START("Y.8") /* IN0 KEY ROW 0 [+40] */ |
| 545 | 530 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("F9") PORT_CODE(KEYCODE_F9) |
| 546 | 531 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("8 *") PORT_CODE(KEYCODE_8) PORT_CHAR('8') PORT_CHAR('*') |
| 547 | 532 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("I") PORT_CODE(KEYCODE_I) PORT_CHAR('i') PORT_CHAR('I') PORT_CHAR(0x09) |
| r243519 | r243520 | |
| 549 | 534 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("(Up)") PORT_CODE(KEYCODE_UP) PORT_CHAR(UCHAR_MAMEKEY(UP)) |
| 550 | 535 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("M") PORT_CODE(KEYCODE_M) PORT_CHAR('m') PORT_CHAR('M') PORT_CHAR(0x0d) |
| 551 | 536 | |
| 552 | | PORT_START("X9") /* IN1 KEY ROW 1 [+48] */ |
| 537 | PORT_START("Y.9") /* IN1 KEY ROW 1 [+48] */ |
| 553 | 538 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("F10") PORT_CODE(KEYCODE_F10) |
| 554 | 539 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("9 (") PORT_CODE(KEYCODE_9) PORT_CHAR('9') PORT_CHAR('(') |
| 555 | 540 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("O") PORT_CODE(KEYCODE_O) PORT_CHAR('o') PORT_CHAR('O') PORT_CHAR(0x0f) |
| r243519 | r243520 | |
| 558 | 543 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("Enter") PORT_CODE(KEYCODE_ENTER) PORT_CODE(KEYCODE_ENTER_PAD) PORT_CHAR(13) |
| 559 | 544 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME(", <") PORT_CODE(KEYCODE_COMMA) PORT_CHAR(',') PORT_CHAR('<') |
| 560 | 545 | |
| 561 | | PORT_START("X10") /* IN2 KEY ROW 2 [+50] */ |
| 546 | PORT_START("Y.10") /* IN2 KEY ROW 2 [+50] */ |
| 562 | 547 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("F11") PORT_CODE(KEYCODE_F11) |
| 563 | 548 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("0 )") PORT_CODE(KEYCODE_0) PORT_CHAR('0') PORT_CHAR(')') |
| 564 | 549 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("P") PORT_CODE(KEYCODE_P) PORT_CHAR('p') PORT_CHAR('P') PORT_CHAR(0x10) |
| r243519 | r243520 | |
| 568 | 553 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("\\ |") PORT_CODE(KEYCODE_BACKSLASH) PORT_CHAR('\\') PORT_CHAR('|') PORT_CHAR(0x1c) |
| 569 | 554 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME(". >") PORT_CODE(KEYCODE_STOP) PORT_CHAR('.') PORT_CHAR('>') |
| 570 | 555 | |
| 571 | | PORT_START("X11") /* IN3 KEY ROW 3 [+58] */ |
| 556 | PORT_START("Y.11") /* IN3 KEY ROW 3 [+58] */ |
| 572 | 557 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("F12") PORT_CODE(KEYCODE_F12) |
| 573 | 558 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("-") PORT_CODE(KEYCODE_MINUS) PORT_CHAR('-') PORT_CHAR('_') |
| 574 | 559 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("[ {") PORT_CODE(KEYCODE_OPENBRACE) PORT_CHAR('[') PORT_CHAR('{') PORT_CHAR(0x1b) |
| r243519 | r243520 | |
| 577 | 562 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("] }") PORT_CODE(KEYCODE_CLOSEBRACE) PORT_CHAR(']') PORT_CHAR('}') PORT_CHAR(0x1d) |
| 578 | 563 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("/ ?") PORT_CODE(KEYCODE_SLASH) PORT_CHAR('/') PORT_CHAR('?') |
| 579 | 564 | |
| 580 | | PORT_START("X12") /* IN4 KEY ROW 4 [+60] */ |
| 565 | PORT_START("Y.12") /* IN4 KEY ROW 4 [+60] */ |
| 581 | 566 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("Shift") PORT_CODE(KEYCODE_LSHIFT) PORT_CODE(KEYCODE_RSHIFT) PORT_CHAR(UCHAR_SHIFT_1) |
| 582 | 567 | |
| 583 | | PORT_START("X13") /* IN5 KEY ROW 5 [+68] */ |
| 568 | PORT_START("Y.13") /* IN5 KEY ROW 5 [+68] */ |
| 584 | 569 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("Ctrl") PORT_CODE(KEYCODE_LCONTROL) PORT_CODE(KEYCODE_RCONTROL) PORT_CHAR(UCHAR_SHIFT_2) |
| 585 | 570 | |
| 586 | | PORT_START("X14") /* IN6 KEY ROW 6 [+70] */ |
| 571 | PORT_START("Y.14") /* IN6 KEY ROW 6 [+70] */ |
| 587 | 572 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("Alt") PORT_CODE(KEYCODE_LALT) PORT_CODE(KEYCODE_RALT) |
| 588 | 573 | |
| 589 | 574 | // Autorun on quickload |
| r243519 | r243520 | |
| 619 | 604 | 8*16 /* every char takes 16 bytes */ |
| 620 | 605 | }; |
| 621 | 606 | |
| 622 | | static GFXDECODE_START( mbee ) |
| 607 | static GFXDECODE_START( mono ) |
| 623 | 608 | GFXDECODE_ENTRY( "gfx", 0x0000, mbee_charlayout, 0, 1 ) |
| 624 | 609 | GFXDECODE_END |
| 625 | 610 | |
| 626 | | static GFXDECODE_START( mbeeic ) |
| 611 | static GFXDECODE_START( standard ) |
| 627 | 612 | GFXDECODE_ENTRY( "gfx", 0x0000, mbee_charlayout, 0, 48 ) |
| 628 | 613 | GFXDECODE_END |
| 629 | 614 | |
| 630 | | static GFXDECODE_START( mbeeppc ) |
| 615 | static GFXDECODE_START( premium ) |
| 631 | 616 | GFXDECODE_ENTRY( "gfx", 0x0000, mbee_charlayout, 0, 8 ) |
| 632 | 617 | GFXDECODE_END |
| 633 | 618 | |
| r243519 | r243520 | |
| 662 | 647 | MCFG_SCREEN_VISIBLE_AREA(0*8, 64*8-1, 0, 19*16-1) |
| 663 | 648 | MCFG_SCREEN_UPDATE_DRIVER(mbee_state, screen_update_mbee) |
| 664 | 649 | |
| 665 | | MCFG_GFXDECODE_ADD("gfxdecode", "palette", mbee) |
| 650 | MCFG_GFXDECODE_ADD("gfxdecode", "palette", mono) |
| 666 | 651 | MCFG_PALETTE_ADD_MONOCHROME_AMBER("palette") // usually sold with amber or green monitor |
| 667 | 652 | |
| 668 | | MCFG_VIDEO_START_OVERRIDE(mbee_state, mbee) |
| 653 | MCFG_VIDEO_START_OVERRIDE(mbee_state, mono) |
| 669 | 654 | |
| 670 | 655 | /* sound hardware */ |
| 671 | 656 | MCFG_SPEAKER_STANDARD_MONO("mono") |
| r243519 | r243520 | |
| 678 | 663 | MCFG_MC6845_ADD("crtc", SY6545_1, "screen", XTAL_12MHz / 8) |
| 679 | 664 | MCFG_MC6845_SHOW_BORDER_AREA(false) |
| 680 | 665 | MCFG_MC6845_CHAR_WIDTH(8) |
| 681 | | MCFG_MC6845_UPDATE_ROW_CB(mbee_state, mbee_update_row) |
| 682 | | MCFG_MC6845_ADDR_CHANGED_CB(mbee_state, mbee_update_addr) |
| 666 | MCFG_MC6845_UPDATE_ROW_CB(mbee_state, mono_update_row) |
| 667 | MCFG_MC6845_ADDR_CHANGED_CB(mbee_state, crtc_update_addr) |
| 683 | 668 | MCFG_MC6845_OUT_VSYNC_CB(WRITELINE(mbee_state, crtc_vs)) |
| 684 | 669 | |
| 685 | 670 | MCFG_QUICKLOAD_ADD("quickload", mbee_state, mbee, "mwb,com,bee", 2) |
| r243519 | r243520 | |
| 718 | 703 | MCFG_SCREEN_VISIBLE_AREA(0, 80*8-1, 0, 19*16-1) |
| 719 | 704 | MCFG_SCREEN_UPDATE_DRIVER(mbee_state, screen_update_mbee) |
| 720 | 705 | |
| 721 | | MCFG_GFXDECODE_ADD("gfxdecode", "palette", mbeeic) |
| 706 | MCFG_GFXDECODE_ADD("gfxdecode", "palette", standard) |
| 722 | 707 | |
| 723 | 708 | MCFG_PALETTE_ADD("palette", 96) |
| 724 | | MCFG_PALETTE_INIT_OWNER(mbee_state, mbeeic) |
| 709 | MCFG_PALETTE_INIT_OWNER(mbee_state, standard) |
| 725 | 710 | |
| 726 | | MCFG_VIDEO_START_OVERRIDE(mbee_state, mbeeic) |
| 711 | MCFG_VIDEO_START_OVERRIDE(mbee_state, standard) |
| 727 | 712 | |
| 728 | 713 | /* sound hardware */ |
| 729 | 714 | MCFG_SPEAKER_STANDARD_MONO("mono") |
| r243519 | r243520 | |
| 736 | 721 | MCFG_MC6845_ADD("crtc", SY6545_1, "screen", XTAL_13_5MHz / 8) |
| 737 | 722 | MCFG_MC6845_SHOW_BORDER_AREA(false) |
| 738 | 723 | MCFG_MC6845_CHAR_WIDTH(8) |
| 739 | | MCFG_MC6845_UPDATE_ROW_CB(mbee_state, mbeeic_update_row) |
| 740 | | MCFG_MC6845_ADDR_CHANGED_CB(mbee_state, mbee_update_addr) |
| 724 | MCFG_MC6845_UPDATE_ROW_CB(mbee_state, colour_update_row) |
| 725 | MCFG_MC6845_ADDR_CHANGED_CB(mbee_state, crtc_update_addr) |
| 741 | 726 | MCFG_MC6845_OUT_VSYNC_CB(WRITELINE(mbee_state, crtc_vs)) |
| 742 | 727 | |
| 743 | 728 | MCFG_QUICKLOAD_ADD("quickload", mbee_state, mbee, "mwb,com,bee", 2) |
| r243519 | r243520 | |
| 773 | 758 | MCFG_CPU_MODIFY( "maincpu" ) |
| 774 | 759 | MCFG_CPU_PROGRAM_MAP(mbeeppc_mem) |
| 775 | 760 | MCFG_CPU_IO_MAP(mbeeppc_io) |
| 776 | | MCFG_VIDEO_START_OVERRIDE(mbee_state, mbeeppc) |
| 777 | | MCFG_GFXDECODE_MODIFY("gfxdecode", mbeeppc) |
| 761 | MCFG_VIDEO_START_OVERRIDE(mbee_state, premium) |
| 762 | MCFG_GFXDECODE_MODIFY("gfxdecode", premium) |
| 778 | 763 | MCFG_PALETTE_MODIFY("palette") |
| 779 | 764 | MCFG_PALETTE_ENTRIES(16) |
| 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)) |
| 765 | MCFG_PALETTE_INIT_OWNER(mbee_state, premium) |
| 789 | 766 | MACHINE_CONFIG_END |
| 790 | 767 | |
| 791 | 768 | static MACHINE_CONFIG_DERIVED( mbee56, mbeeic ) |
| r243519 | r243520 | |
| 805 | 782 | MCFG_CPU_PROGRAM_MAP(mbee256_mem) |
| 806 | 783 | MCFG_CPU_IO_MAP(mbee128_io) |
| 807 | 784 | MCFG_MACHINE_RESET_OVERRIDE(mbee_state, mbee128) |
| 785 | MCFG_MC146818_ADD( "rtc", XTAL_32_768kHz ) |
| 808 | 786 | MACHINE_CONFIG_END |
| 809 | 787 | |
| 810 | 788 | static MACHINE_CONFIG_DERIVED( mbee128p, mbeeppc ) |
| r243519 | r243520 | |
| 812 | 790 | MCFG_CPU_PROGRAM_MAP(mbee256_mem) |
| 813 | 791 | MCFG_CPU_IO_MAP(mbee128_io) |
| 814 | 792 | MCFG_MACHINE_RESET_OVERRIDE(mbee_state, mbee128) |
| 793 | MCFG_MC146818_ADD( "rtc", XTAL_32_768kHz ) |
| 815 | 794 | MCFG_WD2793x_ADD("fdc", XTAL_4MHz / 4) |
| 816 | 795 | MCFG_WD_FDC_INTRQ_CALLBACK(WRITELINE(mbee_state, fdc_intrq_w)) |
| 817 | 796 | MCFG_WD_FDC_DRQ_CALLBACK(WRITELINE(mbee_state, fdc_drq_w)) |
| r243519 | r243520 | |
| 824 | 803 | MCFG_CPU_PROGRAM_MAP(mbee256_mem) |
| 825 | 804 | MCFG_CPU_IO_MAP(mbee256_io) |
| 826 | 805 | MCFG_MACHINE_RESET_OVERRIDE(mbee_state, mbee256) |
| 827 | | MCFG_MC146818_ADD( "rtc", XTAL_32_768kHz ) |
| 828 | 806 | |
| 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) |
| 835 | 807 | MCFG_DEVICE_REMOVE("fdc:0") |
| 836 | 808 | MCFG_DEVICE_REMOVE("fdc:1") |
| 837 | 809 | MCFG_FLOPPY_DRIVE_ADD("fdc:0", mbee_floppies, "drive3a", floppy_image_device::default_floppy_formats) |
| r243519 | r243520 | |
| 842 | 814 | MCFG_CPU_MODIFY( "maincpu" ) |
| 843 | 815 | MCFG_CPU_PROGRAM_MAP(mbeett_mem) |
| 844 | 816 | MCFG_CPU_IO_MAP(mbeett_io) |
| 845 | | MCFG_MACHINE_RESET_OVERRIDE(mbee_state, mbeett ) |
| 817 | MCFG_MACHINE_RESET_OVERRIDE(mbee_state, mbeett) |
| 846 | 818 | 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) |
| 854 | 819 | MACHINE_CONFIG_END |
| 855 | 820 | |
| 856 | 821 | /* Unused roms: |
trunk/src/mess/drivers/tmtennis.c
| r243519 | r243520 | |
| 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. |
| 12 | 16 | |
| 17 | NOTE!: MESS external artwork is required to be able to play |
| 13 | 18 | |
| 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" |
| r243519 | r243520 | |
| 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) |
| 31 | 27 | |
| 32 | | |
| 33 | 28 | class tmtennis_state : public driver_device |
| 34 | 29 | { |
| 35 | 30 | public: |
| r243519 | r243520 | |
| 53 | 48 | DECLARE_WRITE8_MEMBER(plate_w); |
| 54 | 49 | DECLARE_WRITE8_MEMBER(grid_w); |
| 55 | 50 | |
| 51 | DECLARE_INPUT_CHANGED_MEMBER(difficulty_switch); |
| 52 | void update_clock(); |
| 53 | |
| 56 | 54 | UINT16 m_vfd_state[0x10]; |
| 57 | 55 | void update_vfd(); |
| 58 | 56 | |
| 57 | virtual void machine_reset(); |
| 59 | 58 | virtual void machine_start(); |
| 60 | 59 | }; |
| 61 | 60 | |
| 61 | // master clock is from an LC circuit oscillating by default at 360kHz, but... |
| 62 | #define MASTER_CLOCK (360000) |
| 62 | 63 | |
| 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 | } |
| 63 | 70 | |
| 71 | |
| 72 | |
| 64 | 73 | /*************************************************************************** |
| 65 | 74 | |
| 66 | 75 | Display |
| r243519 | r243520 | |
| 95 | 104 | |
| 96 | 105 | // read selected button rows |
| 97 | 106 | for (int i = 0; i < 2; i++) |
| 98 | | if (~m_input_mux >> i & 1) |
| 107 | if (m_input_mux >> i & 1) |
| 99 | 108 | inp &= m_button_matrix[i]->read(); |
| 100 | 109 | |
| 101 | 110 | return inp >> (offset*4); |
| r243519 | r243520 | |
| 137 | 146 | |
| 138 | 147 | ***************************************************************************/ |
| 139 | 148 | |
| 149 | INPUT_CHANGED_MEMBER(tmtennis_state::difficulty_switch) |
| 150 | { |
| 151 | update_clock(); |
| 152 | } |
| 153 | |
| 140 | 154 | /* Pro-Tennis physical button layout and labels is like this: |
| 141 | 155 | |
| 142 | 156 | [SERVE] [1] [2] [3] [3] [2] [1] [SERVE] |
| r243519 | r243520 | |
| 146 | 160 | */ |
| 147 | 161 | |
| 148 | 162 | static INPUT_PORTS_START( tmtennis ) |
| 149 | | PORT_START("IN.0") // E0 port A/B (left side) |
| 150 | | PORT_CONFNAME( 0x101, 0x001, DEF_STR( Difficulty ) ) |
| 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) |
| 151 | 175 | PORT_CONFSETTING( 0x000, "Practice" ) |
| 152 | | PORT_CONFSETTING( 0x001, "Pro 1" ) |
| 153 | | PORT_CONFSETTING( 0x101, "Pro 2" ) |
| 154 | | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 ) // P2 serve |
| 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" ) |
| 155 | 181 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) |
| 156 | 182 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(2) |
| 157 | 183 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) |
| 158 | 184 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON5 ) PORT_PLAYER(2) |
| 159 | 185 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) |
| 160 | 186 | 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 ) |
| 173 | 187 | INPUT_PORTS_END |
| 174 | 188 | |
| 175 | 189 | |
| r243519 | r243520 | |
| 180 | 194 | |
| 181 | 195 | ***************************************************************************/ |
| 182 | 196 | |
| 197 | void tmtennis_state::machine_reset() |
| 198 | { |
| 199 | update_clock(); |
| 200 | } |
| 201 | |
| 183 | 202 | void tmtennis_state::machine_start() |
| 184 | 203 | { |
| 185 | 204 | // zerofill |
| r243519 | r243520 | |
| 199 | 218 | static MACHINE_CONFIG_START( tmtennis, tmtennis_state ) |
| 200 | 219 | |
| 201 | 220 | /* basic machine hardware */ |
| 202 | | MCFG_CPU_ADD("maincpu", NEC_D552, MASTER_CLOCK_PRO2) |
| 221 | MCFG_CPU_ADD("maincpu", NEC_D552, MASTER_CLOCK) |
| 203 | 222 | MCFG_UCOM4_READ_A_CB(READ8(tmtennis_state, input_r)) |
| 204 | 223 | MCFG_UCOM4_READ_B_CB(READ8(tmtennis_state, input_r)) |
| 205 | 224 | MCFG_UCOM4_WRITE_C_CB(WRITE8(tmtennis_state, plate_w)) |
| r243519 | r243520 | |
| 234 | 253 | ROM_END |
| 235 | 254 | |
| 236 | 255 | |
| 237 | | CONS( 1980, tmtennis, 0, 0, tmtennis, tmtennis, driver_device, 0, "Tomy", "Tennis (Tomytronic)", GAME_NOT_WORKING | GAME_SUPPORTS_SAVE ) |
| 256 | CONS( 1980, tmtennis, 0, 0, tmtennis, tmtennis, driver_device, 0, "Tomy", "Tennis (Tomytronic)", GAME_SUPPORTS_SAVE ) |
trunk/src/mess/layout/alnchase.lay
| r243519 | r243520 | |
| 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="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> |
| 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> |
| 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> |
| 16 | 12 | |
| 17 | 13 | |
| 18 | 14 | <!-- build screen --> |
| 19 | 15 | |
| 20 | 16 | <view name="Test Layout"> |
| 21 | | <bounds left="0" right="100" top="0" bottom="100" /> |
| 17 | <bounds left="0" right="64" top="0" bottom="64" /> |
| 22 | 18 | <bezel element="static_black"> |
| 23 | | <bounds left="0" right="100" top="0" bottom="100" /> |
| 19 | <bounds left="0" right="64" top="0" bottom="64" /> |
| 24 | 20 | </bezel> |
| 25 | 21 | |
| 26 | | <!-- matrix --> |
| 22 | <!-- 17*9 matrix --> |
| 27 | 23 | |
| 28 | | <bezel name="lamp0" element="green"><bounds x="0" y="0" width="1" height="1" /></bezel> |
| 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> |
| 29 | 41 | |
| 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> |
| 30 | 59 | |
| 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 | |
| 31 | 187 | </view> |
| 32 | 188 | </mamelayout> |
trunk/src/mess/layout/edracula.lay
| r243519 | r243520 | |
| 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="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> |
| 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> |
| 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> |
| 20 | 12 | |
| 21 | 13 | |
| 22 | 14 | <!-- build screen --> |
| 23 | 15 | |
| 24 | 16 | <view name="Test Layout"> |
| 25 | | <bounds left="0" right="100" top="0" bottom="100" /> |
| 17 | <bounds left="0" right="64" top="0" bottom="64" /> |
| 26 | 18 | <bezel element="static_black"> |
| 27 | | <bounds left="0" right="100" top="0" bottom="100" /> |
| 19 | <bounds left="0" right="64" top="0" bottom="64" /> |
| 28 | 20 | </bezel> |
| 29 | 21 | |
| 30 | | <!-- matrix --> |
| 22 | <!-- 8*18 matrix --> |
| 31 | 23 | |
| 32 | | <bezel name="lamp0" element="green"><bounds x="0" y="0" width="1" height="1" /></bezel> |
| 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> |
| 33 | 42 | |
| 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> |
| 34 | 61 | |
| 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 | |
| 35 | 177 | </view> |
| 36 | 178 | </mamelayout> |
trunk/src/mess/layout/tmtennis.lay
| r243519 | r243520 | |
| 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="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> |
| 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> |
| 11 | 11 | </element> |
| 12 | 12 | |
| 13 | 13 | |
| 14 | 14 | <!-- build screen --> |
| 15 | 15 | |
| 16 | 16 | <view name="Test Layout"> |
| 17 | | <bounds left="0" right="100" top="0" bottom="100" /> |
| 17 | <bounds left="0" right="64" top="0" bottom="64" /> |
| 18 | 18 | <bezel element="static_black"> |
| 19 | | <bounds left="0" right="100" top="0" bottom="100" /> |
| 19 | <bounds left="0" right="64" top="0" bottom="64" /> |
| 20 | 20 | </bezel> |
| 21 | 21 | |
| 22 | | <!-- matrix --> |
| 22 | <!-- 12*12 matrix --> |
| 23 | 23 | |
| 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> |
| 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> |
| 36 | 36 | |
| 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> |
| 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> |
| 49 | 49 | |
| 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> |
| 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> |
| 62 | 62 | |
| 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> |
| 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> |
| 75 | 75 | |
| 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> |
| 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> |
| 88 | 88 | |
| 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> |
| 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> |
| 101 | 101 | |
| 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> |
| 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> |
| 114 | 114 | |
| 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> |
| 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> |
| 127 | 127 | |
| 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> |
| 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> |
| 140 | 140 | |
| 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> |
| 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> |
| 153 | 153 | |
| 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> |
| 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> |
| 166 | 166 | |
| 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> |
| 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> |
| 179 | 179 | |
| 180 | 180 | |
| 181 | 181 | </view> |
trunk/src/mess/video/mbee.c
| r243519 | r243520 | |
| 4 | 4 | video hardware |
| 5 | 5 | Juergen Buchmueller <pullmoll@t-online.de>, Dec 1999 |
| 6 | 6 | |
| 7 | | Tests of keyboard. Start mbeeic. |
| 7 | Rewritten by Robbbert |
| 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 | | |
| 26 | 9 | ****************************************************************************/ |
| 27 | 10 | |
| 28 | 11 | |
| r243519 | r243520 | |
| 214 | 197 | ************************************************************/ |
| 215 | 198 | |
| 216 | 199 | |
| 217 | | /* The direction keys are used by the pc85 menu. Do not know what uses the "insert" key. */ |
| 218 | 200 | void mbee_state::keyboard_matrix_r(int offs) |
| 219 | 201 | { |
| 220 | 202 | UINT8 port = (offs >> 7) & 7; |
| 221 | 203 | UINT8 bit = (offs >> 4) & 7; |
| 222 | | UINT8 data = 0; |
| 204 | UINT8 data = m_io_oldkb[port]->read(); |
| 205 | bool keydown = ( data >> bit ) & 1; |
| 223 | 206 | |
| 224 | | switch ( port ) |
| 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) |
| 225 | 210 | { |
| 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 | | { |
| 239 | 211 | UINT8 extra = m_io_extra->read(); |
| 240 | 212 | |
| 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 | | } |
| 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 |
| 246 | 216 | else |
| 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 | | } |
| 217 | if (BIT(extra, 1) && ( port == 3 && bit == 0 )) keydown = 1; // cursor down = ^X |
| 252 | 218 | else |
| 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 | | } |
| 219 | if (BIT(extra, 2) && ( port == 2 && bit == 3 )) keydown = 1; // cursor left = ^S |
| 258 | 220 | else |
| 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 | | } |
| 221 | if (BIT(extra, 3) && ( port == 0 && bit == 4 )) keydown = 1; // cursor right = ^D |
| 264 | 222 | #if 0 |
| 265 | | // this key doesn't appear on any keyboard afaik |
| 223 | // this key doesn't appear on any keyboard afaik. It is a Wordbee function. |
| 266 | 224 | else |
| 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 | | } |
| 225 | if (BIT(extra, 4) && ( port == 2 && bit == 6 )) keydown = 1; // insert = ^V |
| 272 | 226 | #endif |
| 273 | 227 | } |
| 274 | 228 | |
| 275 | | if( data ) |
| 229 | if( keydown ) |
| 276 | 230 | { |
| 277 | 231 | m_sy6545_reg[17] = offs; |
| 278 | 232 | m_sy6545_reg[16] = (offs >> 8) & 0x3f; |
| r243519 | r243520 | |
| 283 | 237 | |
| 284 | 238 | void mbee_state::mbee_video_kbd_scan( int param ) |
| 285 | 239 | { |
| 286 | | if (m_0b) return; |
| 287 | | |
| 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 |
| 288 | 242 | keyboard_matrix_r(param); |
| 289 | 243 | } |
| 290 | 244 | |
| r243519 | r243520 | |
| 375 | 329 | |
| 376 | 330 | ************************************************************/ |
| 377 | 331 | |
| 378 | | VIDEO_START_MEMBER( mbee_state, mbee ) |
| 332 | VIDEO_START_MEMBER( mbee_state, mono ) |
| 379 | 333 | { |
| 380 | 334 | m_p_videoram = memregion("videoram")->base(); |
| 381 | 335 | m_p_gfxram = memregion("gfx")->base()+0x1000; |
| 382 | 336 | m_is_premium = 0; |
| 383 | 337 | } |
| 384 | 338 | |
| 385 | | VIDEO_START_MEMBER( mbee_state, mbeeic ) |
| 339 | VIDEO_START_MEMBER( mbee_state, standard ) |
| 386 | 340 | { |
| 387 | 341 | m_p_videoram = memregion("videoram")->base(); |
| 388 | 342 | m_p_colorram = memregion("colorram")->base(); |
| r243519 | r243520 | |
| 390 | 344 | m_is_premium = 0; |
| 391 | 345 | } |
| 392 | 346 | |
| 393 | | VIDEO_START_MEMBER( mbee_state, mbeeppc ) |
| 347 | VIDEO_START_MEMBER( mbee_state, premium ) |
| 394 | 348 | { |
| 395 | 349 | m_p_videoram = memregion("videoram")->base(); |
| 396 | 350 | m_p_colorram = memregion("colorram")->base(); |
| r243519 | r243520 | |
| 407 | 361 | } |
| 408 | 362 | |
| 409 | 363 | |
| 410 | | MC6845_ON_UPDATE_ADDR_CHANGED( mbee_state::mbee_update_addr ) |
| 364 | MC6845_ON_UPDATE_ADDR_CHANGED( mbee_state::crtc_update_addr ) |
| 411 | 365 | { |
| 412 | | /* not sure what goes in here - parameters passed are device, address, strobe */ |
| 366 | // not sure what goes in here - parameters passed are device, address, strobe |
| 367 | // not used on 256TC |
| 413 | 368 | } |
| 414 | 369 | |
| 415 | | MC6845_ON_UPDATE_ADDR_CHANGED( mbee_state::mbee256_update_addr ) |
| 416 | | { |
| 417 | | /* not used on 256TC */ |
| 418 | | } |
| 419 | 370 | |
| 420 | | |
| 421 | 371 | /* monochrome bee */ |
| 422 | | MC6845_UPDATE_ROW( mbee_state::mbee_update_row ) |
| 372 | MC6845_UPDATE_ROW( mbee_state::mono_update_row ) |
| 423 | 373 | { |
| 424 | 374 | const rgb_t *palette = m_palette->palette()->entry_list_raw(); |
| 425 | 375 | UINT8 chr,gfx; |
| r243519 | r243520 | |
| 453 | 403 | } |
| 454 | 404 | } |
| 455 | 405 | |
| 456 | | /* prom-based colours */ |
| 457 | | MC6845_UPDATE_ROW( mbee_state::mbeeic_update_row ) |
| 406 | /* colour bee */ |
| 407 | MC6845_UPDATE_ROW( mbee_state::colour_update_row ) |
| 458 | 408 | { |
| 459 | 409 | const rgb_t *palette = m_palette->palette()->entry_list_raw(); |
| 460 | | UINT8 chr,gfx,fg,bg; |
| 461 | | UINT16 mem,x,col; |
| 410 | UINT8 inv,attr,gfx,fg,bg; |
| 411 | UINT16 mem,x,col,chr; |
| 462 | 412 | UINT16 colourm = (m_08 & 0x0e) << 7; |
| 463 | 413 | UINT32 *p = &bitmap.pix32(y); |
| 464 | 414 | |
| 465 | 415 | for (x = 0; x < x_count; x++) // for each character |
| 466 | 416 | { |
| 467 | | UINT8 inv=0; |
| 417 | inv = 0; |
| 468 | 418 | mem = (ma + x) & 0x7ff; |
| 469 | 419 | 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]; |
| 509 | 420 | col = m_p_colorram[mem]; // read a byte of colour |
| 510 | 421 | |
| 511 | | if (m_1c & 0x80) // are extended features enabled? |
| 422 | if (m_is_premium) |
| 512 | 423 | { |
| 513 | | UINT8 attr = m_p_attribram[mem]; |
| 424 | if (m_1c & 0x80) // are extended features enabled? |
| 425 | { |
| 426 | attr = m_p_attribram[mem]; |
| 514 | 427 | |
| 515 | | if (chr & 0x80) |
| 516 | | chr += ((attr & 15) << 7); // bump chr to its particular pcg definition |
| 428 | if (chr & 0x80) |
| 429 | chr += ((attr & 15) << 7); // bump chr to its particular pcg definition |
| 517 | 430 | |
| 518 | | if (attr & 0x40) |
| 519 | | inv ^= 0xff; // inverse attribute |
| 431 | if (attr & 0x40) |
| 432 | inv ^= 0xff; // inverse attribute |
| 520 | 433 | |
| 521 | | if ((attr & 0x80) && (m_framecnt & 0x10)) // flashing attribute |
| 522 | | chr = 0x20; |
| 434 | if ((attr & 0x80) && (m_framecnt & 0x10)) // flashing attribute |
| 435 | chr = 0x20; |
| 436 | } |
| 523 | 437 | } |
| 438 | else |
| 439 | col |= colourm; |
| 524 | 440 | |
| 525 | | mbee_video_kbd_scan(x+ma); |
| 441 | if (m_has_oldkb) |
| 442 | mbee_video_kbd_scan(x+ma); |
| 526 | 443 | |
| 527 | 444 | /* process cursor */ |
| 528 | 445 | if (x == cursor_x) |
| r243519 | r243520 | |
| 530 | 447 | |
| 531 | 448 | /* get pattern of pixels for that character scanline */ |
| 532 | 449 | gfx = m_p_gfxram[(chr<<4) | ra] ^ inv; |
| 533 | | fg = col & 15; // map to foreground palette |
| 534 | | bg = (col & 0xf0) >> 4; // and background palette |
| 535 | 450 | |
| 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 | |
| 536 | 463 | /* Display a scanline of a character (8 pixels) */ |
| 537 | 464 | *p++ = palette[BIT(gfx, 7) ? fg : bg]; |
| 538 | 465 | *p++ = palette[BIT(gfx, 6) ? fg : bg]; |
| r243519 | r243520 | |
| 552 | 479 | |
| 553 | 480 | ************************************************************/ |
| 554 | 481 | |
| 555 | | PALETTE_INIT_MEMBER( mbee_state, mbeeic ) |
| 482 | PALETTE_INIT_MEMBER( mbee_state, standard ) |
| 556 | 483 | { |
| 557 | 484 | const UINT8 *color_prom = memregion("proms")->base(); |
| 558 | 485 | UINT16 i; |
| r243519 | r243520 | |
| 610 | 537 | } |
| 611 | 538 | |
| 612 | 539 | |
| 613 | | PALETTE_INIT_MEMBER( mbee_state, mbeeppc ) |
| 540 | PALETTE_INIT_MEMBER( mbee_state, premium ) |
| 614 | 541 | { |
| 615 | 542 | UINT16 i; |
| 616 | 543 | UINT8 r, b, g; |