src/mess/drivers/compis.c
| r4573 | r4574 | |
| 44 | 44 | #include "machine/nec765.h" |
| 45 | 45 | #include "formats/cpis_dsk.h" |
| 46 | 46 | |
| 47 | static 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 */ |
| 47 | 58 | |
| 59 | if (offset == 3) return 0; |
| 60 | else |
| 61 | return ppi8255_r(device, offset); |
| 62 | } |
| 63 | |
| 48 | 64 | static ADDRESS_MAP_START( compis_mem , ADDRESS_SPACE_PROGRAM, 16 ) |
| 49 | 65 | AM_RANGE( 0x00000, 0x3ffff) AM_RAM |
| 50 | 66 | AM_RANGE( 0x40000, 0x4ffff) AM_RAM |
| r4573 | r4574 | |
| 56 | 72 | ADDRESS_MAP_END |
| 57 | 73 | |
| 58 | 74 | static 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) |
| 60 | 76 | AM_RANGE( 0x0080, 0x0087) AM_DEVREADWRITE8("pit8253", pit8253_r, pit8253_w, 0xffff) |
| 61 | 77 | AM_RANGE( 0x0100, 0x011b) AM_DEVREADWRITE8("mm58274c", mm58274c_r, mm58274c_w, 0xffff) |
| 62 | 78 | AM_RANGE( 0x0280, 0x0283) AM_DEVREADWRITE8("pic8259_master", pic8259_r, pic8259_w, 0xffff) /* 80150/80130 */ |
| r4573 | r4574 | |
| 97 | 113 | - "Compis S" is mapped to 'F6' |
| 98 | 114 | - "Avbryt" is mapped to 'F7' |
| 99 | 115 | - "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' |
| 102 | 118 | - "Start / Stop" is mapped to 'Pause' |
| 103 | 119 | - "TabL" is mapped to 'Page Up' |
| 104 | 120 | - "TabR" is mapped to 'Page Down' |