Cleanups and version bump.

This commit is contained in:
Aaron Giles 2009-11-30 01:46:32 +00:00
parent 6967cdf013
commit b5c3081f3e
153 changed files with 748 additions and 748 deletions

View File

@ -1463,7 +1463,7 @@ static INT32 apply_analog_settings(INT32 value, analog_field_state *analog)
/*------------------------------------------------- /*-------------------------------------------------
input_port_write_direct - write a value input_port_write_direct - write a value
to a port to a port
-------------------------------------------------*/ -------------------------------------------------*/
void input_port_write_direct(const input_port_config *port, input_port_value data, input_port_value mem_mask) void input_port_write_direct(const input_port_config *port, input_port_value data, input_port_value mem_mask)
@ -1491,7 +1491,7 @@ void input_port_write_direct(const input_port_config *port, input_port_value dat
/*------------------------------------------------- /*-------------------------------------------------
input_port_write - write a value to a input_port_write - write a value to a
port specified by tag port specified by tag
-------------------------------------------------*/ -------------------------------------------------*/
void input_port_write(running_machine *machine, const char *tag, input_port_value value, input_port_value mask) void input_port_write(running_machine *machine, const char *tag, input_port_value value, input_port_value mask)
@ -1505,7 +1505,7 @@ void input_port_write(running_machine *machine, const char *tag, input_port_valu
/*------------------------------------------------- /*-------------------------------------------------
input_port_write_safe - write a value to input_port_write_safe - write a value to
a port, ignore if the port does not exist a port, ignore if the port does not exist
-------------------------------------------------*/ -------------------------------------------------*/
void input_port_write_safe(running_machine *machine, const char *tag, input_port_value value, input_port_value mask) void input_port_write_safe(running_machine *machine, const char *tag, input_port_value value, input_port_value mask)

View File

@ -8,7 +8,7 @@
TODO: TODO:
- remove CDP1802 dependency - remove CDP1802 dependency
- white noise - white noise
- scanline based update - scanline based update
- CMSEL output - CMSEL output

View File

@ -67,7 +67,7 @@ struct _k3_state
UINT16 * spriteram_1; UINT16 * spriteram_1;
UINT16 * spriteram_2; UINT16 * spriteram_2;
UINT16 * bgram; UINT16 * bgram;
// UINT16 * paletteram16; // currently this uses generic palette handling // UINT16 * paletteram16; // currently this uses generic palette handling
/* video-related */ /* video-related */
tilemap *bg_tilemap; tilemap *bg_tilemap;

View File

@ -68,7 +68,7 @@ struct __2mindril_state
UINT16 * charram; UINT16 * charram;
UINT16 * textram; UINT16 * textram;
UINT16 * unkram; UINT16 * unkram;
// UINT16 * paletteram; // currently this uses generic palette handling // UINT16 * paletteram; // currently this uses generic palette handling
UINT16 * iodata; UINT16 * iodata;
/* input-related */ /* input-related */
@ -120,7 +120,7 @@ static VIDEO_UPDATE( drill )
} }
} }
/*printf("%.4X %.4X %.4X %.4X %.4X %.4X\n", state->unkram[0x60000 / 2], state->unkram[0x60000 / 2 + 1], state->unkram[0x60000 / 2 + 2], /*printf("%.4X %.4X %.4X %.4X %.4X %.4X\n", state->unkram[0x60000 / 2], state->unkram[0x60000 / 2 + 1], state->unkram[0x60000 / 2 + 2],
state->unkram[0x60000 / 2 + 3], state->unkram[0x60000 / 2 + 4], state->unkram[0x60000 / 2 + 5]);*/ state->unkram[0x60000 / 2 + 3], state->unkram[0x60000 / 2 + 4], state->unkram[0x60000 / 2 + 5]);*/
return 0; return 0;
} }
@ -138,7 +138,7 @@ static READ16_HANDLER( drill_io_r )
// if (offset * 2 == 0x4) // if (offset * 2 == 0x4)
/*popmessage("PC=%08x %04x %04x %04x %04x %04x %04x %04x %04x", cpu_get_pc(space->cpu), state->iodata[0/2], state->iodata[2/2], state->iodata[4/2], state->iodata[6/2], /*popmessage("PC=%08x %04x %04x %04x %04x %04x %04x %04x %04x", cpu_get_pc(space->cpu), state->iodata[0/2], state->iodata[2/2], state->iodata[4/2], state->iodata[6/2],
state->iodata[8/2], state->iodata[0xa/2], state->iodata[0xc/2], state->iodata[0xe/2]);*/ state->iodata[8/2], state->iodata[0xa/2], state->iodata[0xc/2], state->iodata[0xe/2]);*/
switch(offset) switch(offset)
{ {

View File

@ -68,8 +68,8 @@ struct _albazg_state
UINT8 * cus_ram; UINT8 * cus_ram;
UINT8 * videoram; UINT8 * videoram;
UINT8 * colorram; UINT8 * colorram;
// UINT8 * paletteram; // currently this uses generic palette handling // UINT8 * paletteram; // currently this uses generic palette handling
// UINT8 * paletteram_2; // currently this uses generic palette handling // UINT8 * paletteram_2; // currently this uses generic palette handling
/* video-related */ /* video-related */
tilemap *bg_tilemap; tilemap *bg_tilemap;

View File

@ -493,12 +493,12 @@ static INPUT_PORTS_START( armedf )
PORT_DIPSETTING( 0x01, "5" ) PORT_DIPSETTING( 0x01, "5" )
PORT_DIPSETTING( 0x00, "6" ) PORT_DIPSETTING( 0x00, "6" )
/* SW1:3,4 defined in manual/test-mode as: /* SW1:3,4 defined in manual/test-mode as:
PORT_DIPNAME( 0x04, 0x04, "1st Bonus Life" ) PORT_DIPLOCATION("SW1:3") PORT_DIPNAME( 0x04, 0x04, "1st Bonus Life" ) PORT_DIPLOCATION("SW1:3")
PORT_DIPSETTING( 0x04, "20k" ) PORT_DIPSETTING( 0x04, "20k" )
PORT_DIPSETTING( 0x00, "40k" ) PORT_DIPSETTING( 0x00, "40k" )
PORT_DIPNAME( 0x08, 0x08, "2nd Bonus Life" ) PORT_DIPLOCATION("SW1:4") PORT_DIPNAME( 0x08, 0x08, "2nd Bonus Life" ) PORT_DIPLOCATION("SW1:4")
PORT_DIPSETTING( 0x08, "60k" ) PORT_DIPSETTING( 0x08, "60k" )
PORT_DIPSETTING( 0x00, "80k" )*/ PORT_DIPSETTING( 0x00, "80k" )*/
PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("SW1:3,4") PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("SW1:3,4")
PORT_DIPSETTING( 0x0c, "20k then every 60k" ) PORT_DIPSETTING( 0x0c, "20k then every 60k" )
PORT_DIPSETTING( 0x04, "20k then every 80k" ) PORT_DIPSETTING( 0x04, "20k then every 80k" )
@ -586,12 +586,12 @@ static INPUT_PORTS_START( terraf )
PORT_MODIFY("DSW1") PORT_MODIFY("DSW1")
/* SW1:3,4 defined in manual/test-mode as: /* SW1:3,4 defined in manual/test-mode as:
PORT_DIPNAME( 0x04, 0x04, "1st Bonus Life" ) PORT_DIPLOCATION("SW1:3") PORT_DIPNAME( 0x04, 0x04, "1st Bonus Life" ) PORT_DIPLOCATION("SW1:3")
PORT_DIPSETTING( 0x04, "20k" ) PORT_DIPSETTING( 0x04, "20k" )
PORT_DIPSETTING( 0x00, "50k" ) PORT_DIPSETTING( 0x00, "50k" )
PORT_DIPNAME( 0x08, 0x08, "2nd Bonus Life" ) PORT_DIPLOCATION("SW1:4") PORT_DIPNAME( 0x08, 0x08, "2nd Bonus Life" ) PORT_DIPLOCATION("SW1:4")
PORT_DIPSETTING( 0x08, "60k" ) PORT_DIPSETTING( 0x08, "60k" )
PORT_DIPSETTING( 0x00, "90k" )*/ PORT_DIPSETTING( 0x00, "90k" )*/
PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("SW1:3,4") PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("SW1:3,4")
PORT_DIPSETTING( 0x0c, "20k then every 60k" ) PORT_DIPSETTING( 0x0c, "20k then every 60k" )
PORT_DIPSETTING( 0x04, "20k then every 90k" ) PORT_DIPSETTING( 0x04, "20k then every 90k" )
@ -619,12 +619,12 @@ static INPUT_PORTS_START( kodure )
PORT_MODIFY("DSW1") PORT_MODIFY("DSW1")
/* SW1:3,4 defined in manual/test-mode as: /* SW1:3,4 defined in manual/test-mode as:
PORT_DIPNAME( 0x04, 0x04, "1st Bonus Life" ) PORT_DIPLOCATION("SW1:3") PORT_DIPNAME( 0x04, 0x04, "1st Bonus Life" ) PORT_DIPLOCATION("SW1:3")
PORT_DIPSETTING( 0x04, DEF_STR( None ) ) PORT_DIPSETTING( 0x04, DEF_STR( None ) )
PORT_DIPSETTING( 0x00, "50k" ) PORT_DIPSETTING( 0x00, "50k" )
PORT_DIPNAME( 0x08, 0x08, "2nd Bonus Life" ) PORT_DIPLOCATION("SW1:4") PORT_DIPNAME( 0x08, 0x08, "2nd Bonus Life" ) PORT_DIPLOCATION("SW1:4")
PORT_DIPSETTING( 0x08, "60k" ) PORT_DIPSETTING( 0x08, "60k" )
PORT_DIPSETTING( 0x00, "90k" )*/ PORT_DIPSETTING( 0x00, "90k" )*/
PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("SW1:3,4") PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("SW1:3,4")
PORT_DIPSETTING( 0x08, "50k then every 60k" ) PORT_DIPSETTING( 0x08, "50k then every 60k" )
PORT_DIPSETTING( 0x00, "50k then every 90k" ) PORT_DIPSETTING( 0x00, "50k then every 90k" )
@ -671,12 +671,12 @@ static INPUT_PORTS_START( cclimbr2 )
PORT_MODIFY("DSW1") PORT_MODIFY("DSW1")
/* SW1:3,4 defined in manual/test-mode as: /* SW1:3,4 defined in manual/test-mode as:
PORT_DIPNAME( 0x04, 0x04, "1st Bonus Life" ) PORT_DIPLOCATION("SW1:3") PORT_DIPNAME( 0x04, 0x04, "1st Bonus Life" ) PORT_DIPLOCATION("SW1:3")
PORT_DIPSETTING( 0x04, "30k" ) PORT_DIPSETTING( 0x04, "30k" )
PORT_DIPSETTING( 0x00, "60k" ) PORT_DIPSETTING( 0x00, "60k" )
PORT_DIPNAME( 0x08, 0x08, "2nd Bonus Life" ) PORT_DIPLOCATION("SW1:4") PORT_DIPNAME( 0x08, 0x08, "2nd Bonus Life" ) PORT_DIPLOCATION("SW1:4")
PORT_DIPSETTING( 0x08, "70k" ) PORT_DIPSETTING( 0x08, "70k" )
PORT_DIPSETTING( 0x00, DEF_STR( None ) )*/ PORT_DIPSETTING( 0x00, DEF_STR( None ) )*/
PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("SW1:3,4") PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("SW1:3,4")
PORT_DIPSETTING( 0x0c, "30K and 100k" ) PORT_DIPSETTING( 0x0c, "30K and 100k" )
PORT_DIPSETTING( 0x08, "60k and 130k" ) PORT_DIPSETTING( 0x08, "60k and 130k" )

View File

@ -125,8 +125,8 @@ struct _bigfghtr_state
UINT16 * bg_videoram; UINT16 * bg_videoram;
UINT16 * fg_videoram; UINT16 * fg_videoram;
UINT16 * sharedram; UINT16 * sharedram;
// UINT16 * spriteram; // currently this uses generic buffer_spriteram_w // UINT16 * spriteram; // currently this uses generic buffer_spriteram_w
// UINT16 * paletteram; // currently this uses generic palette handling // UINT16 * paletteram; // currently this uses generic palette handling
/* video-related */ /* video-related */
tilemap *bg_tilemap, *fg_tilemap, *tx_tilemap; tilemap *bg_tilemap, *fg_tilemap, *tx_tilemap;

View File

@ -89,7 +89,7 @@ struct _calorie_state
/* memory pointers */ /* memory pointers */
UINT8 * fg_ram; UINT8 * fg_ram;
UINT8 * sprites; UINT8 * sprites;
// UINT8 * paletteram; // currently this uses generic palette handling // UINT8 * paletteram; // currently this uses generic palette handling
/* video-related */ /* video-related */
tilemap *bg_tilemap,*fg_tilemap; tilemap *bg_tilemap,*fg_tilemap;

View File

@ -413,8 +413,8 @@ static INPUT_PORTS_START( chinagat )
PORT_DIPSETTING( 0x20, DEF_STR( 1C_4C ) ) PORT_DIPSETTING( 0x20, DEF_STR( 1C_4C ) )
PORT_DIPSETTING( 0x18, DEF_STR( 1C_5C ) ) PORT_DIPSETTING( 0x18, DEF_STR( 1C_5C ) )
/*PORT_DIPNAME( 0x40, 0x00, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("SW1:7") /*PORT_DIPNAME( 0x40, 0x00, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("SW1:7")
PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) PORT_DIPSETTING( 0x00, DEF_STR( Upright ) )
PORT_DIPSETTING( 0x40, DEF_STR( Cocktail ) )*/ PORT_DIPSETTING( 0x40, DEF_STR( Cocktail ) )*/
PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN )
PORT_DIPNAME( 0x80, 0x80, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION("SW1:8") PORT_DIPNAME( 0x80, 0x80, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION("SW1:8")
PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) PORT_DIPSETTING( 0x80, DEF_STR( Off ) )

View File

@ -241,14 +241,14 @@ static INPUT_PORTS_START( cop01 )
PORT_DIPSETTING( 0x08, "5" ) PORT_DIPSETTING( 0x08, "5" )
PORT_DIPSETTING( 0x00, "6" ) PORT_DIPSETTING( 0x00, "6" )
/* DP2:3,4,5 defined in manual/test-mode as: /* DP2:3,4,5 defined in manual/test-mode as:
PORT_DIPNAME( 0x10, 0x10, "1st Bonus Life" ) PORT_DIPNAME( 0x10, 0x10, "1st Bonus Life" )
PORT_DIPSETTING( 0x10, "20000" ) PORT_DIPSETTING( 0x10, "20000" )
PORT_DIPSETTING( 0x00, "30000" ) PORT_DIPSETTING( 0x00, "30000" )
PORT_DIPNAME( 0x60, 0x60, "2nd Bonus Life" ) PORT_DIPNAME( 0x60, 0x60, "2nd Bonus Life" )
PORT_DIPSETTING( 0x60, "30000" ) PORT_DIPSETTING( 0x60, "30000" )
PORT_DIPSETTING( 0x20, "50000" ) PORT_DIPSETTING( 0x20, "50000" )
PORT_DIPSETTING( 0x40, "100000" ) PORT_DIPSETTING( 0x40, "100000" )
PORT_DIPSETTING( 0x00, "150000" ) */ PORT_DIPSETTING( 0x00, "150000" ) */
PORT_DIPNAME( 0x70, 0x70, DEF_STR( Bonus_Life ) ) PORT_DIPNAME( 0x70, 0x70, DEF_STR( Bonus_Life ) )
PORT_DIPSETTING( 0x70, "20k 50k 30k+" ) PORT_DIPSETTING( 0x70, "20k 50k 30k+" )
PORT_DIPSETTING( 0x30, "20k 70k 50k+" ) PORT_DIPSETTING( 0x30, "20k 70k 50k+" )

View File

@ -768,10 +768,10 @@ static WRITE16_HANDLER( cps2_eeprom_port_w )
} }
/* /*
set_led_status(space->machine, 0,data & 0x01); set_led_status(space->machine, 0,data & 0x01);
set_led_status(space->machine, 1,data & 0x10); set_led_status(space->machine, 1,data & 0x10);
set_led_status(space->machine, 2,data & 0x20); set_led_status(space->machine, 2,data & 0x20);
*/ */
} }
} }

