Previous 199869 Revisions Next

r17415 Thursday 23rd August, 2012 at 03:18:14 UTC by Angelo Salese
A small unused code regarding ext i/o (not hooked because it then talks with the SCSI a lot)
[/trunk]makefile
[src/mess/drivers]pcfx.c

trunk/src/mess/drivers/pcfx.c
r17414r17415
4848   DECLARE_WRITE16_MEMBER( irq_write );
4949   DECLARE_READ16_MEMBER( pad_r );
5050   DECLARE_WRITE16_MEMBER( pad_w );
51   DECLARE_READ8_MEMBER( extio_r );
52   DECLARE_WRITE8_MEMBER( extio_w );
53
5154   inline void check_irqs();
5255   inline void set_irq_line(int line, int state);
5356   DECLARE_WRITE_LINE_MEMBER( irq8_w );
r17414r17415
5861   DECLARE_WRITE_LINE_MEMBER( irq13_w );
5962   DECLARE_WRITE_LINE_MEMBER( irq14_w );
6063   DECLARE_WRITE_LINE_MEMBER( irq15_w );
61
6264};
6365
6466
67READ8_MEMBER(pcfx_state::extio_r)
68{
69   address_space *io_space = m_maincpu->memory().space(AS_IO);
70
71   return io_space->read_byte(offset);
72}
73
74WRITE8_MEMBER(pcfx_state::extio_w)
75{
76   address_space *io_space = m_maincpu->memory().space(AS_IO);
77
78   io_space->write_byte(offset, data);
79}
80
6581static ADDRESS_MAP_START( pcfx_mem, AS_PROGRAM, 32, pcfx_state )
6682   AM_RANGE( 0x00000000, 0x001FFFFF ) AM_RAM   /* RAM */
67   AM_RANGE( 0x80700000, 0x807FFFFF ) AM_NOP   /* EXTIO */
68   AM_RANGE( 0xE0000000, 0xE7FFFFFF ) AM_NOP
69   AM_RANGE( 0xE8000000, 0xE9FFFFFF ) AM_NOP
83//   AM_RANGE( 0x80000000, 0x807FFFFF ) AM_READWRITE8(extio_r,extio_w,0xffffffff)   /* EXTIO */
84   AM_RANGE( 0xE0000000, 0xE7FFFFFF ) AM_NOP   /* BackUp RAM */
85   AM_RANGE( 0xE8000000, 0xE9FFFFFF ) AM_NOP   /* Extended BackUp RAM */
7086   AM_RANGE( 0xF8000000, 0xF8000007 ) AM_NOP   /* PIO */
7187   AM_RANGE( 0xFFF00000, 0xFFFFFFFF ) AM_ROMBANK("bank1")   /* ROM */
7288ADDRESS_MAP_END
r17414r17415
141157   }
142158}
143159
160
144161static ADDRESS_MAP_START( pcfx_io, AS_IO, 32, pcfx_state )
145162   AM_RANGE( 0x00000000, 0x000000FF ) AM_READWRITE16(pad_r, pad_w, 0xffffffff)   /* PAD */
146163   AM_RANGE( 0x00000100, 0x000001FF ) AM_NOP   /* HuC6230 */
r17414r17415
152169   AM_RANGE( 0x00000C80, 0x00000C83 ) AM_NOP
153170   AM_RANGE( 0x00000E00, 0x00000EFF ) AM_READWRITE16( irq_read, irq_write, 0xffff )   /* Interrupt controller */
154171   AM_RANGE( 0x00000F00, 0x00000FFF ) AM_NOP
172//   AM_RANGE( 0x00600000, 0x006FFFFF ) AM_READ(scsi_ctrl_r)
155173   AM_RANGE( 0x00780000, 0x007FFFFF ) AM_ROM AM_REGION("scsi_rom", 0 )
156174   AM_RANGE( 0x80500000, 0x805000FF ) AM_NOP   /* HuC6273 */
157175ADDRESS_MAP_END
trunk/makefile
r17414r17415
222222BUILD_JPEGLIB = 1
223223
224224# uncomment next line to include the symbols
225SYMBOLS = 1
225# SYMBOLS = 1
226226
227227# specify symbols level or leave commented to use the default
228228# (default is SYMLEVEL = 2 normally; use 1 if you only need backtrace)

Previous 199869 Revisions Next


© 1997-2024 The MAME Team