Stripped out the awp_reel_setup code from all drivers, thanks to the more intelligent reel types, we don't need it any more by J.Wallace (no whatsnew)

This commit is contained in:
Miodrag Milanovic 2012-05-03 17:38:32 +00:00
parent 6231165166
commit edf9b0df07
7 changed files with 1 additions and 76 deletions

View File

@ -1154,11 +1154,6 @@ static void sc1_common_init(running_machine &machine, int reels, int decrypt, in
stepper_config(machine, i, &starpoint_interface_48step);
}
if (decrypt) bfm_decode_mainrom(machine,"maincpu", state->m_codec_data); // decode main rom
if (reels)
{
awp_reel_setup();
}
state->m_defaultbank = defaultbank;

View File

@ -3753,10 +3753,6 @@ static void sc2awp_common_init(running_machine &machine,int reels, int decrypt)
{
stepper_config(machine, n, &starpoint_interface_48step);
}
if (reels)
{
awp_reel_setup();
}
}
static DRIVER_INIT (bbrkfst)

View File

@ -639,10 +639,6 @@ static MACHINE_START( sc4 )
{
if (state->m_reel_setup[n]) stepper_config(machine, n, state->m_reel_setup[n]);
}
if (reels)
{
awp_reel_setup();
}
}

View File

@ -382,7 +382,6 @@ static MACHINE_START( bfm_sys85 )
ROC10937_init(0,MSC1937,1);//?
awp_reel_setup();
}
// memory map for bellfruit system85 board ////////////////////////////////

View File

@ -2635,7 +2635,6 @@ static void mpu4_config_common_reels(running_machine &machine,int reels)
{
stepper_config(machine, n, &barcrest_reel_interface);
}
awp_reel_setup();
}
MACHINE_START( mod2 )
@ -2775,7 +2774,6 @@ static DRIVER_INIT (m_oldtmr)
stepper_config(machine, 4, &barcrest_opto1_interface);
stepper_config(machine, 5, &barcrest_opto1_interface);
awp_reel_setup();
state->m_current_chr_table = oldtmr_data;
}

View File

@ -15,56 +15,12 @@
#include "rendlay.h"
#include "machine/steppers.h"
static UINT8 steps[MAX_STEPPERS];
static UINT8 symbols[MAX_STEPPERS];
static UINT16 reelpos[MAX_STEPPERS];
void awp_reel_setup(void)
{
int x,reels;
char rstep[16],rsym[16];
if (!output_get_value("TotalReels"))
{
reels = 6 ;
}
else
{
reels = output_get_value("TotalReels");
}
for ( x = 0; x < reels; x++ )
{
sprintf(rstep, "ReelSteps%d",x+1);
sprintf(rsym, "ReelSymbols%d",x+1);
if (!output_get_value(rstep))
{
steps[x] = 6 ;
}
else
{
steps[x] = output_get_value(rstep);
}
if (!output_get_value(rsym))
{
symbols[x] = 1 ;
}
else
{
symbols[x] = output_get_value(rsym);
}
}
}
void awp_draw_reel(int rno)
{
int rsteps = steps[rno];
int rsymbols = symbols[rno];
int m;
int x = rno + 1;
char rg[16], rga[16], rgb[16];
char rg[16];
sprintf(rg,"reel%d", x);
reelpos[rno] = stepper_get_position(rno);
@ -74,19 +30,6 @@ void awp_draw_reel(int rno)
}
else
{
/* legacy symbol support - should be possible to remove this once the layouts depending on it are converted to scrolling type */
for ( m = 0; m < (rsymbols-1); m++ )
{
{
sprintf(rga,"reel%da%d", x, m);
output_set_value(rga,(reelpos[rno] + (rsteps * m) + stepper_get_max(rno)) % stepper_get_max(rno));
}
{
sprintf(rgb,"reel%db%d", x, m);
output_set_value(rgb,(reelpos[rno] - (rsteps * m) + stepper_get_max(rno)) % stepper_get_max(rno));
}
}
output_set_value(rg,(reelpos[rno]));

View File

@ -10,6 +10,4 @@ extern const char layout_awpvid14[]; /* main layout positioning 6 reels, a lamp
extern const char layout_awpvid16[]; /* main layout positioning 6 reels, a lamp matrix and a 16seg VFD */
void awp_draw_reel(int rno);
void awp_reel_setup(void);
#endif