|
| 1 | +// license:BSD-3-Clause |
| 2 | +// copyright-holders: |
| 3 | + |
| 4 | + |
| 5 | +/********************************************************************************************* |
| 6 | +
|
| 7 | + Skeleton driver for toy computers on VTech 5303 hardware. |
| 8 | +
|
| 9 | + PCB with a 25VQ16A serial flash and a 8 MHz xtal on one side and a big glob on the other. |
| 10 | +
|
| 11 | +*********************************************************************************************/ |
| 12 | + |
| 13 | + |
| 14 | +#include "emu.h" |
| 15 | + |
| 16 | +#include "cpu/m6502/w65c02.h" |
| 17 | + |
| 18 | +#include "screen.h" |
| 19 | +#include "speaker.h" |
| 20 | + |
| 21 | + |
| 22 | +namespace { |
| 23 | + |
| 24 | + |
| 25 | +class vtech5303_state : public driver_device |
| 26 | +{ |
| 27 | +public: |
| 28 | + vtech5303_state(const machine_config &mconfig, device_type type, const char *tag) : |
| 29 | + driver_device(mconfig, type, tag), |
| 30 | + m_maincpu(*this, "maincpu"), |
| 31 | + m_screen(*this, "screen") |
| 32 | + { } |
| 33 | + |
| 34 | + void vtech5303(machine_config &config) ATTR_COLD; |
| 35 | + |
| 36 | +protected: |
| 37 | + required_device<cpu_device> m_maincpu; |
| 38 | + required_device<screen_device> m_screen; |
| 39 | + |
| 40 | + uint32_t screen_update_vtech5303(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); |
| 41 | +}; |
| 42 | + |
| 43 | +uint32_t vtech5303_state::screen_update_vtech5303(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect) |
| 44 | +{ |
| 45 | + return 0; |
| 46 | +} |
| 47 | + |
| 48 | +/* The Paw Patrol the keyboard has: |
| 49 | + -6 "character" buttons (Marshall, Rocky, Chase, Skye, Ryder, Rubble). |
| 50 | + -6 "activity" buttons (bone, letters, maths, pairs, maze, adventure). |
| 51 | + -26 leter keys in QWERTY layout (QWERTYUIOP ASDFGHJKL ZXCVBNM). |
| 52 | + -Mute button to the left of Z. |
| 53 | + -3 navigation buttons (right arrow, left arrow, OK). |
| 54 | + -Clock button. |
| 55 | + The Spanish version repurposes the mute button as a letter key and organises |
| 56 | + the letters in alphabetical order (ABCDEFGHIJ KLMNÑOPQR STUVWXYZ) |
| 57 | +*/ |
| 58 | +INPUT_PORTS_START( vtech5303 ) |
| 59 | +INPUT_PORTS_END |
| 60 | + |
| 61 | +void vtech5303_state::vtech5303(machine_config &config) |
| 62 | +{ |
| 63 | + W65C02(config, m_maincpu, 8_MHz_XTAL); // Unknown core and frequency, probably 6802 |
| 64 | + |
| 65 | + SCREEN(config, m_screen, SCREEN_TYPE_LCD); // Monochrome 64x32 LCD screen |
| 66 | + m_screen->set_refresh_hz(60); // Guess |
| 67 | + m_screen->set_size(64, 32); |
| 68 | + m_screen->set_visarea(0, 64-1, 0, 32-1); |
| 69 | + m_screen->set_screen_update(FUNC(vtech5303_state::screen_update_vtech5303)); |
| 70 | + |
| 71 | + SPEAKER(config, "mono").front_left(); |
| 72 | +} |
| 73 | + |
| 74 | +// Spanish machine |
| 75 | +ROM_START( pawpatrols ) |
| 76 | + ROM_REGION( 0x010000, "maincpu", 0 ) |
| 77 | + ROM_LOAD( "internal.bin", 0x000000, 0x010000, NO_DUMP ) // Unknown CPU type, unknown internal ROM size |
| 78 | + |
| 79 | + ROM_REGION( 0x200300, "program", 0 ) |
| 80 | + ROM_LOAD( "vtech_paw_patrol_5303_25vq16a.u5", 0x000000, 0x200300, CRC(fee8abd7) SHA1(4ea120246fb4a7efc699e0295864beba4e3317cc) ) |
| 81 | +ROM_END |
| 82 | + |
| 83 | +} // anonymous namespace |
| 84 | + |
| 85 | + |
| 86 | +CONS( 2022, pawmoviesp, 0, 0, vtech5303, vtech5303, vtech5303_state, empty_init, "VTech", "Paw Patrol: The Movie Learning Tablet (Spanish)", MACHINE_NO_SOUND | MACHINE_NOT_WORKING ) |
0 commit comments