View File

@ -125,7 +125,7 @@ struct _ddealer_state
UINT16 * left_fg_vram_bottom; UINT16 * left_fg_vram_bottom;
UINT16 * right_fg_vram_bottom; UINT16 * right_fg_vram_bottom;
UINT16 * vregs; UINT16 * vregs;
// UINT16 * paletteram16; // currently this uses generic palette handling // UINT16 * paletteram16; // currently this uses generic palette handling
/* video-related */ /* video-related */
tilemap *back_tilemap; tilemap *back_tilemap;

View File

@ -58,7 +58,7 @@ struct _diverboy_state
{ {
/* memory pointers */ /* memory pointers */
UINT16 * spriteram; UINT16 * spriteram;
// UINT16 * paletteram; // currently this uses generic palette handling // UINT16 * paletteram; // currently this uses generic palette handling
size_t spriteram_size; size_t spriteram_size;
/* devices */ /* devices */

View File

@ -41,7 +41,7 @@ struct _dominob_state
UINT8 * spriteram; UINT8 * spriteram;
UINT8 * videoram; UINT8 * videoram;
UINT8 * bgram; UINT8 * bgram;
// UINT8 * paletteram; // currently this uses generic palette handling // UINT8 * paletteram; // currently this uses generic palette handling
size_t spriteram_size; size_t spriteram_size;
/* input-related */ /* input-related */

View File

@ -18,7 +18,7 @@ struct _drtomy_state
UINT16 * spriteram; UINT16 * spriteram;
UINT16 * videoram_bg; UINT16 * videoram_bg;
UINT16 * videoram_fg; UINT16 * videoram_fg;
// UINT16 * paletteram16; // currently this uses generic palette handling // UINT16 * paletteram16; // currently this uses generic palette handling
/* video-related */ /* video-related */
tilemap *tilemap_bg,*tilemap_fg; tilemap *tilemap_bg,*tilemap_fg;

View File

@ -260,10 +260,10 @@ static READ8_HANDLER( drw80pkr_io_r )
// Dip switches tied to sound chip // Dip switches tied to sound chip
// //
// TODO: Unknown switch positions, but found the following flipping bits: // TODO: Unknown switch positions, but found the following flipping bits:
// SW.? = Double Up Option // SW.? = Double Up Option
// SW.? = Coin Denomination // SW.? = Coin Denomination
// SW.4 = Payout Type (0=cash, 1=credit) // SW.4 = Payout Type (0=cash, 1=credit)
// SW.? = Use Joker in Deck // SW.? = Use Joker in Deck
// //
ret = 0x77; // double-up with credit payout ret = 0x77; // double-up with credit payout
} }

View File

