trunk/src/mame/drivers/gts1.c
| r242209 | r242210 | |
| 70 | 70 | #include "cpu/pps4/pps4.h" |
| 71 | 71 | //#include "gts1.lh" |
| 72 | 72 | |
| 73 | #define VERBOSE 1 |
| 74 | |
| 75 | #if VERBOSE |
| 76 | #define LOG(x) logerror x |
| 77 | #else |
| 78 | #define LOG(x) |
| 79 | #endif |
| 80 | |
| 73 | 81 | class gts1_state : public genpin_class |
| 74 | 82 | { |
| 75 | 83 | public: |
| 76 | | gts1_state(const machine_config &mconfig, device_type type, const char *tag) |
| 77 | | : genpin_class(mconfig, type, tag) |
| 78 | | , m_maincpu(*this, "maincpu") |
| 79 | | { } |
| 84 | gts1_state(const machine_config &mconfig, device_type type, const char *tag) |
| 85 | : genpin_class(mconfig, type, tag) |
| 86 | , m_maincpu(*this, "maincpu") |
| 87 | { } |
| 80 | 88 | |
| 81 | | DECLARE_DRIVER_INIT(gts1); |
| 89 | DECLARE_DRIVER_INIT(gts1); |
| 90 | DECLARE_READ8_MEMBER (gts1_pa_r); |
| 91 | DECLARE_WRITE8_MEMBER(gts1_pa_w); |
| 92 | DECLARE_WRITE8_MEMBER(gts1_pb_w); |
| 82 | 93 | private: |
| 83 | | virtual void machine_reset(); |
| 84 | | required_device<cpu_device> m_maincpu; |
| 94 | virtual void machine_reset(); |
| 95 | required_device<cpu_device> m_maincpu; |
| 96 | UINT8 m_6351_addr; |
| 85 | 97 | }; |
| 86 | 98 | |
| 87 | | |
| 88 | 99 | static ADDRESS_MAP_START( gts1_map, AS_PROGRAM, 8, gts1_state ) |
| 89 | | AM_RANGE(0x0000, 0x0fff) AM_ROM |
| 100 | AM_RANGE(0x0000, 0x0fff) AM_ROM |
| 90 | 101 | ADDRESS_MAP_END |
| 91 | 102 | |
| 92 | 103 | static ADDRESS_MAP_START( gts1_data, AS_DATA, 8, gts1_state ) |
| 93 | | AM_RANGE(0x0000, 0x0fff) AM_RAM // not correct |
| 104 | AM_RANGE(0x0000, 0x0fff) AM_RAM // not correct |
| 94 | 105 | ADDRESS_MAP_END |
| 95 | 106 | |
| 96 | 107 | static ADDRESS_MAP_START( gts1_io, AS_IO, 8, gts1_state ) |
| 97 | | AM_RANGE(0x0000, 0x00ff) AM_RAM // connects to all the other chips |
| 108 | AM_RANGE(0x0000, 0x00ff) AM_RAM // connects to all the other chips |
| 109 | AM_RANGE(0x0100, 0x0100) AM_READ (gts1_pa_r) AM_WRITE(gts1_pa_w) |
| 110 | AM_RANGE(0x0101, 0x0101) AM_WRITE(gts1_pb_w) |
| 98 | 111 | ADDRESS_MAP_END |
| 99 | 112 | |
| 100 | 113 | static INPUT_PORTS_START( gts1 ) |
| 101 | | PORT_START("DSW0") |
| 102 | | PORT_DIPNAME( 0x01, 0x00, "S01") |
| 103 | | PORT_DIPSETTING( 0x00, DEF_STR( Off )) |
| 104 | | PORT_DIPSETTING( 0x01, DEF_STR( On )) |
| 105 | | PORT_DIPNAME( 0x02, 0x00, "S02") |
| 106 | | PORT_DIPSETTING( 0x00, DEF_STR( Off )) |
| 107 | | PORT_DIPSETTING( 0x02, DEF_STR( On )) |
| 108 | | PORT_DIPNAME( 0x04, 0x00, "S03") |
| 109 | | PORT_DIPSETTING( 0x00, DEF_STR( Off )) |
| 110 | | PORT_DIPSETTING( 0x04, DEF_STR( On )) |
| 111 | | PORT_DIPNAME( 0x08, 0x00, "S04") |
| 112 | | PORT_DIPSETTING( 0x00, DEF_STR( Off )) |
| 113 | | PORT_DIPSETTING( 0x08, DEF_STR( On )) |
| 114 | | PORT_DIPNAME( 0x10, 0x00, "S05") |
| 115 | | PORT_DIPSETTING( 0x00, DEF_STR( Off )) |
| 116 | | PORT_DIPSETTING( 0x10, DEF_STR( On )) |
| 117 | | PORT_DIPNAME( 0x20, 0x20, "S06") |
| 118 | | PORT_DIPSETTING( 0x00, DEF_STR( No )) |
| 119 | | PORT_DIPSETTING( 0x20, DEF_STR( Yes )) |
| 120 | | PORT_DIPNAME( 0x40, 0x40, "S07") |
| 121 | | PORT_DIPSETTING( 0x00, DEF_STR( No )) |
| 122 | | PORT_DIPSETTING( 0x40, DEF_STR( Yes )) |
| 123 | | PORT_DIPNAME( 0x80, 0x80, "S08") |
| 124 | | PORT_DIPSETTING( 0x00, DEF_STR( No )) |
| 125 | | PORT_DIPSETTING( 0x80, DEF_STR( Yes )) |
| 114 | PORT_START("DSW0") |
| 115 | PORT_DIPNAME( 0x01, 0x00, "S01") |
| 116 | PORT_DIPSETTING( 0x00, DEF_STR( Off )) |
| 117 | PORT_DIPSETTING( 0x01, DEF_STR( On )) |
| 118 | PORT_DIPNAME( 0x02, 0x00, "S02") |
| 119 | PORT_DIPSETTING( 0x00, DEF_STR( Off )) |
| 120 | PORT_DIPSETTING( 0x02, DEF_STR( On )) |
| 121 | PORT_DIPNAME( 0x04, 0x00, "S03") |
| 122 | PORT_DIPSETTING( 0x00, DEF_STR( Off )) |
| 123 | PORT_DIPSETTING( 0x04, DEF_STR( On )) |
| 124 | PORT_DIPNAME( 0x08, 0x00, "S04") |
| 125 | PORT_DIPSETTING( 0x00, DEF_STR( Off )) |
| 126 | PORT_DIPSETTING( 0x08, DEF_STR( On )) |
| 127 | PORT_DIPNAME( 0x10, 0x00, "S05") |
| 128 | PORT_DIPSETTING( 0x00, DEF_STR( Off )) |
| 129 | PORT_DIPSETTING( 0x10, DEF_STR( On )) |
| 130 | PORT_DIPNAME( 0x20, 0x20, "S06") |
| 131 | PORT_DIPSETTING( 0x00, DEF_STR( No )) |
| 132 | PORT_DIPSETTING( 0x20, DEF_STR( Yes )) |
| 133 | PORT_DIPNAME( 0x40, 0x40, "S07") |
| 134 | PORT_DIPSETTING( 0x00, DEF_STR( No )) |
| 135 | PORT_DIPSETTING( 0x40, DEF_STR( Yes )) |
| 136 | PORT_DIPNAME( 0x80, 0x80, "S08") |
| 137 | PORT_DIPSETTING( 0x00, DEF_STR( No )) |
| 138 | PORT_DIPSETTING( 0x80, DEF_STR( Yes )) |
| 126 | 139 | |
| 127 | | PORT_START("DSW1") |
| 128 | | PORT_DIPNAME( 0x01, 0x00, "S09") |
| 129 | | PORT_DIPSETTING( 0x00, DEF_STR( Off )) |
| 130 | | PORT_DIPSETTING( 0x01, DEF_STR( On )) |
| 131 | | PORT_DIPNAME( 0x02, 0x00, "S10") |
| 132 | | PORT_DIPSETTING( 0x00, DEF_STR( Off )) |
| 133 | | PORT_DIPSETTING( 0x02, DEF_STR( On )) |
| 134 | | PORT_DIPNAME( 0x04, 0x00, "S11") |
| 135 | | PORT_DIPSETTING( 0x00, DEF_STR( Off )) |
| 136 | | PORT_DIPSETTING( 0x04, DEF_STR( On )) |
| 137 | | PORT_DIPNAME( 0x08, 0x00, "S12") |
| 138 | | PORT_DIPSETTING( 0x00, DEF_STR( Off )) |
| 139 | | PORT_DIPSETTING( 0x08, DEF_STR( On )) |
| 140 | | PORT_DIPNAME( 0x10, 0x00, "S13") |
| 141 | | PORT_DIPSETTING( 0x00, DEF_STR( Off )) |
| 142 | | PORT_DIPSETTING( 0x10, DEF_STR( On )) |
| 143 | | PORT_DIPNAME( 0x20, 0x00, "S14") |
| 144 | | PORT_DIPSETTING( 0x00, DEF_STR( Yes )) |
| 145 | | PORT_DIPSETTING( 0x20, DEF_STR( No )) |
| 146 | | PORT_DIPNAME( 0x40, 0x40, "S15") |
| 147 | | PORT_DIPSETTING( 0x00, DEF_STR( No )) |
| 148 | | PORT_DIPSETTING( 0x40, DEF_STR( Yes )) |
| 149 | | PORT_DIPNAME( 0x80, 0x00, "S16") |
| 150 | | PORT_DIPSETTING( 0x00, DEF_STR( No )) |
| 151 | | PORT_DIPSETTING( 0x80, DEF_STR( Yes )) |
| 140 | PORT_START("DSW1") |
| 141 | PORT_DIPNAME( 0x01, 0x00, "S09") |
| 142 | PORT_DIPSETTING( 0x00, DEF_STR( Off )) |
| 143 | PORT_DIPSETTING( 0x01, DEF_STR( On )) |
| 144 | PORT_DIPNAME( 0x02, 0x00, "S10") |
| 145 | PORT_DIPSETTING( 0x00, DEF_STR( Off )) |
| 146 | PORT_DIPSETTING( 0x02, DEF_STR( On )) |
| 147 | PORT_DIPNAME( 0x04, 0x00, "S11") |
| 148 | PORT_DIPSETTING( 0x00, DEF_STR( Off )) |
| 149 | PORT_DIPSETTING( 0x04, DEF_STR( On )) |
| 150 | PORT_DIPNAME( 0x08, 0x00, "S12") |
| 151 | PORT_DIPSETTING( 0x00, DEF_STR( Off )) |
| 152 | PORT_DIPSETTING( 0x08, DEF_STR( On )) |
| 153 | PORT_DIPNAME( 0x10, 0x00, "S13") |
| 154 | PORT_DIPSETTING( 0x00, DEF_STR( Off )) |
| 155 | PORT_DIPSETTING( 0x10, DEF_STR( On )) |
| 156 | PORT_DIPNAME( 0x20, 0x00, "S14") |
| 157 | PORT_DIPSETTING( 0x00, DEF_STR( Yes )) |
| 158 | PORT_DIPSETTING( 0x20, DEF_STR( No )) |
| 159 | PORT_DIPNAME( 0x40, 0x40, "S15") |
| 160 | PORT_DIPSETTING( 0x00, DEF_STR( No )) |
| 161 | PORT_DIPSETTING( 0x40, DEF_STR( Yes )) |
| 162 | PORT_DIPNAME( 0x80, 0x00, "S16") |
| 163 | PORT_DIPSETTING( 0x00, DEF_STR( No )) |
| 164 | PORT_DIPSETTING( 0x80, DEF_STR( Yes )) |
| 152 | 165 | |
| 153 | | PORT_START("DSW2") |
| 154 | | PORT_DIPNAME( 0x01, 0x00, "S17") |
| 155 | | PORT_DIPSETTING( 0x00, DEF_STR( Off )) |
| 156 | | PORT_DIPSETTING( 0x01, DEF_STR( On )) |
| 157 | | PORT_DIPNAME( 0x02, 0x00, "S18") |
| 158 | | PORT_DIPSETTING( 0x00, DEF_STR( Off )) |
| 159 | | PORT_DIPSETTING( 0x02, DEF_STR( On )) |
| 160 | | PORT_DIPNAME( 0x04, 0x00, "S19") |
| 161 | | PORT_DIPSETTING( 0x00, DEF_STR( Off )) |
| 162 | | PORT_DIPSETTING( 0x04, DEF_STR( On )) |
| 163 | | PORT_DIPNAME( 0x08, 0x00, "S20") |
| 164 | | PORT_DIPSETTING( 0x00, DEF_STR( Off )) |
| 165 | | PORT_DIPSETTING( 0x08, DEF_STR( On )) |
| 166 | | PORT_DIPNAME( 0x10, 0x00, "S21") |
| 167 | | PORT_DIPSETTING( 0x00, DEF_STR( Off )) |
| 168 | | PORT_DIPSETTING( 0x10, DEF_STR( On )) |
| 169 | | PORT_DIPNAME( 0x20, 0x00, "S22") |
| 170 | | PORT_DIPSETTING( 0x00, DEF_STR( Off )) |
| 171 | | PORT_DIPSETTING( 0x20, DEF_STR( On )) |
| 172 | | PORT_DIPNAME( 0x40, 0x00, "S23") |
| 173 | | PORT_DIPSETTING( 0x00, DEF_STR( Off )) |
| 174 | | PORT_DIPSETTING( 0x40, DEF_STR( On )) |
| 175 | | PORT_DIPNAME( 0x80, 0x00, "S24") |
| 176 | | PORT_DIPSETTING( 0x00, DEF_STR( Off )) |
| 177 | | PORT_DIPSETTING( 0x80, DEF_STR( On )) |
| 166 | PORT_START("DSW2") |
| 167 | PORT_DIPNAME( 0x01, 0x00, "S17") |
| 168 | PORT_DIPSETTING( 0x00, DEF_STR( Off )) |
| 169 | PORT_DIPSETTING( 0x01, DEF_STR( On )) |
| 170 | PORT_DIPNAME( 0x02, 0x00, "S18") |
| 171 | PORT_DIPSETTING( 0x00, DEF_STR( Off )) |
| 172 | PORT_DIPSETTING( 0x02, DEF_STR( On )) |
| 173 | PORT_DIPNAME( 0x04, 0x00, "S19") |
| 174 | PORT_DIPSETTING( 0x00, DEF_STR( Off )) |
| 175 | PORT_DIPSETTING( 0x04, DEF_STR( On )) |
| 176 | PORT_DIPNAME( 0x08, 0x00, "S20") |
| 177 | PORT_DIPSETTING( 0x00, DEF_STR( Off )) |
| 178 | PORT_DIPSETTING( 0x08, DEF_STR( On )) |
| 179 | PORT_DIPNAME( 0x10, 0x00, "S21") |
| 180 | PORT_DIPSETTING( 0x00, DEF_STR( Off )) |
| 181 | PORT_DIPSETTING( 0x10, DEF_STR( On )) |
| 182 | PORT_DIPNAME( 0x20, 0x00, "S22") |
| 183 | PORT_DIPSETTING( 0x00, DEF_STR( Off )) |
| 184 | PORT_DIPSETTING( 0x20, DEF_STR( On )) |
| 185 | PORT_DIPNAME( 0x40, 0x00, "S23") |
| 186 | PORT_DIPSETTING( 0x00, DEF_STR( Off )) |
| 187 | PORT_DIPSETTING( 0x40, DEF_STR( On )) |
| 188 | PORT_DIPNAME( 0x80, 0x00, "S24") |
| 189 | PORT_DIPSETTING( 0x00, DEF_STR( Off )) |
| 190 | PORT_DIPSETTING( 0x80, DEF_STR( On )) |
| 178 | 191 | INPUT_PORTS_END |
| 179 | 192 | |
| 180 | 193 | void gts1_state::machine_reset() |
| 181 | 194 | { |
| 195 | m_6351_addr = 0; |
| 182 | 196 | } |
| 183 | 197 | |
| 184 | 198 | DRIVER_INIT_MEMBER(gts1_state,gts1) |
| 185 | 199 | { |
| 186 | 200 | } |
| 187 | 201 | |
| 202 | READ8_MEMBER (gts1_state::gts1_pa_r) |
| 203 | { |
| 204 | // return ROM nibble |
| 205 | UINT8 *ROM = memregion("maincpu")->base(); |
| 206 | UINT8 data = ROM[0x2000 + m_6351_addr] & 0x0f; |
| 207 | LOG(("%s: ROM[%03x]:%02x\n", __FUNCTION__, m_6351_addr, data)); |
| 208 | return data; |
| 209 | } |
| 210 | |
| 211 | WRITE8_MEMBER(gts1_state::gts1_pa_w) |
| 212 | { |
| 213 | // write address lines 7-4 |
| 214 | m_6351_addr = (m_6351_addr & 0x0f) | ((data & 0x0f) << 4); |
| 215 | LOG(("%s: ROM hi:%x addr:%02x\n", __FUNCTION__, data & 0x0f, m_6351_addr)); |
| 216 | } |
| 217 | |
| 218 | WRITE8_MEMBER(gts1_state::gts1_pb_w) |
| 219 | { |
| 220 | // write address lines 3-0 |
| 221 | m_6351_addr = (m_6351_addr & 0xf0) | (data & 0x0f); |
| 222 | LOG(("%s: ROM lo:%x addr:%02x\n", __FUNCTION__, data & 0x0f, m_6351_addr)); |
| 223 | } |
| 224 | |
| 225 | |
| 188 | 226 | static MACHINE_CONFIG_START( gts1, gts1_state ) |
| 189 | | /* basic machine hardware */ |
| 190 | | MCFG_CPU_ADD("maincpu", PPS4, XTAL_3_579545MHz / 18) // divided in the CPU |
| 191 | | MCFG_CPU_PROGRAM_MAP(gts1_map) |
| 192 | | MCFG_CPU_DATA_MAP(gts1_data) |
| 193 | | MCFG_CPU_IO_MAP(gts1_io) |
| 227 | /* basic machine hardware */ |
| 228 | MCFG_CPU_ADD("maincpu", PPS4, XTAL_3_579545MHz / 18) // divided in the CPU |
| 229 | MCFG_CPU_PROGRAM_MAP(gts1_map) |
| 230 | MCFG_CPU_DATA_MAP(gts1_data) |
| 231 | MCFG_CPU_IO_MAP(gts1_io) |
| 194 | 232 | |
| 195 | | //MCFG_NVRAM_ADD_0FILL("nvram") |
| 233 | //MCFG_NVRAM_ADD_0FILL("nvram") |
| 196 | 234 | |
| 197 | | /* Video */ |
| 198 | | //MCFG_DEFAULT_LAYOUT(layout_gts1) |
| 235 | /* Video */ |
| 236 | //MCFG_DEFAULT_LAYOUT(layout_gts1) |
| 199 | 237 | |
| 200 | | /* Sound */ |
| 201 | | MCFG_FRAGMENT_ADD( genpin_audio ) |
| 238 | /* Sound */ |
| 239 | MCFG_FRAGMENT_ADD( genpin_audio ) |
| 202 | 240 | MACHINE_CONFIG_END |
| 203 | 241 | |
| 204 | 242 | |
| 205 | 243 | ROM_START( gts1 ) |
| 206 | | ROM_REGION( 0x10000, "maincpu", 0 ) |
| 207 | | ROM_LOAD("u5_cf.bin", 0x0000, 0x0800, CRC(e0d4b405) SHA1(17aadd79c0dcbb336aadd5d203bc6ca866492345)) |
| 208 | | ROM_LOAD("u4_ce.bin", 0x0800, 0x0800, CRC(4cd312dd) SHA1(31245daa9972ef8652caee69986585bb8239e86e)) |
| 244 | ROM_REGION( 0x10000, "maincpu", 0 ) |
| 245 | ROM_LOAD("u5_cf.bin", 0x0000, 0x0800, CRC(e0d4b405) SHA1(17aadd79c0dcbb336aadd5d203bc6ca866492345)) |
| 246 | ROM_LOAD("u4_ce.bin", 0x0800, 0x0800, CRC(4cd312dd) SHA1(31245daa9972ef8652caee69986585bb8239e86e)) |
| 209 | 247 | ROM_END |
| 210 | 248 | |
| 211 | 249 | ROM_START( gts1s ) |
| 212 | | ROM_REGION( 0x10000, "maincpu", 0 ) |
| 213 | | ROM_LOAD("u5_cf.bin", 0x0000, 0x0800, CRC(e0d4b405) SHA1(17aadd79c0dcbb336aadd5d203bc6ca866492345)) |
| 214 | | ROM_LOAD("u4_ce.bin", 0x0800, 0x0800, CRC(4cd312dd) SHA1(31245daa9972ef8652caee69986585bb8239e86e)) |
| 250 | ROM_REGION( 0x10000, "maincpu", 0 ) |
| 251 | ROM_LOAD("u5_cf.bin", 0x0000, 0x0800, CRC(e0d4b405) SHA1(17aadd79c0dcbb336aadd5d203bc6ca866492345)) |
| 252 | ROM_LOAD("u4_ce.bin", 0x0800, 0x0800, CRC(4cd312dd) SHA1(31245daa9972ef8652caee69986585bb8239e86e)) |
| 215 | 253 | ROM_END |
| 216 | 254 | |
| 217 | 255 | /*------------------------------------------------------------------- |
| 218 | 256 | / Asteroid Annie and the Aliens (12/1980) #442 |
| 219 | 257 | /-------------------------------------------------------------------*/ |
| 220 | 258 | ROM_START(astannie) |
| 221 | | ROM_REGION(0x10000, "maincpu", 0) |
| 222 | | ROM_LOAD("u5_cf.bin", 0x0000, 0x0800, CRC(e0d4b405) SHA1(17aadd79c0dcbb336aadd5d203bc6ca866492345)) |
| 223 | | ROM_LOAD("u4_ce.bin", 0x0800, 0x0800, CRC(4cd312dd) SHA1(31245daa9972ef8652caee69986585bb8239e86e)) |
| 224 | | ROM_LOAD("442.cpu", 0x2000, 0x0400, CRC(579521e0) SHA1(b1b19473e1ca3373955ee96104b87f586c4c311c)) |
| 225 | | ROM_REGION(0x10000, "cpu2", 0) |
| 226 | | ROM_LOAD("442.snd", 0x0400, 0x0400, CRC(c70195b4) SHA1(ff06197f07111d6a4b8942dcfe8d2279bda6f281)) |
| 227 | | ROM_RELOAD( 0x0800, 0x0400) |
| 228 | | ROM_LOAD("6530sys1.bin", 0x0c00, 0x0400, CRC(b7831321) SHA1(c94f4bee97854d0373653a6867016e27d3fc1340)) |
| 229 | | ROM_RELOAD( 0xfc00, 0x0400) |
| 259 | ROM_REGION(0x10000, "maincpu", 0) |
| 260 | ROM_LOAD("u5_cf.bin", 0x0000, 0x0800, CRC(e0d4b405) SHA1(17aadd79c0dcbb336aadd5d203bc6ca866492345)) |
| 261 | ROM_LOAD("u4_ce.bin", 0x0800, 0x0800, CRC(4cd312dd) SHA1(31245daa9972ef8652caee69986585bb8239e86e)) |
| 262 | ROM_LOAD("442.cpu", 0x2000, 0x0400, CRC(579521e0) SHA1(b1b19473e1ca3373955ee96104b87f586c4c311c)) |
| 263 | ROM_REGION(0x10000, "cpu2", 0) |
| 264 | ROM_LOAD("442.snd", 0x0400, 0x0400, CRC(c70195b4) SHA1(ff06197f07111d6a4b8942dcfe8d2279bda6f281)) |
| 265 | ROM_RELOAD( 0x0800, 0x0400) |
| 266 | ROM_LOAD("6530sys1.bin", 0x0c00, 0x0400, CRC(b7831321) SHA1(c94f4bee97854d0373653a6867016e27d3fc1340)) |
| 267 | ROM_RELOAD( 0xfc00, 0x0400) |
| 230 | 268 | ROM_END |
| 231 | 269 | |
| 232 | 270 | /*------------------------------------------------------------------- |
| 233 | 271 | / Buck Rogers (01/1980) #437 |
| 234 | 272 | /-------------------------------------------------------------------*/ |
| 235 | 273 | ROM_START(buckrgrs) |
| 236 | | ROM_REGION(0x10000, "maincpu", 0) |
| 237 | | ROM_LOAD("u5_cf.bin", 0x0000, 0x0800, CRC(e0d4b405) SHA1(17aadd79c0dcbb336aadd5d203bc6ca866492345)) |
| 238 | | ROM_LOAD("u4_ce.bin", 0x0800, 0x0800, CRC(4cd312dd) SHA1(31245daa9972ef8652caee69986585bb8239e86e)) |
| 239 | | ROM_LOAD("437.cpu", 0x2000, 0x0400, CRC(e57d9278) SHA1(dfc4ebff1e14b9a074468671a8e5ac7948d5b352)) |
| 240 | | ROM_REGION(0x10000, "cpu2", 0) |
| 241 | | ROM_LOAD("437.snd", 0x0400, 0x0400, CRC(732b5a27) SHA1(7860ea54e75152246c3ac3205122d750b243b40c)) |
| 242 | | ROM_RELOAD( 0x0800, 0x0400) |
| 243 | | ROM_LOAD("6530sys1.bin", 0x0c00, 0x0400, CRC(b7831321) SHA1(c94f4bee97854d0373653a6867016e27d3fc1340)) |
| 244 | | ROM_RELOAD( 0xfc00, 0x0400) |
| 274 | ROM_REGION(0x10000, "maincpu", 0) |
| 275 | ROM_LOAD("u5_cf.bin", 0x0000, 0x0800, CRC(e0d4b405) SHA1(17aadd79c0dcbb336aadd5d203bc6ca866492345)) |
| 276 | ROM_LOAD("u4_ce.bin", 0x0800, 0x0800, CRC(4cd312dd) SHA1(31245daa9972ef8652caee69986585bb8239e86e)) |
| 277 | ROM_LOAD("437.cpu", 0x2000, 0x0400, CRC(e57d9278) SHA1(dfc4ebff1e14b9a074468671a8e5ac7948d5b352)) |
| 278 | ROM_REGION(0x10000, "cpu2", 0) |
| 279 | ROM_LOAD("437.snd", 0x0400, 0x0400, CRC(732b5a27) SHA1(7860ea54e75152246c3ac3205122d750b243b40c)) |
| 280 | ROM_RELOAD( 0x0800, 0x0400) |
| 281 | ROM_LOAD("6530sys1.bin", 0x0c00, 0x0400, CRC(b7831321) SHA1(c94f4bee97854d0373653a6867016e27d3fc1340)) |
| 282 | ROM_RELOAD( 0xfc00, 0x0400) |
| 245 | 283 | ROM_END |
| 246 | 284 | |
| 247 | 285 | /*------------------------------------------------------------------- |
| 248 | 286 | / Charlie's Angels (11/1978) #425 |
| 249 | 287 | /-------------------------------------------------------------------*/ |
| 250 | 288 | ROM_START(charlies) |
| 251 | | ROM_REGION(0x10000, "maincpu", 0) |
| 252 | | ROM_LOAD("u5_cf.bin", 0x0000, 0x0800, CRC(e0d4b405) SHA1(17aadd79c0dcbb336aadd5d203bc6ca866492345)) |
| 253 | | ROM_LOAD("u4_ce.bin", 0x0800, 0x0800, CRC(4cd312dd) SHA1(31245daa9972ef8652caee69986585bb8239e86e)) |
| 254 | | ROM_LOAD("425.cpu", 0x2000, 0x0400, CRC(928b4279) SHA1(51096d45e880d6a8263eaeaa0cdab0f61ad2f58d)) |
| 289 | ROM_REGION(0x10000, "maincpu", 0) |
| 290 | ROM_LOAD("u5_cf.bin", 0x0000, 0x0800, CRC(e0d4b405) SHA1(17aadd79c0dcbb336aadd5d203bc6ca866492345)) |
| 291 | ROM_LOAD("u4_ce.bin", 0x0800, 0x0800, CRC(4cd312dd) SHA1(31245daa9972ef8652caee69986585bb8239e86e)) |
| 292 | ROM_LOAD("425.cpu", 0x2000, 0x0400, CRC(928b4279) SHA1(51096d45e880d6a8263eaeaa0cdab0f61ad2f58d)) |
| 255 | 293 | ROM_END |
| 256 | 294 | /*------------------------------------------------------------------- |
| 257 | 295 | / Cleopatra (11/1977) #409 |
| 258 | 296 | /-------------------------------------------------------------------*/ |
| 259 | 297 | ROM_START(cleoptra) |
| 260 | | ROM_REGION(0x10000, "maincpu", 0) |
| 261 | | ROM_LOAD("u5_cf.bin", 0x0000, 0x0800, CRC(e0d4b405) SHA1(17aadd79c0dcbb336aadd5d203bc6ca866492345)) |
| 262 | | ROM_LOAD("u4_ce.bin", 0x0800, 0x0800, CRC(4cd312dd) SHA1(31245daa9972ef8652caee69986585bb8239e86e)) |
| 263 | | ROM_LOAD("409.cpu", 0x2000, 0x0400, CRC(8063ff71) SHA1(205f09f067bf79544d2ce2a48d23259901f935dd)) |
| 298 | ROM_REGION(0x10000, "maincpu", 0) |
| 299 | ROM_LOAD("u5_cf.bin", 0x0000, 0x0800, CRC(e0d4b405) SHA1(17aadd79c0dcbb336aadd5d203bc6ca866492345)) |
| 300 | ROM_LOAD("u4_ce.bin", 0x0800, 0x0800, CRC(4cd312dd) SHA1(31245daa9972ef8652caee69986585bb8239e86e)) |
| 301 | ROM_LOAD("409.cpu", 0x2000, 0x0400, CRC(8063ff71) SHA1(205f09f067bf79544d2ce2a48d23259901f935dd)) |
| 264 | 302 | ROM_END |
| 265 | 303 | |
| 266 | 304 | /*------------------------------------------------------------------- |
| 267 | 305 | / Close Encounters of the Third Kind (10/1978) #424 |
| 268 | 306 | /-------------------------------------------------------------------*/ |
| 269 | 307 | ROM_START(closeenc) |
| 270 | | ROM_REGION(0x10000, "maincpu", 0) |
| 271 | | ROM_LOAD("u5_cf.bin", 0x0000, 0x0800, CRC(e0d4b405) SHA1(17aadd79c0dcbb336aadd5d203bc6ca866492345)) |
| 272 | | ROM_LOAD("u4_ce.bin", 0x0800, 0x0800, CRC(4cd312dd) SHA1(31245daa9972ef8652caee69986585bb8239e86e)) |
| 273 | | ROM_LOAD("424.cpu", 0x2000, 0x0400, CRC(a7a5dd13) SHA1(223c67b9484baa719c91de52b363ff22813db160)) |
| 308 | ROM_REGION(0x10000, "maincpu", 0) |
| 309 | ROM_LOAD("u5_cf.bin", 0x0000, 0x0800, CRC(e0d4b405) SHA1(17aadd79c0dcbb336aadd5d203bc6ca866492345)) |
| 310 | ROM_LOAD("u4_ce.bin", 0x0800, 0x0800, CRC(4cd312dd) SHA1(31245daa9972ef8652caee69986585bb8239e86e)) |
| 311 | ROM_LOAD("424.cpu", 0x2000, 0x0400, CRC(a7a5dd13) SHA1(223c67b9484baa719c91de52b363ff22813db160)) |
| 274 | 312 | ROM_END |
| 275 | 313 | |
| 276 | 314 | /*------------------------------------------------------------------- |
| 277 | 315 | / Count-Down (05/1979) #422 |
| 278 | 316 | /-------------------------------------------------------------------*/ |
| 279 | 317 | ROM_START(countdwn) |
| 280 | | ROM_REGION(0x10000, "maincpu", 0) |
| 281 | | ROM_LOAD("u5_cf.bin", 0x0000, 0x0800, CRC(e0d4b405) SHA1(17aadd79c0dcbb336aadd5d203bc6ca866492345)) |
| 282 | | ROM_LOAD("u4_ce.bin", 0x0800, 0x0800, CRC(4cd312dd) SHA1(31245daa9972ef8652caee69986585bb8239e86e)) |
| 283 | | ROM_LOAD("422.cpu", 0x2000, 0x0400, CRC(51bc2df0) SHA1(d4b555d106c6b4e420b0fcd1df8871f869476c22)) |
| 318 | ROM_REGION(0x10000, "maincpu", 0) |
| 319 | ROM_LOAD("u5_cf.bin", 0x0000, 0x0800, CRC(e0d4b405) SHA1(17aadd79c0dcbb336aadd5d203bc6ca866492345)) |
| 320 | ROM_LOAD("u4_ce.bin", 0x0800, 0x0800, CRC(4cd312dd) SHA1(31245daa9972ef8652caee69986585bb8239e86e)) |
| 321 | ROM_LOAD("422.cpu", 0x2000, 0x0400, CRC(51bc2df0) SHA1(d4b555d106c6b4e420b0fcd1df8871f869476c22)) |
| 284 | 322 | ROM_END |
| 285 | 323 | |
| 286 | 324 | /*------------------------------------------------------------------- |
| 287 | 325 | / Dragon (10/1978) #419 |
| 288 | 326 | /-------------------------------------------------------------------*/ |
| 289 | 327 | ROM_START(dragon) |
| 290 | | ROM_REGION(0x10000, "maincpu", 0) |
| 291 | | ROM_LOAD("u5_cf.bin", 0x0000, 0x0800, CRC(e0d4b405) SHA1(17aadd79c0dcbb336aadd5d203bc6ca866492345)) |
| 292 | | ROM_LOAD("u4_ce.bin", 0x0800, 0x0800, CRC(4cd312dd) SHA1(31245daa9972ef8652caee69986585bb8239e86e)) |
| 293 | | ROM_LOAD("419.cpu", 0x2000, 0x0400, CRC(018d9b3a) SHA1(da37ef5017c71bc41bdb1f30d3fd7ac3b7e1ee7e)) |
| 328 | ROM_REGION(0x10000, "maincpu", 0) |
| 329 | ROM_LOAD("u5_cf.bin", 0x0000, 0x0800, CRC(e0d4b405) SHA1(17aadd79c0dcbb336aadd5d203bc6ca866492345)) |
| 330 | ROM_LOAD("u4_ce.bin", 0x0800, 0x0800, CRC(4cd312dd) SHA1(31245daa9972ef8652caee69986585bb8239e86e)) |
| 331 | ROM_LOAD("419.cpu", 0x2000, 0x0400, CRC(018d9b3a) SHA1(da37ef5017c71bc41bdb1f30d3fd7ac3b7e1ee7e)) |
| 294 | 332 | ROM_END |
| 295 | 333 | |
| 296 | 334 | /*------------------------------------------------------------------- |
| 297 | 335 | / Genie (11/1979) #435 |
| 298 | 336 | /-------------------------------------------------------------------*/ |
| 299 | 337 | ROM_START(geniep) |
| 300 | | ROM_REGION(0x10000, "maincpu", 0) |
| 301 | | ROM_LOAD("u5_cf.bin", 0x0000, 0x0800, CRC(e0d4b405) SHA1(17aadd79c0dcbb336aadd5d203bc6ca866492345)) |
| 302 | | ROM_LOAD("u4_ce.bin", 0x0800, 0x0800, CRC(4cd312dd) SHA1(31245daa9972ef8652caee69986585bb8239e86e)) |
| 303 | | ROM_LOAD("435.cpu", 0x2000, 0x0400, CRC(7749fd92) SHA1(9cd3e799842392e3939877bf295759c27f199e58)) |
| 304 | | ROM_REGION(0x10000, "cpu2", 0) |
| 305 | | ROM_LOAD("435.snd", 0x0400, 0x0400, CRC(4a98ceed) SHA1(f1d7548e03107033c39953ee04b043b5301dbb47)) |
| 306 | | ROM_RELOAD( 0x0800, 0x0400) |
| 307 | | ROM_LOAD("6530sys1.bin", 0x0c00, 0x0400, CRC(b7831321) SHA1(c94f4bee97854d0373653a6867016e27d3fc1340)) |
| 308 | | ROM_RELOAD( 0xfc00, 0x0400) |
| 338 | ROM_REGION(0x10000, "maincpu", 0) |
| 339 | ROM_LOAD("u5_cf.bin", 0x0000, 0x0800, CRC(e0d4b405) SHA1(17aadd79c0dcbb336aadd5d203bc6ca866492345)) |
| 340 | ROM_LOAD("u4_ce.bin", 0x0800, 0x0800, CRC(4cd312dd) SHA1(31245daa9972ef8652caee69986585bb8239e86e)) |
| 341 | ROM_LOAD("435.cpu", 0x2000, 0x0400, CRC(7749fd92) SHA1(9cd3e799842392e3939877bf295759c27f199e58)) |
| 342 | ROM_REGION(0x10000, "cpu2", 0) |
| 343 | ROM_LOAD("435.snd", 0x0400, 0x0400, CRC(4a98ceed) SHA1(f1d7548e03107033c39953ee04b043b5301dbb47)) |
| 344 | ROM_RELOAD( 0x0800, 0x0400) |
| 345 | ROM_LOAD("6530sys1.bin", 0x0c00, 0x0400, CRC(b7831321) SHA1(c94f4bee97854d0373653a6867016e27d3fc1340)) |
| 346 | ROM_RELOAD( 0xfc00, 0x0400) |
| 309 | 347 | ROM_END |
| 310 | 348 | |
| 311 | 349 | /*------------------------------------------------------------------- |
| 312 | 350 | / Joker Poker (08/1978) #417 |
| 313 | 351 | /-------------------------------------------------------------------*/ |
| 314 | 352 | ROM_START(jokrpokr) |
| 315 | | ROM_REGION(0x10000, "maincpu", 0) |
| 316 | | ROM_LOAD("u5_cf.bin", 0x0000, 0x0800, CRC(e0d4b405) SHA1(17aadd79c0dcbb336aadd5d203bc6ca866492345)) |
| 317 | | ROM_LOAD("u4_ce.bin", 0x0800, 0x0800, CRC(4cd312dd) SHA1(31245daa9972ef8652caee69986585bb8239e86e)) |
| 318 | | ROM_LOAD("417.cpu", 0x2000, 0x0400, CRC(33dade08) SHA1(23b8dbd7b6c84b806fc0d2da95478235cbf9f80a)) |
| 353 | ROM_REGION(0x10000, "maincpu", 0) |
| 354 | ROM_LOAD("u5_cf.bin", 0x0000, 0x0800, CRC(e0d4b405) SHA1(17aadd79c0dcbb336aadd5d203bc6ca866492345)) |
| 355 | ROM_LOAD("u4_ce.bin", 0x0800, 0x0800, CRC(4cd312dd) SHA1(31245daa9972ef8652caee69986585bb8239e86e)) |
| 356 | ROM_LOAD("417.cpu", 0x2000, 0x0400, CRC(33dade08) SHA1(23b8dbd7b6c84b806fc0d2da95478235cbf9f80a)) |
| 319 | 357 | ROM_END |
| 320 | 358 | |
| 321 | 359 | /*------------------------------------------------------------------- |
| r242209 | r242210 | |
| 325 | 363 | / L'Hexagone (04/1986) |
| 326 | 364 | /-------------------------------------------------------------------*/ |
| 327 | 365 | ROM_START(hexagone) |
| 328 | | ROM_REGION(0x10000, "maincpu", 0) |
| 329 | | ROM_LOAD("u5_cf.bin", 0x0000, 0x0800, CRC(e0d4b405) SHA1(17aadd79c0dcbb336aadd5d203bc6ca866492345)) |
| 330 | | ROM_LOAD("u4_ce.bin", 0x0800, 0x0800, CRC(4cd312dd) SHA1(31245daa9972ef8652caee69986585bb8239e86e)) |
| 331 | | ROM_LOAD("435.cpu", 0x2000, 0x0400, CRC(7749fd92) SHA1(9cd3e799842392e3939877bf295759c27f199e58)) |
| 332 | | ROM_REGION(0x10000, "cpu2", 0) |
| 333 | | ROM_LOAD("hexagone.bin", 0, 0x4000, CRC(002b5464) SHA1(e2d971c4e85b4fb6580c2d3945c9946ea0cebc2e)) |
| 366 | ROM_REGION(0x10000, "maincpu", 0) |
| 367 | ROM_LOAD("u5_cf.bin", 0x0000, 0x0800, CRC(e0d4b405) SHA1(17aadd79c0dcbb336aadd5d203bc6ca866492345)) |
| 368 | ROM_LOAD("u4_ce.bin", 0x0800, 0x0800, CRC(4cd312dd) SHA1(31245daa9972ef8652caee69986585bb8239e86e)) |
| 369 | ROM_LOAD("435.cpu", 0x2000, 0x0400, CRC(7749fd92) SHA1(9cd3e799842392e3939877bf295759c27f199e58)) |
| 370 | ROM_REGION(0x10000, "cpu2", 0) |
| 371 | ROM_LOAD("hexagone.bin", 0, 0x4000, CRC(002b5464) SHA1(e2d971c4e85b4fb6580c2d3945c9946ea0cebc2e)) |
| 334 | 372 | ROM_END |
| 335 | 373 | /*------------------------------------------------------------------- |
| 336 | 374 | / Movie |
| r242209 | r242210 | |
| 340 | 378 | / Pinball Pool (08/1979) #427 |
| 341 | 379 | /-------------------------------------------------------------------*/ |
| 342 | 380 | ROM_START(pinpool) |
| 343 | | ROM_REGION(0x10000, "maincpu", 0) |
| 344 | | ROM_LOAD("u5_cf.bin", 0x0000, 0x0800, CRC(e0d4b405) SHA1(17aadd79c0dcbb336aadd5d203bc6ca866492345)) |
| 345 | | ROM_LOAD("u4_ce.bin", 0x0800, 0x0800, CRC(4cd312dd) SHA1(31245daa9972ef8652caee69986585bb8239e86e)) |
| 346 | | ROM_LOAD("427.cpu", 0x2000, 0x0400, CRC(c496393d) SHA1(e91d9596aacdb4277fa200a3f8f9da099c278f32)) |
| 381 | ROM_REGION(0x10000, "maincpu", 0) |
| 382 | ROM_LOAD("u5_cf.bin", 0x0000, 0x0800, CRC(e0d4b405) SHA1(17aadd79c0dcbb336aadd5d203bc6ca866492345)) |
| 383 | ROM_LOAD("u4_ce.bin", 0x0800, 0x0800, CRC(4cd312dd) SHA1(31245daa9972ef8652caee69986585bb8239e86e)) |
| 384 | ROM_LOAD("427.cpu", 0x2000, 0x0400, CRC(c496393d) SHA1(e91d9596aacdb4277fa200a3f8f9da099c278f32)) |
| 347 | 385 | ROM_END |
| 348 | 386 | |
| 349 | 387 | /*------------------------------------------------------------------- |
| 350 | 388 | / Roller Disco (02/1980) #440 |
| 351 | 389 | /-------------------------------------------------------------------*/ |
| 352 | 390 | ROM_START(roldisco) |
| 353 | | ROM_REGION(0x10000, "maincpu", 0) |
| 354 | | ROM_LOAD("u5_cf.bin", 0x0000, 0x0800, CRC(e0d4b405) SHA1(17aadd79c0dcbb336aadd5d203bc6ca866492345)) |
| 355 | | ROM_LOAD("u4_ce.bin", 0x0800, 0x0800, CRC(4cd312dd) SHA1(31245daa9972ef8652caee69986585bb8239e86e)) |
| 356 | | ROM_LOAD("440.cpu", 0x2000, 0x0400, CRC(bc50631f) SHA1(6aa3124d09fc4e369d087a5ad6dd1737ace55e41)) |
| 357 | | ROM_REGION(0x10000, "cpu2", 0) |
| 358 | | ROM_LOAD("440.snd", 0x0400, 0x0400, CRC(4a0a05ae) SHA1(88f21b5638494d8e78dc0b6b7d69873b76b5f75d)) |
| 359 | | ROM_RELOAD( 0x0800, 0x0400) |
| 360 | | ROM_LOAD("6530sys1.bin", 0x0c00, 0x0400, CRC(b7831321) SHA1(c94f4bee97854d0373653a6867016e27d3fc1340)) |
| 361 | | ROM_RELOAD( 0xfc00, 0x0400) |
| 391 | ROM_REGION(0x10000, "maincpu", 0) |
| 392 | ROM_LOAD("u5_cf.bin", 0x0000, 0x0800, CRC(e0d4b405) SHA1(17aadd79c0dcbb336aadd5d203bc6ca866492345)) |
| 393 | ROM_LOAD("u4_ce.bin", 0x0800, 0x0800, CRC(4cd312dd) SHA1(31245daa9972ef8652caee69986585bb8239e86e)) |
| 394 | ROM_LOAD("440.cpu", 0x2000, 0x0400, CRC(bc50631f) SHA1(6aa3124d09fc4e369d087a5ad6dd1737ace55e41)) |
| 395 | ROM_REGION(0x10000, "cpu2", 0) |
| 396 | ROM_LOAD("440.snd", 0x0400, 0x0400, CRC(4a0a05ae) SHA1(88f21b5638494d8e78dc0b6b7d69873b76b5f75d)) |
| 397 | ROM_RELOAD( 0x0800, 0x0400) |
| 398 | ROM_LOAD("6530sys1.bin", 0x0c00, 0x0400, CRC(b7831321) SHA1(c94f4bee97854d0373653a6867016e27d3fc1340)) |
| 399 | ROM_RELOAD( 0xfc00, 0x0400) |
| 362 | 400 | ROM_END |
| 363 | 401 | |
| 364 | 402 | /*------------------------------------------------------------------- |
| r242209 | r242210 | |
| 369 | 407 | / Sinbad (05/1978) #412 |
| 370 | 408 | /-------------------------------------------------------------------*/ |
| 371 | 409 | ROM_START(sinbad) |
| 372 | | ROM_REGION(0x10000, "maincpu", 0) |
| 373 | | ROM_LOAD("u5_cf.bin", 0x0000, 0x0800, CRC(e0d4b405) SHA1(17aadd79c0dcbb336aadd5d203bc6ca866492345)) |
| 374 | | ROM_LOAD("u4_ce.bin", 0x0800, 0x0800, CRC(4cd312dd) SHA1(31245daa9972ef8652caee69986585bb8239e86e)) |
| 375 | | ROM_LOAD("412.cpu", 0x2000, 0x0400, CRC(84a86b83) SHA1(f331f2ffd7d1b279b4ffbb939aa8649e723f5fac)) |
| 410 | ROM_REGION(0x10000, "maincpu", 0) |
| 411 | ROM_LOAD("u5_cf.bin", 0x0000, 0x0800, CRC(e0d4b405) SHA1(17aadd79c0dcbb336aadd5d203bc6ca866492345)) |
| 412 | ROM_LOAD("u4_ce.bin", 0x0800, 0x0800, CRC(4cd312dd) SHA1(31245daa9972ef8652caee69986585bb8239e86e)) |
| 413 | ROM_LOAD("412.cpu", 0x2000, 0x0400, CRC(84a86b83) SHA1(f331f2ffd7d1b279b4ffbb939aa8649e723f5fac)) |
| 376 | 414 | ROM_END |
| 377 | 415 | |
| 378 | 416 | ROM_START(sinbadn) |
| 379 | | ROM_REGION(0x10000, "maincpu", 0) |
| 380 | | ROM_LOAD("u5_cf.bin", 0x0000, 0x0800, CRC(e0d4b405) SHA1(17aadd79c0dcbb336aadd5d203bc6ca866492345)) |
| 381 | | ROM_LOAD("u4_ce.bin", 0x0800, 0x0800, CRC(4cd312dd) SHA1(31245daa9972ef8652caee69986585bb8239e86e)) |
| 382 | | ROM_LOAD("412no1.cpu", 0x2000, 0x0400, CRC(f5373f5f) SHA1(027840501416ff01b2adf07188c7d667adf3ad5f)) |
| 417 | ROM_REGION(0x10000, "maincpu", 0) |
| 418 | ROM_LOAD("u5_cf.bin", 0x0000, 0x0800, CRC(e0d4b405) SHA1(17aadd79c0dcbb336aadd5d203bc6ca866492345)) |
| 419 | ROM_LOAD("u4_ce.bin", 0x0800, 0x0800, CRC(4cd312dd) SHA1(31245daa9972ef8652caee69986585bb8239e86e)) |
| 420 | ROM_LOAD("412no1.cpu", 0x2000, 0x0400, CRC(f5373f5f) SHA1(027840501416ff01b2adf07188c7d667adf3ad5f)) |
| 383 | 421 | ROM_END |
| 384 | 422 | |
| 385 | 423 | /*------------------------------------------------------------------- |
| r242209 | r242210 | |
| 390 | 428 | / Solar Ride (02/1979) #421 |
| 391 | 429 | /-------------------------------------------------------------------*/ |
| 392 | 430 | ROM_START(solaride) |
| 393 | | ROM_REGION(0x10000, "maincpu", 0) |
| 394 | | ROM_LOAD("u5_cf.bin", 0x0000, 0x0800, CRC(e0d4b405) SHA1(17aadd79c0dcbb336aadd5d203bc6ca866492345)) |
| 395 | | ROM_LOAD("u4_ce.bin", 0x0800, 0x0800, CRC(4cd312dd) SHA1(31245daa9972ef8652caee69986585bb8239e86e)) |
| 396 | | ROM_LOAD("421.cpu", 0x2000, 0x0400, CRC(6b5c5da6) SHA1(a09b7009473be53586f53f48b7bfed9a0c5ecd55)) |
| 431 | ROM_REGION(0x10000, "maincpu", 0) |
| 432 | ROM_LOAD("u5_cf.bin", 0x0000, 0x0800, CRC(e0d4b405) SHA1(17aadd79c0dcbb336aadd5d203bc6ca866492345)) |
| 433 | ROM_LOAD("u4_ce.bin", 0x0800, 0x0800, CRC(4cd312dd) SHA1(31245daa9972ef8652caee69986585bb8239e86e)) |
| 434 | ROM_LOAD("421.cpu", 0x2000, 0x0400, CRC(6b5c5da6) SHA1(a09b7009473be53586f53f48b7bfed9a0c5ecd55)) |
| 397 | 435 | ROM_END |
| 398 | 436 | |
| 399 | 437 | /*------------------------------------------------------------------- |
| 400 | 438 | / The Incredible Hulk (10/1979) #433 |
| 401 | 439 | /-------------------------------------------------------------------*/ |
| 402 | 440 | ROM_START(hulk) |
| 403 | | ROM_REGION(0x10000, "maincpu", 0) |
| 404 | | ROM_LOAD("u5_cf.bin", 0x0000, 0x0800, CRC(e0d4b405) SHA1(17aadd79c0dcbb336aadd5d203bc6ca866492345)) |
| 405 | | ROM_LOAD("u4_ce.bin", 0x0800, 0x0800, CRC(4cd312dd) SHA1(31245daa9972ef8652caee69986585bb8239e86e)) |
| 406 | | ROM_LOAD("433.cpu", 0x2000, 0x0400, CRC(c05d2b52) SHA1(393fe063b029246317c90ee384db95a84d61dbb7)) |
| 407 | | ROM_REGION(0x10000, "cpu2", 0) |
| 408 | | ROM_LOAD("433.snd", 0x0400, 0x0400, CRC(20cd1dff) SHA1(93e7c47ff7051c3c0dc9f8f95aa33ba094e7cf25)) |
| 409 | | ROM_RELOAD( 0x0800, 0x0400) |
| 410 | | ROM_LOAD("6530sys1.bin", 0x0c00, 0x0400, CRC(b7831321) SHA1(c94f4bee97854d0373653a6867016e27d3fc1340)) |
| 411 | | ROM_RELOAD( 0xfc00, 0x0400) |
| 441 | ROM_REGION(0x10000, "maincpu", 0) |
| 442 | ROM_LOAD("u5_cf.bin", 0x0000, 0x0800, CRC(e0d4b405) SHA1(17aadd79c0dcbb336aadd5d203bc6ca866492345)) |
| 443 | ROM_LOAD("u4_ce.bin", 0x0800, 0x0800, CRC(4cd312dd) SHA1(31245daa9972ef8652caee69986585bb8239e86e)) |
| 444 | ROM_LOAD("433.cpu", 0x2000, 0x0400, CRC(c05d2b52) SHA1(393fe063b029246317c90ee384db95a84d61dbb7)) |
| 445 | ROM_REGION(0x10000, "cpu2", 0) |
| 446 | ROM_LOAD("433.snd", 0x0400, 0x0400, CRC(20cd1dff) SHA1(93e7c47ff7051c3c0dc9f8f95aa33ba094e7cf25)) |
| 447 | ROM_RELOAD( 0x0800, 0x0400) |
| 448 | ROM_LOAD("6530sys1.bin", 0x0c00, 0x0400, CRC(b7831321) SHA1(c94f4bee97854d0373653a6867016e27d3fc1340)) |
| 449 | ROM_RELOAD( 0xfc00, 0x0400) |
| 412 | 450 | ROM_END |
| 413 | 451 | |
| 414 | 452 | /*------------------------------------------------------------------- |
| 415 | 453 | / Torch (02/1980) #438 |
| 416 | 454 | /-------------------------------------------------------------------*/ |
| 417 | 455 | ROM_START(torch) |
| 418 | | ROM_REGION(0x10000, "maincpu", 0) |
| 419 | | ROM_LOAD("u5_cf.bin", 0x0000, 0x0800, CRC(e0d4b405) SHA1(17aadd79c0dcbb336aadd5d203bc6ca866492345)) |
| 420 | | ROM_LOAD("u4_ce.bin", 0x0800, 0x0800, CRC(4cd312dd) SHA1(31245daa9972ef8652caee69986585bb8239e86e)) |
| 421 | | ROM_LOAD("438.cpu", 0x2000, 0x0400, CRC(2d396a64) SHA1(38a1862771500faa471071db08dfbadc6e8759e8)) |
| 422 | | ROM_REGION(0x10000, "cpu2", 0) |
| 423 | | ROM_LOAD("438.snd", 0x0400, 0x0400, CRC(a9619b48) SHA1(1906bc1b059bf31082e3b4546f5a30159479ad3c)) |
| 424 | | ROM_RELOAD( 0x0800, 0x0400) |
| 425 | | ROM_LOAD("6530sys1.bin", 0x0c00, 0x0400, CRC(b7831321) SHA1(c94f4bee97854d0373653a6867016e27d3fc1340)) |
| 426 | | ROM_RELOAD( 0xfc00, 0x0400) |
| 456 | ROM_REGION(0x10000, "maincpu", 0) |
| 457 | ROM_LOAD("u5_cf.bin", 0x0000, 0x0800, CRC(e0d4b405) SHA1(17aadd79c0dcbb336aadd5d203bc6ca866492345)) |
| 458 | ROM_LOAD("u4_ce.bin", 0x0800, 0x0800, CRC(4cd312dd) SHA1(31245daa9972ef8652caee69986585bb8239e86e)) |
| 459 | ROM_LOAD("438.cpu", 0x2000, 0x0400, CRC(2d396a64) SHA1(38a1862771500faa471071db08dfbadc6e8759e8)) |
| 460 | ROM_REGION(0x10000, "cpu2", 0) |
| 461 | ROM_LOAD("438.snd", 0x0400, 0x0400, CRC(a9619b48) SHA1(1906bc1b059bf31082e3b4546f5a30159479ad3c)) |
| 462 | ROM_RELOAD( 0x0800, 0x0400) |
| 463 | ROM_LOAD("6530sys1.bin", 0x0c00, 0x0400, CRC(b7831321) SHA1(c94f4bee97854d0373653a6867016e27d3fc1340)) |
| 464 | ROM_RELOAD( 0xfc00, 0x0400) |
| 427 | 465 | ROM_END |
| 428 | 466 | |
| 429 | 467 | /*------------------------------------------------------------------- |
| 430 | 468 | / Totem (10/1979) #429 |
| 431 | 469 | /-------------------------------------------------------------------*/ |
| 432 | 470 | ROM_START(totem) |
| 433 | | ROM_REGION(0x10000, "maincpu", 0) |
| 434 | | ROM_LOAD("u5_cf.bin", 0x0000, 0x0800, CRC(e0d4b405) SHA1(17aadd79c0dcbb336aadd5d203bc6ca866492345)) |
| 435 | | ROM_LOAD("u4_ce.bin", 0x0800, 0x0800, CRC(4cd312dd) SHA1(31245daa9972ef8652caee69986585bb8239e86e)) |
| 436 | | ROM_LOAD("429.cpu", 0x2000, 0x0400, CRC(7885a384) SHA1(1770662af7d48ad8297097a9877c5c497119978d)) |
| 437 | | ROM_REGION(0x10000, "cpu2", 0) |
| 438 | | ROM_LOAD("429.snd", 0x0400, 0x0400, CRC(5d1b7ed4) SHA1(4a584f880e907fb21da78f3b3a0617f20599688f)) |
| 439 | | ROM_RELOAD( 0x0800, 0x0400) |
| 440 | | ROM_LOAD("6530sys1.bin", 0x0c00, 0x0400, CRC(b7831321) SHA1(c94f4bee97854d0373653a6867016e27d3fc1340)) |
| 441 | | ROM_RELOAD( 0xfc00, 0x0400) |
| 471 | ROM_REGION(0x10000, "maincpu", 0) |
| 472 | ROM_LOAD("u5_cf.bin", 0x0000, 0x0800, CRC(e0d4b405) SHA1(17aadd79c0dcbb336aadd5d203bc6ca866492345)) |
| 473 | ROM_LOAD("u4_ce.bin", 0x0800, 0x0800, CRC(4cd312dd) SHA1(31245daa9972ef8652caee69986585bb8239e86e)) |
| 474 | ROM_LOAD("429.cpu", 0x2000, 0x0400, CRC(7885a384) SHA1(1770662af7d48ad8297097a9877c5c497119978d)) |
| 475 | ROM_REGION(0x10000, "cpu2", 0) |
| 476 | ROM_LOAD("429.snd", 0x0400, 0x0400, CRC(5d1b7ed4) SHA1(4a584f880e907fb21da78f3b3a0617f20599688f)) |
| 477 | ROM_RELOAD( 0x0800, 0x0400) |
| 478 | ROM_LOAD("6530sys1.bin", 0x0c00, 0x0400, CRC(b7831321) SHA1(c94f4bee97854d0373653a6867016e27d3fc1340)) |
| 479 | ROM_RELOAD( 0xfc00, 0x0400) |
| 442 | 480 | ROM_END |
| 443 | 481 | |
| 444 | 482 | /*------------------------------------------------------------------- |
| 445 | 483 | / System 1 Test prom |
| 446 | 484 | /-------------------------------------------------------------------*/ |
| 447 | 485 | ROM_START(sys1test) |
| 448 | | ROM_REGION(0x10000, "maincpu", 0) |
| 449 | | ROM_LOAD("u5_cf.bin", 0x0000, 0x0800, CRC(e0d4b405) SHA1(17aadd79c0dcbb336aadd5d203bc6ca866492345)) |
| 450 | | ROM_LOAD("u4_ce.bin", 0x0800, 0x0800, CRC(4cd312dd) SHA1(31245daa9972ef8652caee69986585bb8239e86e)) |
| 451 | | ROM_LOAD("test.cpu", 0x2000, 0x0400, CRC(8b0704bb) SHA1(5f0eb8d5af867b815b6012c9d078927398efe6d8)) |
| 486 | ROM_REGION(0x10000, "maincpu", 0) |
| 487 | ROM_LOAD("u5_cf.bin", 0x0000, 0x0800, CRC(e0d4b405) SHA1(17aadd79c0dcbb336aadd5d203bc6ca866492345)) |
| 488 | ROM_LOAD("u4_ce.bin", 0x0800, 0x0800, CRC(4cd312dd) SHA1(31245daa9972ef8652caee69986585bb8239e86e)) |
| 489 | ROM_LOAD("test.cpu", 0x2000, 0x0400, CRC(8b0704bb) SHA1(5f0eb8d5af867b815b6012c9d078927398efe6d8)) |
| 452 | 490 | ROM_END |
| 453 | 491 | |
| 454 | 492 | |
trunk/src/mame/drivers/naomi.c
| r242209 | r242210 | |
| 259 | 259 | Ferrari F355 Challenge (twin, prototype) no cart 22848P* 21 (64Mb) present 315-6206 317-0267-COM * flash-PCB have CRC 330B A417, the rest is the same as regular cart, not dumped but known to exist |
| 260 | 260 | Ferrari F355 Challenge 2 (twin) no cart 23399 21 (64Mb) present 315-6206 317-0287-COM content is the same as regular 171-7919A cart |
| 261 | 261 | House of the Dead 2 (prototype) no cart A1E2 21 (64Mb) present 315-6206 present no label on IC42 |
| 262 | | Inu No Osanpo / Dog Walking (Rev A) 840-0073C 22294A 16 (64Mb) present 315-6206 317-0316-JPN requires 837-13844 JVS IO with special jumpers settings enabling rotary |
| 262 | Inu No Osanpo / Dog Walking (Rev A) 840-0073C 22294A 16 (64Mb) present 315-6206 317-0316-JPN requires 837-13844 JVS IO with DIPSW 1 ON |
| 263 | 263 | Maze of the Kings The (prototype) no cart * 21 (64Mb) present 315-6206 FRI * flash-PCB, not dumped but known to exist |
| 264 | 264 | Samba de Amigo (prototype) no cart * 21 (64Mb) present 315-6206 317-0270-COM * instead of EPROM have tiny PCB with 2 flashroms on it |
| 265 | 265 | Soul Surfer (Rev A) 840-0095C 23838C 21 (64Mb) present 315-6206 not present |
| r242209 | r242210 | |
| 335 | 335 | Puyo Puyo Da! 841-0006C 22206 20 (64Mb) ? 315-6213 ? |
| 336 | 336 | Ring Out 4x4 840-0004C 21779 10 (64Mb) present 315-6213 317-0250-COM requires 2 JVS boards |
| 337 | 337 | Samba de Amigo (Rev B) 840-0020C 22966B 16 (64Mb) present 315-6213 317-0270-COM will boot but requires special controller to play it |
| 338 | | Sega Marine Fishing 840-0027C 22221 10 (64Mb) ? 315-6213 not present ROM 3&4 not present. Requires fishing controller |
| 338 | Sega Marine Fishing 840-0027C 22221 10 (64Mb) ? 315-6213 not present ROM 3&4 not present. Requires 837-13844 JVS IO with all DIPSW Off and fishing controller |
| 339 | 339 | Sega Strike Fighter (Rev A, set 1) 840-0035C 23323A 20 (64Mb) present 315-6213 317-0281-COM have "Rev. A" label on case |
| 340 | 340 | Sega Strike Fighter (Rev A, set 2) 840-0035C 23786A 20 (64Mb) present 315-6213 317-0281-COM have "Rev. A" label on PCB |
| 341 | 341 | Sega Tetris 840-0018C 22909 6 (64Mb) present 315-6213 317-0268-COM |
| r242209 | r242210 | |
| 343 | 343 | Spawn In the Demon's Hand (Rev B) 841-0005C 22977B 10 (64Mb) ? 315-6213 317-5051-COM joystick + 4 buttons |
| 344 | 344 | Super Major League '99 840-0012C 22059 21 (64Mb) ? 315-6213 ? |
| 345 | 345 | The Typing of the Dead (Rev A) 840-0026C 23021A 20 (64Mb) present 315-6213 not present |
| 346 | | Touch de UNO! / Unou Nouryoku Check Machine 840-0008C 22073 4 (64Mb) present 315-6213 317-0255-JPN requires special JVS board with touch input and printer |
| 346 | Touch de UNO! / Unou Nouryoku Check Machine 840-0008C 22073 4 (64Mb) present 315-6213 317-0255-JPN requires 837-13844 JVS IO with DIPSW 5 On, ELO AccuTouch-compatible touch screen controller and special printer. |
| 347 | 347 | Toy Fighter / Waffupu 840-0011C 22035 10 (64Mb) present 315-6212 317-0257-COM joystick + 3 buttons |
| 348 | 348 | Virtua NBA 840-0021C-01 23073 21 (64Mb) present 315-6213 not present |
| 349 | 349 | Virtua NBA (original) 840-0021C 22949 21 (64Mb) present 315-6213 317-0271-COM |
| r242209 | r242210 | |
| 460 | 460 | Shootout Pool Prize / The Medal (Rev A) 840-0128C 24065A 4 (64Mb) present 317-0367-COM requires Naomi-based hopper controller |
| 461 | 461 | Shootout Pool Prize / The Medal Ver. B 840-0136C 24148 4 (64Mb) present 317-0367-COM requires Naomi-based or 837-14438 hopper controller |
| 462 | 462 | SWP Hopper Board 840-0130C 24083 20 (64Mb) present 317-0339-COM Maskroms are not really used, they are recycled from other games; there is an additional 837-14381 IO board |
| 463 | | Touch de UNO! 2 840-0022C 23071 6 (64Mb) present 317-0276-JPN requires special JVS board with touch input and printer |
| 463 | Touch de UNO! 2 840-0022C 23071 6 (64Mb) present 317-0276-JPN requires 837-13844 JVS IO with DIPSW 5 On, ELO AccuTouch-compatible touch screen controller and special printer. |
| 464 | 464 | Virtua Fighter 4 Evolution 840-0106B 23934 20 (64Mb) present 317-0339-COM |
| 465 | 465 | Virtua Tennis 2 / Power Smash 2 (Rev A) 840-0084C 22327A 18 (64Mb) present 317-0320-COM |
| 466 | 466 | |
| r242209 | r242210 | |
| 888 | 888 | |-----------------------------| |
| 889 | 889 | Notes: (most info taken from poor quality pics/scans, better info is needed) |
| 890 | 890 | |
| 891 | | JVS I/O board 2. Has both digital and analogue inputs. |
| 891 | JVS I/O board 2. Supports digital and analogue inputs, rotary input, |
| 892 | touch screens (ELO AccuTouch-compatible) and printer output using |
| 893 | extended JVS commands. This features can be enabled or disabled |
| 894 | by switching DIPSW 1-5. |
| 892 | 895 | This board is used with F355, Ghost Squad, and many |
| 893 | 896 | others including network/satellite games. |
| 894 | 897 | |
| r242209 | r242210 | |
| 909 | 912 | IC7 - 27C512 EPROM with label 'EPR-22082' (DIP28) |
| 910 | 913 | On plain 837-13844 (no -02) this is 'EPR-21868' (DIP28) |
| 911 | 914 | IC8 - Sharp LH52256 32k x8 SRAM (SOP28) |
| 912 | | IC10 - Something by NEC? (QFP44) |
| 915 | IC10 - NEC D71054GB programmable counter/timer (QFP44) |
| 913 | 916 | OSC1 - 14.7456MHz |
| 914 | 917 | OSC2 - 32MHz |
| 915 | 918 | CNx - 6 pin connector |
| r242209 | r242210 | |
| 5631 | 5634 | ROM_LOAD( "fpr-24333.ic8", 0x0000000, 0x4000000, CRC(a467b69c) SHA1(66a841b72ef1bb8cbabbfb1d14081b4dff14b1d3) ) |
| 5632 | 5635 | ROM_LOAD( "fpr-24334.ic9", 0x4000000, 0x4000000, CRC(13d2d1dc) SHA1(6a47cfaddf006e6ff46837fac956fbcc20619d79) ) |
| 5633 | 5636 | |
| 5634 | | // ROM_REGION( 4, "rom_key", 0 ) |
| 5635 | | // ROM_LOAD( "mushik2e-key.bin", 0, 4, CRC(b32a0633) SHA1(984c01e43cf359d8e8a0c6cb1a04c5dc3da47d39) ) |
| 5636 | | ROM_REGION( 20, "pic_readout", 0 ) // data obtained using a custom PIC reader |
| 5637 | | ROM_LOAD( "317-0437-com.ic3", 0, 20, NO_DUMP ) |
| 5637 | ROM_REGION( 0x800, "pic_readout", 0 ) |
| 5638 | ROM_LOAD( "317-0437-com.ic3", 0, 0x800, BAD_DUMP CRC(b6e4f61a) SHA1(b5cae574170afa3889e01517f1c4429e207042b9) ) |
| 5638 | 5639 | |
| 5639 | 5640 | ROM_REGION(0x4, "boardid", ROMREGION_ERASEVAL(0x02)) |
| 5640 | 5641 | ROM_END |
| r242209 | r242210 | |
| 5648 | 5649 | ROM_LOAD( "epr-24357.ic7", 0x0000000, 0x0400000, CRC(a2236d58) SHA1(3746b9d3c0f7ecf6340619bb8bf01f170ac4efb7) ) // EPR mode, overwrite FPR data |
| 5649 | 5650 | ROM_LOAD( "fpr-24334.ic9", 0x4000000, 0x4000000, CRC(13d2d1dc) SHA1(6a47cfaddf006e6ff46837fac956fbcc20619d79) ) |
| 5650 | 5651 | |
| 5651 | | // ROM_REGION( 4, "rom_key", 0 ) |
| 5652 | | // ROM_LOAD( "mushik2e-key.bin", 0, 4, CRC(b32a0633) SHA1(984c01e43cf359d8e8a0c6cb1a04c5dc3da47d39) ) |
| 5653 | | ROM_REGION( 20, "pic_readout", 0 ) // data obtained using a custom PIC reader |
| 5654 | | ROM_LOAD( "317-0437-com.ic3", 0, 20, NO_DUMP ) |
| 5652 | ROM_REGION( 0x800, "pic_readout", 0 ) |
| 5653 | ROM_LOAD( "317-0437-com.ic3", 0, 0x800, BAD_DUMP CRC(b6e4f61a) SHA1(b5cae574170afa3889e01517f1c4429e207042b9) ) |
| 5655 | 5654 | |
| 5656 | 5655 | ROM_REGION(0x4, "boardid", ROMREGION_ERASEVAL(0x82)) |
| 5657 | 5656 | ROM_END |
| r242209 | r242210 | |
| 5664 | 5663 | ROM_LOAD( "fpr-24338.ic8", 0x0000000, 0x4000000, CRC(1423c374) SHA1(e6a3f0eaccd13c161d07705bcd00f447f08fc186) ) |
| 5665 | 5664 | ROM_LOAD( "fpr-24339.ic9", 0x4000000, 0x4000000, CRC(11883792) SHA1(1782db04f74394f981f887ab1a95d687eb2c0b35) ) |
| 5666 | 5665 | |
| 5667 | | // ROM_REGION( 4, "rom_key", 0 ) |
| 5668 | | // ROM_LOAD( "zunou-key.bin", 0, 4, CRC(cbe35afb) SHA1(78877655800aae27661bf720e1c37d6c6f2e3d1c) ) |
| 5669 | | ROM_REGION( 20, "pic_readout", 0 ) // data obtained using a custom PIC reader |
| 5670 | | ROM_LOAD( "317-0435-jpn.ic3", 0, 20, NO_DUMP ) |
| 5666 | ROM_REGION( 0x800, "pic_readout", 0 ) |
| 5667 | ROM_LOAD( "317-0435-jpn.ic3", 0, 0x800, BAD_DUMP CRC(b553d900) SHA1(ed1c3c2053f2c0e98cb5c4d99f93143a66c29e5c) ) |
| 5671 | 5668 | |
| 5672 | 5669 | ROM_REGION(0x4, "boardid", ROMREGION_ERASEVAL(0x02)) |
| 5673 | 5670 | ROM_END |
| r242209 | r242210 | |
| 5682 | 5679 | ROM_LOAD( "fpr-24415.ic10", 0x8000000, 0x4000000, CRC(133c742c) SHA1(89f857a31731dc918afc72b6cb716f5c77cb9d6e) ) |
| 5683 | 5680 | ROM_LOAD( "fpr-24416.ic11", 0xc000000, 0x4000000, CRC(562fb88e) SHA1(172678e3e27cfad7f7e6217c4653a4ba119bfbdf) ) |
| 5684 | 5681 | |
| 5685 | | ROM_REGION( 20, "pic_readout", 0 ) // data obtained using a custom PIC reader |
| 5686 | | ROM_LOAD( "317-5129-jpn.ic3", 0, 20, CRC(b6191cea) SHA1(13e14ff013bf2728203641303141c016e82b10a3) ) |
| 5682 | ROM_REGION( 0x800, "pic_readout", 0 ) |
| 5683 | ROM_LOAD( "317-5129-jpn.ic3", 0, 0x800, CRC(432ba30f) SHA1(4935a16d1075430799269ac7ac990066d44d815b) ) |
| 5687 | 5684 | |
| 5688 | 5685 | ROM_REGION(0x4, "boardid", ROMREGION_ERASEVAL(0x04)) |
| 5689 | 5686 | ROM_END |
| r242209 | r242210 | |
| 5698 | 5695 | ROM_LOAD( "fpr-24384.ic10", 0x8000000, 0x4000000, CRC(2e9116c4) SHA1(58903a33c4ce72a1f75aefcab94393fc2e8bd2d9) ) |
| 5699 | 5696 | ROM_LOAD( "fpr-24385.ic11", 0xc000000, 0x4000000, CRC(2b79f45d) SHA1(db97d980bf1590df4b983a4b7786977687238ef5) ) |
| 5700 | 5697 | |
| 5701 | | ROM_REGION( 20, "pic_readout", 0 ) // data obtained using a custom PIC reader |
| 5702 | | ROM_LOAD( "317-0495-com.ic3", 0, 20, CRC(675aca7b) SHA1(5127189e1f960abf9ed3f643158747d9abcaee1c) ) |
| 5698 | ROM_REGION( 0x800, "pic_readout", 0 ) |
| 5699 | ROM_LOAD( "317-0495-com.ic3", 0, 0x800, CRC(c229a59b) SHA1(497dcc1e4e52eb044a8b709edbd00126cef212b1) ) |
| 5703 | 5700 | |
| 5704 | 5701 | ROM_REGION(0x4, "boardid", ROMREGION_ERASEVAL(0x04)) |
| 5705 | 5702 | ROM_END |
| r242209 | r242210 | |
| 5714 | 5711 | ROM_LOAD( "fpr-24439.ic10", 0x8000000, 0x4000000, CRC(c02040f9) SHA1(27ad2cb45e8a516433917f060ca9798412bb95f7) ) |
| 5715 | 5712 | // IC11 Populated, Empty |
| 5716 | 5713 | |
| 5717 | | ROM_REGION( 20, "pic_readout", 0 ) // data obtained using a custom PIC reader |
| 5718 | | ROM_LOAD( "317-5131-jpn.ic3", 0, 20, CRC(44ab8ca9) SHA1(c17b10041e70590547ed010dc16a4dd2510fcc80) ) |
| 5714 | ROM_REGION( 0x800, "pic_readout", 0 ) |
| 5715 | ROM_LOAD( "317-5131-jpn.ic3", 0, 0x800, CRC(af4b38f2) SHA1(9b82f16a258854d7d618d60f9a610f7d47d67a78) ) |
| 5719 | 5716 | |
| 5720 | 5717 | ROM_REGION(0x4, "boardid", ROMREGION_ERASEVAL(0x04)) |
| 5721 | 5718 | ROM_END |
| r242209 | r242210 | |
| 5730 | 5727 | ROM_LOAD( "ic10.bin", 0x8000000, 0x4000000, CRC(76fb945f) SHA1(448be0c3d9a7c3956dd51aca3c4d8d28f8cec227) ) |
| 5731 | 5728 | // IC11 Populated, Empty |
| 5732 | 5729 | |
| 5733 | | ROM_REGION( 20, "pic_readout", 0 ) // data obtained using a custom PIC reader |
| 5734 | | ROM_LOAD( "317-5132-jpn.ic3", 0, 20, CRC(f2089de5) SHA1(12af0681decb22bbfa4b3e01037c3503846f265a) ) |
| 5730 | ROM_REGION( 0x800, "pic_readout", 0 ) |
| 5731 | ROM_LOAD( "317-5132-jpn.ic3", 0, 0x800, CRC(d56e70a1) SHA1(fda1a2989f0fa3b0edeb292cdd4537d9b86af6f2) ) |
| 5735 | 5732 | |
| 5736 | 5733 | ROM_REGION(0x4, "boardid", ROMREGION_ERASEVAL(0x04)) |
| 5737 | 5734 | ROM_END |
| r242209 | r242210 | |
| 5748 | 5745 | ROM_LOAD( "ic12.bin", 0x10000000, 0x4000000, CRC(b8a6bff2) SHA1(befbc2e917b3107f1c4bfb9169623282ff97bfb2) ) |
| 5749 | 5746 | ROM_LOAD( "ic13.bin", 0x14000000, 0x4000000, CRC(4886329f) SHA1(6ccf6fb83cfdbef3f85f6c06e641c38ff434d605) ) |
| 5750 | 5747 | |
| 5751 | | ROM_REGION( 20, "pic_readout", 0 ) // data obtained using a custom PIC reader |
| 5752 | | ROM_LOAD( "317-5133-jpn.ic3", 0, 20, CRC(3dc7d902) SHA1(bb70e80dff878bca3652088f3333079e0781f482) ) |
| 5748 | ROM_REGION( 0x800, "pic_readout", 0 ) |
| 5749 | ROM_LOAD( "317-5133-jpn.ic3", 0, 0x800, CRC(0f16d180) SHA1(9d4ae15aa54752cdbd8e279388b7f3ae20777172) ) |
| 5753 | 5750 | |
| 5754 | 5751 | ROM_REGION(0x4, "boardid", ROMREGION_ERASEVAL(0x06)) |
| 5755 | 5752 | ROM_END |
| r242209 | r242210 | |
| 5767 | 5764 | ROM_LOAD( "ic12.bin", 0x10000000, 0x4000000, CRC(b8a6bff2) SHA1(befbc2e917b3107f1c4bfb9169623282ff97bfb2) ) |
| 5768 | 5765 | ROM_LOAD( "ic13.bin", 0x14000000, 0x4000000, CRC(4886329f) SHA1(6ccf6fb83cfdbef3f85f6c06e641c38ff434d605) ) |
| 5769 | 5766 | |
| 5770 | | ROM_REGION( 20, "pic_readout", 0 ) // data obtained using a custom PIC reader |
| 5771 | | ROM_LOAD( "317-5133-jpn.ic3", 0, 20, CRC(3dc7d902) SHA1(bb70e80dff878bca3652088f3333079e0781f482) ) |
| 5767 | ROM_REGION( 0x800, "pic_readout", 0 ) |
| 5768 | ROM_LOAD( "317-5133-jpn.ic3", 0, 0x800, CRC(0f16d180) SHA1(9d4ae15aa54752cdbd8e279388b7f3ae20777172) ) |
| 5772 | 5769 | |
| 5773 | 5770 | ROM_REGION(0x4, "boardid", ROMREGION_ERASEVAL(0x86)) |
| 5774 | 5771 | ROM_END |
| r242209 | r242210 | |
| 5782 | 5779 | ROM_LOAD( "ic9.bin", 0x4000000, 0x4000000, CRC(16cf2e7a) SHA1(ff7c6540e4507f84e3128ba03be4826ba504678c) ) |
| 5783 | 5780 | // IC10 and IC11 Populated, Empty |
| 5784 | 5781 | |
| 5785 | | ROM_REGION( 20, "pic_readout", 0 ) // data obtained using a custom PIC reader |
| 5786 | | ROM_LOAD( "317-5138-jpn.ic3", 0, 20, CRC(babcc420) SHA1(653cdcfa388426f4ce03c76506046ec6fd070562) ) |
| 5782 | ROM_REGION( 0x800, "pic_readout", 0 ) |
| 5783 | ROM_LOAD( "317-5138-jpn.ic3", 0, 0x800, CRC(93b7a03d) SHA1(7af7c8d436f61e57b9d5957431c6fc745442f74f) ) |
| 5787 | 5784 | |
| 5788 | 5785 | ROM_REGION(0x4, "boardid", ROMREGION_ERASEVAL(0x04)) |
| 5789 | 5786 | ROM_END |
| r242209 | r242210 | |
| 5797 | 5794 | ROM_LOAD( "ic9.bin", 0x4000000, 0x4000000, CRC(18c994d7) SHA1(159e1425b2fc645133814b0d26d93a90e9849b1a) ) |
| 5798 | 5795 | // IC10 and IC11 Populated, Empty |
| 5799 | 5796 | |
| 5800 | | ROM_REGION( 20, "pic_readout", 0 ) // data obtained using a custom PIC reader |
| 5801 | | ROM_LOAD( "317-5130-jpn.ic3", 0, 20, CRC(3e0c010b) SHA1(b6da97d4ecb228e73fb9a5ada837d0d6699ab0f1) ) |
| 5797 | ROM_REGION( 0x800, "pic_readout", 0 ) |
| 5798 | ROM_LOAD( "317-05130-jpn.ic3", 0, 0x800, CRC(eccdcd59) SHA1(9f374e0b37f18591c92c38c83c9310f2db0abf9c) ) |
| 5802 | 5799 | |
| 5803 | 5800 | ROM_REGION(0x4, "boardid", ROMREGION_ERASEVAL(0x04)) |
| 5804 | 5801 | ROM_END |
| r242209 | r242210 | |
| 5817 | 5814 | ROM_REGION( 0x200000, "ioboard", 0) // touch screen I/O board, program disassembles as little-endian SH-4 |
| 5818 | 5815 | ROM_LOAD( "fpr24351.ic14", 0x000000, 0x200000, CRC(4d1b7b89) SHA1(965b8c6b5a2e7b3f1b1e2eac19c86000c3b66754) ) |
| 5819 | 5816 | |
| 5820 | | // ROM_REGION( 4, "rom_key", 0 ) |
| 5821 | | // ROM_LOAD( "pokasuka-key.bin", 0, 4, CRC(f00bcd61) SHA1(b8315b851656c2e0b7853979988d1c44eab0886b) ) |
| 5822 | | ROM_REGION( 20, "pic_readout", 0 ) // data obtained using a custom PIC reader |
| 5823 | | ROM_LOAD( "317-0461-com.ic3", 0, 20, NO_DUMP ) |
| 5817 | ROM_REGION( 0x800, "pic_readout", 0 ) |
| 5818 | ROM_LOAD( "317-0461-com.ic3", 0, 0x800, BAD_DUMP CRC(c9282cdd) SHA1(23933e489d763515428e2714cc6e7676df1d5323) ) |
| 5824 | 5819 | |
| 5825 | 5820 | ROM_REGION(0x4, "boardid", ROMREGION_ERASEVAL(0x05)) |
| 5826 | 5821 | ROM_END |
| r242209 | r242210 | |
| 5839 | 5834 | ROM_REGION( 0x200000, "ioboard", 0) // touch screen I/O board, program disassembles as little-endian SH-4 |
| 5840 | 5835 | ROM_LOAD( "fpr24351.ic14", 0x000000, 0x200000, CRC(4d1b7b89) SHA1(965b8c6b5a2e7b3f1b1e2eac19c86000c3b66754) ) |
| 5841 | 5836 | |
| 5842 | | // ROM_REGION( 4, "rom_key", 0 ) |
| 5843 | | // ROM_LOAD( "pokasuka-key.bin", 0, 4, CRC(f00bcd61) SHA1(b8315b851656c2e0b7853979988d1c44eab0886b) ) |
| 5844 | | ROM_REGION( 20, "pic_readout", 0 ) // data obtained using a custom PIC reader |
| 5845 | | ROM_LOAD( "317-0461-com.ic3", 0, 20, NO_DUMP ) |
| 5837 | ROM_REGION( 0x800, "pic_readout", 0 ) |
| 5838 | ROM_LOAD( "317-0461-com.ic3", 0, 0x800, BAD_DUMP CRC(c9282cdd) SHA1(23933e489d763515428e2714cc6e7676df1d5323) ) |
| 5846 | 5839 | |
| 5847 | 5840 | ROM_REGION(0x4, "boardid", ROMREGION_ERASEVAL(0x05)) |
| 5848 | 5841 | ROM_END |
| r242209 | r242210 | |
| 5860 | 5853 | ROM_LOAD( "fpr-24425.ic10", 0x08000000, 0x4000000, CRC(6223ebac) SHA1(64c0ec61c108acbb557e7d3837f578deba832cb6) ) |
| 5861 | 5854 | ROM_LOAD( "fpr-24426.ic11", 0x0c000000, 0x4000000, CRC(c78b0981) SHA1(f889acf9065566e11ff985a3b6c4824e364d57ae) ) |
| 5862 | 5855 | |
| 5863 | | ROM_REGION( 20, "pic_readout", 0 ) // data obtained using a custom PIC reader |
| 5864 | | ROM_LOAD( "317-0503-jpn.ic3", 0, 20, CRC(69fc3f47) SHA1(3a887c62e93fa264b307c954eb39a4fca1bdfad6) ) |
| 5856 | ROM_REGION( 0x800, "pic_readout", 0 ) |
| 5857 | ROM_LOAD( "317-0503-jpn.ic3", 0, 0x800, CRC(6eb0976b) SHA1(d5d0fc09a0c0e3a8f2703c450f05f5082317fbe4) ) |
| 5865 | 5858 | |
| 5866 | 5859 | ROM_REGION(0x4, "boardid", ROMREGION_ERASEVAL(0x04)) |
| 5867 | 5860 | ROM_END |
trunk/src/mess/drivers/gamate.c
| r242209 | r242210 | |
| 1 | 1 | /****************************************************************************** |
| 2 | 2 | PeT mess@utanet.at 2007, 2014 |
| 3 | Peter Wilhelmsen peter.wilhelmsen@gmail.com |
| 4 | Morten Shearman Kirkegaard morten+gamate@afdelingp.dk |
| 3 | 5 | ******************************************************************************/ |
| 4 | 6 | |
| 5 | 7 | #include "emu.h" |
| r242209 | r242210 | |
| 15 | 17 | : driver_device(mconfig, type, tag) |
| 16 | 18 | , m_maincpu(*this, "maincpu") |
| 17 | 19 | , m_cart(*this, "cartslot") |
| 18 | | // , m_gfxdecode(*this, "gfxdecode") |
| 20 | // , m_gfxdecode(*this, "gfxdecode") |
| 19 | 21 | , m_io_joy(*this, "JOY") |
| 20 | | , m_palette(*this, "palette") |
| 22 | , m_palette(*this, "palette") |
| 23 | , m_cart_rom(*this, "cart_rom") |
| 24 | , m_bios(*this, "bios") |
| 21 | 25 | { } |
| 22 | 26 | |
| 23 | 27 | DECLARE_PALETTE_INIT(gamate); |
| 24 | | DECLARE_READ8_MEMBER(video_r); |
| 25 | | DECLARE_READ8_MEMBER(pad_r); |
| 26 | | DECLARE_WRITE8_MEMBER(video_w); |
| 27 | | DECLARE_WRITE8_MEMBER(audio_w); |
| 28 | | DECLARE_WRITE8_MEMBER(bios_w); |
| 28 | DECLARE_READ8_MEMBER(protection_r); |
| 29 | DECLARE_READ8_MEMBER(gamate_cart_protection_r); |
| 30 | DECLARE_WRITE8_MEMBER(gamate_cart_protection_w); |
| 31 | DECLARE_READ8_MEMBER(gamate_video_r); |
| 32 | DECLARE_READ8_MEMBER(gamate_pad_r); |
| 33 | DECLARE_WRITE8_MEMBER(gamate_video_w); |
| 34 | DECLARE_READ8_MEMBER(gamate_audio_r); |
| 35 | DECLARE_WRITE8_MEMBER(gamate_audio_w); |
| 36 | DECLARE_WRITE8_MEMBER(gamate_bios_w); |
| 29 | 37 | DECLARE_DRIVER_INIT(gamate); |
| 30 | 38 | UINT32 screen_update_gamate(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); |
| 31 | 39 | INTERRUPT_GEN_MEMBER(gamate_interrupt); |
| 40 | TIMER_CALLBACK_MEMBER(gamate_timer); |
| 41 | TIMER_CALLBACK_MEMBER(gamate_timer2); |
| 32 | 42 | |
| 33 | 43 | private: |
| 34 | 44 | virtual void machine_start(); |
| 35 | 45 | |
| 36 | 46 | struct |
| 37 | 47 | { |
| 38 | | UINT8 reg[8]; |
| 39 | | struct { |
| 40 | | bool write; // else tilemap |
| 41 | | bool page2; // else page1 |
| 42 | | UINT8 data[2][0x100][0x20]; |
| 43 | | } bitmap; |
| 44 | | struct { |
| 45 | | UINT8 data[32][32]; |
| 46 | | } tilemap; |
| 47 | | UINT8 x, y; |
| 48 | UINT8 reg[8]; |
| 49 | struct { |
| 50 | bool write; |
| 51 | bool page2; // else page1 |
| 52 | UINT8 ypos, xpos/*tennis*/; |
| 53 | UINT8 data[2][0x100][0x20]; |
| 54 | } bitmap; |
| 55 | UINT8 x, y; |
| 56 | bool y_increment; |
| 48 | 57 | } video; |
| 49 | 58 | |
| 50 | | // UINT8 m_ports[5]; |
| 51 | | // UINT8 m_ram[0x4000]; |
| 59 | struct { |
| 60 | int bit_shifter; |
| 61 | UINT8 cartridge_byte; |
| 62 | UINT16 address; // in reality something more like short local cartridge address offset |
| 63 | bool unprotected; |
| 64 | bool failed; |
| 65 | } card_protection; |
| 66 | |
| 52 | 67 | required_device<cpu_device> m_maincpu; |
| 53 | 68 | required_device<generic_slot_device> m_cart; |
| 54 | | // required_device<gfxdecode_device> m_gfxdecode; |
| 69 | // required_device<gfxdecode_device> m_gfxdecode; |
| 55 | 70 | required_ioport m_io_joy; |
| 56 | 71 | required_device<palette_device> m_palette; |
| 72 | required_shared_ptr<UINT8> m_cart_rom; |
| 73 | required_shared_ptr<UINT8> m_bios; |
| 74 | emu_timer *timer1; |
| 75 | emu_timer *timer2; |
| 57 | 76 | }; |
| 58 | 77 | |
| 59 | | WRITE8_MEMBER( gamate_state::video_w ) |
| 78 | WRITE8_MEMBER( gamate_state::gamate_cart_protection_w ) |
| 60 | 79 | { |
| 61 | | if (m_maincpu->pc()<0xf000) |
| 62 | | logerror("%.6f %04x video write %04x %02x\n", machine().time().as_double(), m_maincpu->pc(), offset,data); |
| 63 | | video.reg[offset]=data; |
| 64 | 80 | switch (offset) { |
| 65 | | case 1: video.bitmap.write=data&0x40;break; // probably y increment |
| 66 | | case 4: video.bitmap.page2=data&0x80;video.x=data&0x7f;break; |
| 67 | | case 5: video.y=data;break; |
| 68 | | case 7: |
| 69 | | if (video.bitmap.write) { |
| 70 | | if (video.x<ARRAY_LENGTH(video.bitmap.data[0][0]) /*&& video.y<ARRAY_LENGTH(video.bitmap.data[0])*/) |
| 71 | | video.bitmap.data[video.bitmap.page2][video.y][video.x]=data; |
| 72 | | else |
| 73 | | logerror("%.6f %04x video bitmap x %x invalid\n",machine().time().as_double(), m_maincpu->pc(), video.x); |
| 74 | | video.y++; |
| 75 | | } else { |
| 76 | | if (video.x<ARRAY_LENGTH(video.tilemap.data[0]) && (video.y&0x1f)<ARRAY_LENGTH(video.tilemap.data)) |
| 77 | | video.tilemap.data[video.y&0x1f][video.x]=data; |
| 78 | | else |
| 79 | | logerror("%.6f %04x video tilemap %x %x invalid\n",machine().time().as_double(), m_maincpu->pc(), video.x, video.y); |
| 80 | | video.x++; |
| 81 | case 0: |
| 82 | card_protection.failed= card_protection.failed || ((card_protection.cartridge_byte&0x80)!=0) != ((data&4)!=0); |
| 83 | card_protection.bit_shifter++; |
| 84 | if (card_protection.bit_shifter>=8) { |
| 85 | card_protection.cartridge_byte=m_cart_rom[card_protection.address++]; |
| 86 | card_protection.bit_shifter=0; |
| 87 | } |
| 88 | break; |
| 81 | 89 | } |
| 90 | } |
| 91 | READ8_MEMBER( gamate_state::gamate_cart_protection_r ) |
| 92 | { |
| 93 | UINT8 ret=1; |
| 94 | switch (offset) { |
| 95 | case 0: |
| 96 | ret=(card_protection.cartridge_byte&0x80)?2:0; |
| 97 | card_protection.cartridge_byte<<=1; |
| 98 | card_protection.bit_shifter++; |
| 99 | if (card_protection.bit_shifter>=8) { |
| 100 | card_protection.bit_shifter=0; |
| 101 | card_protection.cartridge_byte=m_cart_rom[card_protection.address++]; |
| 102 | card_protection.unprotected=true; |
| 103 | if (!card_protection.failed) { |
| 104 | } // now protection chip on cartridge activates cartridge chip select on cpu accesses |
| 105 | } |
| 106 | break; |
| 82 | 107 | } |
| 108 | return ret; |
| 83 | 109 | } |
| 84 | 110 | |
| 85 | | READ8_MEMBER( gamate_state::video_r ) |
| 111 | READ8_MEMBER( gamate_state::protection_r ) { return 1; } |
| 112 | |
| 113 | WRITE8_MEMBER( gamate_state::gamate_video_w ) |
| 86 | 114 | { |
| 87 | | if (offset!=6) return 0; |
| 88 | | UINT8 data=0; |
| 89 | | if (video.bitmap.write) { |
| 90 | | if (video.x<ARRAY_LENGTH(video.bitmap.data[0][0]) /*&& video.y<ARRAY_LENGTH(video.bitmap.data[0])*/) |
| 91 | | data=video.bitmap.data[video.bitmap.page2][video.y][video.x]; |
| 92 | | else |
| 93 | | logerror("%.6f video bitmap x %x invalid\n",machine().time().as_double(),video.x); |
| 94 | | } else { |
| 95 | | if (video.x<ARRAY_LENGTH(video.tilemap.data[0]) && video.y<ARRAY_LENGTH(video.tilemap.data)) |
| 96 | | data=video.tilemap.data[video.y][video.x]; |
| 97 | | else |
| 98 | | logerror("%.6f video tilemap %x %x invalid\n",machine().time().as_double(),video.x, video.y); |
| 99 | | } |
| 100 | | if (m_maincpu->pc()<0xf000) |
| 101 | | logerror("%.6f video read %04x %02x\n",machine().time().as_double(),offset, data); |
| 102 | | return data; |
| 115 | video.reg[offset]=data; |
| 116 | switch (offset) { |
| 117 | case 1: video.bitmap.write=data&0xc0; // more addressing mode |
| 118 | video.y_increment=data&0x40; |
| 119 | break; |
| 120 | case 2: video.bitmap.xpos=data;break; // at least 7 bits |
| 121 | case 3: video.bitmap.ypos=data;break; // at least 7 bits |
| 122 | case 4: video.bitmap.page2=data&0x80;video.x=data&0x7f;break; |
| 123 | case 5: video.y=data;break; |
| 124 | case 7: |
| 125 | if (video.bitmap.write) { |
| 126 | if (video.x<ARRAY_LENGTH(video.bitmap.data[0][0]) && video.y<ARRAY_LENGTH(video.bitmap.data[0])) |
| 127 | video.bitmap.data[video.bitmap.page2][video.y][video.x]=data; |
| 128 | else |
| 129 | logerror("%.6f %04x video bitmap x %x invalid\n",machine().time().as_double(), m_maincpu->pc(), video.x); |
| 130 | } else { |
| 131 | video.bitmap.data[0][video.y][video.x&(ARRAY_LENGTH(video.bitmap.data[0][0])-1)]=data; |
| 132 | } |
| 133 | if (video.y_increment) video.y++; |
| 134 | else video.x++; |
| 135 | } |
| 103 | 136 | } |
| 104 | 137 | |
| 105 | | WRITE8_MEMBER( gamate_state::audio_w ) |
| 138 | READ8_MEMBER( gamate_state::gamate_video_r ) |
| 106 | 139 | { |
| 107 | | // logerror("%.6f audio write %04x %02x\n",timer_get_time(),offset,data); |
| 140 | if (offset!=6) return 0; |
| 141 | UINT8 data=0; |
| 142 | if (video.bitmap.write) { |
| 143 | if (video.x<ARRAY_LENGTH(video.bitmap.data[0][0]) && video.y<ARRAY_LENGTH(video.bitmap.data[0])) |
| 144 | data=video.bitmap.data[video.bitmap.page2][video.y][video.x]; |
| 145 | else |
| 146 | logerror("%.6f video bitmap x %x invalid\n",machine().time().as_double(),video.x); |
| 147 | } else { |
| 148 | data=video.bitmap.data[0][video.y][video.x&(ARRAY_LENGTH(video.bitmap.data[0][0])-1)]; |
| 149 | } |
| 150 | if (m_maincpu->pc()<0xf000) |
| 151 | logerror("%.6f video read %04x %02x\n",machine().time().as_double(),offset, data); |
| 152 | return data; |
| 108 | 153 | } |
| 109 | 154 | |
| 110 | | WRITE8_MEMBER( gamate_state::bios_w ) |
| 155 | WRITE8_MEMBER( gamate_state::gamate_audio_w ) |
| 111 | 156 | { |
| 112 | | UINT8 *memory = memregion("maincpu")->base(); //memory_region (REGION_CPU1); |
| 157 | logerror("%.6f %04x audio write %04x %02x\n",machine().time().as_double(),m_maincpu->pc(),offset,data); |
| 158 | } |
| 113 | 159 | |
| 114 | | unsigned short stack=m_maincpu->sp();//cpu_get_reg(M6502_S)|0x100; |
| 115 | | unsigned short address= memory[stack+1]|(memory[stack+2]<<8); |
| 116 | | switch (offset) { |
| 117 | | case 0x12: |
| 118 | | logerror("%.6f bios api %04x %04x string:%04x x:%02x y:%02x\n", |
| 119 | | machine().time().as_double(), offset|0xf000, address, |
| 120 | | memory[0]|(memory[1]<<8), 0, 0);//cpu_get_reg(M6502_X), cpu_get_reg(M6502_Y) ); |
| 121 | | break; |
| 122 | | case 0x15: |
| 123 | | logerror("%.6f bios api %04x %04x string:%04x x:%02x y:%02x\n", |
| 124 | | machine().time().as_double(), offset|0xf000, address, |
| 125 | | memory[0]|(memory[1]<<8), 0, 0); //cpu_get_reg(M6502_X), cpu_get_reg(M6502_Y) ); |
| 126 | | break; |
| 127 | | case 0x18: |
| 128 | | logerror("%.6f bios api %04x %04x string:%04x\n",machine().time().as_double(), offset|0xf000, address, |
| 129 | | memory[0]|(memory[1]<<8) ); |
| 130 | | break; |
| 131 | | case 0x1b: |
| 132 | | logerror("%.6f bios api %04x %04x string:%04x\n",machine().time().as_double(), offset|0xf000, address, |
| 133 | | memory[0]|(memory[1]<<8) ); |
| 134 | | break; |
| 135 | | case 0x1e: |
| 136 | | logerror("%.6f bios api %04x %04x string:%04x\n",machine().time().as_double(), offset|0xf000, address, |
| 137 | | memory[0]|(memory[1]<<8) ); |
| 138 | | break; |
| 139 | | case 0x2a: // cube up menu lighting |
| 140 | | logerror("%.6f bios api %04x %04x 1c1d:%04x a:%02x x:%02x y:%02x\n", |
| 141 | | machine().time().as_double(), offset|0xf000, address, |
| 142 | | memory[0x1c]|(memory[0x1d]<<8), |
| 143 | | 0,0,0);//cpu_get_reg(M6502_A), cpu_get_reg(M6502_X), cpu_get_reg(M6502_Y) ); |
| 144 | | break; |
| 145 | | default: |
| 146 | | logerror("%.6f bios api %04x %04x\n",machine().time().as_double(), offset|0xf000, address); |
| 147 | | } |
| 160 | READ8_MEMBER( gamate_state::gamate_audio_r ) |
| 161 | { |
| 162 | logerror("%.6f %04x audio read %04x \n",machine().time().as_double(),m_maincpu->pc(),offset); |
| 163 | return 0; |
| 148 | 164 | } |
| 149 | 165 | |
| 150 | | READ8_MEMBER( gamate_state::pad_r ) |
| 166 | |
| 167 | READ8_MEMBER( gamate_state::gamate_pad_r ) |
| 151 | 168 | { |
| 152 | | UINT8 data=m_io_joy->read();//readinputport(0); |
| 153 | | // logerror("%.6f pad read %04x %02x\n",timer_get_time(),offset,data); |
| 154 | | return data; |
| 169 | UINT8 data=m_io_joy->read(); |
| 170 | return data; |
| 155 | 171 | } |
| 156 | 172 | |
| 157 | 173 | static ADDRESS_MAP_START( gamate_mem, AS_PROGRAM, 8, gamate_state ) |
| 158 | | // AM_RANGE(0x4000, 0x7fff) AM_READWRITE(gmaster_io_r, gmaster_io_w) |
| 174 | AM_RANGE(0x0000, 0x03ff) AM_RAM |
| 175 | AM_RANGE(0x4000, 0x400d) AM_READWRITE(gamate_audio_r, gamate_audio_w) |
| 176 | AM_RANGE(0x4400, 0x4400) AM_READ(gamate_pad_r) |
| 177 | AM_RANGE(0x5000, 0x5007) AM_READWRITE(gamate_video_r, gamate_video_w) |
| 178 | AM_RANGE(0x5a00, 0x5a00) AM_READ(protection_r) |
| 159 | 179 | |
| 160 | | AM_RANGE(0x0000, 0x03ff) AM_RAM |
| 161 | | AM_RANGE(0x4000, 0x400d) AM_WRITE(audio_w) |
| 162 | | AM_RANGE(0x4400, 0x4400) AM_READ(pad_r) |
| 163 | | // AM_RANGE(0x5006, 0x5006) AM_READ(video_r) |
| 164 | | // AM_RANGE(0x5000, 0x5007) AM_WRITE(video_w) |
| 165 | | AM_RANGE(0x5000, 0x5007) AM_READWRITE(video_r, video_w) |
| 166 | | |
| 167 | | AM_RANGE(0x6000, 0xdfff) AM_ROM |
| 168 | | AM_RANGE(0xf000, 0xffff) AM_ROM |
| 180 | AM_RANGE(0x6000, 0xdfff) AM_ROM AM_SHARE("cart_rom") |
| 181 | AM_RANGE(0x6000, 0x6002) AM_READWRITE(gamate_cart_protection_r, gamate_cart_protection_w) |
| 182 | // AM_RANGE(0x6000, 0xdfff) AM_READWRITE(gamate_cart_r, gamate_cart_w) |
| 183 | AM_RANGE(0xf000, 0xffff) AM_ROM AM_SHARE("bios") |
| 169 | 184 | ADDRESS_MAP_END |
| 170 | 185 | |
| 171 | 186 | |
| r242209 | r242210 | |
| 173 | 188 | PORT_START("JOY") |
| 174 | 189 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP) |
| 175 | 190 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) |
| 176 | | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) // left? |
| 177 | | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) // rechts? |
| 191 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) |
| 192 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) |
| 178 | 193 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1) PORT_NAME("A") |
| 179 | 194 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2) PORT_NAME("B") |
| 180 | 195 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START) PORT_NAME("start/pause") |
| 181 | 196 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_SELECT) PORT_NAME("select") |
| 182 | 197 | INPUT_PORTS_END |
| 183 | 198 | |
| 184 | | #if 0 |
| 185 | 199 | static const struct gfx_layout gamate_charlayout = |
| 186 | 200 | { |
| 187 | | 4, /* width of object */ |
| 188 | | 1, /* height of object */ |
| 189 | | 256,/* 256 characters */ |
| 190 | | 2, /* bits per pixel */ |
| 191 | | { 0,1 }, /* no bitplanes */ |
| 192 | | /* x offsets */ |
| 193 | | { 0,2,4,6 }, |
| 194 | | /* y offsets */ |
| 195 | | { 0 }, |
| 196 | | 8*1 /* size of 1 object in bits */ |
| 201 | 4, /* width of object */ |
| 202 | 1, /* height of object */ |
| 203 | 256,/* 256 characters */ |
| 204 | 2, /* bits per pixel */ |
| 205 | { 0,1 }, /* no bitplanes */ |
| 206 | /* x offsets */ |
| 207 | { 0,2,4,6 }, |
| 208 | /* y offsets */ |
| 209 | { 0 }, |
| 210 | 8*1 /* size of 1 object in bits */ |
| 197 | 211 | }; |
| 198 | 212 | |
| 199 | 213 | static const unsigned short gamate_palette[4] = |
| 200 | 214 | { |
| 201 | 215 | 0,1,2,3 |
| 202 | 216 | }; |
| 203 | | #endif |
| 204 | 217 | |
| 205 | 218 | /* palette in red, green, blue tribles */ |
| 206 | 219 | static const unsigned char gamate_colors[4][3] = |
| 207 | 220 | { |
| 208 | | { 255,255,255 }, |
| 209 | | { 0xa0, 0xa0, 0xa0 }, |
| 210 | | { 0x60, 0x60, 0x60 }, |
| 211 | | { 0, 0, 0 } |
| 221 | { 255,255,255 }, |
| 222 | { 0xa0, 0xa0, 0xa0 }, |
| 223 | { 0x60, 0x60, 0x60 }, |
| 224 | { 0, 0, 0 } |
| 212 | 225 | }; |
| 213 | 226 | |
| 214 | | #if 0 |
| 215 | 227 | static GFXDECODE_START( gamate_charlayout ) |
| 216 | | GFXDECODE_ENTRY( "gfx1", 0x0000, gamate_charlayout, 0, 0x100 ) |
| 228 | GFXDECODE_ENTRY( "gfx1", 0x0000, gamate_charlayout, 0, 0x100 ) |
| 217 | 229 | GFXDECODE_END |
| 218 | | #endif |
| 219 | 230 | |
| 220 | 231 | PALETTE_INIT_MEMBER(gamate_state, gamate) |
| 221 | 232 | { |
| r242209 | r242210 | |
| 245 | 256 | |
| 246 | 257 | UINT32 gamate_state::screen_update_gamate(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect) |
| 247 | 258 | { |
| 248 | | int x, y, j; |
| 249 | | for (y=0;y<160;y++) { |
| 250 | | for (x=0, j=0;x<160;x+=8, j++) { |
| 251 | | // for (y=0;y<256;y++) { |
| 252 | | // for (x=0, j=0;x<256;x+=8, j++) { |
| 253 | | UINT8 d1=video.bitmap.data[0][y][j]; |
| 254 | | UINT8 d2=video.bitmap.data[1][y][j]; |
| 255 | | #if 0 |
| 256 | | UINT16 data=PLANES2_2_PACKED(d1, d2); |
| 257 | | m_gfxdecode->gfx(0)->opaque(bitmap, bitmap.cliprect(), (data>>8)&0xff,0,0,0, x, y); |
| 258 | | m_gfxdecode->gfx(0)->opaque(bitmap, bitmap.cliprect(), data&0xff,0,0,0, x+4, y); |
| 259 | | #else |
| 259 | int x, y, j; |
| 260 | for (y=0;y<160;y++) { |
| 261 | for (x=0, j=0;x<160;x+=8, j++) { |
| 262 | // UINT8 d1=video.bitmap.data[0][(y+video.bitmap.ypos)&0xff][j+video.bitmap.xpos/8]; |
| 263 | // UINT8 d2=video.bitmap.data[1][(y+video.bitmap.ypos)&0xff][j+video.bitmap.xpos/8]; |
| 264 | UINT8 d1=video.bitmap.data[0][(y+video.bitmap.ypos)%200][j]; // kill shot, tornade |
| 265 | UINT8 d2=video.bitmap.data[1][(y+video.bitmap.ypos)%200][j]; |
| 260 | 266 | BlitPlane(&bitmap.pix16(y, x+4), d1, d2); |
| 261 | 267 | BlitPlane(&bitmap.pix16(y, x), d1>>4, d2>>4); |
| 262 | | #endif |
| 263 | | } |
| 264 | | } |
| 265 | | for (y=0; y<32; y++) { |
| 266 | | for (x=0; x<32; x++) { |
| 267 | | #if 0 |
| 268 | | UINT8 d=video.tilemap.data[y][x]; |
| 269 | | if (d) { |
| 270 | | m_gfxdecode->gfx(0)->opaque(bitmap, bitmap.cliprect(), 0xff,0,0,0, 256+x*8, y*8); |
| 271 | | m_gfxdecode->gfx(0)->opaque(bitmap, bitmap.cliprect(), 0xff,0,0,0, 256+x*8, y*8+1); |
| 272 | | m_gfxdecode->gfx(0)->opaque(bitmap, bitmap.cliprect(), 0xff,0,0,0, 256+x*8, y*8+2); |
| 273 | | m_gfxdecode->gfx(0)->opaque(bitmap, bitmap.cliprect(), 0xff,0,0,0, 256+x*8, y*8+3); |
| 274 | | m_gfxdecode->gfx(0)->opaque(bitmap, bitmap.cliprect(), 0xff,0,0,0, 256+x*8, y*8+4); |
| 275 | | m_gfxdecode->gfx(0)->opaque(bitmap, bitmap.cliprect(), 0xff,0,0,0, 256+x*8, y*8+5); |
| 276 | | m_gfxdecode->gfx(0)->opaque(bitmap, bitmap.cliprect(), 0xff,0,0,0, 256+x*8, y*8+6); |
| 277 | | m_gfxdecode->gfx(0)->opaque(bitmap, bitmap.cliprect(), 0xff,0,0,0, 256+x*8, y*8+7); |
| 278 | | m_gfxdecode->gfx(0)->opaque(bitmap, bitmap.cliprect(), 0xff,0,0,0, 260+x*8, y*8); |
| 279 | | m_gfxdecode->gfx(0)->opaque(bitmap, bitmap.cliprect(), 0xff,0,0,0, 260+x*8, y*8+1); |
| 280 | | m_gfxdecode->gfx(0)->opaque(bitmap, bitmap.cliprect(), 0xff,0,0,0, 260+x*8, y*8+2); |
| 281 | | m_gfxdecode->gfx(0)->opaque(bitmap, bitmap.cliprect(), 0xff,0,0,0, 260+x*8, y*8+3); |
| 282 | | m_gfxdecode->gfx(0)->opaque(bitmap, bitmap.cliprect(), 0xff,0,0,0, 260+x*8, y*8+4); |
| 283 | | m_gfxdecode->gfx(0)->opaque(bitmap, bitmap.cliprect(), 0xff,0,0,0, 260+x*8, y*8+5); |
| 284 | | m_gfxdecode->gfx(0)->opaque(bitmap, bitmap.cliprect(), 0xff,0,0,0, 260+x*8, y*8+6); |
| 285 | | m_gfxdecode->gfx(0)->opaque(bitmap, bitmap.cliprect(), 0xff,0,0,0, 260+x*8, y*8+7); |
| 286 | | } else { |
| 287 | | m_gfxdecode->gfx(0)->opaque(bitmap, bitmap.cliprect(), 0,0,0,0, 256+x*8, y*8); |
| 288 | | m_gfxdecode->gfx(0)->opaque(bitmap, bitmap.cliprect(), 0,0,0,0, 256+x*8, y*8+1); |
| 289 | | m_gfxdecode->gfx(0)->opaque(bitmap, bitmap.cliprect(), 0,0,0,0, 256+x*8, y*8+2); |
| 290 | | m_gfxdecode->gfx(0)->opaque(bitmap, bitmap.cliprect(), 0,0,0,0, 256+x*8, y*8+3); |
| 291 | | m_gfxdecode->gfx(0)->opaque(bitmap, bitmap.cliprect(), 0,0,0,0, 256+x*8, y*8+4); |
| 292 | | m_gfxdecode->gfx(0)->opaque(bitmap, bitmap.cliprect(), 0,0,0,0, 256+x*8, y*8+5); |
| 293 | | m_gfxdecode->gfx(0)->opaque(bitmap, bitmap.cliprect(), 0,0,0,0, 256+x*8, y*8+6); |
| 294 | | m_gfxdecode->gfx(0)->opaque(bitmap, bitmap.cliprect(), 0,0,0,0, 256+x*8, y*8+7); |
| 295 | | m_gfxdecode->gfx(0)->opaque(bitmap, bitmap.cliprect(), 0,0,0,0, 260+x*8, y*8); |
| 296 | | m_gfxdecode->gfx(0)->opaque(bitmap, bitmap.cliprect(), 0,0,0,0, 260+x*8, y*8+1); |
| 297 | | m_gfxdecode->gfx(0)->opaque(bitmap, bitmap.cliprect(), 0,0,0,0, 260+x*8, y*8+2); |
| 298 | | m_gfxdecode->gfx(0)->opaque(bitmap, bitmap.cliprect(), 0,0,0,0, 260+x*8, y*8+3); |
| 299 | | m_gfxdecode->gfx(0)->opaque(bitmap, bitmap.cliprect(), 0,0,0,0, 260+x*8, y*8+4); |
| 300 | | m_gfxdecode->gfx(0)->opaque(bitmap, bitmap.cliprect(), 0,0,0,0, 260+x*8, y*8+5); |
| 301 | | m_gfxdecode->gfx(0)->opaque(bitmap, bitmap.cliprect(), 0,0,0,0, 260+x*8, y*8+6); |
| 302 | | m_gfxdecode->gfx(0)->opaque(bitmap, bitmap.cliprect(), 0,0,0,0, 260+x*8, y*8+7); |
| 303 | | } |
| 304 | | #endif |
| 305 | | } |
| 306 | | } |
| 268 | } |
| 269 | } |
| 307 | 270 | return 0; |
| 308 | 271 | } |
| 309 | 272 | |
| 310 | 273 | DRIVER_INIT_MEMBER(gamate_state,gamate) |
| 311 | 274 | { |
| 312 | 275 | memset(&video, 0, sizeof(video));/* memset(m_ram, 0, sizeof(m_ram));*/ |
| 313 | | UINT8 *gfx=memregion("gfx1")->base(); for (int i=0; i<256; i++) gfx[i]=i; |
| 276 | UINT8 *gfx=memregion("gfx1")->base(); for (int i=0; i<256; i++) gfx[i]=i; |
| 277 | timer1 = machine().scheduler().timer_alloc(timer_expired_delegate(FUNC(gamate_state::gamate_timer),this)); |
| 278 | timer2 = machine().scheduler().timer_alloc(timer_expired_delegate(FUNC(gamate_state::gamate_timer2),this)); |
| 314 | 279 | } |
| 315 | 280 | |
| 316 | 281 | |
| 317 | 282 | void gamate_state::machine_start() |
| 318 | 283 | { |
| 319 | | if (m_cart->exists()) |
| 284 | if (m_cart->exists()) { |
| 320 | 285 | m_maincpu->space(AS_PROGRAM).install_read_handler(0x6000, 0xdfff, read8_delegate(FUNC(generic_slot_device::read_rom),(generic_slot_device*)m_cart)); |
| 286 | // m_maincpu->space(AS_PROGRAM).install_read_handler(0x6000, 0x6000, READ8_DELEGATE(gamate_state, gamate_cart_protection_r)); |
| 287 | } |
| 288 | m_bios[0xdf1]=0xea; m_bios[0xdf2]=0xea; // $47 protection readback |
| 289 | card_protection.address=0x6005-0x6001; |
| 290 | card_protection.bit_shifter=0; |
| 291 | card_protection.cartridge_byte=m_cart_rom[card_protection.address++]; |
| 292 | card_protection.failed=false; |
| 293 | card_protection.unprotected=false; |
| 294 | timer2->enable(TRUE); |
| 295 | timer2->reset(m_maincpu->cycles_to_attotime(1000)); |
| 321 | 296 | #if 0 |
| 322 | 297 | save_item(NAME(m_video.data)); |
| 323 | 298 | save_item(NAME(m_video.index)); |
| r242209 | r242210 | |
| 331 | 306 | #endif |
| 332 | 307 | } |
| 333 | 308 | |
| 309 | TIMER_CALLBACK_MEMBER(gamate_state::gamate_timer) |
| 310 | { |
| 311 | m_maincpu->set_input_line(M6502_IRQ_LINE, CLEAR_LINE); |
| 312 | timer1->enable(FALSE); |
| 313 | } |
| 334 | 314 | |
| 315 | TIMER_CALLBACK_MEMBER(gamate_state::gamate_timer2) |
| 316 | { |
| 317 | m_maincpu->set_input_line(M6502_IRQ_LINE, ASSERT_LINE); |
| 318 | timer1->enable(TRUE); |
| 319 | timer1->reset(m_maincpu->cycles_to_attotime(10/* cycles short enought to clear irq line early enough*/)); |
| 320 | timer2->enable(TRUE); |
| 321 | timer2->reset(m_maincpu->cycles_to_attotime(40000)); |
| 322 | } |
| 323 | |
| 324 | |
| 335 | 325 | INTERRUPT_GEN_MEMBER(gamate_state::gamate_interrupt) |
| 336 | 326 | { |
| 337 | | // m_maincpu->set_input_line(UPD7810_INTFE1, ASSERT_LINE); |
| 338 | | static bool state=false; |
| 339 | | // m_maincpu->set_input_line(M6502_IRQ_LINE, state?ASSERT_LINE: CLEAR_LINE); |
| 340 | | state=!state; |
| 341 | | // cpu_set_irq_line(0, M6502_INT_IRQ, PULSE_LINE); |
| 342 | 327 | } |
| 343 | 328 | |
| 344 | 329 | static MACHINE_CONFIG_START( gamate, gamate_state ) |
| r242209 | r242210 | |
| 348 | 333 | |
| 349 | 334 | MCFG_SCREEN_ADD("screen", LCD) |
| 350 | 335 | MCFG_SCREEN_REFRESH_RATE(60) |
| 351 | | #if 0 |
| 352 | | MCFG_SCREEN_SIZE(512, 256) |
| 353 | | MCFG_SCREEN_VISIBLE_AREA(0, 512-1, 0, 256-1) |
| 336 | #ifdef SHOW_TILEMAP |
| 337 | MCFG_SCREEN_SIZE(256, 152+256) |
| 338 | MCFG_SCREEN_VISIBLE_AREA(0, 256-1, 0, 152+256-1) |
| 354 | 339 | #else |
| 355 | | MCFG_SCREEN_SIZE(160, 160) |
| 356 | | MCFG_SCREEN_VISIBLE_AREA(0, 160-1, 0, 160-1) |
| 340 | MCFG_SCREEN_SIZE(160, 152) |
| 341 | MCFG_SCREEN_VISIBLE_AREA(0, 160-1, 0, 152-1) |
| 357 | 342 | #endif |
| 358 | 343 | MCFG_SCREEN_UPDATE_DRIVER(gamate_state, screen_update_gamate) |
| 359 | 344 | MCFG_SCREEN_PALETTE("palette") |
| 360 | 345 | |
| 361 | | // MCFG_GFXDECODE_ADD("gfxdecode", "palette", gamate ) |
| 346 | // MCFG_GFXDECODE_ADD("gfxdecode", "palette", gamate ) |
| 362 | 347 | MCFG_PALETTE_ADD("palette", ARRAY_LENGTH(gamate_colors)) |
| 363 | | // MCFG_PALETTE_INDIRECT_ENTRIES(4) |
| 348 | // MCFG_PALETTE_INDIRECT_ENTRIES(4) |
| 364 | 349 | MCFG_PALETTE_INIT_OWNER(gamate_state, gamate) |
| 365 | 350 | MCFG_DEFAULT_LAYOUT(layout_lcd) |
| 366 | 351 | |
| 367 | 352 | MCFG_GENERIC_CARTSLOT_ADD("cartslot", generic_linear_slot, "gamate_cart") |
| 368 | 353 | MCFG_GENERIC_MANDATORY |
| 369 | 354 | |
| 370 | | MCFG_SOFTWARE_LIST_ADD("cart_list", "gamate") |
| 355 | MCFG_SOFTWARE_LIST_ADD("cart_list","gamate") |
| 371 | 356 | MACHINE_CONFIG_END |
| 372 | 357 | |
| 373 | 358 | |
| 374 | 359 | ROM_START(gamate) |
| 375 | 360 | ROM_REGION(0x10000,"maincpu", 0) |
| 376 | | ROM_LOAD("gamate.bin", 0xf000, 0x1000, BAD_DUMP CRC(b8bf539b) SHA1(d00cb43b8a4cb0cc7fea06bee5f08490a71f5690) ) |
| 377 | | // ROM_LOAD("gamate.bin", 0xf000, 0x1000, CRC(b8bf539b) SHA1(d00cb43b8a4cb0cc7fea06bee5f08490a71f5690) ) |
| 378 | | ROM_REGION(0x100,"gfx1", ROMREGION_ERASEFF) |
| 361 | ROM_LOAD("gamate_bios_umc.bin", 0xf000, 0x1000, CRC(07090415) SHA1(ea449dc607601f9a68d855ad6ab53800d2e99297) ) |
| 362 | ROM_REGION(0x100,"gfx1", ROMREGION_ERASEFF) |
| 379 | 363 | ROM_END |
| 380 | 364 | |
| 381 | 365 | |
| 382 | 366 | /* YEAR NAME PARENT COMPAT MACHINE INPUT CLASS INIT COMPANY FULLNAME */ |
| 383 | | CONS( 19??, gamate, 0, 0, gamate, gamate, gamate_state, gamate, "Bit Corp", "Gamate", GAME_NOT_WORKING | GAME_NO_SOUND) |
| 367 | CONS( 19??, gamate, 0, 0, gamate, gamate, gamate_state, gamate, "Bit Corp", "Gamate", GAME_NO_SOUND) |
| 368 | |
| 369 | |
trunk/src/mess/drivers/starwbc.c
| r242209 | r242210 | |
| 2 | 2 | // copyright-holders:hap |
| 3 | 3 | /*************************************************************************** |
| 4 | 4 | |
| 5 | | Kenner Star Wars: Electronic Battle Command Game |
| 6 | | * TMS1100 MCU, marked MP3438A |
| 5 | Kenner Star Wars - Electronic Battle Command |
| 6 | * TMS1100 MCU, labeled MP3438A |
| 7 | |
| 8 | This is a small tabletop space-dogfighting game. To start the game, |
| 9 | press BASIC/INTER/ADV and enter P#(number of players), then |
| 10 | START TURN. Refer to the official manual for more information. |
| 7 | 11 | |
| 8 | 12 | |
| 9 | 13 | ***************************************************************************/ |
| 10 | 14 | |
| 11 | 15 | #include "emu.h" |
| 12 | 16 | #include "cpu/tms0980/tms0980.h" |
| 17 | #include "sound/speaker.h" |
| 13 | 18 | |
| 14 | 19 | #include "starwbc.lh" |
| 15 | 20 | |
| 16 | 21 | |
| 22 | // master clock is unknown, the value below is an approximation |
| 23 | // (patent says R=51K, C=47pf, but then it sounds too low pitched) |
| 24 | #define MASTER_CLOCK (350000) |
| 25 | |
| 26 | |
| 17 | 27 | class starwbc_state : public driver_device |
| 18 | 28 | { |
| 19 | 29 | public: |
| 20 | 30 | starwbc_state(const machine_config &mconfig, device_type type, const char *tag) |
| 21 | 31 | : driver_device(mconfig, type, tag), |
| 22 | | m_maincpu(*this, "maincpu") |
| 32 | m_maincpu(*this, "maincpu"), |
| 33 | m_button_matrix(*this, "IN"), |
| 34 | m_speaker(*this, "speaker") |
| 23 | 35 | { } |
| 24 | 36 | |
| 25 | 37 | required_device<cpu_device> m_maincpu; |
| 38 | required_ioport_array<5> m_button_matrix; |
| 39 | required_device<speaker_sound_device> m_speaker; |
| 26 | 40 | |
| 27 | 41 | UINT16 m_r; |
| 28 | 42 | UINT16 m_o; |
| 29 | 43 | |
| 44 | UINT16 m_leds_state[0x10]; |
| 45 | UINT16 m_leds_cache[0x10]; |
| 46 | UINT8 m_leds_decay[0x100]; |
| 47 | |
| 30 | 48 | DECLARE_READ8_MEMBER(read_k); |
| 31 | 49 | DECLARE_WRITE16_MEMBER(write_o); |
| 32 | 50 | DECLARE_WRITE16_MEMBER(write_r); |
| 51 | |
| 52 | TIMER_DEVICE_CALLBACK_MEMBER(leds_decay_tick); |
| 53 | void leds_update(); |
| 54 | void prepare_and_update(); |
| 33 | 55 | |
| 34 | 56 | virtual void machine_start(); |
| 35 | 57 | }; |
| r242209 | r242210 | |
| 38 | 60 | |
| 39 | 61 | /*************************************************************************** |
| 40 | 62 | |
| 63 | LEDs |
| 64 | |
| 65 | ***************************************************************************/ |
| 66 | |
| 67 | // The device strobes the outputs very fast, it is unnoticeable to the user. |
| 68 | // To prevent flickering here, we need to simulate a decay. |
| 69 | |
| 70 | // decay time, in steps of 10ms |
| 71 | #define LEDS_DECAY_TIME 4 |
| 72 | |
| 73 | void starwbc_state::leds_update() |
| 74 | { |
| 75 | UINT16 active_state[0x10]; |
| 76 | |
| 77 | for (int i = 0; i < 0x10; i++) |
| 78 | { |
| 79 | active_state[i] = 0; |
| 80 | |
| 81 | for (int j = 0; j < 0x10; j++) |
| 82 | { |
| 83 | int di = j << 4 | i; |
| 84 | |
| 85 | // turn on powered leds |
| 86 | if (m_leds_state[i] >> j & 1) |
| 87 | m_leds_decay[di] = LEDS_DECAY_TIME; |
| 88 | |
| 89 | // determine active state |
| 90 | int ds = (m_leds_decay[di] != 0) ? 1 : 0; |
| 91 | active_state[i] |= (ds << j); |
| 92 | } |
| 93 | } |
| 94 | |
| 95 | // on difference, send to output |
| 96 | for (int i = 0; i < 0x10; i++) |
| 97 | if (m_leds_cache[i] != active_state[i]) |
| 98 | { |
| 99 | output_set_digit_value(i, active_state[i]); |
| 100 | |
| 101 | for (int j = 0; j < 8; j++) |
| 102 | output_set_lamp_value(i*10 + j, active_state[i] >> j & 1); |
| 103 | } |
| 104 | |
| 105 | memcpy(m_leds_cache, active_state, sizeof(m_leds_cache)); |
| 106 | } |
| 107 | |
| 108 | TIMER_DEVICE_CALLBACK_MEMBER(starwbc_state::leds_decay_tick) |
| 109 | { |
| 110 | // slowly turn off unpowered leds |
| 111 | for (int i = 0; i < 0x100; i++) |
| 112 | if (!(m_leds_state[i & 0xf] >> (i>>4) & 1) && m_leds_decay[i]) |
| 113 | m_leds_decay[i]--; |
| 114 | |
| 115 | leds_update(); |
| 116 | } |
| 117 | |
| 118 | void starwbc_state::prepare_and_update() |
| 119 | { |
| 120 | UINT8 o = (m_o << 4 & 0xf0) | (m_o >> 4 & 0x0f); |
| 121 | const UINT8 mask[5] = { 0x30, 0xff, 0xff, 0x7f, 0x7f }; |
| 122 | |
| 123 | // R0,R2,R4,R6,R8 |
| 124 | for (int i = 0; i < 5; i++) |
| 125 | m_leds_state[i*2] = (m_r >> (i*2) & 1) ? (o & mask[i]) : 0; |
| 126 | |
| 127 | leds_update(); |
| 128 | } |
| 129 | |
| 130 | |
| 131 | |
| 132 | /*************************************************************************** |
| 133 | |
| 41 | 134 | I/O |
| 42 | 135 | |
| 43 | 136 | ***************************************************************************/ |
| 44 | 137 | |
| 45 | 138 | READ8_MEMBER(starwbc_state::read_k) |
| 46 | 139 | { |
| 47 | | return 0; |
| 140 | UINT8 k = 0; |
| 141 | |
| 142 | // read selected button rows |
| 143 | for (int i = 0; i < 5; i++) |
| 144 | { |
| 145 | const int r[5] = { 0, 1, 3, 5, 7 }; |
| 146 | if (m_r >> r[i] & 1) |
| 147 | k |= m_button_matrix[i]->read(); |
| 148 | } |
| 149 | |
| 150 | return k; |
| 48 | 151 | } |
| 49 | 152 | |
| 50 | 153 | WRITE16_MEMBER(starwbc_state::write_r) |
| 51 | 154 | { |
| 155 | // R0,R2,R4: select lamp row |
| 156 | // R6,R8: select digit |
| 157 | // R0,R1,R3,R5,R7: input mux |
| 158 | // R9: piezo speaker |
| 159 | m_speaker->level_w(data >> 9 & 1); |
| 160 | |
| 52 | 161 | m_r = data; |
| 162 | prepare_and_update(); |
| 53 | 163 | } |
| 54 | 164 | |
| 55 | 165 | WRITE16_MEMBER(starwbc_state::write_o) |
| 56 | 166 | { |
| 167 | // O0-O7: leds state |
| 57 | 168 | m_o = data; |
| 169 | prepare_and_update(); |
| 58 | 170 | } |
| 59 | 171 | |
| 60 | 172 | |
| r242209 | r242210 | |
| 65 | 177 | |
| 66 | 178 | ***************************************************************************/ |
| 67 | 179 | |
| 180 | /* physical button layout and labels is like this: |
| 181 | |
| 182 | (reconnnaissance=yellow) (tactical reaction=green) |
| 183 | [MAGNA] [ENEMY] [EM] [BS] [SCR] |
| 184 | |
| 185 | [BASIC] [INTER] [START TURN] [END TURN] [MOVE] [FIRE] |
| 186 | [ADV] [P#] [<] [^] [>] [v] |
| 187 | (game=blue) (maneuvers=red) */ |
| 188 | |
| 68 | 189 | static INPUT_PORTS_START( starwbc ) |
| 190 | PORT_START("IN.0") // R0 |
| 191 | PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_CODE(KEYCODE_1) PORT_NAME("Basic Game") |
| 192 | PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_CODE(KEYCODE_2) PORT_NAME("Intermediate Game") |
| 193 | PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_CODE(KEYCODE_3) PORT_NAME("Advanced Game") |
| 194 | PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_CODE(KEYCODE_4) PORT_CODE(KEYCODE_P) PORT_NAME("Player Number") |
| 195 | |
| 196 | PORT_START("IN.1") // R1 |
| 197 | PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_CODE(KEYCODE_ENTER) PORT_NAME("Start Turn") |
| 198 | PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 199 | PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 200 | PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_CODE(KEYCODE_BACKSPACE) PORT_CODE(KEYCODE_DEL) PORT_NAME("End Turn") |
| 201 | |
| 202 | PORT_START("IN.2") // R3 |
| 203 | PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_CODE(KEYCODE_Q) PORT_NAME("Magna Scan") // only used in adv. game |
| 204 | PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_CODE(KEYCODE_W) PORT_NAME("Enemy Scan") // only used in adv. game |
| 205 | PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 206 | PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_CODE(KEYCODE_S) PORT_NAME("Screen Up") |
| 207 | |
| 208 | PORT_START("IN.3") // R5 |
| 209 | PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_CODE(KEYCODE_E) PORT_NAME("Evasive Maneuvers") |
| 210 | PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_CODE(KEYCODE_M) PORT_NAME("Move") |
| 211 | PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_CODE(KEYCODE_F) PORT_NAME("Fire") |
| 212 | PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_CODE(KEYCODE_B) PORT_NAME("Battle Stations") |
| 213 | |
| 214 | PORT_START("IN.4") // R7 |
| 215 | PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_CODE(KEYCODE_LEFT) PORT_NAME("Left") |
| 216 | PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_CODE(KEYCODE_UP) PORT_NAME("Up") |
| 217 | PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_CODE(KEYCODE_DOWN) PORT_NAME("Down") |
| 218 | PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_CODE(KEYCODE_RIGHT) PORT_NAME("Right") |
| 69 | 219 | INPUT_PORTS_END |
| 70 | 220 | |
| 71 | 221 | |
| r242209 | r242210 | |
| 78 | 228 | |
| 79 | 229 | void starwbc_state::machine_start() |
| 80 | 230 | { |
| 231 | memset(m_leds_state, 0, sizeof(m_leds_state)); |
| 232 | memset(m_leds_cache, 0, sizeof(m_leds_cache)); |
| 233 | memset(m_leds_decay, 0, sizeof(m_leds_decay)); |
| 81 | 234 | m_r = 0; |
| 82 | 235 | m_o = 0; |
| 83 | 236 | |
| 237 | save_item(NAME(m_leds_state)); |
| 238 | save_item(NAME(m_leds_cache)); |
| 239 | save_item(NAME(m_leds_decay)); |
| 84 | 240 | save_item(NAME(m_r)); |
| 85 | 241 | save_item(NAME(m_o)); |
| 86 | 242 | } |
| r242209 | r242210 | |
| 89 | 245 | static MACHINE_CONFIG_START( starwbc, starwbc_state ) |
| 90 | 246 | |
| 91 | 247 | /* basic machine hardware */ |
| 92 | | MCFG_CPU_ADD("maincpu", TMS1100, 400000) |
| 248 | MCFG_CPU_ADD("maincpu", TMS1100, MASTER_CLOCK) |
| 93 | 249 | MCFG_TMS1XXX_READ_K_CB(READ8(starwbc_state, read_k)) |
| 94 | 250 | MCFG_TMS1XXX_WRITE_O_CB(WRITE16(starwbc_state, write_o)) |
| 95 | 251 | MCFG_TMS1XXX_WRITE_R_CB(WRITE16(starwbc_state, write_r)) |
| 252 | |
| 253 | MCFG_TIMER_DRIVER_ADD_PERIODIC("leds_decay", starwbc_state, leds_decay_tick, attotime::from_msec(10)) |
| 96 | 254 | |
| 97 | 255 | MCFG_DEFAULT_LAYOUT(layout_starwbc) |
| 98 | 256 | |
| 99 | 257 | /* no video! */ |
| 100 | 258 | |
| 101 | 259 | /* sound hardware */ |
| 102 | | // MCFG_SPEAKER_STANDARD_MONO("mono") |
| 260 | MCFG_SPEAKER_STANDARD_MONO("mono") |
| 261 | MCFG_SOUND_ADD("speaker", SPEAKER_SOUND, 0) |
| 262 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) |
| 103 | 263 | MACHINE_CONFIG_END |
| 104 | 264 | |
| 105 | 265 | |
| r242209 | r242210 | |
| 120 | 280 | ROM_LOAD( "tms1100_starwbc_opla.pla", 0, 365, CRC(d358a76d) SHA1(06b60b207540e9b726439141acadea9aba718013) ) |
| 121 | 281 | ROM_END |
| 122 | 282 | |
| 283 | ROM_START( starwbcp ) |
| 284 | ROM_REGION( 0x0800, "maincpu", 0 ) |
| 285 | ROM_LOAD( "us4270755", 0x0000, 0x0800, BAD_DUMP CRC(fb3332f2) SHA1(a79ac81e239983cd699b7cfcc55f89b203b2c9ec) ) // from patent US4270755, may have errors |
| 123 | 286 | |
| 124 | | CONS( 1979, starwbc, 0, 0, starwbc, starwbc, driver_device, 0, "Kenner", "Star Wars: Electronic Battle Command Game", GAME_NOT_WORKING | GAME_SUPPORTS_SAVE | GAME_NO_SOUND ) |
| 287 | ROM_REGION( 867, "maincpu:mpla", 0 ) |
| 288 | ROM_LOAD( "tms1100_starwbc_mpla.pla", 0, 867, CRC(03574895) SHA1(04407cabfb3adee2ee5e4218612cb06c12c540f4) ) |
| 289 | ROM_REGION( 365, "maincpu:opla", 0 ) |
| 290 | ROM_LOAD( "tms1100_starwbc_opla.pla", 0, 365, CRC(d358a76d) SHA1(06b60b207540e9b726439141acadea9aba718013) ) |
| 291 | ROM_END |
| 292 | |
| 293 | |
| 294 | CONS( 1979, starwbc, 0, 0, starwbc, starwbc, driver_device, 0, "Kenner", "Star Wars - Electronic Battle Command", GAME_SUPPORTS_SAVE ) |
| 295 | CONS( 1979, starwbcp, starwbc, 0, starwbc, starwbc, driver_device, 0, "Kenner", "Star Wars - Electronic Battle Command (prototype)", GAME_SUPPORTS_SAVE ) |