Previous 15994 Revisions Next

r4574 Monday 27th April, 2009 at 11:22:09 UTC by Robbbert
[COMPIS] Fixed regression that occurred somewhere in the 129-130 cycle,
[src/mess/drivers]compis.c

src/mess/drivers/compis.c
r4573r4574
4444#include "machine/nec765.h"
4545#include "formats/cpis_dsk.h"
4646
47static READ8_DEVICE_HANDLER( compis_ppi_r )
48{
49/* Port 3 is the control port and mame returns a hardcoded FF, but compis
50   does not like it. Code at that point:
51   F8DBD:   mov dx, 3
52      in al, dx
53      and al, 8
54      je F8DF1
55   The jump must be taken to succeed. It seems that the read should
56   return some kind of status rather than FF. Until this matter is
57   resolved, this will have to do. - R */
4758
59   if (offset == 3) return 0;
60   else
61   return ppi8255_r(device, offset);
62}
63
4864static ADDRESS_MAP_START( compis_mem , ADDRESS_SPACE_PROGRAM, 16 )
4965   AM_RANGE( 0x00000, 0x3ffff) AM_RAM
5066   AM_RANGE( 0x40000, 0x4ffff) AM_RAM
r4573r4574
5672ADDRESS_MAP_END
5773
5874static ADDRESS_MAP_START( compis_io, ADDRESS_SPACE_IO, 16 )
59   AM_RANGE( 0x0000, 0x0007) AM_DEVREADWRITE8("ppi8255", ppi8255_r, ppi8255_w, 0xffff)
75   AM_RANGE( 0x0000, 0x0007) AM_DEVREADWRITE8("ppi8255", compis_ppi_r, ppi8255_w, 0xffff)
6076   AM_RANGE( 0x0080, 0x0087) AM_DEVREADWRITE8("pit8253", pit8253_r, pit8253_w, 0xffff)
6177   AM_RANGE( 0x0100, 0x011b) AM_DEVREADWRITE8("mm58274c", mm58274c_r, mm58274c_w, 0xffff)
6278   AM_RANGE( 0x0280, 0x0283) AM_DEVREADWRITE8("pic8259_master", pic8259_r, pic8259_w, 0xffff) /* 80150/80130 */
r4573r4574
97113- "Compis S" is mapped to 'F6'
98114- "Avbryt" is mapped to 'F7'
99115- "Inpassa" is mapped to 'Insert'
100- "Sök" is mapped to "Print Screen"
101- "Utplåna"is mapped to 'Delete'
116- "Sök" is mapped to "Print Screen"
117- "Utplåna"is mapped to 'Delete'
102118- "Start / Stop" is mapped to 'Pause'
103119- "TabL" is mapped to 'Page Up'
104120- "TabR" is mapped to 'Page Down'

Previous 15994 Revisions Next


© 1998-2018 The MESS Team