@ -42,8 +42,8 @@ struct _dynadice_state
{ {
/* memory pointers */ /* memory pointers */
UINT8 * videoram; UINT8 * videoram;
// UINT8 * nvram; // currently this uses generic nvram handling // UINT8 * nvram; // currently this uses generic nvram handling
// UINT8 * paletteram; // currently this uses generic palette handling // UINT8 * paletteram; // currently this uses generic palette handling
/* video-related */ /* video-related */
tilemap *bg_tilemap,*top_tilemap; tilemap *bg_tilemap,*top_tilemap;

View File

@ -52,7 +52,7 @@ struct _egghunt_state
UINT8 * bgram; UINT8 * bgram;
UINT8 * atram; UINT8 * atram;
UINT8 * spram; UINT8 * spram;
// UINT8 * paletteram; // currently this uses generic palette handling // UINT8 * paletteram; // currently this uses generic palette handling
/* video-related */ /* video-related */
tilemap *bg_tilemap; tilemap *bg_tilemap;

View File

@ -30,27 +30,27 @@
System Diagram: System Diagram:
--------------- ---------------
Serial Comm Cable Serial Comm Cable
Master 68020 -------- RSO 68000, 9x Namco 139 SCI ICs <==============================> Personal Board 68000 Master 68020 -------- RSO 68000, 9x Namco 139 SCI ICs <==============================> Personal Board 68000
| | ........ more personal boards......... | | ........ more personal boards.........
| | ........ more personal boards......... | | ........ more personal boards.........
| | | |
| |-------- Sound 68000, 4x Namco 140 ICs | |-------- Sound 68000, 4x Namco 140 ICs
|---------| |---------|
| C-RAM | | C-RAM |
| #-# #-# | | #-# #-# |
|---------| |---------|
| | | | | | | |
| | | |------- Slave 68020 | | | |------- Slave 68020
| | | |-------- 1x master DSP, 4x slave DSPs, Polygon, 2D Sprite ------> V-MIX board -----> SCREEN | | | |-------- 1x master DSP, 4x slave DSPs, Polygon, 2D Sprite ------> V-MIX board -----> SCREEN
| | | |-------- ........ more video boards ......... | | | | |-------- ........ more video boards ......... |
| | | |-------- ........ more video boards ......... LD Player | | | |-------- ........ more video boards ......... LD Player
| | | | | |
| | |------- ........ more slave 68020s ......... | | |------- ........ more slave 68020s .........
| | | |
| |------- ........ more slave 68020s ......... | |------- ........ more slave 68020s .........
| |
|------- ........ more slave 68020s ......... |------- ........ more slave 68020s .........
@ -194,16 +194,16 @@ static VIDEO_UPDATE(gal3)
namco_obj_draw(screen->machine, bitmap, cliprect, pri ); namco_obj_draw(screen->machine, bitmap, cliprect, pri );
} }
/* CopyVisiblePolyFrameBuffer( bitmap, cliprect,0,0x7fbf ); /* CopyVisiblePolyFrameBuffer( bitmap, cliprect,0,0x7fbf );
for( pri=pivot; pri<15; pri++ ) for( pri=pivot; pri<15; pri++ )
{ {
namco_obj_draw(screen->machine, bitmap, cliprect, pri ); namco_obj_draw(screen->machine, bitmap, cliprect, pri );
}*/ }*/
// CPU Diag LEDs // CPU Diag LEDs
mst[17]='\0', slv[17]='\0'; mst[17]='\0', slv[17]='\0';
/// printf("mst=0x%x\tslv=0x%x\n", led_mst, led_slv); /// printf("mst=0x%x\tslv=0x%x\n", led_mst, led_slv);
for(i=16;i<32;i++) for(i=16;i<32;i++)
{ {
int t; int t;
@ -278,12 +278,12 @@ static WRITE32_HANDLER( shareram0_w )
/* /*
static READ32_HANDLER( shareram1_r ) static READ32_HANDLER( shareram1_r )
{ {
return mpSharedRAM1[offset]; return mpSharedRAM1[offset];
} }
static WRITE32_HANDLER( shareram1_w ) static WRITE32_HANDLER( shareram1_w )
{ {
COMBINE_DATA( &mpSharedRAM1[offset] ); COMBINE_DATA( &mpSharedRAM1[offset] );
}*/ }*/
/***************************************************************************************/ /***************************************************************************************/
@ -342,9 +342,9 @@ static WRITE32_HANDLER(namcos21_video_enable_w)
static READ32_HANDLER(rso_r) static READ32_HANDLER(rso_r)
{ {
/*store $5555 @$0046, and readback @$0000 /*store $5555 @$0046, and readback @$0000
read @$0144 and store at A6_21e & A4_5c read @$0144 and store at A6_21e & A4_5c
Check @$009a==1 to start DEMO Check @$009a==1 to start DEMO
HACK*/ HACK*/
offset *= 2; offset *= 2;
return (rsoSharedRAM[offset]<<16)|rsoSharedRAM[offset+1]; return (rsoSharedRAM[offset]<<16)|rsoSharedRAM[offset+1];
} }
@ -362,7 +362,7 @@ static WRITE32_HANDLER(rso_w)
static ADDRESS_MAP_START( cpu_mst_map, ADDRESS_SPACE_PROGRAM, 32 ) static ADDRESS_MAP_START( cpu_mst_map, ADDRESS_SPACE_PROGRAM, 32 )
AM_RANGE(0x00000000, 0x001fffff) AM_ROM AM_RANGE(0x00000000, 0x001fffff) AM_ROM
AM_RANGE(0x20000000, 0x20001fff) AM_RAM AM_BASE(&gal3_nvmem) AM_SIZE(&gal3_nvmem_size) //NVRAM AM_RANGE(0x20000000, 0x20001fff) AM_RAM AM_BASE(&gal3_nvmem) AM_SIZE(&gal3_nvmem_size) //NVRAM
/// AM_RANGE(0x40000000, 0x4000ffff) AM_WRITE() // /// AM_RANGE(0x40000000, 0x4000ffff) AM_WRITE() //
AM_RANGE(0x44000000, 0x44000003) AM_READ_PORT("DSW_CPU_mst" ) AM_RANGE(0x44000000, 0x44000003) AM_READ_PORT("DSW_CPU_mst" )
AM_RANGE(0x44800000, 0x44800003) AM_READ(led_mst_r) AM_WRITE(led_mst_w) //LEDs AM_RANGE(0x44800000, 0x44800003) AM_READ(led_mst_r) AM_WRITE(led_mst_w) //LEDs
AM_RANGE(0x48000000, 0x48000003) AM_READ(SMH_NOP) //irq1 v-blank ack AM_RANGE(0x48000000, 0x48000003) AM_READ(SMH_NOP) //irq1 v-blank ack
@ -370,29 +370,29 @@ static ADDRESS_MAP_START( cpu_mst_map, ADDRESS_SPACE_PROGRAM, 32 )
AM_RANGE(0x60000000, 0x60007fff) AM_READ(shareram0_r) AM_WRITE(shareram0_w) AM_BASE(&mpSharedRAM0) //CRAM AM_RANGE(0x60000000, 0x60007fff) AM_READ(shareram0_r) AM_WRITE(shareram0_w) AM_BASE(&mpSharedRAM0) //CRAM
AM_RANGE(0x60010000, 0x60017fff) AM_READ(shareram0_r) AM_WRITE(shareram0_w) //Mirror AM_RANGE(0x60010000, 0x60017fff) AM_READ(shareram0_r) AM_WRITE(shareram0_w) //Mirror
AM_RANGE(0x80000000, 0x8007ffff) AM_READ(SMH_RAM) AM_WRITE(SMH_RAM) //512K Local RAM AM_RANGE(0x80000000, 0x8007ffff) AM_READ(SMH_RAM) AM_WRITE(SMH_RAM) //512K Local RAM
/// AM_RANGE(0xc0000000, 0xc000000b) AM_WRITENOP //upload? /// AM_RANGE(0xc0000000, 0xc000000b) AM_WRITENOP //upload?
AM_RANGE(0xc000000c, 0xc000000f) AM_READNOP //irq2 ack AM_RANGE(0xc000000c, 0xc000000f) AM_READNOP //irq2 ack
/// AM_RANGE(0xd8000000, 0xd800000f) AM_READ(SMH_RAM) AM_WRITE(SMH_RAM) // protection or 68681? /// AM_RANGE(0xd8000000, 0xd800000f) AM_READ(SMH_RAM) AM_WRITE(SMH_RAM) // protection or 68681?
AM_RANGE(0xf2800000, 0xf2800fff) AM_READWRITE(rso_r, rso_w) //RSO PCB AM_RANGE(0xf2800000, 0xf2800fff) AM_READWRITE(rso_r, rso_w) //RSO PCB
ADDRESS_MAP_END ADDRESS_MAP_END
static ADDRESS_MAP_START( cpu_slv_map, ADDRESS_SPACE_PROGRAM, 32 ) static ADDRESS_MAP_START( cpu_slv_map, ADDRESS_SPACE_PROGRAM, 32 )
AM_RANGE(0x00000000, 0x0007ffff) AM_ROM AM_RANGE(0x00000000, 0x0007ffff) AM_ROM
/// AM_RANGE(0x40000000, 0x4000ffff) AM_WRITE() // /// AM_RANGE(0x40000000, 0x4000ffff) AM_WRITE() //
AM_RANGE(0x44000000, 0x44000003) AM_READ_PORT("DSW_CPU_slv" ) AM_RANGE(0x44000000, 0x44000003) AM_READ_PORT("DSW_CPU_slv" )
AM_RANGE(0x44800000, 0x44800003) AM_READ(led_slv_r) AM_WRITE(led_slv_w) //LEDs AM_RANGE(0x44800000, 0x44800003) AM_READ(led_slv_r) AM_WRITE(led_slv_w) //LEDs
AM_RANGE(0x48000000, 0x48000003) AM_READ(SMH_NOP) //irq1 ack AM_RANGE(0x48000000, 0x48000003) AM_READ(SMH_NOP) //irq1 ack
/// AM_RANGE(0x50000000, 0x50000003) AM_READ() AM_WRITE() /// AM_RANGE(0x50000000, 0x50000003) AM_READ() AM_WRITE()
/// AM_RANGE(0x54000000, 0x54000003) AM_READ() AM_WRITE() /// AM_RANGE(0x54000000, 0x54000003) AM_READ() AM_WRITE()
AM_RANGE(0x60000000, 0x60007fff) AM_READ(shareram0_r) AM_WRITE(shareram0_w) AM_RANGE(0x60000000, 0x60007fff) AM_READ(shareram0_r) AM_WRITE(shareram0_w)
AM_RANGE(0x60010000, 0x60017fff) AM_READ(shareram0_r) AM_WRITE(shareram0_w) AM_RANGE(0x60010000, 0x60017fff) AM_READ(shareram0_r) AM_WRITE(shareram0_w)
AM_RANGE(0x80000000, 0x8007ffff) AM_READ(SMH_RAM) AM_WRITE(SMH_RAM) //512K Local RAM AM_RANGE(0x80000000, 0x8007ffff) AM_READ(SMH_RAM) AM_WRITE(SMH_RAM) //512K Local RAM
AM_RANGE(0xf1200000, 0xf120ffff) AM_READ(SMH_RAM) AM_WRITE(SMH_RAM) //DSP RAM AM_RANGE(0xf1200000, 0xf120ffff) AM_READ(SMH_RAM) AM_WRITE(SMH_RAM) //DSP RAM
/// AM_RANGE(0xf1400000, 0xf1400003) AM_WRITE(pointram_control_w) /// AM_RANGE(0xf1400000, 0xf1400003) AM_WRITE(pointram_control_w)
/// AM_RANGE(0xf1440000, 0xf1440003) AM_READWRITE(pointram_data_r,pointram_data_w) /// AM_RANGE(0xf1440000, 0xf1440003) AM_READWRITE(pointram_data_r,pointram_data_w)
/// AM_RANGE(0x440002, 0x47ffff) AM_WRITENOP /* (frame buffer?) */ /// AM_RANGE(0x440002, 0x47ffff) AM_WRITENOP /* (frame buffer?) */
/// AM_RANGE(0xf1480000, 0xf14807ff) AM_READWRITE(namcos21_depthcue_r,namcos21_depthcue_w) /// AM_RANGE(0xf1480000, 0xf14807ff) AM_READWRITE(namcos21_depthcue_r,namcos21_depthcue_w)
AM_RANGE(0xf1700000, 0xf170ffff) AM_READWRITE(namco_obj32_r,namco_obj32_w) AM_RANGE(0xf1700000, 0xf170ffff) AM_READWRITE(namco_obj32_r,namco_obj32_w)
AM_RANGE(0xf1720000, 0xf1720007) AM_READWRITE(namco_spritepos32_r,namco_spritepos32_w) AM_RANGE(0xf1720000, 0xf1720007) AM_READWRITE(namco_spritepos32_r,namco_spritepos32_w)
AM_RANGE(0xf1740000, 0xf175ffff) AM_READWRITE(paletteram32_r,paletteram32_w) AM_BASE_GENERIC(paletteram) AM_RANGE(0xf1740000, 0xf175ffff) AM_READWRITE(paletteram32_r,paletteram32_w) AM_BASE_GENERIC(paletteram)
@ -409,7 +409,7 @@ static ADDRESS_MAP_START( rs_cpu_map, ADDRESS_SPACE_PROGRAM, 16 )
AM_RANGE(0x000000, 0x03ffff) AM_ROM AM_RANGE(0x000000, 0x03ffff) AM_ROM
AM_RANGE(0x100000, 0x10ffff) AM_READ(SMH_RAM) AM_WRITE(SMH_RAM) //64K working RAM AM_RANGE(0x100000, 0x10ffff) AM_READ(SMH_RAM) AM_WRITE(SMH_RAM) //64K working RAM
/// AM_RANGE(0x180000, 0x183fff) AM_RAM //Nvram /// AM_RANGE(0x180000, 0x183fff) AM_RAM //Nvram
AM_RANGE(0x1c0000, 0x1c0001) AM_READ(SMH_RAM) AM_WRITE(SMH_RAM) //148? AM_RANGE(0x1c0000, 0x1c0001) AM_READ(SMH_RAM) AM_WRITE(SMH_RAM) //148?
AM_RANGE(0x1c2000, 0x1c2001) AM_READ(SMH_RAM) AM_WRITE(SMH_RAM) //? AM_RANGE(0x1c2000, 0x1c2001) AM_READ(SMH_RAM) AM_WRITE(SMH_RAM) //?
@ -466,23 +466,23 @@ static ADDRESS_MAP_START( rs_cpu_map, ADDRESS_SPACE_PROGRAM, 16 )
AM_RANGE(0xc00000, 0xc0000f) AM_READ(SMH_RAM) AM_WRITE(SMH_RAM) //? AM_RANGE(0xc00000, 0xc0000f) AM_READ(SMH_RAM) AM_WRITE(SMH_RAM) //?
AM_RANGE(0xc40000, 0xc43fff) AM_READ(SMH_RAM) AM_WRITE(SMH_RAM) //8 bit AM_RANGE(0xc40000, 0xc43fff) AM_READ(SMH_RAM) AM_WRITE(SMH_RAM) //8 bit
/// AM_RANGE(0xc44000, 0xffffff) AM_READ(SMH_RAM) AM_WRITE(SMH_RAM) ///////////// /// AM_RANGE(0xc44000, 0xffffff) AM_READ(SMH_RAM) AM_WRITE(SMH_RAM) /////////////
ADDRESS_MAP_END ADDRESS_MAP_END
static ADDRESS_MAP_START( sound_cpu_map, ADDRESS_SPACE_PROGRAM, 16 ) static ADDRESS_MAP_START( sound_cpu_map, ADDRESS_SPACE_PROGRAM, 16 )
AM_RANGE(0x000000, 0x07ffff) AM_ROM AM_RANGE(0x000000, 0x07ffff) AM_ROM
AM_RANGE(0x080000, 0x08ffff) AM_READ(SMH_RAM) AM_WRITE(SMH_RAM) AM_RANGE(0x080000, 0x08ffff) AM_READ(SMH_RAM) AM_WRITE(SMH_RAM)
/// AM_RANGE(0x0c0000, 0x0cffff) AM_READ(SMH_RAM) AM_WRITE(SMH_RAM) //00, 20, 30, 40, 50 /// AM_RANGE(0x0c0000, 0x0cffff) AM_READ(SMH_RAM) AM_WRITE(SMH_RAM) //00, 20, 30, 40, 50
/// AM_RANGE(0x100000, 0x10000f) AM_READ(SMH_RAM) AM_WRITE(SMH_RAM) /// AM_RANGE(0x100000, 0x10000f) AM_READ(SMH_RAM) AM_WRITE(SMH_RAM)
AM_RANGE(0x110000, 0x113fff) AM_READ(SMH_RAM) AM_WRITE(SMH_RAM) AM_RANGE(0x110000, 0x113fff) AM_READ(SMH_RAM) AM_WRITE(SMH_RAM)
/// AM_RANGE(0x120000, 0x120003) AM_READ(SMH_RAM) AM_WRITE(SMH_RAM) //2ieme byte /// AM_RANGE(0x120000, 0x120003) AM_READ(SMH_RAM) AM_WRITE(SMH_RAM) //2ieme byte
/// AM_RANGE(0x200000, 0x20017f) AM_READ(SMH_RAM) AM_WRITE(SMH_RAM) //C140 /// AM_RANGE(0x200000, 0x20017f) AM_READ(SMH_RAM) AM_WRITE(SMH_RAM) //C140
AM_RANGE(0x200000, 0x2037ff) AM_DEVREADWRITE8("c140_16a", c140_r, c140_w, 0x00ff) //C140/////////// AM_RANGE(0x200000, 0x2037ff) AM_DEVREADWRITE8("c140_16a", c140_r, c140_w, 0x00ff) //C140///////////
/// AM_RANGE(0x201000, 0x20117f) AM_READ(SMH_RAM) AM_WRITE(SMH_RAM) //C140 /// AM_RANGE(0x201000, 0x20117f) AM_READ(SMH_RAM) AM_WRITE(SMH_RAM) //C140
/// AM_RANGE(0x202000, 0x20217f) AM_READ(SMH_RAM) AM_WRITE(SMH_RAM) //C140 /// AM_RANGE(0x202000, 0x20217f) AM_READ(SMH_RAM) AM_WRITE(SMH_RAM) //C140
/// AM_RANGE(0x203000, 0x20317f) AM_READ(SMH_RAM) AM_WRITE(SMH_RAM) //C140 /// AM_RANGE(0x203000, 0x20317f) AM_READ(SMH_RAM) AM_WRITE(SMH_RAM) //C140
AM_RANGE(0x204000, 0x2047ff) AM_DEVREADWRITE8("c140_16g", c140_r, c140_w, 0x00ff) //C140 AM_RANGE(0x204000, 0x2047ff) AM_DEVREADWRITE8("c140_16g", c140_r, c140_w, 0x00ff) //C140
/// AM_RANGE(0x090000, 0xffffff) AM_READ(SMH_RAM) AM_WRITE(SMH_RAM) /// AM_RANGE(0x090000, 0xffffff) AM_READ(SMH_RAM) AM_WRITE(SMH_RAM)
ADDRESS_MAP_END ADDRESS_MAP_END
static ADDRESS_MAP_START( psn_b1_cpu_map, ADDRESS_SPACE_PROGRAM, 16 ) static ADDRESS_MAP_START( psn_b1_cpu_map, ADDRESS_SPACE_PROGRAM, 16 )
@ -650,11 +650,11 @@ static MACHINE_DRIVER_START( gal3 )
MDRV_CPU_ADD("psn_b1_cpu", M68000, 12000000) // ?? MDRV_CPU_ADD("psn_b1_cpu", M68000, 12000000) // ??
MDRV_CPU_PROGRAM_MAP(psn_b1_cpu_map) MDRV_CPU_PROGRAM_MAP(psn_b1_cpu_map)
/* /*
MDRV_CPU_ADD("psn_b2_cpu", M68000, 12000000) // ?? MDRV_CPU_ADD("psn_b2_cpu", M68000, 12000000) // ??
MDRV_CPU_PROGRAM_MAP(psn_b1_cpu_map,0) MDRV_CPU_PROGRAM_MAP(psn_b1_cpu_map,0)
MDRV_CPU_ADD("psn_b3_cpu", M68000, 12000000) // ?? MDRV_CPU_ADD("psn_b3_cpu", M68000, 12000000) // ??
MDRV_CPU_PROGRAM_MAP(psn_b1_cpu_map,0) MDRV_CPU_PROGRAM_MAP(psn_b1_cpu_map,0)
*/ */
MDRV_QUANTUM_TIME(HZ(60*8000)) /* 8000 CPU slices per frame */ MDRV_QUANTUM_TIME(HZ(60*8000)) /* 8000 CPU slices per frame */
@ -905,6 +905,6 @@ ROM_START( gal3 )
DISK_IMAGE_READONLY( "gal3_ld2", 0, NO_DUMP ) DISK_IMAGE_READONLY( "gal3_ld2", 0, NO_DUMP )
ROM_END ROM_END
/* YEAR, NAME, PARENT, MACHINE, INPUT, INIT, MONITOR, COMPANY, FULLNAME, FLAGS */ /* YEAR, NAME, PARENT, MACHINE, INPUT, INIT, MONITOR, COMPANY, FULLNAME, FLAGS */
GAMEL( 199?, gal3, 0, gal3, gal3, 0, ROT0, "Namco", "Galaxian 3 - Theater 6 : Project Dragoon", GAME_NOT_WORKING | GAME_NO_SOUND, layout_dualhsxs ) GAMEL( 199?, gal3, 0, gal3, gal3, 0, ROT0, "Namco", "Galaxian 3 - Theater 6 : Project Dragoon", GAME_NOT_WORKING | GAME_NO_SOUND, layout_dualhsxs )
//GAMEL( 199?, gal3zlgr, 0, gal3, gal3, 0, ROT0, "Namco", "Galaxian 3 - Theater 6 J2 : Attack of The Zolgear", GAME_NOT_WORKING | GAME_NO_SOUND, layout_dualhsxs ) //GAMEL( 199?, gal3zlgr, 0, gal3, gal3, 0, ROT0, "Namco", "Galaxian 3 - Theater 6 J2 : Attack of The Zolgear", GAME_NOT_WORKING | GAME_NO_SOUND, layout_dualhsxs )

View File

@ -53,8 +53,8 @@ struct _galaxi_state
UINT16 * bg3_ram; UINT16 * bg3_ram;
UINT16 * bg4_ram; UINT16 * bg4_ram;
UINT16 * fg_ram; UINT16 * fg_ram;
// UINT16 * paletteram; // currently this uses generic palette handling // UINT16 * paletteram; // currently this uses generic palette handling
// UINT16 * nvram; // currently this uses generic nvram handling // UINT16 * nvram; // currently this uses generic nvram handling
/* video-related */ /* video-related */
tilemap *bg1_tmap, *bg2_tmap, *bg3_tmap, *bg4_tmap, *fg_tmap; tilemap *bg1_tmap, *bg2_tmap, *bg3_tmap, *bg4_tmap, *fg_tmap;
@ -195,7 +195,7 @@ static VIDEO_UPDATE(galaxi)
static void show_out( running_machine *machine ) static void show_out( running_machine *machine )
{ {
// galaxi_state *state = (galaxi_state *)machine->driver_data; // galaxi_state *state = (galaxi_state *)machine->driver_data;
// popmessage("%04x %04x %04x", state->out[0], state->out[1], state->out[2]); // popmessage("%04x %04x %04x", state->out[0], state->out[1], state->out[2]);
} }

View File

@ -375,7 +375,7 @@ static MACHINE_DRIVER_START( groundfx )
TAITO_F3_SOUND_SYSTEM_CPU(16000000) TAITO_F3_SOUND_SYSTEM_CPU(16000000)
MDRV_MACHINE_RESET(groundfx) MDRV_MACHINE_RESET(groundfx)
// MDRV_NVRAM_HANDLER(groundfx) // MDRV_NVRAM_HANDLER(groundfx)
MDRV_EEPROM_ADD("eeprom", groundfx_eeprom_interface, 128, default_eeprom) MDRV_EEPROM_ADD("eeprom", groundfx_eeprom_interface, 128, default_eeprom)
/* video hardware */ /* video hardware */

View File

@ -580,8 +580,8 @@ static READ32_HANDLER( hng64_sysregs_r )
mame_system_time systime; mame_system_time systime;
mame_get_base_datetime(space->machine, &systime); mame_get_base_datetime(space->machine, &systime);
// if((offset*4) != 0x1084) // if((offset*4) != 0x1084)
// printf("HNG64 port read (PC=%08x) 0x%08x\n", cpu_get_pc(space->cpu),offset*4); // printf("HNG64 port read (PC=%08x) 0x%08x\n", cpu_get_pc(space->cpu),offset*4);
switch(offset*4) switch(offset*4)
{ {
@ -612,7 +612,7 @@ static READ32_HANDLER( hng64_sysregs_r )
case 0x217c: return 0; //RTC status? case 0x217c: return 0; //RTC status?
} }
// printf("%08x\n",offset*4); // printf("%08x\n",offset*4);
//return mame_rand(space->machine)&0xffffffff; //return mame_rand(space->machine)&0xffffffff;
return hng64_sysregs[offset]; return hng64_sysregs[offset];
@ -654,8 +654,8 @@ static WRITE32_HANDLER( hng64_sysregs_w )
{ {
COMBINE_DATA (&hng64_sysregs[offset]); COMBINE_DATA (&hng64_sysregs[offset]);
// if(((offset*4) & 0x1200) == 0x1200) // if(((offset*4) & 0x1200) == 0x1200)
// printf("HNG64 writing to SYSTEM Registers 0x%08x == 0x%08x. (PC=%08x)\n", offset*4, hng64_sysregs[offset], cpu_get_pc(space->cpu)); // printf("HNG64 writing to SYSTEM Registers 0x%08x == 0x%08x. (PC=%08x)\n", offset*4, hng64_sysregs[offset], cpu_get_pc(space->cpu));
switch(offset*4) switch(offset*4)
{ {
@ -796,17 +796,17 @@ static READ32_HANDLER( racing_io_r )
static READ32_HANDLER( hng64_dualport_r ) static READ32_HANDLER( hng64_dualport_r )
{ {
// printf("dualport R %08x %08x (PC=%08x)\n", offset*4, hng64_dualport[offset], cpu_get_pc(space->cpu)); // printf("dualport R %08x %08x (PC=%08x)\n", offset*4, hng64_dualport[offset], cpu_get_pc(space->cpu));
/* /*
command table: command table:
0x0b = ? mode input polling (sams64, bbust2, sams64_2 & roadedge) (*) 0x0b = ? mode input polling (sams64, bbust2, sams64_2 & roadedge) (*)
0x0c = cut down connections, treats the dualport to be normal RAM 0x0c = cut down connections, treats the dualport to be normal RAM
0x11 = ? mode input polling (fatfurwa, xrally, buriki) (*) 0x11 = ? mode input polling (fatfurwa, xrally, buriki) (*)
0x20 = asks for MCU machine code 0x20 = asks for MCU machine code
(*) 0x11 is followed by 0x0b if the latter is used, JVS-esque indirect/direct mode? (*) 0x11 is followed by 0x0b if the latter is used, JVS-esque indirect/direct mode?
*/ */
if(hng_mcu_en == 0x0c) if(hng_mcu_en == 0x0c)
return hng64_dualport[offset]; return hng64_dualport[offset];
@ -834,7 +834,7 @@ Beast Busters 2 outputs (all at offset == 0x1c):
static WRITE32_HANDLER( hng64_dualport_w ) static WRITE32_HANDLER( hng64_dualport_w )
{ {
// printf("dualport WRITE %08x %08x (PC=%08x)\n", offset*4, hng64_dualport[offset], cpu_get_pc(space->cpu)); // printf("dualport WRITE %08x %08x (PC=%08x)\n", offset*4, hng64_dualport[offset], cpu_get_pc(space->cpu));
COMBINE_DATA (&hng64_dualport[offset]); COMBINE_DATA (&hng64_dualport[offset]);
} }
@ -945,7 +945,7 @@ static WRITE32_HANDLER( tcram_w )
static READ32_HANDLER( tcram_r ) static READ32_HANDLER( tcram_r )
{ {
// printf("Q1 R : %.8x %.8x\n", offset, hng64_tcram[offset]) ; // printf("Q1 R : %.8x %.8x\n", offset, hng64_tcram[offset]) ;
if(offset == 0x12) if(offset == 0x12)
return input_port_read(space->machine, "VBLANK"); return input_port_read(space->machine, "VBLANK");
@ -1691,11 +1691,11 @@ static DRIVER_INIT( hng64 )
// region hacking, english error messages are more useful to us, but no english bios is dumped... // region hacking, english error messages are more useful to us, but no english bios is dumped...
#ifdef HACK_REGION #ifdef HACK_REGION
// versions according to fatal fury test mode // versions according to fatal fury test mode
// hng64_patch_bios_region(machine, 0); // 'Others Ver' (invalid?) // hng64_patch_bios_region(machine, 0); // 'Others Ver' (invalid?)
hng64_patch_bios_region(machine, 1); // Japan hng64_patch_bios_region(machine, 1); // Japan
// hng64_patch_bios_region(machine, 2); // USA // hng64_patch_bios_region(machine, 2); // USA
// hng64_patch_bios_region(machine, 3); // Korea // hng64_patch_bios_region(machine, 3); // Korea
// hng64_patch_bios_region(machine, 4); // 'Others' // hng64_patch_bios_region(machine, 4); // 'Others'
#endif #endif
hng64_soundram=auto_alloc_array(machine, UINT16, 0x200000/2); hng64_soundram=auto_alloc_array(machine, UINT16, 0x200000/2);

View File

@ -240,14 +240,14 @@ static INPUT_PORTS_START( jokrwild )
PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) PORT_DIPSETTING( 0x80, DEF_STR( Off ) )
PORT_DIPSETTING( 0x00, DEF_STR( On ) ) PORT_DIPSETTING( 0x00, DEF_STR( On ) )
/* PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("0-1") PORT_CODE(KEYCODE_1) /* PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("0-1") PORT_CODE(KEYCODE_1)
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("0-2") PORT_CODE(KEYCODE_2) PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("0-2") PORT_CODE(KEYCODE_2)
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("0-3") PORT_CODE(KEYCODE_3) PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("0-3") PORT_CODE(KEYCODE_3)
PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("0-4") PORT_CODE(KEYCODE_4) PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("0-4") PORT_CODE(KEYCODE_4)
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("0-5") PORT_CODE(KEYCODE_5) PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("0-5") PORT_CODE(KEYCODE_5)
PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("0-6") PORT_CODE(KEYCODE_6) PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("0-6") PORT_CODE(KEYCODE_6)
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("0-7") PORT_CODE(KEYCODE_7) PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("0-7") PORT_CODE(KEYCODE_7)
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("0-8") PORT_CODE(KEYCODE_8) PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("0-8") PORT_CODE(KEYCODE_8)
*/ */
PORT_START("IN1") PORT_START("IN1")
PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) )
@ -274,14 +274,14 @@ static INPUT_PORTS_START( jokrwild )
PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unknown ) ) PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unknown ) )
PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) PORT_DIPSETTING( 0x80, DEF_STR( Off ) )
PORT_DIPSETTING( 0x00, DEF_STR( On ) ) PORT_DIPSETTING( 0x00, DEF_STR( On ) )
/* PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("1-1") PORT_CODE(KEYCODE_Q) /* PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("1-1") PORT_CODE(KEYCODE_Q)
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("1-2") PORT_CODE(KEYCODE_W) PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("1-2") PORT_CODE(KEYCODE_W)
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("1-3") PORT_CODE(KEYCODE_E) PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("1-3") PORT_CODE(KEYCODE_E)
PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("1-4") PORT_CODE(KEYCODE_R) PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("1-4") PORT_CODE(KEYCODE_R)
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("1-5") PORT_CODE(KEYCODE_T) PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("1-5") PORT_CODE(KEYCODE_T)
PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("1-6") PORT_CODE(KEYCODE_Y) PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("1-6") PORT_CODE(KEYCODE_Y)
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("1-7") PORT_CODE(KEYCODE_U) PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("1-7") PORT_CODE(KEYCODE_U)
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("1-8") PORT_CODE(KEYCODE_I) PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("1-8") PORT_CODE(KEYCODE_I)
*/ */
PORT_START("IN2") PORT_START("IN2")
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("2-1") PORT_CODE(KEYCODE_A) PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("2-1") PORT_CODE(KEYCODE_A)
@ -388,12 +388,12 @@ GFXDECODE_END
static WRITE8_DEVICE_HANDLER( testa_w ) static WRITE8_DEVICE_HANDLER( testa_w )
{ {
// printf("%02x A\n",data); // printf("%02x A\n",data);
} }
static WRITE8_DEVICE_HANDLER( testb_w ) static WRITE8_DEVICE_HANDLER( testb_w )
{ {
// printf("%02x B\n",data); // printf("%02x B\n",data);
} }
static const pia6821_interface pia0_intf = static const pia6821_interface pia0_intf =

View File

@ -522,7 +522,7 @@ static INPUT_PORTS_START( legendoh )
PORT_BIT( 0x00010000, IP_ACTIVE_LOW, IPT_OUTPUT ) PORT_WRITE_LINE_DEVICE("eeprom", eepromdev_set_cs_line) PORT_BIT( 0x00010000, IP_ACTIVE_LOW, IPT_OUTPUT ) PORT_WRITE_LINE_DEVICE("eeprom", eepromdev_set_cs_line)
PORT_BIT( 0x00020000, IP_ACTIVE_HIGH, IPT_OUTPUT ) PORT_WRITE_LINE_DEVICE("eeprom", eepromdev_set_clock_line) PORT_BIT( 0x00020000, IP_ACTIVE_HIGH, IPT_OUTPUT ) PORT_WRITE_LINE_DEVICE("eeprom", eepromdev_set_clock_line)
PORT_BIT( 0x00040000, IP_ACTIVE_HIGH, IPT_OUTPUT ) PORT_WRITE_LINE_DEVICE("eeprom", eepromdev_write_bit) PORT_BIT( 0x00040000, IP_ACTIVE_HIGH, IPT_OUTPUT ) PORT_WRITE_LINE_DEVICE("eeprom", eepromdev_write_bit)
// PORT_BIT( 0x00080000, IP_ACTIVE_HIGH, IPT_UNKNOWN ) // 0x80000 -> video disabled? // PORT_BIT( 0x00080000, IP_ACTIVE_HIGH, IPT_UNKNOWN ) // 0x80000 -> video disabled?
INPUT_PORTS_END INPUT_PORTS_END
static INPUT_PORTS_START( sb2003 ) static INPUT_PORTS_START( sb2003 )
@ -567,7 +567,7 @@ static INPUT_PORTS_START( sb2003 )
PORT_BIT( 0x00010000, IP_ACTIVE_LOW, IPT_OUTPUT ) PORT_WRITE_LINE_DEVICE("eeprom", eepromdev_set_cs_line) PORT_BIT( 0x00010000, IP_ACTIVE_LOW, IPT_OUTPUT ) PORT_WRITE_LINE_DEVICE("eeprom", eepromdev_set_cs_line)
PORT_BIT( 0x00020000, IP_ACTIVE_HIGH, IPT_OUTPUT ) PORT_WRITE_LINE_DEVICE("eeprom", eepromdev_set_clock_line) PORT_BIT( 0x00020000, IP_ACTIVE_HIGH, IPT_OUTPUT ) PORT_WRITE_LINE_DEVICE("eeprom", eepromdev_set_clock_line)
PORT_BIT( 0x00040000, IP_ACTIVE_HIGH, IPT_OUTPUT ) PORT_WRITE_LINE_DEVICE("eeprom", eepromdev_write_bit) PORT_BIT( 0x00040000, IP_ACTIVE_HIGH, IPT_OUTPUT ) PORT_WRITE_LINE_DEVICE("eeprom", eepromdev_write_bit)
// PORT_BIT( 0x00080000, IP_ACTIVE_HIGH, IPT_UNKNOWN ) // 0x80000 -> video disabled? // PORT_BIT( 0x00080000, IP_ACTIVE_HIGH, IPT_UNKNOWN ) // 0x80000 -> video disabled?
INPUT_PORTS_END INPUT_PORTS_END
static INPUT_PORTS_START( spotty ) static INPUT_PORTS_START( spotty )
@ -611,7 +611,7 @@ static INPUT_PORTS_START( spotty )
PORT_BIT( 0x00010000, IP_ACTIVE_LOW, IPT_OUTPUT ) PORT_WRITE_LINE_DEVICE("eeprom", eepromdev_set_cs_line) PORT_BIT( 0x00010000, IP_ACTIVE_LOW, IPT_OUTPUT ) PORT_WRITE_LINE_DEVICE("eeprom", eepromdev_set_cs_line)
PORT_BIT( 0x00020000, IP_ACTIVE_HIGH, IPT_OUTPUT ) PORT_WRITE_LINE_DEVICE("eeprom", eepromdev_set_clock_line) PORT_BIT( 0x00020000, IP_ACTIVE_HIGH, IPT_OUTPUT ) PORT_WRITE_LINE_DEVICE("eeprom", eepromdev_set_clock_line)
PORT_BIT( 0x00040000, IP_ACTIVE_HIGH, IPT_OUTPUT ) PORT_WRITE_LINE_DEVICE("eeprom", eepromdev_write_bit) PORT_BIT( 0x00040000, IP_ACTIVE_HIGH, IPT_OUTPUT ) PORT_WRITE_LINE_DEVICE("eeprom", eepromdev_write_bit)
// PORT_BIT( 0x00080000, IP_ACTIVE_HIGH, IPT_UNKNOWN ) // 0x80000 -> video disabled? // PORT_BIT( 0x00080000, IP_ACTIVE_HIGH, IPT_UNKNOWN ) // 0x80000 -> video disabled?
INPUT_PORTS_END INPUT_PORTS_END
/***************************************************************************************************** /*****************************************************************************************************

View File

@ -1408,7 +1408,7 @@ static ADDRESS_MAP_START( nortest1_map, ADDRESS_SPACE_PROGRAM, 8 )
ADDRESS_MAP_END ADDRESS_MAP_END
static ADDRESS_MAP_START( norautxp_map, ADDRESS_SPACE_PROGRAM, 8 ) static ADDRESS_MAP_START( norautxp_map, ADDRESS_SPACE_PROGRAM, 8 )
// ADDRESS_MAP_GLOBAL_MASK(~0x4000) // ADDRESS_MAP_GLOBAL_MASK(~0x4000)
ADDRESS_MAP_GLOBAL_MASK(0x7fff) ADDRESS_MAP_GLOBAL_MASK(0x7fff)
AM_RANGE(0x0000, 0x3fff) AM_ROM /* need to be checked */ AM_RANGE(0x0000, 0x3fff) AM_ROM /* need to be checked */
AM_RANGE(0x6000, 0x67ff) AM_RAM AM_BASE_SIZE_GENERIC(nvram) /* HM6116 */ AM_RANGE(0x6000, 0x67ff) AM_RAM AM_BASE_SIZE_GENERIC(nvram) /* HM6116 */
@ -2676,90 +2676,90 @@ ROM_END
*/ */
//static DRIVER_INIT( norautrh ) //static DRIVER_INIT( norautrh )
//{ //{
// UINT8 *ROM = memory_region(machine, "maincpu"); // UINT8 *ROM = memory_region(machine, "maincpu");
// ROM[0x1110] = 0x00; // ROM[0x1110] = 0x00;
// ROM[0x1111] = 0x00; // ROM[0x1111] = 0x00;
//} //}
//static DRIVER_INIT( norautpn ) //static DRIVER_INIT( norautpn )
//{ //{
// UINT8 *ROM = memory_region(machine, "maincpu"); // UINT8 *ROM = memory_region(machine, "maincpu");
// ROM[0x0827] = 0x00; // ROM[0x0827] = 0x00;
// ROM[0x0828] = 0x00; // ROM[0x0828] = 0x00;
//} //}
//static DRIVER_INIT( norautu ) //static DRIVER_INIT( norautu )
//{ //{
// UINT8 *ROM = memory_region(machine, "maincpu"); // UINT8 *ROM = memory_region(machine, "maincpu");
// ROM[0x083c] = 0x00; // ROM[0x083c] = 0x00;
// ROM[0x083d] = 0x00; // ROM[0x083d] = 0x00;
// ROM[0x083e] = 0x00; // ROM[0x083e] = 0x00;
//} //}
//static DRIVER_INIT( gtipoker ) //static DRIVER_INIT( gtipoker )
//{ //{
// UINT8 *ROM = memory_region(machine, "maincpu"); // UINT8 *ROM = memory_region(machine, "maincpu");
// ROM[0x0cc6] = 0x00; // ROM[0x0cc6] = 0x00;
// ROM[0x0cc7] = 0x00; // ROM[0x0cc7] = 0x00;
// ROM[0x0cc8] = 0x00; // ROM[0x0cc8] = 0x00;
// ROM[0x10a5] = 0x00; // ROM[0x10a5] = 0x00;
// ROM[0x10a6] = 0x00; // ROM[0x10a6] = 0x00;
// ROM[0x10a7] = 0x00; // ROM[0x10a7] = 0x00;
//} //}
//static DRIVER_INIT( dphl ) //static DRIVER_INIT( dphl )
//{ //{
// UINT8 *ROM = memory_region(machine, "maincpu"); // UINT8 *ROM = memory_region(machine, "maincpu");
// ROM[0x1510] = 0x00; // ROM[0x1510] = 0x00;
// ROM[0x1511] = 0x00; // ROM[0x1511] = 0x00;
// ROM[0x1512] = 0x00; // ROM[0x1512] = 0x00;
//} //}
//static DRIVER_INIT( dphla ) //static DRIVER_INIT( dphla )
//{ //{
// UINT8 *ROM = memory_region(machine, "maincpu"); // UINT8 *ROM = memory_region(machine, "maincpu");
// ROM[0x0b09] = 0x00; // ROM[0x0b09] = 0x00;
// ROM[0x0b0a] = 0x00; // ROM[0x0b0a] = 0x00;
// ROM[0x0b0b] = 0x00; // ROM[0x0b0b] = 0x00;
//} //}
static DRIVER_INIT( enc ) static DRIVER_INIT( enc )
{ {
/* Attempt to decrypt the program ROM */ /* Attempt to decrypt the program ROM */
// UINT8 *rom = memory_region(machine, "maincpu"); // UINT8 *rom = memory_region(machine, "maincpu");
// UINT8 *buffer; // UINT8 *buffer;
// int size = 0x2000; //memory_region_length(machine, "maincpu"); // int size = 0x2000; //memory_region_length(machine, "maincpu");
// int start = 0; // int start = 0;
// int i; // int i;
// for (i = start; i < size; i++) // for (i = start; i < size; i++)
// { // {
// rom[i] = rom[i] ^ 0x09 ^ 0xff; // rom[i] = rom[i] ^ 0x09 ^ 0xff;
// rom[i+1] = rom[i+1] ^ 0xfb ^ 0xff; // rom[i+1] = rom[i+1] ^ 0xfb ^ 0xff;
// rom[i+2] = rom[i+2] ^ 0xb2 ^ 0xff; // rom[i+2] = rom[i+2] ^ 0xb2 ^ 0xff;
// rom[i+3] = rom[i+3] ^ 0x60 ^ 0xff; // rom[i+3] = rom[i+3] ^ 0x60 ^ 0xff;
// rom[i+4] = rom[i+4] ^ 0xce ^ 0xff; // rom[i+4] = rom[i+4] ^ 0xce ^ 0xff;
// rom[i+5] = rom[i+5] ^ 0x44 ^ 0xff; // rom[i+5] = rom[i+5] ^ 0x44 ^ 0xff;
// rom[i+6] = rom[i+6] ^ 0x6e ^ 0xff; // rom[i+6] = rom[i+6] ^ 0x6e ^ 0xff;
// rom[i+7] = rom[i+7] ^ 0x61 ^ 0xff; // rom[i+7] = rom[i+7] ^ 0x61 ^ 0xff;
// rom[i+8] = rom[i+8] ^ 0x37 ^ 0xff; // rom[i+8] = rom[i+8] ^ 0x37 ^ 0xff;
// rom[i+9] = rom[i+9] ^ 0x5e ^ 0xff; // rom[i+9] = rom[i+9] ^ 0x5e ^ 0xff;
// rom[i+10] = rom[i+10] ^ 0xfb ^ 0xff; // rom[i+10] = rom[i+10] ^ 0xfb ^ 0xff;
// rom[i+11] = rom[i+11] ^ 0xc6 ^ 0xff; // rom[i+11] = rom[i+11] ^ 0xc6 ^ 0xff;
// rom[i+12] = rom[i+12] ^ 0x1d ^ 0xff; // rom[i+12] = rom[i+12] ^ 0x1d ^ 0xff;
// rom[i+13] = rom[i+13] ^ 0x33 ^ 0xff; // rom[i+13] = rom[i+13] ^ 0x33 ^ 0xff;
// rom[i+14] = rom[i+14] ^ 0x00 ^ 0xff; // rom[i+14] = rom[i+14] ^ 0x00 ^ 0xff;
// rom[i+15] = rom[i+15] ^ 0xff ^ 0xff; // rom[i+15] = rom[i+15] ^ 0xff ^ 0xff;
// i = i + 16; // i = i + 16;
// } // }
// buffer = alloc_array_or_die(UINT8, size); // buffer = alloc_array_or_die(UINT8, size);
// memcpy(buffer, rom, size); // memcpy(buffer, rom, size);
// free(buffer); // free(buffer);
} }
static DRIVER_INIT( deb ) static DRIVER_INIT( deb )

View File

@ -370,23 +370,23 @@ ROM_END
so tiles 0x00 and 0x01 use bytes 0x000-0x007 so tiles 0x00 and 0x01 use bytes 0x000-0x007
0x02 0x008 0x02 0x008
0x04 0x010 0x04 0x010
0x06 0x018 0x06 0x018
0x08 0x020 0x08 0x020
0x0a 0x028 0x0a 0x028
0x0c 0x030 0x0c 0x030
0x0e 0x038 0x0e 0x038
0x10 0x040 0x10 0x040
....... .......
0xfe and 0xff use bytes 0x3f8-0x3ff 0xfe and 0xff use bytes 0x3f8-0x3ff
etc. etc.
it's probably some kind of lookup table for the colours (6bpp = 8 colours, maybe every 2 tiles share the same 8 colours) it's probably some kind of lookup table for the colours (6bpp = 8 colours, maybe every 2 tiles share the same 8 colours)
I guess either the bank (0/1) can be selected, or bank 0 is hardcoded to tiles 0x000-0x0ff (because tilemaps can use I guess either the bank (0/1) can be selected, or bank 0 is hardcoded to tiles 0x000-0x0ff (because tilemaps can use
these tiles too, so it's not a case of it being a sprite/tilemap lookup split) these tiles too, so it's not a case of it being a sprite/tilemap lookup split)
anyway.. this is why the portraits logo is broken across 3 areas (0x1f2, 0x2f2, 0x3f2) so that they can share the same anyway.. this is why the portraits logo is broken across 3 areas (0x1f2, 0x2f2, 0x3f2) so that they can share the same
attributes from this rom attributes from this rom
*/ */

View File

@ -144,15 +144,15 @@ VIDEO_UPDATE(sub)
/* /*
sprite bank 1 sprite bank 1
0 xxxx xxxx X offset 0 xxxx xxxx X offset
1 tttt tttt tile offset 1 tttt tttt tile offset
sprite bank 2 sprite bank 2
0 yyyy yyyy Y offset 0 yyyy yyyy Y offset
1 f--- ---- flips the X offset 1 f--- ---- flips the X offset
1 -f-- ---- flip y, inverted 1 -f-- ---- flip y, inverted
1 --cc cccc color 1 --cc cccc color
*/ */
{ {
UINT8 *spriteram = screen->machine->generic.spriteram.u8; UINT8 *spriteram = screen->machine->generic.spriteram.u8;
UINT8 *spriteram_2 = screen->machine->generic.spriteram2.u8; UINT8 *spriteram_2 = screen->machine->generic.spriteram2.u8;
@ -300,11 +300,11 @@ static INPUT_PORTS_START( sub )
PORT_DIPSETTING( 0x90, DEF_STR( 1C_6C ) ) PORT_DIPSETTING( 0x90, DEF_STR( 1C_6C ) )
PORT_DIPSETTING( 0x00, DEF_STR( Free_Play ) ) PORT_DIPSETTING( 0x00, DEF_STR( Free_Play ) )
// Duplicates // Duplicates
// PORT_DIPSETTING( 0xa0, DEF_STR( 1C_3C ) ) // PORT_DIPSETTING( 0xa0, DEF_STR( 1C_3C ) )
// PORT_DIPSETTING( 0xb0, DEF_STR( 1C_5C ) ) // PORT_DIPSETTING( 0xb0, DEF_STR( 1C_5C ) )
// PORT_DIPSETTING( 0xc0, DEF_STR( 1C_6C ) ) // PORT_DIPSETTING( 0xc0, DEF_STR( 1C_6C ) )
// PORT_DIPSETTING( 0xd0, DEF_STR( 1C_1C ) ) // PORT_DIPSETTING( 0xd0, DEF_STR( 1C_1C ) )
// PORT_DIPSETTING( 0xe0, DEF_STR( 1C_2C ) ) // PORT_DIPSETTING( 0xe0, DEF_STR( 1C_2C ) )
PORT_START("DSW1") PORT_START("DSW1")
PORT_DIPNAME( 0x03, 0x00, DEF_STR( Lives ) ) PORT_DIPNAME( 0x03, 0x00, DEF_STR( Lives ) )

View File

@ -12,8 +12,8 @@ struct _actfancr_state
UINT8 * pf2_data; UINT8 * pf2_data;
UINT8 * pf1_rowscroll_data; UINT8 * pf1_rowscroll_data;
UINT8 * main_ram; UINT8 * main_ram;
// UINT8 * spriteram; // currently this uses buffered_spriteram // UINT8 * spriteram; // currently this uses buffered_spriteram
// UINT8 * paletteram; // currently this uses generic palette handling // UINT8 * paletteram; // currently this uses generic palette handling
/* video-related */ /* video-related */
tilemap *pf1_tilemap, *pf1_alt_tilemap, *pf2_tilemap; tilemap *pf1_tilemap, *pf1_alt_tilemap, *pf2_tilemap;

View File

@ -10,7 +10,7 @@ struct _aquarium_state
UINT16 * mid_videoram; UINT16 * mid_videoram;
UINT16 * bak_videoram; UINT16 * bak_videoram;
UINT16 * spriteram; UINT16 * spriteram;
// UINT16 * paletteram; // currently this uses generic palette handling // UINT16 * paletteram; // currently this uses generic palette handling
size_t spriteram_size; size_t spriteram_size;
/* video-related */ /* video-related */

View File

@ -10,8 +10,8 @@ struct _armedf_state
UINT16 * bg_videoram; UINT16 * bg_videoram;
UINT16 * fg_videoram; UINT16 * fg_videoram;
UINT16 * legion_cmd; // legion only! UINT16 * legion_cmd; // legion only!
// UINT16 * spriteram; // currently this uses generic buffered_spriteram // UINT16 * spriteram; // currently this uses generic buffered_spriteram
// UINT16 * paletteram; // currently this uses generic palette handling // UINT16 * paletteram; // currently this uses generic palette handling
/* video-related */ /* video-related */
tilemap *bg_tilemap,*fg_tilemap, *tx_tilemap; tilemap *bg_tilemap,*fg_tilemap, *tx_tilemap;

View File

@ -17,7 +17,7 @@ struct _ashnojoe_state
UINT16 * tileram_6; UINT16 * tileram_6;
UINT16 * tileram_7; UINT16 * tileram_7;
UINT16 * tilemap_reg; UINT16 * tilemap_reg;
// UINT16 * paletteram; // currently this uses generic palette handling // UINT16 * paletteram; // currently this uses generic palette handling
/* video-related */ /* video-related */
tilemap *joetilemap, *joetilemap2, *joetilemap3, *joetilemap4, *joetilemap5, *joetilemap6, *joetilemap7; tilemap *joetilemap, *joetilemap2, *joetilemap3, *joetilemap4, *joetilemap5, *joetilemap6, *joetilemap7;

View File

@ -9,9 +9,9 @@ struct _blktiger_state
{ {
/* memory pointers */ /* memory pointers */
UINT8 * txvideoram; UINT8 * txvideoram;
// UINT8 * spriteram; // currently this uses generic buffer_spriteram_w // UINT8 * spriteram; // currently this uses generic buffer_spriteram_w
// UINT8 * paletteram; // currently this uses generic palette handling // UINT8 * paletteram; // currently this uses generic palette handling
// UINT8 * paletteram2; // currently this uses generic palette handling // UINT8 * paletteram2; // currently this uses generic palette handling
/* video-related */ /* video-related */
tilemap *tx_tilemap, *bg_tilemap8x4, *bg_tilemap4x8; tilemap *tx_tilemap, *bg_tilemap8x4, *bg_tilemap4x8;

View File

@ -1,6 +1,6 @@
/************************************************************************* /*************************************************************************
Bogey Manor Bogey Manor
*************************************************************************/ *************************************************************************/
@ -13,7 +13,7 @@ struct _bogeyman_state
UINT8 * colorram; UINT8 * colorram;
UINT8 * colorram2; UINT8 * colorram2;
UINT8 * spriteram; UINT8 * spriteram;
// UINT8 * paletteram; // currently this uses generic palette handling // UINT8 * paletteram; // currently this uses generic palette handling
size_t spriteram_size; size_t spriteram_size;
/* video-related */ /* video-related */

View File

@ -11,7 +11,7 @@ struct _bombjack_state
UINT8 * videoram; UINT8 * videoram;
UINT8 * colorram; UINT8 * colorram;
UINT8 * spriteram; UINT8 * spriteram;
// UINT8 * paletteram; // currently this uses generic palette handling // UINT8 * paletteram; // currently this uses generic palette handling
size_t spriteram_size; size_t spriteram_size;
/* video-related */ /* video-related */

View File

@ -5,13 +5,13 @@ struct _btime_state
/* memory pointers */ /* memory pointers */
UINT8 * videoram; UINT8 * videoram;
UINT8 * colorram; UINT8 * colorram;
// UINT8 * paletteram; // currently this uses generic palette handling // UINT8 * paletteram; // currently this uses generic palette handling
UINT8 * lnc_charbank; UINT8 * lnc_charbank;
UINT8 * bnj_backgroundram; UINT8 * bnj_backgroundram;
UINT8 * zoar_scrollram; UINT8 * zoar_scrollram;
UINT8 * deco_charram; UINT8 * deco_charram;
UINT8 * spriteram; // used by disco UINT8 * spriteram; // used by disco
// UINT8 * decrypted; // UINT8 * decrypted;
UINT8 * rambase; UINT8 * rambase;
UINT8 * audio_rambase; UINT8 * audio_rambase;
size_t videoram_size; size_t videoram_size;

View File

@ -6,7 +6,7 @@ struct _bublbobl_state
UINT8 * mcu_sharedram; UINT8 * mcu_sharedram;
UINT8 * videoram; UINT8 * videoram;
UINT8 * objectram; UINT8 * objectram;
// UINT8 * paletteram; // currently this uses generic palette handling // UINT8 * paletteram; // currently this uses generic palette handling
size_t videoram_size; size_t videoram_size;
size_t objectram_size; size_t objectram_size;

View File

@ -9,7 +9,7 @@ struct _capbowl_state
{ {
/* memory pointers */ /* memory pointers */
UINT8 * rowaddress; UINT8 * rowaddress;
// UINT8 * nvram; // currently this uses generic_nvram // UINT8 * nvram; // currently this uses generic_nvram
/* video-related */ /* video-related */
offs_t blitter_addr; offs_t blitter_addr;

View File

@ -10,8 +10,8 @@ struct _ccastles_state
/* memory pointers */ /* memory pointers */
UINT8 * videoram; UINT8 * videoram;
UINT8 * spriteram; UINT8 * spriteram;
// UINT8 * nvram_stage; // currently this uses generic nvram handlers // UINT8 * nvram_stage; // currently this uses generic nvram handlers
// UINT8 * nvram; // currently this uses generic nvram handlers // UINT8 * nvram; // currently this uses generic nvram handlers
/* video-related */ /* video-related */
const UINT8 *syncprom; const UINT8 *syncprom;

View File

@ -12,7 +12,7 @@ struct _citycon_state
UINT8 * linecolor; UINT8 * linecolor;
UINT8 * scroll; UINT8 * scroll;
UINT8 * spriteram; UINT8 * spriteram;
// UINT8 * paletteram; // currently this uses generic palette handling // UINT8 * paletteram; // currently this uses generic palette handling
size_t spriteram_size; size_t spriteram_size;
/* video-related */ /* video-related */

View File

@ -11,8 +11,8 @@ struct _cloud9_state
UINT8 * videoram; UINT8 * videoram;
UINT8 * spriteram; UINT8 * spriteram;
UINT8 * paletteram; UINT8 * paletteram;
// UINT8 * nvram_stage; // currently this uses generic nvram handlers // UINT8 * nvram_stage; // currently this uses generic nvram handlers
// UINT8 * nvram; // currently this uses generic nvram handlers // UINT8 * nvram; // currently this uses generic nvram handlers
/* video-related */ /* video-related */
const UINT8 *syncprom; const UINT8 *syncprom;

View File

@ -12,7 +12,7 @@ struct _commando_state
UINT8 * colorram; UINT8 * colorram;
UINT8 * videoram2; UINT8 * videoram2;
UINT8 * colorram2; UINT8 * colorram2;
// UINT8 * spriteram; // currently this uses generic buffered_spriteram // UINT8 * spriteram; // currently this uses generic buffered_spriteram
/* video-related */ /* video-related */
tilemap *bg_tilemap, *fg_tilemap; tilemap *bg_tilemap, *fg_tilemap;

View File

@ -11,7 +11,7 @@ struct _crospang_state
UINT16 * bg_videoram; UINT16 * bg_videoram;
UINT16 * fg_videoram; UINT16 * fg_videoram;
UINT16 * spriteram; UINT16 * spriteram;
// UINT16 * paletteram; // currently this uses generic palette handling // UINT16 * paletteram; // currently this uses generic palette handling
size_t spriteram_size; size_t spriteram_size;
/* video-related */ /* video-related */

View File

@ -16,8 +16,8 @@ struct _ddragon_state
UINT8 * scrollx_lo; UINT8 * scrollx_lo;
UINT8 * scrolly_lo; UINT8 * scrolly_lo;
UINT8 * darktowr_mcu_ports; UINT8 * darktowr_mcu_ports;
// UINT8 * paletteram; // currently this uses generic palette handling // UINT8 * paletteram; // currently this uses generic palette handling
// UINT8 * paletteram_2; // currently this uses generic palette handling // UINT8 * paletteram_2; // currently this uses generic palette handling
size_t spriteram_size; // FIXME: this appears in chinagat.c, but is it really used? size_t spriteram_size; // FIXME: this appears in chinagat.c, but is it really used?
/* video-related */ /* video-related */

View File

@ -12,7 +12,7 @@ struct _ddragon3_state
UINT16 * bg_videoram; UINT16 * bg_videoram;
UINT16 * fg_videoram; UINT16 * fg_videoram;
UINT16 * spriteram; UINT16 * spriteram;
// UINT16 * paletteram; // currently this uses generic palette handling // UINT16 * paletteram; // currently this uses generic palette handling
/* video-related */ /* video-related */
tilemap *fg_tilemap, *bg_tilemap; tilemap *fg_tilemap, *bg_tilemap;

View File

@ -7,9 +7,9 @@ struct _dec8_state
UINT8 * pf0_data; UINT8 * pf0_data;
UINT8 * pf1_data; UINT8 * pf1_data;
UINT8 * row; UINT8 * row;
// UINT8 * paletteram; // currently this uses generic palette handling // UINT8 * paletteram; // currently this uses generic palette handling
// UINT8 * paletteram_2; // currently this uses generic palette handling // UINT8 * paletteram_2; // currently this uses generic palette handling
// UINT8 * spriteram; // currently this uses buffered_spriteram in some games // UINT8 * spriteram; // currently this uses buffered_spriteram in some games
size_t videoram_size; size_t videoram_size;
/* video-related */ /* video-related */

View File

@ -10,7 +10,7 @@ struct _dogfgt_state
UINT8 * bgvideoram; UINT8 * bgvideoram;
UINT8 * spriteram; UINT8 * spriteram;
UINT8 * sharedram; UINT8 * sharedram;
// UINT8 * paletteram; // currently this uses generic palette handling // UINT8 * paletteram; // currently this uses generic palette handling
size_t spriteram_size; size_t spriteram_size;
/* video-related */ /* video-related */

View File

@ -10,7 +10,7 @@ struct _drgnmst_state
UINT16 * rowscrollram; UINT16 * rowscrollram;
UINT16 * vidregs2; UINT16 * vidregs2;
UINT16 * spriteram; UINT16 * spriteram;
// UINT16 * paletteram; // currently this uses generic palette handling // UINT16 * paletteram; // currently this uses generic palette handling
size_t spriteram_size; size_t spriteram_size;
/* video-related */ /* video-related */

View File

@ -12,7 +12,7 @@ struct _equites_state
UINT16 * spriteram_2; UINT16 * spriteram_2;
UINT16 * workram; UINT16 * workram;
UINT8 * mcu_ram; // 8bits UINT8 * mcu_ram; // 8bits
// UINT16 * nvram; // currently this uses generic nvram handling // UINT16 * nvram; // currently this uses generic nvram handling
/* video-related */ /* video-related */
tilemap *fg_tilemap, *bg_tilemap; tilemap *fg_tilemap, *bg_tilemap;

View File

@ -16,7 +16,7 @@ struct _esd16_state
UINT16 * head_layersize; UINT16 * head_layersize;
UINT16 * headpanic_platform_x; UINT16 * headpanic_platform_x;
UINT16 * headpanic_platform_y; UINT16 * headpanic_platform_y;
// UINT16 * paletteram; // currently this uses generic palette handling // UINT16 * paletteram; // currently this uses generic palette handling
size_t spriteram_size; size_t spriteram_size;
/* video-related */ /* video-related */

View File

@ -14,7 +14,7 @@ struct _exedexes_state
UINT8 * bg_scroll; UINT8 * bg_scroll;
UINT8 * nbg_yscroll; UINT8 * nbg_yscroll;
UINT8 * nbg_xscroll; UINT8 * nbg_xscroll;
// UINT8 * spriteram; // currently this uses generic buffered_spriteram // UINT8 * spriteram; // currently this uses generic buffered_spriteram
/* video-related */ /* video-related */
tilemap *bg_tilemap, *fg_tilemap, *tx_tilemap; tilemap *bg_tilemap, *fg_tilemap, *tx_tilemap;

View File

@ -20,7 +20,7 @@ struct _exprraid_state
int bg_index[4]; int bg_index[4];
/* misc */ /* misc */
//int coin; // used in the commented out INTERRUPT_GEN - can this be removed? //int coin; // used in the commented out INTERRUPT_GEN - can this be removed?
/* devices */ /* devices */
const device_config *maincpu; const device_config *maincpu;

View File

@ -4,9 +4,9 @@ typedef struct _fantland_state fantland_state;
struct _fantland_state struct _fantland_state
{ {
/* memory pointers */ /* memory pointers */
// UINT8 * spriteram; // currently directly used in a 16bit map... // UINT8 * spriteram; // currently directly used in a 16bit map...
// UINT8 * spriteram_2; // currently directly used in a 16bit map... // UINT8 * spriteram_2; // currently directly used in a 16bit map...
// UINT8 * paletteram; // currently this uses generic palette handling // UINT8 * paletteram; // currently this uses generic palette handling
/* misc */ /* misc */
UINT8 nmi_enable; UINT8 nmi_enable;

View File

@ -13,7 +13,7 @@ struct _fitfight_state
UINT16 * fof_mid_tileram; UINT16 * fof_mid_tileram;
UINT16 * fof_txt_tileram; UINT16 * fof_txt_tileram;
UINT16 * spriteram; UINT16 * spriteram;
// UINT16 * paletteram; // currently this uses generic palette handling // UINT16 * paletteram; // currently this uses generic palette handling
/* video-related */ /* video-related */
tilemap *fof_bak_tilemap, *fof_mid_tilemap, *fof_txt_tilemap; tilemap *fof_bak_tilemap, *fof_mid_tilemap, *fof_txt_tilemap;

View File

@ -7,8 +7,8 @@ struct _flstory_state
UINT8 * workram; UINT8 * workram;
UINT8 * scrlram; UINT8 * scrlram;
UINT8 * spriteram; UINT8 * spriteram;
// UINT8 * paletteram; // currently this uses generic palette handling // UINT8 * paletteram; // currently this uses generic palette handling
// UINT8 * paletteram_2; // currently this uses generic palette handling // UINT8 * paletteram_2; // currently this uses generic palette handling
size_t videoram_size; size_t videoram_size;
size_t spriteram_size; size_t spriteram_size;

View File

@ -12,7 +12,7 @@ struct _fuuki16_state
UINT16 * priority; UINT16 * priority;
UINT16 * unknown; UINT16 * unknown;
UINT16 * spriteram; UINT16 * spriteram;
// UINT16 * paletteram; // currently this uses generic palette handling // UINT16 * paletteram; // currently this uses generic palette handling
size_t spriteram_size; size_t spriteram_size;
/* video-related */ /* video-related */

View File

@ -24,7 +24,7 @@ struct _tnzs_state
UINT8 * scrollram; UINT8 * scrollram;
UINT8 * objctrl; UINT8 * objctrl;
UINT8 * bg_flag; UINT8 * bg_flag;
// UINT8 * paletteram; // currently this uses generic palette handling // UINT8 * paletteram; // currently this uses generic palette handling
/* video-related */ /* video-related */
int screenflip; int screenflip;
@ -46,7 +46,7 @@ struct _tnzs_state
/* game-specific */ /* game-specific */
// champbwl // champbwl
UINT8 last_trackball_val[2]; UINT8 last_trackball_val[2];
// UINT8 * nvram; // currently this uses generic_nvram // UINT8 * nvram; // currently this uses generic_nvram
// cchance // cchance
UINT8 hop_io, bell_io; UINT8 hop_io, bell_io;

View File

@ -1,6 +1,6 @@
/************************************************************************* /*************************************************************************
Yun Sung 16 Bit Games Yun Sung 16 Bit Games
*************************************************************************/ *************************************************************************/
@ -13,7 +13,7 @@ struct _yunsun16_state
UINT16 * scrollram_0; UINT16 * scrollram_0;
UINT16 * scrollram_1; UINT16 * scrollram_1;
UINT16 * priorityram; UINT16 * priorityram;
// UINT16 * paletteram; // currently this uses generic palette handling // UINT16 * paletteram; // currently this uses generic palette handling
UINT16 * spriteram; UINT16 * spriteram;
size_t spriteram_size; size_t spriteram_size;

View File

@ -1,6 +1,6 @@
/************************************************************************* /*************************************************************************
Zero Zone Zero Zone
*************************************************************************/ *************************************************************************/
@ -9,7 +9,7 @@ struct _zerozone_state
{ {
/* memory pointers */ /* memory pointers */
UINT16 * videoram; UINT16 * videoram;
// UINT16 * paletteram; // currently this uses generic palette handling // UINT16 * paletteram; // currently this uses generic palette handling
size_t videoram_size; size_t videoram_size;
/* video-related */ /* video-related */

View File

@ -196,7 +196,7 @@ WRITE8_HANDLER( blktiger_screen_layout_w )
static void draw_sprites( running_machine *machine, bitmap_t *bitmap, const rectangle *cliprect ) static void draw_sprites( running_machine *machine, bitmap_t *bitmap, const rectangle *cliprect )
{ {
// blktiger_state *state = (blktiger_state *)machine->driver_data; // blktiger_state *state = (blktiger_state *)machine->driver_data;
UINT8 *buffered_spriteram = machine->generic.buffered_spriteram.u8; UINT8 *buffered_spriteram = machine->generic.buffered_spriteram.u8;
int offs; int offs;

View File

@ -525,7 +525,7 @@ VIDEO_UPDATE( bnj )
copyscrollbitmap(bitmap, state->background_bitmap, 1, &scroll, 0, 0, cliprect); copyscrollbitmap(bitmap, state->background_bitmap, 1, &scroll, 0, 0, cliprect);
/* copy the low priority characters followed by the sprites /* copy the low priority characters followed by the sprites
then the high priority characters */ then the high priority characters */
draw_chars(screen->machine, bitmap, cliprect, TRUE, 0, 1); draw_chars(screen->machine, bitmap, cliprect, TRUE, 0, 1);
draw_sprites(screen->machine, bitmap, cliprect, 0, 0, 0, state->videoram, 0x20); draw_sprites(screen->machine, bitmap, cliprect, 0, 0, 0, state->videoram, 0x20);
draw_chars(screen->machine, bitmap, cliprect, TRUE, 0, 0); draw_chars(screen->machine, bitmap, cliprect, TRUE, 0, 0);

View File

@ -226,10 +226,10 @@ VIDEO_START( bwing )
for (i = 0; i < 8; i++) for (i = 0; i < 8; i++)
state->sreg[i] = 0; state->sreg[i] = 0;
// state->fgfx = machine->gfx[2]; // state->fgfx = machine->gfx[2];
gfx_element_set_source(machine->gfx[2], state->srbase[1]); gfx_element_set_source(machine->gfx[2], state->srbase[1]);
// state->bgfx = machine->gfx[3]; // state->bgfx = machine->gfx[3];
gfx_element_set_source(machine->gfx[3], state->srbase[1] + 0x1000); gfx_element_set_source(machine->gfx[3], state->srbase[1] + 0x1000);
dwptr = machine->gfx[2]->pen_usage; dwptr = machine->gfx[2]->pen_usage;

View File

@ -1459,8 +1459,8 @@ static void hng64_drawtilemap(running_machine* machine, bitmap_t *bitmap, const
if ((tileregs & 0x1800)==0x1000) // floor mode if ((tileregs & 0x1800)==0x1000) // floor mode
{ {
/* Floor mode - per pixel simple / complex modes? -- every other line? /* Floor mode - per pixel simple / complex modes? -- every other line?
(there doesn't seem to be enough data in Buriki for every line at least) (there doesn't seem to be enough data in Buriki for every line at least)
*/ */
if ((tileregs&0xf000) == 0x1000) if ((tileregs&0xf000) == 0x1000)
{ {
popmessage("Floor is Active"); popmessage("Floor is Active");
@ -1480,17 +1480,17 @@ static void hng64_drawtilemap(running_machine* machine, bitmap_t *bitmap, const
{ {
/* complex zoom mode? */ /* complex zoom mode? */
/* with this scroll register layout rotation effects are possible /* with this scroll register layout rotation effects are possible
the most obvious use of rotation is the Buriki One logo after the most obvious use of rotation is the Buriki One logo after
attract mode; the text around the outside of the logo is rotated attract mode; the text around the outside of the logo is rotated
onto the screen onto the screen
see 1:32 in http://www.youtube.com/watch?v=PoYaHOILuGs see 1:32 in http://www.youtube.com/watch?v=PoYaHOILuGs
Xtreme Rally seems to have an issue with this mode on the communication check Xtreme Rally seems to have an issue with this mode on the communication check
screen at startup, but according to videos that should scroll, and no scroll screen at startup, but according to videos that should scroll, and no scroll
values are updated, so it might be an unrelated bug. values are updated, so it might be an unrelated bug.
*/ */
INT32 xtopleft,xmiddle, xalt; INT32 xtopleft,xmiddle, xalt;
INT32 ytopleft,ymiddle, yalt; INT32 ytopleft,ymiddle, yalt;
@ -1584,8 +1584,8 @@ static void hng64_drawtilemap(running_machine* machine, bitmap_t *bitmap, const
{ {
/* simple zoom mode? - only 4 regs? */ /* simple zoom mode? - only 4 regs? */
/* in this mode they can only specify the top left and middle screen points for each tilemap, /* in this mode they can only specify the top left and middle screen points for each tilemap,
this allows simple zooming, but not rotation this allows simple zooming, but not rotation
*/ */
INT32 xtopleft,xmiddle; INT32 xtopleft,xmiddle;
@ -1603,9 +1603,9 @@ static void hng64_drawtilemap(running_machine* machine, bitmap_t *bitmap, const
if (hng64_videoregs[0x00]&0x00010000) // disable all scrolling / zoom (test screen) (maybe) if (hng64_videoregs[0x00]&0x00010000) // disable all scrolling / zoom (test screen) (maybe)
{ {
/* If this bit is active the scroll registers don't seem valid at all? /* If this bit is active the scroll registers don't seem valid at all?
It either disables zooming, or disables use of the scroll registers completely It either disables zooming, or disables use of the scroll registers completely
- used at startup - used at startup
*/ */
xtopleft = 0; xtopleft = 0;
xmiddle = 256<<16; xmiddle = 256<<16;
@ -1689,7 +1689,7 @@ static void hng64_drawtilemap(running_machine* machine, bitmap_t *bitmap, const
* -------+-1098-7654-3210-9876-5432-1098-7654-3210-+---------------- * -------+-1098-7654-3210-9876-5432-1098-7654-3210-+----------------
* 0 | ---- -C-- ---- -??Z ---- ---- ---- ---- | unknown (scroll control?) C = Global Complex zoom, ? = Always Set?, Z = Global Zoom Disable? * 0 | ---- -C-- ---- -??Z ---- ---- ---- ---- | unknown (scroll control?) C = Global Complex zoom, ? = Always Set?, Z = Global Zoom Disable?
0000 0011 - road edge alt 1 0000 0011 - road edge alt 1
0000 0111 - road edge alt 2 0000 0111 - road edge alt 2
* 1 | xxxx xxxx xxxx xxxx ---- ---- ---- ---- | looks like it's 0001 most (all) of the time - turns off in buriki intro * 1 | xxxx xxxx xxxx xxxx ---- ---- ---- ---- | looks like it's 0001 most (all) of the time - turns off in buriki intro
* 1 | ---- ---- ---- ---- oooo oooo oooo oooo | unknown - always seems to be 0000 (fatfurwa) * 1 | ---- ---- ---- ---- oooo oooo oooo oooo | unknown - always seems to be 0000 (fatfurwa)
* 2 | xxxx xxxx xxxx xxxx ---- ---- ---- ---- | tilemap0 per layer flags * 2 | xxxx xxxx xxxx xxxx ---- ---- ---- ---- | tilemap0 per layer flags
@ -1710,26 +1710,26 @@ static void hng64_drawtilemap(running_machine* machine, bitmap_t *bitmap, const
* d | oooo oooo oooo oooo oooo oooo oooo oooo | not used ?? * d | oooo oooo oooo oooo oooo oooo oooo oooo | not used ??
* e | oooo oooo oooo oooo oooo oooo oooo oooo | not used ?? * e | oooo oooo oooo oooo oooo oooo oooo oooo | not used ??
per tile regs (0x2/0x3) per tile regs (0x2/0x3)
// tilemap0 per layer flags // tilemap0 per layer flags
// 0840 - startup tests, 8x8x4 layer // 0840 - startup tests, 8x8x4 layer
// 0cc0 - beast busters 2, 8x8x8 layer // 0cc0 - beast busters 2, 8x8x8 layer
// 0860 - fatal fury wa // 0860 - fatal fury wa
// 08e0 - fatal fury wa during transitions // 08e0 - fatal fury wa during transitions
// 0940 - samurai shodown 64 // 0940 - samurai shodown 64
// 0880 - buriki // 0880 - buriki
// mmml dbr? ???? ???? // mmml dbr? ???? ????
// m = mosaic related? (xrally, l maybe too) // m = mosaic related? (xrally, l maybe too)
// l = floor effects / linescroll enable (buriki on tilemap1, fatal fury on tilemap3) - also enables for rotating logo on buriki ?! // l = floor effects / linescroll enable (buriki on tilemap1, fatal fury on tilemap3) - also enables for rotating logo on buriki ?!
// r = tile size (seems correct) // r = tile size (seems correct)
// b = 4bpp/8bpp (seems correct) (beast busters, samsh64, sasm64 2, xrally switch it for some screens) // b = 4bpp/8bpp (seems correct) (beast busters, samsh64, sasm64 2, xrally switch it for some screens)
// d = floor / mosaic toggle // d = floor / mosaic toggle
// when d = 0 then l = floor enable // when d = 0 then l = floor enable
// when d = 1 then l = lower part of mosaic? // when d = 1 then l = lower part of mosaic?
// (buriki one floor vs. 2nd game logo sequence seems a good example) // (buriki one floor vs. 2nd game logo sequence seems a good example)
// could have other meanings too? // could have other meanings too?
*/ */

View File

@ -5159,16 +5159,16 @@ static RDP_COMMAND( rdp_load_tlut )
break; break;
} }
/* /*
case PIXEL_SIZE_16BIT: case PIXEL_SIZE_16BIT:
{ {
UINT16 *src = (UINT16*)&rdram[(ti_address + (tl >> 2) * (ti_width << 1) + (sl >> 1)) >> 2]; UINT16 *src = (UINT16*)&rdram[(ti_address + (tl >> 2) * (ti_width << 1) + (sl >> 1)) >> 2];
for (i = (sl >> 2); i <= (sh >> 2); i++) for (i = (sl >> 2); i <= (sh >> 2); i++)
{ {
tlut[i] = src[i]; tlut[i] = src[i];
} }
break; break;
}*/ }*/
default: stricterror("RDP: load_tlut: size = %d\n", ti_size); default: stricterror("RDP: load_tlut: size = %d\n", ti_size);
} }

View File

@ -83,20 +83,20 @@ PALETTE_INIT( portrait )
machine->colortable = colortable_alloc(machine, 0x40); machine->colortable = colortable_alloc(machine, 0x40);
/* /*
for (i = 0;i < 0x40;i++) for (i = 0;i < 0x40;i++)
{ {
int r,g,b,data; int r,g,b,data;
data = color_prom[0]; data = color_prom[0];
r = (data >> 0) & 0x7; r = (data >> 0) & 0x7;
g = (data >> 3) & 0x3; g = (data >> 3) & 0x3;
b = (data >> 5) & 0x7; b = (data >> 5) & 0x7;
colortable_palette_set_color(machine->colortable, i, MAKE_RGB(pal3bit(r), pal2bit(g), pal3bit(b))); colortable_palette_set_color(machine->colortable, i, MAKE_RGB(pal3bit(r), pal2bit(g), pal3bit(b)));
color_prom++; color_prom++;
} }
*/ */
for (i=0;i<0x20;i++) for (i=0;i<0x20;i++)

View File

@ -10,4 +10,4 @@
***************************************************************************/ ***************************************************************************/
extern const char build_version[]; extern const char build_version[];
const char build_version[] = "0.135u1 ("__DATE__")"; const char build_version[] = "0.135u2 ("__DATE__")";