Cleanups and version bump.

This commit is contained in:
Aaron Giles 2008-08-19 07:31:55 +00:00
parent e959018aa8
commit 0523e9feb7
30 changed files with 292 additions and 291 deletions

View File

@ -4,7 +4,7 @@
Implementation of the Cube Quest AM2901-based CPUs Implementation of the Cube Quest AM2901-based CPUs
TODO: TODO:
* Tidy up diassembly (split into different files?) * Tidy up diassembly (split into different files?)
@ -1262,16 +1262,16 @@ static offs_t cquestrot_dasm(char *buffer, offs_t pc, const UINT8 *oprom, const
int t = (inshig >> 20) & 0xfff; int t = (inshig >> 20) & 0xfff;
int jmp = (inshig >> 16) & 0xf; int jmp = (inshig >> 16) & 0xf;
int spf = (inshig >> 12) & 0xf; int spf = (inshig >> 12) & 0xf;
// int rsrc = (inshig >> 11) & 0x1; // int rsrc = (inshig >> 11) & 0x1;
int yout = (inshig >> 8) & 0x7; int yout = (inshig >> 8) & 0x7;
int sel = (inshig >> 6) & 0x3; int sel = (inshig >> 6) & 0x3;
// int dsrc = (inshig >> 4) & 0x3; // int dsrc = (inshig >> 4) & 0x3;
int b = (inshig >> 0) & 0xf; int b = (inshig >> 0) & 0xf;
int a = (inslow >> 28) & 0xf; int a = (inslow >> 28) & 0xf;
int i8_6 = (inslow >> 24) & 0x7; int i8_6 = (inslow >> 24) & 0x7;
int ci = (inslow >> 23) & 0x1; int ci = (inslow >> 23) & 0x1;
int i5_3 = (inslow >> 20) & 0x7; int i5_3 = (inslow >> 20) & 0x7;
// int _sex = (inslow >> 19) & 0x1; // int _sex = (inslow >> 19) & 0x1;
int i2_0 = (inslow >> 16) & 0x7; int i2_0 = (inslow >> 16) & 0x7;
sprintf(buffer, "%s %s,%s %x,%x,%c %d %s %s %s %.2x\n", sprintf(buffer, "%s %s,%s %x,%x,%c %d %s %s %s %.2x\n",

View File

@ -383,15 +383,15 @@ READ8_DEVICE_HANDLER(duart68681_r)
{ {
r = 0xff; r = 0xff;
/* /*
if (input_code_pressed(KEYCODE_1)) r ^= 0x0001; if (input_code_pressed(KEYCODE_1)) r ^= 0x0001;
if (input_code_pressed(KEYCODE_2)) r ^= 0x0002; if (input_code_pressed(KEYCODE_2)) r ^= 0x0002;
if (input_code_pressed(KEYCODE_3)) r ^= 0x0004; if (input_code_pressed(KEYCODE_3)) r ^= 0x0004;
if (input_code_pressed(KEYCODE_4)) r ^= 0x0008; if (input_code_pressed(KEYCODE_4)) r ^= 0x0008;
if (input_code_pressed(KEYCODE_5)) r ^= 0x0010; if (input_code_pressed(KEYCODE_5)) r ^= 0x0010;
if (input_code_pressed(KEYCODE_6)) r ^= 0x0020; if (input_code_pressed(KEYCODE_6)) r ^= 0x0020;
if (input_code_pressed(KEYCODE_7)) r ^= 0x0040; if (input_code_pressed(KEYCODE_7)) r ^= 0x0040;
if (input_code_pressed(KEYCODE_8)) r ^= 0x0080; if (input_code_pressed(KEYCODE_8)) r ^= 0x0080;
*/ */
} }
break; break;
case 0x0e: /* Start counter command */ case 0x0e: /* Start counter command */

View File

@ -2798,12 +2798,12 @@ static void pr8210_control_w(laserdisc_state *ld, UINT8 data)
/*------------------------------------------------- /*-------------------------------------------------
Command Set: Command Set:
FX XX XX : Seek to frame XXXXX FX XX XX : Seek to frame XXXXX
01-19 : Skip forward 1-19 frames 01-19 : Skip forward 1-19 frames
99-81 : Skip back 1-19 frames 99-81 : Skip back 1-19 frames
5a : Toggle frame display 5a : Toggle frame display
-------------------------------------------------*/ -------------------------------------------------*/
@ -2955,7 +2955,7 @@ void simutrek_set_audio_squelch(const device_config *device, int state)
/*------------------------------------------------- /*-------------------------------------------------
simutrek_set_audio_squelch - Simutrek-specific simutrek_set_audio_squelch - Simutrek-specific
command to set callback function for command to set callback function for
player/interface command acknowledge player/interface command acknowledge
-------------------------------------------------*/ -------------------------------------------------*/
void simutrek_set_cmd_ack_callback(const device_config *device, void (*callback)(void)) void simutrek_set_cmd_ack_callback(const device_config *device, void (*callback)(void))

View File

@ -197,44 +197,44 @@ static const duart68681_config skattv_duart68681_config =
/* /*
static PALETTE_INIT( adp ) static PALETTE_INIT( adp )
{ {
int i; int i;
for (i = 0;i < machine->config->total_colors;i++) for (i = 0;i < machine->config->total_colors;i++)
{ {
int bit0,bit1,bit2,r,g,b; int bit0,bit1,bit2,r,g,b;
// red component // red component
bit0 = (i >> 2) & 0x01; bit0 = (i >> 2) & 0x01;
bit1 = (i >> 3) & 0x01; bit1 = (i >> 3) & 0x01;
bit2 = (i >> 4) & 0x01; bit2 = (i >> 4) & 0x01;
r = 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2; r = 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2;
// green component // green component
bit0 = (i >> 5) & 0x01; bit0 = (i >> 5) & 0x01;
bit1 = (i >> 6) & 0x01; bit1 = (i >> 6) & 0x01;
bit2 = (i >> 7) & 0x01; bit2 = (i >> 7) & 0x01;
g = 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2; g = 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2;
// blue component // blue component
bit0 = 0; bit0 = 0;
bit1 = (i >> 0) & 0x01; bit1 = (i >> 0) & 0x01;
bit2 = (i >> 1) & 0x01; bit2 = (i >> 1) & 0x01;
b = 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2; b = 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2;
palette_set_color(machine,i,MAKE_RGB(r,g,b)); palette_set_color(machine,i,MAKE_RGB(r,g,b));
} }
} }
*/ */
static VIDEO_START(adp) static VIDEO_START(adp)
{ {
// UINT32 i; // UINT32 i;
// UINT16 *prgrom = (UINT16*)memory_region(machine, "main"); // UINT16 *prgrom = (UINT16*)memory_region(machine, "main");
HD63484_start(); HD63484_start();
// for (i = 0; i < 0x70000; i++) // for (i = 0; i < 0x70000; i++)
// HD63484_ram[0x90000 + i] = prgrom[i]; // HD63484_ram[0x90000 + i] = prgrom[i];
} }
@ -359,14 +359,14 @@ static ADDRESS_MAP_START( skattv_mem, ADDRESS_SPACE_PROGRAM, 16 )
AM_RANGE(0x400000, 0x4000ff) AM_READ(test_r) //18b too AM_RANGE(0x400000, 0x4000ff) AM_READ(test_r) //18b too
AM_RANGE(0x800080, 0x800081) AM_READWRITE(HD63484_status_r, HD63484_address_w) AM_RANGE(0x800080, 0x800081) AM_READWRITE(HD63484_status_r, HD63484_address_w)
AM_RANGE(0x800082, 0x800083) AM_READWRITE(HD63484_data_r, HD63484_data_w) AM_RANGE(0x800082, 0x800083) AM_READWRITE(HD63484_data_r, HD63484_data_w)
// AM_RANGE(0x8000a0, 0x8000a1) AM_READ(handler2_r) // AM_RANGE(0x8000a0, 0x8000a1) AM_READ(handler2_r)
// AM_RANGE(0x8000a2, 0x8000a3) AM_READ(handler2_r) // AM_RANGE(0x8000a2, 0x8000a3) AM_READ(handler2_r)
// AM_RANGE(0x800100, 0x80017f) AM_READ(test_r) //18b too // AM_RANGE(0x800100, 0x80017f) AM_READ(test_r) //18b too
AM_RANGE(0x800100, 0x800101) AM_READ(test_r) //18b too AM_RANGE(0x800100, 0x800101) AM_READ(test_r) //18b too
AM_RANGE(0x800140, 0x800141) AM_READ(test1_r) //18b too AM_RANGE(0x800140, 0x800141) AM_READ(test1_r) //18b too
AM_RANGE(0x800180, 0x80019f) AM_DEVREADWRITE8( DUART68681, "duart68681", duart68681_r, duart68681_w, 0xff ) AM_RANGE(0x800180, 0x80019f) AM_DEVREADWRITE8( DUART68681, "duart68681", duart68681_r, duart68681_w, 0xff )
// AM_RANGE(0xffd246, 0xffd247) AM_READ(handler3_r) // AM_RANGE(0xffd246, 0xffd247) AM_READ(handler3_r)
// AM_RANGE(0xffd248, 0xffd249) AM_READ(handler3_r) // AM_RANGE(0xffd248, 0xffd249) AM_READ(handler3_r)
AM_RANGE(0xffc000, 0xffffff) AM_RAM AM_RANGE(0xffc000, 0xffffff) AM_RAM
ADDRESS_MAP_END ADDRESS_MAP_END
@ -409,14 +409,14 @@ INPUT_PORTS_END
/* /*
static INTERRUPT_GEN( adp_int ) static INTERRUPT_GEN( adp_int )
{ {
cpunum_set_input_line(machine, 0, 1, HOLD_LINE); // ??? All irqs have the same vector, and the mask used is 0 or 7 cpunum_set_input_line(machine, 0, 1, HOLD_LINE); // ??? All irqs have the same vector, and the mask used is 0 or 7
} }
*/ */
static MACHINE_DRIVER_START( quickjac ) static MACHINE_DRIVER_START( quickjac )
MDRV_CPU_ADD("main", M68000, 8000000) MDRV_CPU_ADD("main", M68000, 8000000)
MDRV_CPU_PROGRAM_MAP(quickjac_mem, 0) MDRV_CPU_PROGRAM_MAP(quickjac_mem, 0)
// MDRV_CPU_VBLANK_INT("main", adp_int) // MDRV_CPU_VBLANK_INT("main", adp_int)
MDRV_MACHINE_START(skattv) MDRV_MACHINE_START(skattv)
MDRV_MACHINE_RESET(skattv) MDRV_MACHINE_RESET(skattv)
@ -432,7 +432,7 @@ static MACHINE_DRIVER_START( quickjac )
MDRV_SCREEN_VISIBLE_AREA(0, 384-1, 0, 280-1) MDRV_SCREEN_VISIBLE_AREA(0, 384-1, 0, 280-1)
MDRV_PALETTE_LENGTH(0x100) MDRV_PALETTE_LENGTH(0x100)
// MDRV_PALETTE_INIT(adp) // MDRV_PALETTE_INIT(adp)
MDRV_VIDEO_START(adp) MDRV_VIDEO_START(adp)
MDRV_VIDEO_UPDATE(adp) MDRV_VIDEO_UPDATE(adp)
@ -445,7 +445,7 @@ MACHINE_DRIVER_END
static MACHINE_DRIVER_START( skattv ) static MACHINE_DRIVER_START( skattv )
MDRV_CPU_ADD("main", M68000, 8000000) MDRV_CPU_ADD("main", M68000, 8000000)
MDRV_CPU_PROGRAM_MAP(skattv_mem, 0) MDRV_CPU_PROGRAM_MAP(skattv_mem, 0)
// MDRV_CPU_VBLANK_INT("main", adp_int) // MDRV_CPU_VBLANK_INT("main", adp_int)
MDRV_MACHINE_START(skattv) MDRV_MACHINE_START(skattv)
MDRV_MACHINE_RESET(skattv) MDRV_MACHINE_RESET(skattv)
@ -461,7 +461,7 @@ static MACHINE_DRIVER_START( skattv )
MDRV_SCREEN_VISIBLE_AREA(0, 384-1, 0, 280-1) MDRV_SCREEN_VISIBLE_AREA(0, 384-1, 0, 280-1)
MDRV_PALETTE_LENGTH(0x100) MDRV_PALETTE_LENGTH(0x100)
// MDRV_PALETTE_INIT(adp) // MDRV_PALETTE_INIT(adp)
MDRV_VIDEO_START(adp) MDRV_VIDEO_START(adp)
MDRV_VIDEO_UPDATE(adp) MDRV_VIDEO_UPDATE(adp)
@ -483,7 +483,7 @@ static MACHINE_DRIVER_START( backgamn )
MDRV_SCREEN_VISIBLE_AREA(0, 640-1, 0, 480-1) MDRV_SCREEN_VISIBLE_AREA(0, 640-1, 0, 480-1)
MDRV_PALETTE_LENGTH(0x100) MDRV_PALETTE_LENGTH(0x100)
// MDRV_PALETTE_INIT(adp) // MDRV_PALETTE_INIT(adp)
MDRV_VIDEO_START(adp) MDRV_VIDEO_START(adp)
MDRV_VIDEO_UPDATE(adp) MDRV_VIDEO_UPDATE(adp)

View File

@ -5,11 +5,11 @@
driver by Phil Bennett driver by Phil Bennett
TODO: TODO:
* Emulate D8478 laserdisc interface MCU * Emulate D8478 laserdisc interface MCU
* Accurate video timings * Accurate video timings
- Derive from PROMs - Derive from PROMs
* More accurate line fill circuitry emulation * More accurate line fill circuitry emulation
- Use PROMs - Use PROMs
Known bugs: Known bugs:
* The graphics tend go screwy when you add the first credit on the * The graphics tend go screwy when you add the first credit on the
@ -113,9 +113,9 @@ static VIDEO_UPDATE( cubeqst )
int palentry = palette_ram[255]; int palentry = palette_ram[255];
/* /*
* Clear the display with palette RAM entry 0xff * Clear the display with palette RAM entry 0xff
* This will be either transparent or an actual colour * This will be either transparent or an actual colour
*/ */
/* Bit 3 selects LD/#GRAPHICS */ /* Bit 3 selects LD/#GRAPHICS */
if ((palentry & (1 << 3)) && disk_on) if ((palentry & (1 << 3)) && disk_on)
@ -234,8 +234,8 @@ void ldp_ack_callback(void)
} }
/* /*
D0: Command acknowledge D0: Command acknowledge
D1: Seek status (0 = searching, 1 = ready) D1: Seek status (0 = searching, 1 = ready)
*/ */
static READ16_HANDLER( laserdisc_r ) static READ16_HANDLER( laserdisc_r )
{ {
@ -293,12 +293,12 @@ static void swap_linecpu_banks(void)
/* /*
Reset Control Reset Control
============= =============
D0: /Display (includes rotate and line processors) D0: /Display (includes rotate and line processors)
D1: /Sound D1: /Sound
D2: /Disk D2: /Disk
*/ */
static WRITE16_HANDLER( reset_w ) static WRITE16_HANDLER( reset_w )
{ {
@ -326,24 +326,24 @@ static WRITE16_HANDLER( reset_w )
static WRITE16_HANDLER( io_w ) static WRITE16_HANDLER( io_w )
{ {
/* /*
0: Spare lamp 0: Spare lamp
1: Spare driver 1: Spare driver
2: Coin counter 2: Coin counter
3: Left-front lamp 3: Left-front lamp
4: Right-front lamp 4: Right-front lamp
5: Righ back lamp 5: Righ back lamp
6: Spare lamp 6: Spare lamp
7: LED latch clock 7: LED latch clock
*/ */
/* TODO: On rising edge of Q7, status LED latch is written */ /* TODO: On rising edge of Q7, status LED latch is written */
if ( !BIT(io_latch, 7) && BIT(data, 7) ) if ( !BIT(io_latch, 7) && BIT(data, 7) )
{ {
/* /*
0: Battery failure 0: Battery failure
1: Bad coin 1: Bad coin
2: No laser unit 2: No laser unit
*/ */
} }
io_latch = data; io_latch = data;
@ -356,11 +356,11 @@ static READ16_HANDLER( io_r )
/* /*
Certain bits depend on Q7 of the IO latch: Certain bits depend on Q7 of the IO latch:
5: Cube / Trackball H clock 5: Cube / Trackball H clock
6: R-Fire / Trackball H data 6: R-Fire / Trackball H data
7: L-Fire / Trackball V clock 7: L-Fire / Trackball V clock
10: Spare / Trackball V data 10: Spare / Trackball V data
*/ */
if ( !BIT(io_latch, 7) ) if ( !BIT(io_latch, 7) )
return port_data; return port_data;
@ -471,8 +471,8 @@ static MACHINE_RESET( cubeqst )
static sound_stream *cquest_stream; static sound_stream *cquest_stream;
/* /*
* The sound CPU outputs to a 12-bit 7521 DAC * The sound CPU outputs to a 12-bit 7521 DAC
* The DAC output is multiplexed between * The DAC output is multiplexed between
* 16 channels (8 per side). * 16 channels (8 per side).
*/ */

View File

@ -99,15 +99,15 @@ Notes (couriersud)
M10-Board: Has SN76477 M10-Board: Has SN76477
ipminva1 ipminva1
======== ========
This is from an incomplete dump without documentation. This is from an incomplete dump without documentation.
The filename contained m10 and with a hack to work The filename contained m10 and with a hack to work
around the missing rom you get some action. around the missing rom you get some action.
The files are all different from ipminvad. Either this has The files are all different from ipminvad. Either this has
been a prototype or eventually the famous "capsule invader". been a prototype or eventually the famous "capsule invader".
***************************************************************************/ ***************************************************************************/
#include "driver.h" #include "driver.h"

View File

@ -777,7 +777,7 @@ static DRIVER_INIT( suprpool )
static DRIVER_INIT( hotslot ) static DRIVER_INIT( hotslot )
{ {
/* a value of -56 center the playfield, but displace the intro and initial screen. /* a value of -56 center the playfield, but displace the intro and initial screen.
a value of -64 center the intro and initial screen, but displace the playfield. a value of -64 center the intro and initial screen, but displace the playfield.
*/ */
layer2_offset[0] = -56; // X offset. layer2_offset[0] = -56; // X offset.

View File

@ -70,14 +70,14 @@
From readme (Stefan Lindberg) From readme (Stefan Lindberg)
The PCB is not working so I don't know if the roms are fine, the sound rom The PCB is not working so I don't know if the roms are fine, the sound rom
was for sure bad it gave different checksums but most of the reads matched was for sure bad it gave different checksums but most of the reads matched
the MAME soundrom (red alert) it is marked exactly the same "w3s1"(IC5). the MAME soundrom (red alert) it is marked exactly the same "w3s1"(IC5).
The Bprom matched the Red Alert set also... marked "W3" i think? The Bprom matched the Red Alert set also... marked "W3" i think?
it's hard to see because the sticker has been damaged. it's hard to see because the sticker has been damaged.
The other eproms exept one did not match anything in MAME, The other eproms exept one did not match anything in MAME,
and only one of those had the eprom type markings on it... I read all and only one of those had the eprom type markings on it... I read all
like that type. like that type.
Board set consists of: Board set consists of:
M-27MB (Main board) M-27MB (Main board)

View File

@ -1888,8 +1888,8 @@ ROM_START( wintbob )
in all cases bit 0x20 is incorrectly set in the bad rom in all cases bit 0x20 is incorrectly set in the bad rom
*/ */
// ROM_LOAD16_BYTE( "wb03.bin", 0x00000, 0x10000, CRC(df56e168) SHA1(20dbabdd97e6f3d4bf6500bf9e8476942cb48ae3) ) // ROM_LOAD16_BYTE( "wb03.bin", 0x00000, 0x10000, CRC(df56e168) SHA1(20dbabdd97e6f3d4bf6500bf9e8476942cb48ae3) )
// ROM_LOAD16_BYTE( "wb01.bin", 0x00001, 0x10000, CRC(05722f17) SHA1(9356e2488ea35e0a2978689f2ca6dfa0d57fd2ed) ) // ROM_LOAD16_BYTE( "wb01.bin", 0x00001, 0x10000, CRC(05722f17) SHA1(9356e2488ea35e0a2978689f2ca6dfa0d57fd2ed) )
ROM_LOAD16_BYTE( "wb04.bin", 0x20000, 0x10000, CRC(53be758d) SHA1(56cf85ba23fe699031d73e8f367a1b8ac837d5f8) ) ROM_LOAD16_BYTE( "wb04.bin", 0x20000, 0x10000, CRC(53be758d) SHA1(56cf85ba23fe699031d73e8f367a1b8ac837d5f8) )
ROM_LOAD16_BYTE( "wb02.bin", 0x20001, 0x10000, CRC(fc8e292e) SHA1(857cfeb0be121e64e6117120514ae1f2ffeae4d6) ) ROM_LOAD16_BYTE( "wb02.bin", 0x20001, 0x10000, CRC(fc8e292e) SHA1(857cfeb0be121e64e6117120514ae1f2ffeae4d6) )

View File

@ -6713,6 +6713,7 @@ BOMULEUL CHAJARA SEGA ST-V 1997/04/11
DRIVER( explbrkr ) /* (c) 1992 Kaneko */ DRIVER( explbrkr ) /* (c) 1992 Kaneko */
DRIVER( bakubrkr ) /* (c) 1992 Kaneko */ DRIVER( bakubrkr ) /* (c) 1992 Kaneko */
DRIVER( shogwarr ) /* (c) 1992 Kaneko */ DRIVER( shogwarr ) /* (c) 1992 Kaneko */
DRIVER( shogware ) /* (c) 1992 Kaneko */
DRIVER( fjbuster ) /* (c) 1992 Kaneko */ DRIVER( fjbuster ) /* (c) 1992 Kaneko */
DRIVER( brapboys ) /* (c) 1992 Kaneko */ DRIVER( brapboys ) /* (c) 1992 Kaneko */
DRIVER( brapboyj ) /* (c) 1992 Kaneko */ DRIVER( brapboyj ) /* (c) 1992 Kaneko */

View File

@ -203,10 +203,10 @@ chd_error chdcd_parse_gdi(const char *tocfname, cdrom_toc *outtoc, chdcd_track_i
} }
/* /*
if(trknum!=0) if(trknum!=0)
{ {
outtoc->tracks[trknum-1].extraframes=outtoc->tracks[trknum].physframeofs-(outtoc->tracks[trknum-1].frames+outtoc->tracks[trknum-1].physframeofs); outtoc->tracks[trknum-1].extraframes=outtoc->tracks[trknum].physframeofs-(outtoc->tracks[trknum-1].frames+outtoc->tracks[trknum-1].physframeofs);
} }
*/ */
hunks = (outtoc->tracks[trknum].frames+CD_FRAMES_PER_HUNK - 1) / CD_FRAMES_PER_HUNK; hunks = (outtoc->tracks[trknum].frames+CD_FRAMES_PER_HUNK - 1) / CD_FRAMES_PER_HUNK;
outtoc->tracks[trknum].extraframes = hunks * CD_FRAMES_PER_HUNK - outtoc->tracks[trknum].frames; outtoc->tracks[trknum].extraframes = hunks * CD_FRAMES_PER_HUNK - outtoc->tracks[trknum].frames;
@ -215,11 +215,11 @@ chd_error chdcd_parse_gdi(const char *tocfname, cdrom_toc *outtoc, chdcd_track_i
} }
/* /*
for(i=0;i<numtracks;++i) for(i=0;i<numtracks;++i)
{ {
printf("%s %d %d %d\n",outinfo->fname[i],outtoc->tracks[i].frames,outtoc->tracks[i].extraframes,outtoc->tracks[i].physframeofs); printf("%s %d %d %d\n",outinfo->fname[i],outtoc->tracks[i].frames,outtoc->tracks[i].extraframes,outtoc->tracks[i].physframeofs);
} }
*/ */
/* close the input TOC */ /* close the input TOC */
fclose(infile); fclose(infile);

View File

@ -9,4 +9,4 @@
***************************************************************************/ ***************************************************************************/
const char build_version[] = "0.126u5 ("__DATE__")"; const char build_version[] = "0.127 ("__DATE__")";