Previous 15994 Revisions Next

r13696 Friday 23rd December, 2011 at 15:42:45 UTC by Angelo Salese
Small z180 bug-fix for tim011
[src/emu/cpu/z180]z180.c
[src/mess/drivers]tim011.c

src/emu/cpu/z180/z180.c
r13695r13696
377377#define Z180_STAT1_TDRE       0x02
378378#define Z180_STAT1_TIE         0x01
379379
380#define Z180_STAT1_RESET      0x0
380#define Z180_STAT1_RESET      0x02
381381#define Z180_STAT1_RMASK      0xff
382382#define Z180_STAT1_WMASK      0x0d
383383
src/mess/drivers/tim011.c
r13695r13696
1616public:
1717   tim011_state(const machine_config &mconfig, device_type type, const char *tag)
1818      : driver_device(mconfig, type, tag) { }
19
2019};
2120
2221
r13695r13696
2827
2928static ADDRESS_MAP_START(tim011_io, AS_IO, 8, tim011_state)
3029   ADDRESS_MAP_UNMAP_HIGH
31   ADDRESS_MAP_GLOBAL_MASK(0xff)
32   AM_RANGE(0x00, 0x7f) AM_NOP   /* Z180 internal registers */
30   AM_RANGE(0x0000, 0x007f) AM_RAM   /* Z180 internal registers */
31   AM_RANGE(0x8000, 0xffff) AM_RAM
3332ADDRESS_MAP_END
3433
3534/* Input ports */
r13695r13696
5554   MCFG_CPU_ADD("maincpu",Z180, XTAL_12_288MHz / 2)
5655   MCFG_CPU_PROGRAM_MAP(tim011_mem)
5756   MCFG_CPU_IO_MAP(tim011_io)
57   MCFG_CPU_VBLANK_INT("screen",irq0_line_hold)
5858
5959   MCFG_MACHINE_RESET(tim011)
6060

Previous 15994 Revisions Next


© 1998-2018 The MESS Team