src/mess/machine/wswan.c
| r14465 | r14466 | |
| 237 | 237 | state->m_vdp.vram = (UINT8*)space->get_read_ptr(0); |
| 238 | 238 | state->m_vdp.palette_vram = (UINT8*)space->get_read_ptr(( state->m_system_type == TYPE_WSC ) ? 0xFE00 : 0 ); |
| 239 | 239 | state->m_vdp.current_line = 145; /* Randomly chosen, beginning of VBlank period to give cart some time to boot up */ |
| 240 | | state->m_vdp.new_display_vertical = state->m_ROMMap[state->m_ROMBanks-1][0xfffc] & 0x01; |
| 241 | | state->m_vdp.display_vertical = ~state->m_vdp.new_display_vertical; |
| 242 | 240 | state->m_vdp.color_mode = 0; |
| 243 | 241 | state->m_vdp.colors_16 = 0; |
| 244 | 242 | state->m_vdp.tile_packed = 0; |
| 243 | |
| 244 | render_target *target = machine.render().first_target(); |
| 245 | target->set_view(state->m_rotate); |
| 245 | 246 | |
| 246 | 247 | /* Initialize sound DMA */ |
| 247 | 248 | memset( &state->m_sound_dma, 0, sizeof( state->m_sound_dma ) ); |
| r14465 | r14466 | |
| 357 | 358 | WRITE8_MEMBER( wswan_state::wswan_port_w ) |
| 358 | 359 | { |
| 359 | 360 | address_space *mem = m_maincpu->memory().space(AS_PROGRAM); |
| 361 | wswan_state *state = machine().driver_data<wswan_state>(); |
| 362 | UINT8 input; |
| 360 | 363 | logerror( "PC=%X: port write %02X <- %02X\n", cpu_get_pc( &mem->device() ), offset, data ); |
| 361 | 364 | switch( offset ) |
| 362 | 365 | { |
| r14465 | r14466 | |
| 398 | 401 | Bit 0-7 - Line compare |
| 399 | 402 | */ |
| 400 | 403 | m_vdp.line_compare = data; |
| 404 | logerror( "Write to line compare: %d\n", data ); |
| 401 | 405 | break; |
| 402 | 406 | case 0x04: /* Sprite table base address |
| 403 | 407 | Bit 0-5 - Determine sprite table base address 0 0xxxxxx0 00000000 |
| r14465 | r14466 | |
| 408 | 412 | case 0x05: /* Number of sprite to start drawing with |
| 409 | 413 | Bit 0-7 - First sprite number |
| 410 | 414 | */ |
| 411 | | m_vdp.sprite_first = data; |
| 415 | //m_vdp.sprite_first = data; |
| 416 | if (data) logerror("non-zero first sprite %d\n", m_vdp.sprite_first); |
| 412 | 417 | break; |
| 413 | 418 | case 0x06: /* Number of sprites to draw |
| 414 | 419 | Bit 0-7 - Number of sprites to draw |
| 415 | 420 | */ |
| 416 | | m_vdp.sprite_count = data; |
| 421 | //m_vdp.sprite_count = data; |
| 417 | 422 | break; |
| 418 | 423 | case 0x07: /* Background/Foreground table base addresses |
| 419 | 424 | Bit 0-2 - Determine background table base address 00xxx000 00000000 |
| r14465 | r14466 | |
| 951 | 956 | data = data & 0xF0; |
| 952 | 957 | switch( data ) |
| 953 | 958 | { |
| 954 | | case 0x10: /* Read Y cursors: Y1 - Y2 - Y3 - Y4 */ |
| 955 | | data = data | input_port_read(machine(), "CURSY"); |
| 959 | case 0x10: /* Read Y cursors: Y1 - Y2 - Y3 - Y4 */ |
| 960 | input = input_port_read(machine(), "CURSY"); |
| 961 | if (state->m_rotate) // reorient controls if the console is rotated |
| 962 | { |
| 963 | if (input & 0x01) data |= 0x02; |
| 964 | if (input & 0x02) data |= 0x04; |
| 965 | if (input & 0x04) data |= 0x08; |
| 966 | if (input & 0x08) data |= 0x01; |
| 967 | } |
| 968 | else |
| 969 | data = data | input; |
| 956 | 970 | break; |
| 957 | | case 0x20: /* Read X cursors: X1 - X2 - X3 - X4 */ |
| 958 | | data = data | input_port_read(machine(), "CURSX"); |
| 971 | case 0x20: /* Read X cursors: X1 - X2 - X3 - X4 */ |
| 972 | input = input_port_read(machine(), "CURSX"); |
| 973 | if (state->m_rotate) // reorient controls if the console is rotated |
| 974 | { |
| 975 | if (input & 0x01) data |= 0x02; |
| 976 | if (input & 0x02) data |= 0x04; |
| 977 | if (input & 0x04) data |= 0x08; |
| 978 | if (input & 0x08) data |= 0x01; |
| 979 | } |
| 980 | else |
| 981 | data = data | input; |
| 959 | 982 | break; |
| 960 | | case 0x40: /* Read buttons: START - A - B */ |
| 961 | | data = data | input_port_read(machine(), "BUTTONS"); |
| 983 | case 0x40: /* Read buttons: START - A - B */ |
| 984 | data = data | input_port_read(machine(), "BUTTONS"); |
| 962 | 985 | break; |
| 963 | 986 | } |
| 964 | 987 | break; |
| r14465 | r14466 | |
| 1363 | 1386 | sram_str = wswan_determine_sram(state, state->m_ROMMap[state->m_ROMBanks - 1][0xfffb]); |
| 1364 | 1387 | |
| 1365 | 1388 | state->m_rtc.present = state->m_ROMMap[state->m_ROMBanks - 1][0xfffd] ? 1 : 0; |
| 1389 | state->m_rotate = state->m_ROMMap[state->m_ROMBanks-1][0xfffc] & 0x01; |
| 1366 | 1390 | |
| 1367 | 1391 | { |
| 1368 | 1392 | int sum = 0; |
| r14465 | r14466 | |
| 1451 | 1475 | |
| 1452 | 1476 | // state->m_vdp.current_line = (state->m_vdp.current_line + 1) % 159; |
| 1453 | 1477 | |
| 1478 | if( state->m_vdp.current_line == 144 ) // buffer sprite table |
| 1479 | { |
| 1480 | memcpy(state->m_vdp.sprite_table_buffer, &state->m_vdp.vram[state->m_vdp.sprite_table_address], 512); |
| 1481 | state->m_vdp.sprite_count = state->m_ws_portram[0x06]; |
| 1482 | state->m_vdp.sprite_first = state->m_ws_portram[0x05]; // always zero? |
| 1483 | } |
| 1484 | |
| 1454 | 1485 | if( state->m_vdp.current_line == 144 ) |
| 1455 | 1486 | { |
| 1456 | 1487 | wswan_set_irq_line( machine, WSWAN_IFLAG_VBL ); |
| r14465 | r14466 | |
| 1483 | 1514 | } |
| 1484 | 1515 | |
| 1485 | 1516 | state->m_vdp.current_line = (state->m_vdp.current_line + 1) % 159; |
| 1486 | | |
| 1487 | | if ( state->m_vdp.current_line == 0 ) |
| 1488 | | { |
| 1489 | | if ( state->m_vdp.display_vertical != state->m_vdp.new_display_vertical ) |
| 1490 | | { |
| 1491 | | state->m_vdp.display_vertical = state->m_vdp.new_display_vertical; |
| 1492 | | if ( state->m_vdp.display_vertical ) |
| 1493 | | { |
| 1494 | | machine.primary_screen->set_visible_area(5*8, 5*8 + WSWAN_Y_PIXELS - 1, 0, WSWAN_X_PIXELS - 1 ); |
| 1495 | | } |
| 1496 | | else |
| 1497 | | { |
| 1498 | | machine.primary_screen->set_visible_area(0, WSWAN_X_PIXELS - 1, 5*8, 5*8 + WSWAN_Y_PIXELS - 1 ); |
| 1499 | | } |
| 1500 | | } |
| 1501 | | } |
| 1502 | 1517 | } |
| 1503 | 1518 | |
src/mess/video/wswan.c
| r14465 | r14466 | |
| 11 | 11 | |
| 12 | 12 | #include "includes/wswan.h" |
| 13 | 13 | |
| 14 | | |
| 15 | | INLINE void wswan_plot_pixel(running_machine &machine,int x, int y, int pen) { |
| 16 | | wswan_state *state = machine.driver_data<wswan_state>(); |
| 17 | | y += 5*8; |
| 18 | | if ( state->m_vdp.display_vertical ) { |
| 19 | | state->m_bitmap.pix16(28*8 - 1 - x, y) = pen; |
| 20 | | } else { |
| 21 | | state->m_bitmap.pix16(y, x) = pen; |
| 22 | | } |
| 23 | | } |
| 24 | | |
| 25 | | INLINE void wswan_fillbitmap( running_machine &machine,int pen, rectangle *rec ) { |
| 26 | | wswan_state *state = machine.driver_data<wswan_state>(); |
| 27 | | /* Fill empty area above line 0 when filling line 0 */ |
| 28 | | if ( state->m_vdp.current_line != 0 ) { |
| 29 | | rec->min_y = rec->min_y + 5*8; |
| 30 | | } |
| 31 | | |
| 32 | | /* Fill empty area below line 143 when filling line 143 */ |
| 33 | | if ( state->m_vdp.current_line != 143 ) { |
| 34 | | rec->max_y = rec->max_y + 5*8; |
| 35 | | } else { |
| 36 | | rec->max_y = 28*8; |
| 37 | | } |
| 38 | | |
| 39 | | if ( state->m_vdp.display_vertical ) { |
| 40 | | rectangle rec2(rec->min_y, rec->max_y, 28*8 - 1 - rec->max_x, 28*8 - 1 - rec->min_x); |
| 41 | | state->m_bitmap.fill(pen, rec2 ); |
| 42 | | } else { |
| 43 | | state->m_bitmap.fill(pen, *rec ); |
| 44 | | } |
| 45 | | } |
| 46 | | |
| 47 | | |
| 48 | 14 | static void wswan_setup_palettes(wswan_state *state) { |
| 49 | 15 | int i,j; |
| 50 | 16 | |
| r14465 | r14466 | |
| 135 | 101 | if ( state->m_vdp.colors_16 ) { |
| 136 | 102 | if ( col ) { |
| 137 | 103 | if ( state->m_vdp.color_mode ) { |
| 138 | | wswan_plot_pixel( machine, x_offset, state->m_vdp.current_line, state->m_pal[tile_palette][col] ); |
| 104 | state->m_bitmap.pix16(state->m_vdp.current_line, x_offset) = state->m_pal[tile_palette][col]; |
| 139 | 105 | } else { |
| 140 | 106 | /* Hmmmm, what should we do here... Is this correct?? */ |
| 141 | | wswan_plot_pixel( machine, x_offset, state->m_vdp.current_line, state->m_pal[tile_palette][col] ); |
| 107 | state->m_bitmap.pix16(state->m_vdp.current_line, x_offset) = state->m_pal[tile_palette][col]; |
| 142 | 108 | } |
| 143 | 109 | } |
| 144 | 110 | } else { |
| 145 | 111 | if ( col || !(tile_palette & 4 ) ) { |
| 146 | 112 | if ( state->m_vdp.color_mode ) { |
| 147 | | wswan_plot_pixel( machine, x_offset, state->m_vdp.current_line, state->m_pal[tile_palette][col] ); |
| 113 | state->m_bitmap.pix16(state->m_vdp.current_line, x_offset) = state->m_pal[tile_palette][col]; |
| 148 | 114 | } else { |
| 149 | | wswan_plot_pixel( machine, x_offset, state->m_vdp.current_line, state->m_vdp.main_palette[state->m_pal[tile_palette][col]] ); |
| 115 | state->m_bitmap.pix16(state->m_vdp.current_line, x_offset) = state->m_vdp.main_palette[state->m_pal[tile_palette][col]]; |
| 150 | 116 | } |
| 151 | 117 | } |
| 152 | 118 | } |
| r14465 | r14466 | |
| 223 | 189 | if ( state->m_vdp.colors_16 ) { |
| 224 | 190 | if ( col ) { |
| 225 | 191 | // if ( state->m_vdp.color_mode ) { |
| 226 | | wswan_plot_pixel( machine, x_offset, state->m_vdp.current_line, state->m_pal[tile_palette][col] ); |
| 192 | state->m_bitmap.pix16(state->m_vdp.current_line, x_offset) = state->m_pal[tile_palette][col]; |
| 227 | 193 | // } else { |
| 228 | 194 | // /* Hmmmm, what should we do here... Is this correct?? */ |
| 229 | | // wswan_plot_pixel( machine, x_offset, state->m_vdp.current_line, state->m_pal[tile_palette][col] ); |
| 195 | // state->m_bitmap.pix16(state->m_vdp.current_line, x_offset) = state->m_pal[tile_palette][col]; |
| 230 | 196 | // } |
| 231 | 197 | } |
| 232 | 198 | } else { |
| 233 | 199 | if ( col || !(tile_palette & 4 ) ) { |
| 234 | 200 | if ( state->m_vdp.color_mode ) { |
| 235 | | wswan_plot_pixel( machine, x_offset, state->m_vdp.current_line, state->m_pal[tile_palette][col] ); |
| 201 | state->m_bitmap.pix16(state->m_vdp.current_line, x_offset) = state->m_pal[tile_palette][col]; |
| 236 | 202 | } else { |
| 237 | | wswan_plot_pixel( machine, x_offset, state->m_vdp.current_line, state->m_vdp.main_palette[state->m_pal[tile_palette][col]] ); |
| 203 | state->m_bitmap.pix16(state->m_vdp.current_line, x_offset) = state->m_vdp.main_palette[state->m_pal[tile_palette][col]]; |
| 238 | 204 | } |
| 239 | 205 | } |
| 240 | 206 | } |
| r14465 | r14466 | |
| 311 | 277 | if ( state->m_vdp.colors_16 ) { |
| 312 | 278 | if ( col ) { |
| 313 | 279 | if ( state->m_vdp.color_mode ) { |
| 314 | | wswan_plot_pixel( machine, x_offset, state->m_vdp.current_line, state->m_pal[tile_palette][col] ); |
| 280 | state->m_bitmap.pix16(state->m_vdp.current_line, x_offset) = state->m_pal[tile_palette][col]; |
| 315 | 281 | } else { |
| 316 | 282 | /* Hmmmm, what should we do here... Is this correct?? */ |
| 317 | | wswan_plot_pixel( machine, x_offset, state->m_vdp.current_line, state->m_pal[tile_palette][col] ); |
| 283 | state->m_bitmap.pix16(state->m_vdp.current_line, x_offset) = state->m_pal[tile_palette][col]; |
| 318 | 284 | } |
| 319 | 285 | } |
| 320 | 286 | } else { |
| 321 | 287 | if ( col || !(tile_palette & 4 ) ) { |
| 322 | 288 | if ( state->m_vdp.color_mode ) { |
| 323 | | wswan_plot_pixel( machine, x_offset, state->m_vdp.current_line, state->m_pal[tile_palette][col] ); |
| 289 | state->m_bitmap.pix16(state->m_vdp.current_line, x_offset) = state->m_pal[tile_palette][col]; |
| 324 | 290 | } else { |
| 325 | | wswan_plot_pixel( machine, x_offset, state->m_vdp.current_line, state->m_vdp.main_palette[state->m_pal[tile_palette][col]] ); |
| 291 | state->m_bitmap.pix16(state->m_vdp.current_line, x_offset) = state->m_vdp.main_palette[state->m_pal[tile_palette][col]]; |
| 326 | 292 | } |
| 327 | 293 | } |
| 328 | 294 | } |
| r14465 | r14466 | |
| 347 | 313 | int tile_palette = ( tile_data >> 9 ) & 0x0F; |
| 348 | 314 | |
| 349 | 315 | tile_line = ( state->m_vdp.current_line + state->m_vdp.layer_fg_scroll_y ) & 0x07; |
| 350 | | if ( tile_data & 0x8000 ) { |
| 316 | if ( tile_data & 0x8000 ) { // vflip |
| 351 | 317 | tile_line = 7 - tile_line; |
| 352 | 318 | } |
| 353 | 319 | |
| r14465 | r14466 | |
| 399 | 365 | if ( state->m_vdp.colors_16 ) { |
| 400 | 366 | if ( col ) { |
| 401 | 367 | if ( state->m_vdp.color_mode ) { |
| 402 | | wswan_plot_pixel( machine, x_offset, state->m_vdp.current_line, state->m_pal[tile_palette][col] ); |
| 368 | state->m_bitmap.pix16(state->m_vdp.current_line, x_offset) = state->m_pal[tile_palette][col]; |
| 403 | 369 | } else { |
| 404 | 370 | /* Hmmmm, what should we do here... Is this correct?? */ |
| 405 | | wswan_plot_pixel( machine, x_offset, state->m_vdp.current_line, state->m_pal[tile_palette][col] ); |
| 371 | state->m_bitmap.pix16(state->m_vdp.current_line, x_offset) = state->m_pal[tile_palette][col]; |
| 406 | 372 | } |
| 407 | 373 | } |
| 408 | 374 | } else { |
| 409 | 375 | if ( col || !(tile_palette & 4 ) ) { |
| 410 | 376 | if ( state->m_vdp.color_mode ) { |
| 411 | | wswan_plot_pixel( machine, x_offset, state->m_vdp.current_line, state->m_pal[tile_palette][col] ); |
| 377 | state->m_bitmap.pix16(state->m_vdp.current_line, x_offset) = state->m_pal[tile_palette][col]; |
| 412 | 378 | } else { |
| 413 | | wswan_plot_pixel( machine, x_offset, state->m_vdp.current_line, state->m_vdp.main_palette[state->m_pal[tile_palette][col]] ); |
| 379 | state->m_bitmap.pix16(state->m_vdp.current_line, x_offset) = state->m_vdp.main_palette[state->m_pal[tile_palette][col]]; |
| 414 | 380 | } |
| 415 | 381 | } |
| 416 | 382 | } |
| r14465 | r14466 | |
| 429 | 395 | UINT16 tile_data; |
| 430 | 396 | int tile_line; |
| 431 | 397 | |
| 432 | | tile_data = ( state->m_vdp.vram[ state->m_vdp.sprite_table_address + i * 4 + 1 ] << 8 ) |
| 433 | | | state->m_vdp.vram[ state->m_vdp.sprite_table_address + i * 4 ]; |
| 434 | | y = state->m_vdp.vram[ state->m_vdp.sprite_table_address + i * 4 + 2 ]; |
| 435 | | x = state->m_vdp.vram[ state->m_vdp.sprite_table_address + i * 4 + 3 ]; |
| 398 | tile_data = ( state->m_vdp.sprite_table_buffer[ i * 4 + 1 ] << 8 ) | state->m_vdp.sprite_table_buffer[ i * 4 ]; |
| 399 | y = state->m_vdp.sprite_table_buffer[ i * 4 + 2 ]; |
| 400 | x = state->m_vdp.sprite_table_buffer[ i * 4 + 3 ]; |
| 436 | 401 | tile_line = state->m_vdp.current_line - y; |
| 437 | 402 | tile_line = tile_line & 0xFF; |
| 438 | | if ( ( tile_line >= 0 ) && ( tile_line < 8 ) && ( ( tile_data & mask ) == mask ) ) { |
| 403 | if ( ( tile_line >= 0 ) && ( tile_line < 8 ) && ( ( tile_data & 0x2000 ) == mask ) ) { |
| 439 | 404 | UINT32 plane0 = 0, plane1 = 0, plane2 = 0, plane3 = 0; |
| 440 | 405 | int j, x_offset, tile_address; |
| 441 | 406 | int tile_number = tile_data & 0x01FF; |
| r14465 | r14466 | |
| 517 | 482 | if ( state->m_vdp.colors_16 ) { |
| 518 | 483 | if ( col ) { |
| 519 | 484 | if ( state->m_vdp.color_mode ) { |
| 520 | | wswan_plot_pixel( machine, x_offset, state->m_vdp.current_line, state->m_pal[tile_palette][col] ); |
| 485 | state->m_bitmap.pix16(state->m_vdp.current_line, x_offset) = state->m_pal[tile_palette][col]; |
| 521 | 486 | } else { |
| 522 | 487 | /* Hmmmm, what should we do here... Is this correct?? */ |
| 523 | | wswan_plot_pixel( machine, x_offset, state->m_vdp.current_line, state->m_pal[tile_palette][col] ); |
| 488 | state->m_bitmap.pix16(state->m_vdp.current_line, x_offset) = state->m_pal[tile_palette][col]; |
| 524 | 489 | } |
| 525 | 490 | } |
| 526 | 491 | } else { |
| 527 | 492 | if ( col || !(tile_palette & 4 ) ) { |
| 528 | 493 | if ( state->m_vdp.color_mode ) { |
| 529 | | wswan_plot_pixel( machine, x_offset, state->m_vdp.current_line, state->m_pal[tile_palette][col] ); |
| 494 | state->m_bitmap.pix16(state->m_vdp.current_line, x_offset) = state->m_pal[tile_palette][col]; |
| 530 | 495 | } else { |
| 531 | | wswan_plot_pixel( machine, x_offset, state->m_vdp.current_line, state->m_vdp.main_palette[state->m_pal[tile_palette][col]] ); |
| 496 | state->m_bitmap.pix16(state->m_vdp.current_line, x_offset) = state->m_vdp.main_palette[state->m_pal[tile_palette][col]]; |
| 532 | 497 | } |
| 533 | 498 | } |
| 534 | 499 | } |
| r14465 | r14466 | |
| 548 | 513 | if ( state->m_ws_portram[0x14] ) { |
| 549 | 514 | /* Not sure if these background color checks and settings are correct */ |
| 550 | 515 | if ( state->m_vdp.color_mode && state->m_vdp.colors_16 ) { |
| 551 | | wswan_fillbitmap( machine, state->m_pal[state->m_ws_portram[0x01]>>4][state->m_ws_portram[0x01]&0x0F], &rec ); |
| 516 | state->m_bitmap.fill( state->m_pal[state->m_ws_portram[0x01]>>4][state->m_ws_portram[0x01]&0x0F], rec ); |
| 552 | 517 | } else { |
| 553 | | wswan_fillbitmap( machine, state->m_vdp.main_palette[state->m_ws_portram[0x01]&0x07], &rec ); |
| 518 | state->m_bitmap.fill( state->m_vdp.main_palette[state->m_ws_portram[0x01]&0x07], rec ); |
| 554 | 519 | } |
| 555 | 520 | } else { |
| 556 | | wswan_fillbitmap( machine, 0, &rec ); |
| 521 | state->m_bitmap.fill( 0, rec ); |
| 557 | 522 | return; |
| 558 | 523 | } |
| 559 | 524 | |
src/mess/drivers/wswan.c
| r14465 | r14466 | |
| 33 | 33 | #define ADDRESS_MAP_MODERN |
| 34 | 34 | |
| 35 | 35 | #include "includes/wswan.h" |
| 36 | #include "wswan.lh" |
| 36 | 37 | |
| 37 | 38 | static ADDRESS_MAP_START (wswan_mem, AS_PROGRAM, 8, wswan_state) |
| 38 | 39 | AM_RANGE(0x00000, 0x03fff) AM_RAM /* 16kb RAM / 4 colour tiles */ |
| r14465 | r14466 | |
| 90 | 91 | PORT_BIT( 0x8, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_NAME("Button B") |
| 91 | 92 | |
| 92 | 93 | PORT_START("CURSY") /* Cursors (Y1-Y4) */ |
| 93 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_NAME("Y1 - Left") PORT_CODE(KEYCODE_A) |
| 94 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_NAME("Y3 - Right") PORT_CODE(KEYCODE_D) |
| 95 | | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_NAME("Y4 - Down") PORT_CODE(KEYCODE_S) |
| 96 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_NAME("Y2 - Up") PORT_CODE(KEYCODE_W) |
| 94 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_NAME("Y1 - Up") PORT_CODE(KEYCODE_W) |
| 95 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_NAME("Y3 - Down") PORT_CODE(KEYCODE_S) |
| 96 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_NAME("Y4 - Left") PORT_CODE(KEYCODE_A) |
| 97 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_NAME("Y2 - Right") PORT_CODE(KEYCODE_D) |
| 97 | 98 | INPUT_PORTS_END |
| 98 | 99 | |
| 99 | 100 | static GFXDECODE_START( wswan ) |
| r14465 | r14466 | |
| 132 | 133 | MCFG_SCREEN_REFRESH_RATE(75) |
| 133 | 134 | MCFG_SCREEN_VBLANK_TIME(0) |
| 134 | 135 | MCFG_SCREEN_UPDATE_DRIVER(wswan_state, screen_update) |
| 135 | | MCFG_SCREEN_SIZE( WSWAN_X_PIXELS, WSWAN_X_PIXELS ) |
| 136 | | MCFG_SCREEN_VISIBLE_AREA(0*8, WSWAN_X_PIXELS - 1, 0, WSWAN_X_PIXELS - 1) |
| 136 | MCFG_SCREEN_SIZE( WSWAN_X_PIXELS, WSWAN_Y_PIXELS ) |
| 137 | MCFG_SCREEN_VISIBLE_AREA(0*8, WSWAN_X_PIXELS - 1, 0, WSWAN_Y_PIXELS - 1) |
| 138 | MCFG_DEFAULT_LAYOUT(layout_wswan) |
| 137 | 139 | |
| 138 | 140 | MCFG_QUANTUM_TIME(attotime::from_hz(60)) |
| 139 | 141 | |