mirror of
https://github.com/holub/mame
synced 2025-10-08 09:30:17 +03:00
Clean-ups and version bump
This commit is contained in:
parent
9d2e613576
commit
f3d5df18e3
@ -105,7 +105,7 @@ UINT8 scsicb_device::get_scsi_line( UINT32 line )
|
|||||||
{
|
{
|
||||||
UINT8 result = (int)( ( linestate & line ) != 0 );
|
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;
|
return result;
|
||||||
}
|
}
|
||||||
|
@ -222,63 +222,63 @@ struct adaptec_sense_t
|
|||||||
|
|
||||||
//static const char *const linenames[] =
|
//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)
|
//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(changed)
|
||||||
// {
|
// {
|
||||||
// if (line==SCSI_LINE_ACK)
|
// if (line==SCSI_LINE_ACK)
|
||||||
// set_scsi_line_ack(state);
|
// set_scsi_line_ack(state);
|
||||||
// else
|
// else
|
||||||
// set_scsi_line_now(line,state);
|
// set_scsi_line_now(line,state);
|
||||||
// }
|
// }
|
||||||
//}
|
//}
|
||||||
//
|
//
|
||||||
//void scsibus_device::set_scsi_line_now( UINT8 line, UINT8 state )
|
//void scsibus_device::set_scsi_line_now( UINT8 line, UINT8 state )
|
||||||
//{
|
//{
|
||||||
// if( linestate[ line ] != state )
|
// if( linestate[ line ] != state )
|
||||||
// {
|
// {
|
||||||
// linestate[ line ] = state;
|
// linestate[ line ] = state;
|
||||||
//
|
//
|
||||||
// for( int i = 0; i < deviceCount; i++ )
|
// for( int i = 0; i < deviceCount; i++ )
|
||||||
// {
|
// {
|
||||||
// devices[ i ]->scsi_in_line_changed( line, state );
|
// devices[ i ]->scsi_in_line_changed( line, state );
|
||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
//}
|
//}
|
||||||
//
|
//
|
||||||
//void scsibus_device::set_scsi_line_ack(UINT8 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)
|
//void scsibus_device::scsi_out_line_change(UINT8 line, UINT8 state)
|
||||||
//{
|
//{
|
||||||
// if(line==SCSI_LINE_REQ)
|
// if(line==SCSI_LINE_REQ)
|
||||||
// scsi_out_line_req(state);
|
// scsi_out_line_req(state);
|
||||||
// else
|
// else
|
||||||
// scsi_out_line_change_now(line,state);
|
// scsi_out_line_change_now(line,state);
|
||||||
//}
|
//}
|
||||||
//
|
//
|
||||||
//void scsibus_device::scsi_out_line_change_now(UINT8 line, UINT8 state)
|
//void scsibus_device::scsi_out_line_change_now(UINT8 line, UINT8 state)
|
||||||
//{
|
//{
|
||||||
// if( linestate[ line ] != state )
|
// if( linestate[ line ] != state )
|
||||||
// {
|
// {
|
||||||
// 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)
|
//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 )
|
switch( tid )
|
||||||
{
|
{
|
||||||
// case 0:
|
// case 0:
|
||||||
// scsi_out_line_change_now(SCSI_LINE_REQ, param);
|
// scsi_out_line_change_now(SCSI_LINE_REQ, param);
|
||||||
// break;
|
// break;
|
||||||
//
|
//
|
||||||
// case 1:
|
// case 1:
|
||||||
// set_scsi_line_now(SCSI_LINE_ACK, param);
|
// set_scsi_line_now(SCSI_LINE_ACK, param);
|
||||||
// break;
|
// break;
|
||||||
|
|
||||||
case 2:
|
case 2:
|
||||||
scsi_out(param * SCSI_MASK_BSY, SCSI_MASK_BSY);
|
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);
|
dump_data_bytes(4);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// If the data buffer is full flush it to the SCSI disk
|
// If the data buffer is full flush it to the SCSI disk
|
||||||
|
|
||||||
data_last = (bytes_left >= sectorbytes) ? sectorbytes : bytes_left;
|
data_last = (bytes_left >= sectorbytes) ? sectorbytes : bytes_left;
|
||||||
|
@ -372,11 +372,11 @@ DRIVER_INIT_MEMBER(suna8_state,starfigh)
|
|||||||
|
|
||||||
decrypt[0x07c0] = 0xc9; // c080 bit 7 protection check
|
decrypt[0x07c0] = 0xc9; // c080 bit 7 protection check
|
||||||
|
|
||||||
// decrypt[0x083e] = 0x00; // sound latch disabling
|
// decrypt[0x083e] = 0x00; // sound latch disabling
|
||||||
// decrypt[0x083f] = 0x00; // ""
|
// decrypt[0x083f] = 0x00; // ""
|
||||||
// decrypt[0x0840] = 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[0x2696] = 0xc9; // work ram writes disable, corrupt next routine
|
||||||
decrypt[0x4e9a] = 0x00; // work ram writes disable, flip background sprite
|
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;
|
m_spritebank = (data >> 1) & 1;
|
||||||
|
|
||||||
logerror("CPU #0 - PC %04X: protection_val = %02X\n",space.device().safe_pc(),data);
|
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(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(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
|
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)
|
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(0xc600, 0xc7ff) AM_READWRITE(banked_paletteram_r, paletteram_RRRRGGGGBBBBxxxx_byte_be_w) AM_SHARE("paletteram" ) // Palette (Banked??)
|
||||||
AM_RANGE(0xc800, 0xdfff) AM_RAM // RAM
|
AM_RANGE(0xc800, 0xdfff) AM_RAM // RAM
|
||||||
|
@ -294,16 +294,16 @@ static void draw_normal_sprites(running_machine &machine, bitmap_ind16 &bitmap,c
|
|||||||
if (state->m_use_gfxbank)
|
if (state->m_use_gfxbank)
|
||||||
{
|
{
|
||||||
// starfigh: boss 2 head, should be p7 g7 x8/c y4:
|
// starfigh: boss 2 head, should be p7 g7 x8/c y4:
|
||||||
// 67 74 88 03
|
// 67 74 88 03
|
||||||
// 67 76 ac 03
|
// 67 76 ac 03
|
||||||
// starfigh: boss 2 chainguns should be p6 g7:
|
// starfigh: boss 2 chainguns should be p6 g7:
|
||||||
// a8 68/a/c/e 62 23
|
// a8 68/a/c/e 62 23
|
||||||
// 48 68/a/c/e 62 23
|
// 48 68/a/c/e 62 23
|
||||||
// starfigh: player, p4 g0:
|
// starfigh: player, p4 g0:
|
||||||
// 64 40 d3 20
|
// 64 40 d3 20
|
||||||
// starfigh: title star, p5 g1 / p7 g0:
|
// starfigh: title star, p5 g1 / p7 g0:
|
||||||
// 70 56/8/a/c 0e 01 (gfxhi=1)
|
// 70 56/8/a/c 0e 01 (gfxhi=1)
|
||||||
// 6f 78/a/c/e 0f 04 ""
|
// 6f 78/a/c/e 0f 04 ""
|
||||||
gfxbank = (bank & 0x3);
|
gfxbank = (bank & 0x3);
|
||||||
if (gfxbank == 3) gfxbank += state->m_gfxbank;
|
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)
|
if (state->m_use_gfxbank)
|
||||||
{
|
{
|
||||||
// starfigh: boss 2 tail, p2 g7:
|
// starfigh: boss 2 tail, p2 g7:
|
||||||
// 61 20 1b 27
|
// 61 20 1b 27
|
||||||
if (gfxbank == 3) gfxbank += state->m_gfxbank;
|
if (gfxbank == 3) gfxbank += state->m_gfxbank;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
@ -29,7 +29,7 @@ $(MESS_WINOBJ)/%.res: $(MESS_WINSRC)/%.rc
|
|||||||
@echo Compiling resources $<...
|
@echo Compiling resources $<...
|
||||||
$(RC) $(RCDEFS) $(RCFLAGS) --include-dir $(MESS_WINOBJ) -o $@ -i $<
|
$(RC) $(RCDEFS) $(RCFLAGS) --include-dir $(MESS_WINOBJ) -o $@ -i $<
|
||||||
|
|
||||||
|
|
||||||
#-------------------------------------------------
|
#-------------------------------------------------
|
||||||
# rules for resource file
|
# rules for resource file
|
||||||
#-------------------------------------------------
|
#-------------------------------------------------
|
||||||
|
@ -29,7 +29,7 @@ $(UME_WINOBJ)/%.res: $(UME_WINSRC)/%.rc
|
|||||||
@echo Compiling resources $<...
|
@echo Compiling resources $<...
|
||||||
$(RC) $(RCDEFS) $(RCFLAGS) --include-dir $(UME_WINOBJ) -o $@ -i $<
|
$(RC) $(RCDEFS) $(RCFLAGS) --include-dir $(UME_WINOBJ) -o $@ -i $<
|
||||||
|
|
||||||
|
|
||||||
#-------------------------------------------------
|
#-------------------------------------------------
|
||||||
# rules for resource file
|
# rules for resource file
|
||||||
#-------------------------------------------------
|
#-------------------------------------------------
|
||||||
|
@ -38,4 +38,4 @@
|
|||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
extern const char build_version[];
|
extern const char build_version[];
|
||||||
const char build_version[] = "0.147 ("__DATE__")";
|
const char build_version[] = "0.147u1 ("__DATE__")";
|
||||||
|
Loading…
Reference in New Issue
Block a user