mirror of
https://github.com/holub/mame
synced 2025-04-24 01:11:11 +03:00
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:
parent
6231165166
commit
edf9b0df07
@ -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;
|
||||
|
||||
|
@ -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)
|
||||
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@ -382,7 +382,6 @@ static MACHINE_START( bfm_sys85 )
|
||||
|
||||
ROC10937_init(0,MSC1937,1);//?
|
||||
|
||||
awp_reel_setup();
|
||||
}
|
||||
|
||||
// memory map for bellfruit system85 board ////////////////////////////////
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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]));
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user