Clean-ups and version bump

This commit is contained in:
Miodrag Milanovic 2012-10-08 06:41:35 +00:00
parent 9d2e613576
commit f3d5df18e3
7 changed files with 55 additions and 55 deletions

View File

@ -105,7 +105,7 @@ UINT8 scsicb_device::get_scsi_line( UINT32 line )
{
UINT8 result = (int)( ( linestate & line ) != 0 );
// LOG(3,"get_scsi_line(%s)=%d\n",linenames[lineno],result);
// LOG(3,"get_scsi_line(%s)=%d\n",linenames[lineno],result);
return result;
}

View File

@ -222,63 +222,63 @@ struct adaptec_sense_t
//static const char *const linenames[] =
//{
// "select", "busy", "request", "acknoledge", "C/D", "I/O", "message", "reset"
// "select", "busy", "request", "acknoledge", "C/D", "I/O", "message", "reset"
//};
//void scsibus_device::set_scsi_line(UINT8 line, UINT8 state)
//{
// UINT8 changed = linestate[line] != state;
// UINT8 changed = linestate[line] != state;
//
// LOG(3,"set_scsi_line(%s,%d), changed=%d\n",linenames[line],state,changed);
// LOG(3,"set_scsi_line(%s,%d), changed=%d\n",linenames[line],state,changed);
//
// if(changed)
// {
// if (line==SCSI_LINE_ACK)
// set_scsi_line_ack(state);
// else
// set_scsi_line_now(line,state);
// }
// if(changed)
// {
// if (line==SCSI_LINE_ACK)
// set_scsi_line_ack(state);
// else
// set_scsi_line_now(line,state);
// }
//}
//
//void scsibus_device::set_scsi_line_now( UINT8 line, UINT8 state )
//{
// if( linestate[ line ] != state )
// {
// linestate[ line ] = state;
// if( linestate[ line ] != state )
// {
// linestate[ line ] = state;
//
// for( int i = 0; i < deviceCount; i++ )
// {
// devices[ i ]->scsi_in_line_changed( line, state );
// }
// }
// for( int i = 0; i < deviceCount; i++ )
// {
// devices[ i ]->scsi_in_line_changed( line, state );
// }
// }
//}
//
//void scsibus_device::set_scsi_line_ack(UINT8 state)
//{
// ack_timer->adjust(attotime::from_nsec(ACK_DELAY_NS),state);
// ack_timer->adjust(attotime::from_nsec(ACK_DELAY_NS),state);
//}
//
//void scsibus_device::scsi_out_line_change(UINT8 line, UINT8 state)
//{
// if(line==SCSI_LINE_REQ)
// scsi_out_line_req(state);
// else
// scsi_out_line_change_now(line,state);
// if(line==SCSI_LINE_REQ)
// scsi_out_line_req(state);
// else
// scsi_out_line_change_now(line,state);
//}
//
//void scsibus_device::scsi_out_line_change_now(UINT8 line, UINT8 state)
//{
// if( linestate[ line ] != state )
// {
// linestate[ line ] = state;
// if( linestate[ line ] != state )
// {
// linestate[ line ] = state;
//
// LOG(3,"scsi_out_line_change(%s,%d)\n",linenames[line],state);
// }
// LOG(3,"scsi_out_line_change(%s,%d)\n",linenames[line],state);
// }
//}
//
//void scsibus_device::scsi_out_line_req(UINT8 state)
//{
// req_timer->adjust(attotime::from_nsec(REQ_DELAY_NS),state);
// req_timer->adjust(attotime::from_nsec(REQ_DELAY_NS),state);
//}
//
@ -338,13 +338,13 @@ void scsihle_device::device_timer(emu_timer &timer, device_timer_id tid, int par
{
switch( tid )
{
// case 0:
// scsi_out_line_change_now(SCSI_LINE_REQ, param);
// break;
// case 0:
// scsi_out_line_change_now(SCSI_LINE_REQ, param);
// break;
//
// case 1:
// set_scsi_line_now(SCSI_LINE_ACK, param);
// break;
// case 1:
// set_scsi_line_now(SCSI_LINE_ACK, param);
// break;
case 2:
scsi_out(param * SCSI_MASK_BSY, SCSI_MASK_BSY);
@ -617,7 +617,7 @@ void scsihle_device::scsi_in( UINT32 data, UINT32 mask )
dump_data_bytes(4);
}
}
// If the data buffer is full flush it to the SCSI disk
data_last = (bytes_left >= sectorbytes) ? sectorbytes : bytes_left;

View File

@ -372,11 +372,11 @@ DRIVER_INIT_MEMBER(suna8_state,starfigh)
decrypt[0x07c0] = 0xc9; // c080 bit 7 protection check
// decrypt[0x083e] = 0x00; // sound latch disabling
// decrypt[0x083f] = 0x00; // ""
// decrypt[0x0840] = 0x00; // ""
// decrypt[0x083e] = 0x00; // sound latch disabling
// decrypt[0x083f] = 0x00; // ""
// decrypt[0x0840] = 0x00; // ""
// decrypt[0x0cef] = 0xc9; // rombank latch check, corrupt d12d
// decrypt[0x0cef] = 0xc9; // rombank latch check, corrupt d12d
decrypt[0x2696] = 0xc9; // work ram writes disable, corrupt next routine
decrypt[0x4e9a] = 0x00; // work ram writes disable, flip background sprite
@ -720,7 +720,7 @@ WRITE8_MEMBER(suna8_state::brickzn_prot_w)
m_spritebank = (data >> 1) & 1;
logerror("CPU #0 - PC %04X: protection_val = %02X\n",space.device().safe_pc(),data);
// if (data & ~0x03) logerror("CPU #0 - PC %04X: unknown spritebank bits: %02X\n",space.device().safe_pc(),data);
// if (data & ~0x03) logerror("CPU #0 - PC %04X: unknown spritebank bits: %02X\n",space.device().safe_pc(),data);
}
/*
@ -1012,9 +1012,9 @@ static ADDRESS_MAP_START( starfigh_map, AS_PROGRAM, 8, suna8_state )
AM_RANGE(0xc300, 0xc300) AM_WRITE(hardhea2_flipscreen_w ) // Flip Screen
AM_RANGE(0xc380, 0xc3ff) AM_WRITE(starfigh_spritebank_latch_w ) // Sprite RAM Bank Latch
AM_RANGE(0xc400, 0xc47f) AM_WRITE(starfigh_leds_w ) // Leds + Coin Counter + ROM Bank
// c480 write?
// c480 write?
AM_RANGE(0xc500, 0xc500) AM_WRITE(starfigh_sound_latch_w ) // To Sound CPU (can be disabled)
// (c522 + R & 0x1f) write?
// (c522 + R & 0x1f) write?
AM_RANGE(0xc600, 0xc7ff) AM_READWRITE(banked_paletteram_r, paletteram_RRRRGGGGBBBBxxxx_byte_be_w) AM_SHARE("paletteram" ) // Palette (Banked??)
AM_RANGE(0xc800, 0xdfff) AM_RAM // RAM

View File

@ -294,16 +294,16 @@ static void draw_normal_sprites(running_machine &machine, bitmap_ind16 &bitmap,c
if (state->m_use_gfxbank)
{
// starfigh: boss 2 head, should be p7 g7 x8/c y4:
// 67 74 88 03
// 67 76 ac 03
// 67 74 88 03
// 67 76 ac 03
// starfigh: boss 2 chainguns should be p6 g7:
// a8 68/a/c/e 62 23
// 48 68/a/c/e 62 23
// a8 68/a/c/e 62 23
// 48 68/a/c/e 62 23
// starfigh: player, p4 g0:
// 64 40 d3 20
// 64 40 d3 20
// starfigh: title star, p5 g1 / p7 g0:
// 70 56/8/a/c 0e 01 (gfxhi=1)
// 6f 78/a/c/e 0f 04 ""
// 70 56/8/a/c 0e 01 (gfxhi=1)
// 6f 78/a/c/e 0f 04 ""
gfxbank = (bank & 0x3);
if (gfxbank == 3) gfxbank += state->m_gfxbank;
}
@ -321,7 +321,7 @@ static void draw_normal_sprites(running_machine &machine, bitmap_ind16 &bitmap,c
if (state->m_use_gfxbank)
{
// starfigh: boss 2 tail, p2 g7:
// 61 20 1b 27
// 61 20 1b 27
if (gfxbank == 3) gfxbank += state->m_gfxbank;
}
break;

View File

@ -29,7 +29,7 @@ $(MESS_WINOBJ)/%.res: $(MESS_WINSRC)/%.rc
@echo Compiling resources $<...
$(RC) $(RCDEFS) $(RCFLAGS) --include-dir $(MESS_WINOBJ) -o $@ -i $<
#-------------------------------------------------
# rules for resource file
#-------------------------------------------------

View File

@ -29,7 +29,7 @@ $(UME_WINOBJ)/%.res: $(UME_WINSRC)/%.rc
@echo Compiling resources $<...
$(RC) $(RCDEFS) $(RCFLAGS) --include-dir $(UME_WINOBJ) -o $@ -i $<
#-------------------------------------------------
# rules for resource file
#-------------------------------------------------

View File

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