Previous 15994 Revisions Next

r9050 Sunday 5th September, 2010 at 16:44:49 UTC by Angelo Salese
[MZ-2500]: added a work-around for mixed 3+3 bpp TV layer mode, used by Moon Child intro text
[src/mess/drivers]mz2500.c

src/mess/drivers/mz2500.c
r9049r9050
1818    - Dust Box vol. 4: window effect transition is bugged;
1919    - Dust Box vol. n: three items returns "purple" text, presumably HW failures (DFJustin: joystick "digital", mouse "not installed", HDD "not installed";
2020    - LayDock: hangs by reading the FDC status and expecting it to become 0x81;
21    - Moon Child: needs mixed 3+3bpp tvram supported;
21    - Moon Child: needs mixed 3+3bpp tvram supported, kludged for now (not a real test case);
22    - Moon Child: window masking doesn't mask bottom part of the screen?
2223    - Moon Child: appears to be a network / system link game, obviously doesn't work with current MAME / MESS framework;
2324      - Marchen Veil I: doesn't load if you try to run it, it does if you load another game first (for example Mappy);
2425      - Mugen no Shinzou: returns an HW error if you attempt to do a new game, it seems to be a fdc writing issue;
r9049r9050
5152#include "emu.h"
5253#include "cpu/z80/z80.h"
5354#include "machine/z80pio.h"
55#include "machine/z80sio.h"
5456#include "machine/i8255a.h"
5557#include "machine/wd17xx.h"
5658#include "machine/pit8253.h"
r9049r9050
487489
488490      switch(tv_mode & 3)
489491      {
490//          case 0: mixed 6bpp mode
492         case 0: //mixed 6bpp mode, TODO
493            draw_40x25(machine,bitmap,cliprect,0,base_addr);
494            break;
491495         case 1:
492496            draw_40x25(machine,bitmap,cliprect,0,base_addr);
493497            break;
r9049r9050
14041408   ADDRESS_MAP_GLOBAL_MASK(0xff)
14051409//  AM_RANGE(0x60, 0x63) AM_WRITE(w3100a_w)
14061410//  AM_RANGE(0x63, 0x63) AM_READ(w3100a_r)
1407//  AM_RANGE(0xa0, 0xa3) AM_READWRITE(sio_r,sio_w)
1411   AM_RANGE(0xa0, 0xa3) AM_DEVREADWRITE("z80sio",z80sio_ba_cd_r,z80sio_ba_cd_w)
14081412//  AM_RANGE(0xa4, 0xa5) AM_READWRITE(sasi_r, sasi_w)
14091413   AM_RANGE(0xa8, 0xa8) AM_WRITE(mz2500_rom_w)
14101414   AM_RANGE(0xa9, 0xa9) AM_READ(mz2500_rom_r)
r9049r9050
19701974   mz2500_rtc_alarm_irq
19711975};
19721976
1977static const z80sio_interface mz2500_sio_intf =
1978{
1979   NULL,
1980   NULL,
1981   NULL,
1982   NULL,
1983   NULL,
1984   NULL
1985};
1986
19731987static MACHINE_CONFIG_START( mz2500, driver_device )
19741988    /* basic machine hardware */
19751989    MDRV_CPU_ADD("maincpu", Z80, 6000000)
r9049r9050
19811995
19821996   MDRV_I8255A_ADD( "i8255_0", ppi8255_intf )
19831997   MDRV_Z80PIO_ADD( "z80pio_1", 6000000, mz2500_pio1_intf )
1998   MDRV_Z80SIO_ADD( "z80sio", 6000000, mz2500_sio_intf )
19841999   MDRV_RP5C15_ADD( "rp5c15" , rtc_intf)
19852000   MDRV_PIT8253_ADD("pit", mz2500_pit8253_intf)
19862001

Previous 15994 Revisions Next


© 1998-2018 The MESS Team