src/mess/drivers/cat.c
| r5026 | r5027 | |
| 1 | 1 | /*************************************************************************** |
| 2 | 2 | |
| 3 | | Canon Cat |
| 3 | Canon Cat driver by Miodrag Milanovic |
| 4 | 4 | |
| 5 | | 12/05/2009 Skeleton driver. |
| 5 | 12/06/2009 Skeleton driver. |
| 6 | 15/06/2009 Working driver |
| 6 | 7 | |
| 7 | 8 | ****************************************************************************/ |
| 8 | 9 | |
| 9 | 10 | #include "driver.h" |
| 10 | 11 | #include "cpu/m68000/m68000.h" |
| 12 | #include "machine/68681.h" |
| 11 | 13 | |
| 12 | | UINT16 *cat_video_ram; |
| 14 | static UINT16 *cat_video_ram; |
| 15 | static UINT16 *cat_sram; |
| 16 | static UINT8 video_enable; |
| 17 | static UINT16 pr_cont; |
| 18 | static UINT8 keyboard_line; |
| 13 | 19 | |
| 20 | static WRITE16_HANDLER( cat_video_status_w ) |
| 21 | { |
| 22 | video_enable = BIT(data,3); |
| 23 | } |
| 24 | |
| 25 | static WRITE16_HANDLER( cat_test_mode_w ) |
| 26 | { |
| 27 | } |
| 28 | |
| 29 | static READ16_HANDLER( cat_modem_r ) |
| 30 | { |
| 31 | return 0; |
| 32 | } |
| 33 | |
| 34 | static WRITE16_HANDLER( cat_modem_w ) |
| 35 | { |
| 36 | } |
| 37 | |
| 38 | static READ16_HANDLER( cat_battery_r ) |
| 39 | { |
| 40 | /* just return that battery is full */ |
| 41 | return 0x7fff; |
| 42 | } |
| 43 | static WRITE16_HANDLER( cat_printer_w ) |
| 44 | { |
| 45 | pr_cont = data; |
| 46 | } |
| 47 | static READ16_HANDLER( cat_floppy_r ) |
| 48 | { |
| 49 | return 0x00; |
| 50 | } |
| 51 | static WRITE16_HANDLER( cat_floppy_w ) |
| 52 | { |
| 53 | } |
| 54 | |
| 55 | static READ16_HANDLER( cat_keyboard_r ) |
| 56 | { |
| 57 | UINT16 retVal = 0; |
| 58 | // Read country code |
| 59 | if (pr_cont == 0x0900) { |
| 60 | retVal = input_port_read(space->machine, "DIPSW1"); |
| 61 | } |
| 62 | // Regular keyboard read |
| 63 | if (pr_cont == 0x0800 || pr_cont == 0x0a00) { |
| 64 | retVal=0xff00; |
| 65 | switch(keyboard_line) { |
| 66 | case 0x01: retVal=input_port_read(space->machine, "LINE0") << 8; break; |
| 67 | case 0x02: retVal=input_port_read(space->machine, "LINE1") << 8; break; |
| 68 | case 0x04: retVal=input_port_read(space->machine, "LINE2") << 8; break; |
| 69 | case 0x08: retVal=input_port_read(space->machine, "LINE3") << 8; break; |
| 70 | case 0x10: retVal=input_port_read(space->machine, "LINE4") << 8; break; |
| 71 | case 0x20: retVal=input_port_read(space->machine, "LINE5") << 8; break; |
| 72 | case 0x40: retVal=input_port_read(space->machine, "LINE6") << 8; break; |
| 73 | case 0x80: retVal=input_port_read(space->machine, "LINE7") << 8; break; |
| 74 | } |
| 75 | } |
| 76 | return retVal; |
| 77 | } |
| 78 | static WRITE16_HANDLER( cat_keyboard_w ) |
| 79 | { |
| 80 | keyboard_line = data >> 8; |
| 81 | } |
| 82 | |
| 83 | static WRITE16_HANDLER( cat_video_w ) |
| 84 | { |
| 85 | /* |
| 86 | 006500AE , ( HSS HSync Strart 89 ) |
| 87 | 006480C2 , ( HST End HSync 96 ) |
| 88 | 006400CE , ( HSE End H Line 104 ) |
| 89 | 006180B0 , ( VDE Active Lines 344 ) |
| 90 | 006100D4 , ( VSS VSync Start 362 ) |
| 91 | 006080F4 , ( VST End of VSync 378 ) |
| 92 | 00600120 , ( VSE End of Frame 400 ) |
| 93 | 006581C0 , ( VOC Video Control Normal Syncs ) |
| 94 | */ |
| 95 | } |
| 96 | static READ16_HANDLER( cat_something_r ) |
| 97 | { |
| 98 | return 0x00ff; |
| 99 | } |
| 100 | |
| 14 | 101 | static ADDRESS_MAP_START(cat_mem, ADDRESS_SPACE_PROGRAM, 16) |
| 15 | 102 | ADDRESS_MAP_UNMAP_HIGH |
| 16 | 103 | AM_RANGE(0x00000000, 0x0003ffff) AM_ROM // 256 KB ROM |
| 17 | | AM_RANGE(0x00400000, 0x0045ffff) AM_RAM AM_BASE(&cat_video_ram) // 384 KB RAM |
| 104 | AM_RANGE(0x00040000, 0x00043fff) AM_RAM AM_BASE(&cat_sram) // SRAM powered by batery |
| 105 | AM_RANGE(0x00200000, 0x0027ffff) AM_ROM AM_REGION("svrom",0x0000) // SV ROM |
| 106 | AM_RANGE(0x00400000, 0x0047ffff) AM_RAM AM_BASE(&cat_video_ram) // 512 KB RAM |
| 107 | AM_RANGE(0x00600000, 0x0065ffff) AM_WRITE(cat_video_w) // Video chip |
| 108 | AM_RANGE(0x00800000, 0x00800001) AM_READWRITE(cat_floppy_r, cat_floppy_w) |
| 109 | AM_RANGE(0x00800002, 0x00800003) AM_WRITE(cat_keyboard_w) |
| 110 | AM_RANGE(0x00800008, 0x00800009) AM_READ(cat_something_r) |
| 111 | AM_RANGE(0x0080000a, 0x0080000b) AM_READ(cat_keyboard_r) |
| 112 | AM_RANGE(0x0080000e, 0x0080000f) AM_READWRITE(cat_battery_r,cat_printer_w) |
| 113 | AM_RANGE(0x00810000, 0x0081001f) AM_DEVREADWRITE8( "duart68681", duart68681_r, duart68681_w, 0xff ) |
| 114 | AM_RANGE(0x00820000, 0x008200ff) AM_READWRITE(cat_modem_r, cat_modem_w)// modem |
| 115 | AM_RANGE(0x00840000, 0x00840001) AM_WRITE(cat_video_status_w) // Video status |
| 116 | AM_RANGE(0x00860000, 0x00860001) AM_WRITE(cat_test_mode_w) // Test mode |
| 18 | 117 | ADDRESS_MAP_END |
| 19 | 118 | |
| 20 | 119 | UINT16 *swyft_video_ram; |
| r5026 | r5027 | |
| 27 | 126 | |
| 28 | 127 | /* Input ports */ |
| 29 | 128 | INPUT_PORTS_START( cat ) |
| 129 | PORT_START("DIPSW1") |
| 130 | PORT_DIPNAME( 0x8000, 0x8000, "Mode" ) |
| 131 | PORT_DIPSETTING( 0x8000, DEF_STR( Normal ) ) |
| 132 | PORT_DIPSETTING( 0x0000, "Diagnostic" ) |
| 133 | PORT_DIPNAME( 0x7f00,0x7f00, "Country code" ) |
| 134 | PORT_DIPSETTING( 0x7f00, "United States" ) |
| 135 | PORT_DIPSETTING( 0x7e00, "Canada" ) |
| 136 | PORT_DIPSETTING( 0x7d00, "United Kingdom") |
| 137 | PORT_DIPSETTING( 0x7c00, "Norway" ) |
| 138 | PORT_DIPSETTING( 0x7b00, "France" ) |
| 139 | PORT_DIPSETTING( 0x7a00, "Denmark" ) |
| 140 | PORT_DIPSETTING( 0x7900, "Sweden" ) |
| 141 | PORT_DIPSETTING( 0x7800, DEF_STR(Japan) ) |
| 142 | PORT_DIPSETTING( 0x7700, "West Germany" ) |
| 143 | PORT_DIPSETTING( 0x7600, "Netherlands" ) |
| 144 | PORT_DIPSETTING( 0x7500, "Spain" ) |
| 145 | PORT_DIPSETTING( 0x7400, "Italy" ) |
| 146 | PORT_DIPSETTING( 0x7300, "Latin America" ) |
| 147 | PORT_DIPSETTING( 0x7200, "South Africa" ) |
| 148 | PORT_DIPSETTING( 0x7100, "Switzerland" ) |
| 149 | PORT_DIPSETTING( 0x7000, "ASCII" ) |
| 150 | |
| 151 | PORT_START("LINE0") |
| 152 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("N") PORT_CODE(KEYCODE_N) |
| 153 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("M") PORT_CODE(KEYCODE_M) |
| 154 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("K") PORT_CODE(KEYCODE_K) |
| 155 | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("J") PORT_CODE(KEYCODE_J) |
| 156 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Y") PORT_CODE(KEYCODE_Y) |
| 157 | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("T") PORT_CODE(KEYCODE_T) |
| 158 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("6") PORT_CODE(KEYCODE_6) |
| 159 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("5") PORT_CODE(KEYCODE_5) |
| 160 | PORT_START("LINE1") |
| 161 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("B") PORT_CODE(KEYCODE_B) |
| 162 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME(",") PORT_CODE(KEYCODE_COMMA) |
| 163 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("L") PORT_CODE(KEYCODE_L) |
| 164 | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("H") PORT_CODE(KEYCODE_H) |
| 165 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("U") PORT_CODE(KEYCODE_U) |
| 166 | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("R") PORT_CODE(KEYCODE_R) |
| 167 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("7") PORT_CODE(KEYCODE_7) |
| 168 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("4") PORT_CODE(KEYCODE_4) |
| 169 | PORT_START("LINE2") |
| 170 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("V") PORT_CODE(KEYCODE_V) |
| 171 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME(".") PORT_CODE(KEYCODE_STOP) |
| 172 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME(";") PORT_CODE(KEYCODE_COLON) |
| 173 | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("G") PORT_CODE(KEYCODE_G) |
| 174 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("I") PORT_CODE(KEYCODE_I) |
| 175 | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_UNUSED) |
| 176 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("8") PORT_CODE(KEYCODE_8) |
| 177 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("3") PORT_CODE(KEYCODE_3) |
| 178 | PORT_START("LINE3") |
| 179 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("C") PORT_CODE(KEYCODE_C) |
| 180 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Left USE FRONT") PORT_CODE(KEYCODE_LCONTROL) |
| 181 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("'") PORT_CODE(KEYCODE_QUOTE) |
| 182 | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("F") PORT_CODE(KEYCODE_F) |
| 183 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("O") PORT_CODE(KEYCODE_O) |
| 184 | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("E") PORT_CODE(KEYCODE_E) |
| 185 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("9") PORT_CODE(KEYCODE_9) |
| 186 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_UNUSED) |
| 187 | PORT_START("LINE4") |
| 188 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("X") PORT_CODE(KEYCODE_X) |
| 189 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Right USE FRONT") PORT_CODE(KEYCODE_RCONTROL) |
| 190 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Right Shift") PORT_CODE(KEYCODE_F12) |
| 191 | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("D") PORT_CODE(KEYCODE_D) |
| 192 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("P") PORT_CODE(KEYCODE_P) |
| 193 | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("W") PORT_CODE(KEYCODE_W) |
| 194 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("0") PORT_CODE(KEYCODE_0) |
| 195 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("2") PORT_CODE(KEYCODE_2) |
| 196 | PORT_START("LINE5") |
| 197 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Z") PORT_CODE(KEYCODE_Z) |
| 198 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Space") PORT_CODE(KEYCODE_SPACE) |
| 199 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Return") PORT_CODE(KEYCODE_ENTER) |
| 200 | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("S") PORT_CODE(KEYCODE_S) |
| 201 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("1/2") PORT_CODE(KEYCODE_OPENBRACE) |
| 202 | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Q") PORT_CODE(KEYCODE_Q) |
| 203 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("-") PORT_CODE(KEYCODE_MINUS) |
| 204 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("1") PORT_CODE(KEYCODE_1) |
| 205 | PORT_START("LINE6") |
| 206 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Left Shift") PORT_CODE(KEYCODE_F1) |
| 207 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Left LEAP") PORT_CODE(KEYCODE_LALT) |
| 208 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("/") PORT_CODE(KEYCODE_SLASH) |
| 209 | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("A") PORT_CODE(KEYCODE_A) |
| 210 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("]") PORT_CODE(KEYCODE_CLOSEBRACE) |
| 211 | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Tab") PORT_CODE(KEYCODE_TAB) |
| 212 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("=") PORT_CODE(KEYCODE_EQUALS) |
| 213 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_UNUSED) |
| 214 | PORT_START("LINE7") |
| 215 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Shift") PORT_CODE(KEYCODE_RSHIFT) PORT_CODE(KEYCODE_LSHIFT) |
| 216 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Right Leap") PORT_CODE(KEYCODE_RALT) |
| 217 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Page") PORT_CODE(KEYCODE_PGUP) PORT_CODE(KEYCODE_PGDN) |
| 218 | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Shift Lock") PORT_CODE(KEYCODE_CAPSLOCK) |
| 219 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Backspace") PORT_CODE(KEYCODE_BACKSPACE) |
| 220 | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_UNUSED) |
| 221 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("UNDO") PORT_CODE(KEYCODE_BACKSLASH) |
| 222 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("+-") PORT_CODE(KEYCODE_TILDE) |
| 30 | 223 | INPUT_PORTS_END |
| 31 | | |
| 32 | 224 | INPUT_PORTS_START( swyft ) |
| 33 | 225 | INPUT_PORTS_END |
| 34 | 226 | |
| 227 | |
| 228 | static TIMER_CALLBACK(keyboard_callback) |
| 229 | { |
| 230 | cputag_set_input_line(machine, "maincpu", M68K_IRQ_1, ASSERT_LINE); |
| 231 | } |
| 232 | |
| 233 | static IRQ_CALLBACK(cat_int_ack) |
| 234 | { |
| 235 | cputag_set_input_line(device->machine, "maincpu",M68K_IRQ_1,CLEAR_LINE); |
| 236 | return M68K_INT_ACK_AUTOVECTOR; |
| 237 | } |
| 238 | |
| 35 | 239 | static MACHINE_RESET(cat) |
| 36 | 240 | { |
| 241 | cpu_set_irq_callback(cputag_get_cpu(machine, "maincpu"), cat_int_ack); |
| 242 | timer_pulse(machine, ATTOTIME_IN_HZ(120), NULL, 0, keyboard_callback); |
| 37 | 243 | } |
| 38 | 244 | |
| 39 | 245 | static VIDEO_START( cat ) |
| r5026 | r5027 | |
| 46 | 252 | int y, x, b; |
| 47 | 253 | |
| 48 | 254 | int addr = 0; |
| 49 | | for (y = 0; y < 344; y++) |
| 50 | | { |
| 51 | | int horpos = 0; |
| 52 | | for (x = 0; x < 42; x++) |
| 53 | | { |
| 54 | | code = cat_video_ram[addr++]; |
| 55 | | for (b = 15; b >= 0; b--) |
| 56 | | { |
| 57 | | *BITMAP_ADDR16(bitmap, y, horpos++) = (code >> b) & 0x01; |
| 255 | if (video_enable==1) { |
| 256 | for (y = 0; y < 344; y++) |
| 257 | { |
| 258 | int horpos = 0; |
| 259 | for (x = 0; x < 42; x++) |
| 260 | { |
| 261 | code = cat_video_ram[addr++]; |
| 262 | for (b = 15; b >= 0; b--) |
| 263 | { |
| 264 | *BITMAP_ADDR16(bitmap, y, horpos++) = (code >> b) & 0x01; |
| 265 | } |
| 58 | 266 | } |
| 59 | 267 | } |
| 268 | } else { |
| 269 | rectangle black_area = {0, 672 - 1, 0, 344 - 1}; |
| 270 | bitmap_fill(bitmap, &black_area, 0); |
| 60 | 271 | } |
| 61 | 272 | return 0; |
| 62 | 273 | } |
| r5026 | r5027 | |
| 97 | 308 | return 0; |
| 98 | 309 | } |
| 99 | 310 | |
| 311 | static void duart_irq_handler(const device_config *device, UINT8 vector) |
| 312 | { |
| 313 | logerror("duart_irq_handler\n"); |
| 314 | } |
| 100 | 315 | |
| 316 | static void duart_tx(const device_config *device, int channel, UINT8 data) |
| 317 | { |
| 318 | } |
| 319 | |
| 320 | UINT8 duart_inp = 0x0e; |
| 321 | |
| 322 | static UINT8 duart_input(const device_config *device) |
| 323 | { |
| 324 | if (duart_inp!=0) { |
| 325 | duart_inp = 0; |
| 326 | return 0x0e; |
| 327 | } else { |
| 328 | duart_inp = 0x0e; |
| 329 | return 0x00; |
| 330 | } |
| 331 | } |
| 332 | |
| 333 | static const duart68681_config cat_duart68681_config = |
| 334 | { |
| 335 | duart_irq_handler, |
| 336 | duart_tx, |
| 337 | duart_input, |
| 338 | NULL |
| 339 | }; |
| 340 | |
| 341 | static NVRAM_HANDLER( cat ) |
| 342 | { |
| 343 | if (read_or_write) |
| 344 | { |
| 345 | mame_fwrite(file, cat_sram, 0x4000); |
| 346 | } |
| 347 | else |
| 348 | { |
| 349 | if (file) |
| 350 | { |
| 351 | mame_fread(file, cat_sram, 0x4000); |
| 352 | } |
| 353 | } |
| 354 | } |
| 355 | |
| 101 | 356 | static MACHINE_DRIVER_START( cat ) |
| 102 | 357 | /* basic machine hardware */ |
| 103 | 358 | MDRV_CPU_ADD("maincpu",M68000, XTAL_5MHz) |
| r5026 | r5027 | |
| 117 | 372 | |
| 118 | 373 | MDRV_VIDEO_START(cat) |
| 119 | 374 | MDRV_VIDEO_UPDATE(cat) |
| 375 | |
| 376 | MDRV_DUART68681_ADD( "duart68681", XTAL_5MHz, cat_duart68681_config ) |
| 377 | |
| 378 | MDRV_NVRAM_HANDLER( cat ) |
| 120 | 379 | MACHINE_DRIVER_END |
| 121 | 380 | |
| 122 | 381 | static MACHINE_DRIVER_START( swyft ) |
| r5026 | r5027 | |
| 148 | 407 | ROM_END |
| 149 | 408 | |
| 150 | 409 | ROM_START( cat ) |
| 151 | | ROM_REGION( 0x40000, "maincpu", ROMREGION_ERASEFF ) |
| 410 | ROM_REGION( 0x40000, "maincpu", ROMREGION_ERASEFF ) |
| 411 | // SYS ROM |
| 152 | 412 | ROM_LOAD16_BYTE( "r240l0.bin", 0x00001, 0x10000, CRC(1b89bdc4) SHA1(39c639587dc30f9d6636b46d0465f06272838432)) |
| 153 | 413 | ROM_LOAD16_BYTE( "r240h0.bin", 0x00000, 0x10000, CRC(94f89b8c) SHA1(6c336bc30636a02c625d31f3057ec86bf4d155fc)) |
| 154 | 414 | ROM_LOAD16_BYTE( "r240l1.bin", 0x20001, 0x10000, CRC(1a73be4f) SHA1(e2de2cb485f78963368fb8ceba8fb66ca56dba34)) |
| 155 | 415 | ROM_LOAD16_BYTE( "r240h1.bin", 0x20000, 0x10000, CRC(898dd9f6) SHA1(93e791dd4ed7e4afa47a04df6fdde359e41c2075)) |
| 416 | ROM_REGION( 0x80000, "svrom", 0 ) |
| 156 | 417 | ROM_END |
| 157 | 418 | |
| 158 | 419 | /* Driver */ |
| r5026 | r5027 | |
| 160 | 421 | /* YEAR NAME PARENT COMPAT MACHINE INPUT INIT CONFIG COMPANY FULLNAME FLAGS */ |
| 161 | 422 | COMP( 1985, swyft,0, 0, swyft, swyft, 0, 0, "Information Applicance Inc.", "Swyft", GAME_NOT_WORKING) |
| 162 | 423 | COMP( 1987, cat, swyft, 0, cat, cat, 0, 0, "Canon", "Cat", GAME_NOT_WORKING) |
| 163 | | |