src/mess/video/mbee.c
| r1865 | r1866 | |
| 48 | 48 | static int m6545_video_bank = 0; |
| 49 | 49 | static int mbee_pcg_color_latch = 0; |
| 50 | 50 | |
| 51 | | char mbee_frame_message[128+1]; |
| 52 | 51 | int mbee_frame_counter; |
| 53 | 52 | |
| 54 | 53 | |
| r1865 | r1866 | |
| 323 | 322 | |
| 324 | 323 | WRITE8_HANDLER ( m6545_data_w ) |
| 325 | 324 | { |
| 326 | | int addr; |
| 325 | int addr, i; |
| 327 | 326 | |
| 328 | 327 | switch( crt.idx ) |
| 329 | 328 | { |
| r1865 | r1866 | |
| 419 | 418 | break; |
| 420 | 419 | update_all = 1; |
| 421 | 420 | crt.screen_address_hi = data; |
| 421 | addr = 0x17000+((data & 32) << 6); |
| 422 | memcpy(memory_region(REGION_CPU1)+0xf000, memory_region(REGION_CPU1)+addr, 0x800); |
| 423 | for (i = 0; i < 128; i++) |
| 424 | decodechar(Machine->gfx[0],i, pcgram); |
| 422 | 425 | logerror("6545 screen address hi $%02X\n", data); |
| 423 | 426 | break; |
| 424 | 427 | case 13: |
| r1865 | r1866 | |
| 477 | 480 | { |
| 478 | 481 | videoram = auto_malloc(0x800); |
| 479 | 482 | colorram = auto_malloc(0x800); |
| 483 | pcgram = memory_region(REGION_CPU1)+0xf000; |
| 480 | 484 | } |
| 481 | 485 | |
| 482 | 486 | VIDEO_UPDATE( mbee ) |
| 483 | 487 | { |
| 484 | 488 | int offs, cursor, screen_; |
| 485 | | int full_refresh = 1; |
| 486 | 489 | |
| 487 | | if( mbee_frame_counter > 0 ) |
| 488 | | { |
| 489 | | if( --mbee_frame_counter == 0 ) |
| 490 | | full_refresh = 1; |
| 491 | | else |
| 492 | | { |
| 493 | | popmessage("%s", mbee_frame_message); |
| 494 | | } |
| 495 | | } |
| 496 | | |
| 497 | 490 | for( offs = 0x000; offs < 0x380; offs += 0x10 ) |
| 498 | 491 | keyboard_matrix_r(offs); |
| 499 | 492 | |
| 500 | 493 | framecnt++; |
| 501 | 494 | |
| 502 | 495 | cursor = crt.cursor_address_hi * 256 + crt.cursor_address_lo; |
| 503 | | screen_ = crt.screen_address_hi * 256 + crt.screen_address_lo; |
| 496 | screen_ = (crt.screen_address_hi & 7) * 256 + crt.screen_address_lo; |
| 504 | 497 | for( offs = screen_; offs < crt.horizontal_displayed * crt.vertical_displayed + screen_; offs++ ) |
| 505 | 498 | { |
| 506 | 499 | int sx, sy, code, color; |
| r1865 | r1866 | |
| 524 | 517 | *BITMAP_ADDR16(bitmap, sy+y, sx+x) = machine->pens[5]; //[color]; |
| 525 | 518 | } |
| 526 | 519 | } |
| 527 | | } |
| 520 | } |
| 528 | 521 | } |
| 529 | 522 | return 0; |
| 530 | 523 | } |
src/mess/drivers/mbee.c
| r1865 | r1866 | |
| 69 | 69 | |
| 70 | 70 | static ADDRESS_MAP_START(mbee_ports, ADDRESS_SPACE_IO, 8) |
| 71 | 71 | ADDRESS_MAP_FLAGS( AMEF_ABITS(8) ) |
| 72 | | AM_RANGE(0x00, 0x03) AM_READWRITE(mbee_pio_r, mbee_pio_w) |
| 73 | | AM_RANGE(0x08, 0x08) AM_READWRITE(mbee_pcg_color_latch_r, mbee_pcg_color_latch_w) |
| 74 | | AM_RANGE(0x0a, 0x0a) AM_READWRITE(mbee_color_bank_r, mbee_color_bank_w) |
| 75 | | AM_RANGE(0x0b, 0x0b) AM_READWRITE(mbee_video_bank_r, mbee_video_bank_w) |
| 76 | | AM_RANGE(0x0c, 0x0c) AM_READWRITE(m6545_status_r, m6545_index_w) |
| 77 | | AM_RANGE(0x0d, 0x0d) AM_READWRITE(m6545_data_r, m6545_data_w) |
| 72 | AM_RANGE(0x00, 0x03) AM_MIRROR(0x10) AM_READWRITE(mbee_pio_r, mbee_pio_w) |
| 73 | AM_RANGE(0x08, 0x08) AM_MIRROR(0x10) AM_READWRITE(mbee_pcg_color_latch_r, mbee_pcg_color_latch_w) |
| 74 | // AM_RANGE(0x09, 0x09) AM_MIRROR(0x10) Listed as "Colour Wait Off" but doesn't appear in the schematics |
| 75 | AM_RANGE(0x0a, 0x0a) AM_MIRROR(0x10) AM_READWRITE(mbee_color_bank_r, mbee_color_bank_w) |
| 76 | AM_RANGE(0x0b, 0x0b) AM_MIRROR(0x10) AM_READWRITE(mbee_video_bank_r, mbee_video_bank_w) |
| 77 | AM_RANGE(0x0c, 0x0c) AM_MIRROR(0x10) AM_READWRITE(m6545_status_r, m6545_index_w) |
| 78 | AM_RANGE(0x0d, 0x0d) AM_MIRROR(0x10) AM_READWRITE(m6545_data_r, m6545_data_w) |
| 78 | 79 | AM_RANGE(0x44, 0x44) AM_READWRITE(wd17xx_status_r, wd17xx_command_w) |
| 79 | 80 | AM_RANGE(0x45, 0x45) AM_READWRITE(wd17xx_track_r, wd17xx_track_w) |
| 80 | 81 | AM_RANGE(0x46, 0x46) AM_READWRITE(wd17xx_sector_r, wd17xx_sector_w) |
| r1865 | r1866 | |
| 302 | 303 | } |
| 303 | 304 | |
| 304 | 305 | ROM_START( mbee ) |
| 305 | | ROM_REGION(0x10000,REGION_CPU1,0) |
| 306 | | ROM_LOAD("bas522a.rom", 0x8000, 0x2000, CRC(7896a696) SHA1(a158f7803296766160e1f258dfc46134735a9477)) |
| 307 | | ROM_LOAD("bas522b.rom", 0xa000, 0x2000, CRC(b21d9679) SHA1(332844433763331e9483409cd7da3f90ac58259d)) |
| 308 | | ROM_LOAD("edasm.rom", 0xc000, 0x2000, CRC(1af1b3a9) SHA1(d035a997c2dbbb3918b3395a3a5a1076aa203ee5)) |
| 309 | | ROM_LOAD("charrom.bin", 0xf000, 0x1000, CRC(1f9fcee4) SHA1(e57ac94e03638075dde68a0a8c834a4f84ba47b0)) |
| 306 | ROM_REGION(0x18000,REGION_CPU1,0) |
| 307 | ROM_LOAD("bas522a.rom", 0x8000, 0x2000, CRC(7896a696) SHA1(a158f7803296766160e1f258dfc46134735a9477)) |
| 308 | ROM_LOAD("bas522b.rom", 0xa000, 0x2000, CRC(b21d9679) SHA1(332844433763331e9483409cd7da3f90ac58259d)) |
| 309 | ROM_LOAD("edasm.rom", 0xc000, 0x2000, CRC(1af1b3a9) SHA1(d035a997c2dbbb3918b3395a3a5a1076aa203ee5)) |
| 310 | ROM_LOAD("charrom.bin", 0xf000, 0x1000, CRC(1f9fcee4) SHA1(e57ac94e03638075dde68a0a8c834a4f84ba47b0)) |
| 311 | ROM_RELOAD( 0x17000, 0x1000 ) |
| 310 | 312 | ROM_END |
| 311 | 313 | |
| 312 | 314 | ROM_START( mbeepc85 ) |
| 313 | | ROM_REGION(0x10000,REGION_CPU1,0) |
| 314 | | ROM_LOAD("bas522a.rom", 0x8000, 0x2000, CRC(7896a696) SHA1(a158f7803296766160e1f258dfc46134735a9477)) |
| 315 | | ROM_LOAD("bas522b.rom", 0xa000, 0x2000, CRC(b21d9679) SHA1(332844433763331e9483409cd7da3f90ac58259d)) |
| 316 | | ROM_LOAD("wbee12.rom", 0xc000, 0x2000, CRC(0fc21cb5) SHA1(33b3995988fc51ddef1568e160dfe699867adbd5)) |
| 317 | | ROM_LOAD("charrom.bin", 0xf000, 0x1000, CRC(1f9fcee4) SHA1(e57ac94e03638075dde68a0a8c834a4f84ba47b0)) |
| 315 | ROM_REGION(0x18000,REGION_CPU1,0) |
| 316 | ROM_LOAD("bas522a.rom", 0x8000, 0x2000, CRC(7896a696) SHA1(a158f7803296766160e1f258dfc46134735a9477)) |
| 317 | ROM_LOAD("bas522b.rom", 0xa000, 0x2000, CRC(b21d9679) SHA1(332844433763331e9483409cd7da3f90ac58259d)) |
| 318 | ROM_LOAD("wbee12.rom", 0xc000, 0x2000, CRC(0fc21cb5) SHA1(33b3995988fc51ddef1568e160dfe699867adbd5)) |
| 319 | ROM_LOAD("charrom.bin", 0xf000, 0x1000, CRC(1f9fcee4) SHA1(e57ac94e03638075dde68a0a8c834a4f84ba47b0)) |
| 320 | ROM_RELOAD( 0x17000, 0x1000 ) |
| 318 | 321 | ROM_END |
| 319 | 322 | |
| 320 | 323 | ROM_START( mbeepc ) |
| 321 | | ROM_REGION(0x10000,REGION_CPU1,0) |
| 322 | | ROM_LOAD("bas522a.rom", 0x8000, 0x2000, CRC(7896a696) SHA1(a158f7803296766160e1f258dfc46134735a9477)) |
| 323 | | ROM_LOAD("bas522b.rom", 0xa000, 0x2000, CRC(b21d9679) SHA1(332844433763331e9483409cd7da3f90ac58259d)) |
| 324 | | ROM_LOAD("telc321.rom", 0xe000, 0x2000, CRC(15b9d2df) SHA1(6e7606099d036f87230b3595eb873be60c190f11)) |
| 325 | | ROM_LOAD("charrom.bin", 0xf000, 0x1000, CRC(1f9fcee4) SHA1(e57ac94e03638075dde68a0a8c834a4f84ba47b0)) |
| 324 | ROM_REGION(0x18000,REGION_CPU1,0) |
| 325 | ROM_LOAD("bas522a.rom", 0x8000, 0x2000, CRC(7896a696) SHA1(a158f7803296766160e1f258dfc46134735a9477)) |
| 326 | ROM_LOAD("bas522b.rom", 0xa000, 0x2000, CRC(b21d9679) SHA1(332844433763331e9483409cd7da3f90ac58259d)) |
| 327 | ROM_LOAD("telc321.rom", 0xe000, 0x2000, CRC(15b9d2df) SHA1(6e7606099d036f87230b3595eb873be60c190f11)) |
| 328 | ROM_LOAD("charrom.bin", 0xf000, 0x1000, CRC(1f9fcee4) SHA1(e57ac94e03638075dde68a0a8c834a4f84ba47b0)) |
| 329 | ROM_RELOAD( 0x17000, 0x1000 ) |
| 326 | 330 | ROM_END |
| 327 | 331 | |
| 328 | 332 | ROM_START( mbee56 ) |
| 329 | | ROM_REGION(0x10000,REGION_CPU1,0) |
| 330 | | ROM_LOAD("56kb.rom", 0xe000, 0x1000, CRC(28211224) SHA1(b6056339402a6b2677b0e6c57bd9b78a62d20e4f)) |
| 331 | | ROM_LOAD("charrom.bin", 0xf000, 0x1000, CRC(1f9fcee4) SHA1(e57ac94e03638075dde68a0a8c834a4f84ba47b0)) |
| 333 | ROM_REGION(0x18000,REGION_CPU1,0) |
| 334 | ROM_LOAD("56kb.rom", 0xe000, 0x1000, CRC(28211224) SHA1(b6056339402a6b2677b0e6c57bd9b78a62d20e4f)) |
| 335 | ROM_LOAD("charrom.bin", 0xf000, 0x1000, CRC(1f9fcee4) SHA1(e57ac94e03638075dde68a0a8c834a4f84ba47b0)) |
| 336 | ROM_RELOAD( 0x17000, 0x1000 ) |
| 332 | 337 | ROM_END |
| 333 | 338 | |
| 334 | 339 | /*************************************************************************** |