src/mess/drivers/juicebox.c
| r13128 | r13129 | |
| 13 | 13 | #include "sound/dac.h"
|
| 14 | 14 | #include "rendlay.h"
|
| 15 | 15 | |
| 16 | | //#define JUICEBOX_TEST_MENU
|
| 16 | //#define JUICEBOX_ENTER_DEBUG_MENU
|
| 17 | //#define JUICEBOX_DISPLAY_ROM_ID
|
| 17 | 18 | |
| 18 | 19 | #define VERBOSE_LEVEL ( 0 )
|
| 19 | 20 | |
| r13128 | r13129 | |
| 50 | 51 | device_t *s3c44b0;
|
| 51 | 52 | smc_t smc;
|
| 52 | 53 | device_t *dac;
|
| 53 | | #if defined(JUICEBOX_TEST_MENU)
|
| 54 | #if defined(JUICEBOX_ENTER_DEBUG_MENU) || defined(JUICEBOX_DISPLAY_ROM_ID)
|
| 54 | 55 | int port_g_read_count;
|
| 55 | 56 | #endif
|
| 56 | 57 | };
|
| r13128 | r13129 | |
| 166 | 167 | {
|
| 167 | 168 | data = 0x0000009F;
|
| 168 | 169 | data = (data & ~0x1F) | (input_port_read( device->machine(), "PORTG") & 0x1F);
|
| 169 | | #if defined(JUICEBOX_TEST_MENU)
|
| 170 | #if defined(JUICEBOX_ENTER_DEBUG_MENU)
|
| 170 | 171 | if (juicebox->port_g_read_count++ < 1)
|
| 171 | 172 | {
|
| 172 | 173 | data = 0x00000095; // PLAY + REVERSE
|
| 173 | 174 | }
|
| 175 | #elif defined(JUICEBOX_DISPLAY_ROM_ID)
|
| 176 | if (juicebox->port_g_read_count++ < 3)
|
| 177 | {
|
| 178 | data = 0x0000008A; // RETURN + FORWARD + STAR
|
| 179 | }
|
| 174 | 180 | #endif
|
| 175 | 181 | }
|
| 176 | 182 | break;
|
| r13128 | r13129 | |
| 332 | 338 | |
| 333 | 339 | ROM_START( juicebox )
|
| 334 | 340 | ROM_REGION( 0x800000, "maincpu", 0 )
|
| 335 | | ROM_SYSTEM_BIOS( 0, "juicebox", "juicebox" )
|
| 341 | ROM_SYSTEM_BIOS( 0, "juicebox", "Juice Box v.28 08242004" )
|
| 336 | 342 | ROMX_LOAD( "juicebox.rom", 0, 0x800000, CRC(ac731197) SHA1(8278891c3531b3b6b5fec2a97a3ef6f0de1ac81d), ROM_BIOS(1) )
|
| 337 | | ROM_SYSTEM_BIOS( 1, "newboot", "newboot" )
|
| 343 | ROM_SYSTEM_BIOS( 1, "uclinuxp", "uClinux 2.4.24-uc0 (patched)" )
|
| 338 | 344 | ROMX_LOAD( "newboot.rom", 0, 0x1A0800, CRC(443f48b7) SHA1(38f0dc07b5cf02b972a851aa9e87f5d93d03f629), ROM_BIOS(2) )
|
| 345 | ROM_SYSTEM_BIOS( 2, "uclinux", "uClinux 2.4.24-uc0" )
|
| 346 | ROMX_LOAD( "image.rom", 0, 0x19E400, CRC(6c0308bf) SHA1(5fe21a38a4cd0d86bb60920eb100138b0e924d90), ROM_BIOS(3) )
|
| 339 | 347 | ROM_END
|
| 340 | 348 | |
| 341 | 349 | COMP(2004, juicebox, 0, 0, juicebox, juicebox, juicebox, "Mattel", "Juice Box", 0)
|