Previous 15994 Revisions Next

r1866 Sunday 9th March, 2008 at 04:19:35 UTC by Robbbert
[MBEE} Fixed Inverse and Underline modes. Enabled small character set.
[docs]messnew.txt
[src/mess/drivers]mbee.c
[src/mess/video]mbee.c

src/mess/video/mbee.c
r1865r1866
4848static int m6545_video_bank = 0;
4949static int mbee_pcg_color_latch = 0;
5050
51char mbee_frame_message[128+1];
5251int mbee_frame_counter;
5352
5453
r1865r1866
323322
324323WRITE8_HANDLER ( m6545_data_w )
325324{
326   int addr;
325   int addr, i;
327326
328327    switch( crt.idx )
329328   {
r1865r1866
419418         break;
420419      update_all = 1;
421420      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);
422425      logerror("6545 screen address hi       $%02X\n", data);
423426        break;
424427   case 13:
r1865r1866
477480{
478481   videoram = auto_malloc(0x800);
479482   colorram = auto_malloc(0x800);
483   pcgram = memory_region(REGION_CPU1)+0xf000;
480484}
481485
482486VIDEO_UPDATE( mbee )
483487{
484488   int offs, cursor, screen_;
485   int full_refresh = 1;
486489
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
497490   for( offs = 0x000; offs < 0x380; offs += 0x10 )
498491      keyboard_matrix_r(offs);
499492
500493   framecnt++;
501494
502495   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;
504497   for( offs = screen_; offs < crt.horizontal_displayed * crt.vertical_displayed + screen_; offs++ )
505498   {
506499      int sx, sy, code, color;
r1865r1866
524517                  *BITMAP_ADDR16(bitmap, sy+y, sx+x) = machine->pens[5]; //[color];
525518            }
526519         }
527        }
520      }
528521   }
529522   return 0;
530523}
src/mess/drivers/mbee.c
r1865r1866
6969
7070static ADDRESS_MAP_START(mbee_ports, ADDRESS_SPACE_IO, 8)
7171   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)
7879   AM_RANGE(0x44, 0x44) AM_READWRITE(wd17xx_status_r, wd17xx_command_w)
7980   AM_RANGE(0x45, 0x45) AM_READWRITE(wd17xx_track_r, wd17xx_track_w)
8081   AM_RANGE(0x46, 0x46) AM_READWRITE(wd17xx_sector_r, wd17xx_sector_w)
r1865r1866
302303}
303304
304305ROM_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 )
310312ROM_END
311313
312314ROM_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 )
318321ROM_END
319322
320323ROM_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 )
326330ROM_END
327331
328332ROM_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 )
332337ROM_END
333338
334339/***************************************************************************
docs/messnew.txt
r1865r1866
2222
2323- [GAMEBOY] Added support for Korean MBC1 mapper variant.  [Wilbert Pol]
2424
25- [MBEE] Fixed colours and sound. [Robbbert]
25- [MBEE] Fixed colours, sound, Inverse and Underline modes. Enabled alternate
26  characters. [Robbbert]
2627
2728- [QL] System boots up again. (bug #1495) [Curt Coder]
2829
30- [TRS80] Fixed an issue with I/O ports. Fixed 32 character display. Decoded
31  LNW-80 characters. [Robbbert]
32
2933- [VC4000] Cleaned up, added quickload and fixed colors.  (bug #1404) [Manfred
3034  Schneider]
3135

Previous 15994 Revisions Next


© 1998-2018 The MESS Team