Previous 15994 Revisions Next

r15087 Thursday 3rd May, 2012 at 18:23:31 UTC by Miodrag Milanović
Sync with MAME r16174 (no whatsnew)
[src/mame/drivers]bfm_sc1.c bfm_sc2.c bfm_sc4h.c bfmsys85.c mpu4.c tourvis.c
[src/mame/video]awpvid.c awpvid.h

src/mame/video/awpvid.c
r15086r15087
1515#include "rendlay.h"
1616#include "machine/steppers.h"
1717
18static UINT8 steps[MAX_STEPPERS];
19static UINT8 symbols[MAX_STEPPERS];
2018static UINT16 reelpos[MAX_STEPPERS];
2119
22void awp_reel_setup(void)
23{
24   int x,reels;
25   char rstep[16],rsym[16];
26
27   if (!output_get_value("TotalReels"))
28   {
29      reels = 6 ;
30   }
31   else
32   {
33      reels = output_get_value("TotalReels");
34   }
35
36   for ( x = 0; x < reels; x++ )
37   {
38      sprintf(rstep, "ReelSteps%d",x+1);
39      sprintf(rsym, "ReelSymbols%d",x+1);
40
41      if (!output_get_value(rstep))
42      {
43         steps[x] = 6 ;
44      }
45      else
46      {
47         steps[x] = output_get_value(rstep);
48      }
49
50      if (!output_get_value(rsym))
51      {
52         symbols[x] = 1 ;
53      }
54      else
55      {
56         symbols[x] = output_get_value(rsym);
57      }
58   }
59}
60
6120void awp_draw_reel(int rno)
6221{
63   int rsteps = steps[rno];
64   int rsymbols = symbols[rno];
65   int m;
6622   int x = rno + 1;
67   char rg[16], rga[16], rgb[16];
23   char rg[16];
6824
6925   sprintf(rg,"reel%d", x);
7026   reelpos[rno] = stepper_get_position(rno);
r15086r15087
7430   }
7531   else
7632   {
77      /* legacy symbol support - should be possible to remove this once the layouts depending on it are converted to scrolling type */
78      for ( m = 0; m < (rsymbols-1); m++ )
79      {
80         {
81            sprintf(rga,"reel%da%d", x, m);
82            output_set_value(rga,(reelpos[rno] + (rsteps * m) + stepper_get_max(rno)) % stepper_get_max(rno));
83         }
8433
85         {
86            sprintf(rgb,"reel%db%d", x, m);
87            output_set_value(rgb,(reelpos[rno] - (rsteps * m) + stepper_get_max(rno)) % stepper_get_max(rno));
88         }
89      }
90
9134      output_set_value(rg,(reelpos[rno]));
9235
9336      // if the reel isn't configured don't do this, otherwise you'll get DIV0
src/mame/video/awpvid.h
r15086r15087
1010extern const char layout_awpvid16[];   /* main layout positioning 6 reels, a lamp matrix and a 16seg VFD */
1111void awp_draw_reel(int rno);
1212
13void awp_reel_setup(void);
14
1513#endif
src/mame/drivers/bfm_sc1.c
r15086r15087
11541154      stepper_config(machine, i, &starpoint_interface_48step);
11551155   }
11561156   if (decrypt) bfm_decode_mainrom(machine,"maincpu", state->m_codec_data);   // decode main rom
1157   if (reels)
1158   {
1159      awp_reel_setup();
1160   }
11611157
1162
11631158   state->m_defaultbank = defaultbank;
11641159
11651160}
src/mame/drivers/mpu4.c
r15086r15087
26352635   {
26362636      stepper_config(machine, n, &barcrest_reel_interface);
26372637   }
2638   awp_reel_setup();
26392638}
26402639
26412640MACHINE_START( mod2     )
r15086r15087
27752774   stepper_config(machine, 4, &barcrest_opto1_interface);
27762775   stepper_config(machine, 5, &barcrest_opto1_interface);
27772776
2778   awp_reel_setup();
27792777   state->m_current_chr_table = oldtmr_data;
27802778}
27812779
src/mame/drivers/bfm_sc4h.c
r15086r15087
639639   {
640640       if (state->m_reel_setup[n]) stepper_config(machine, n, state->m_reel_setup[n]);
641641   }
642   if (reels)
643   {
644      awp_reel_setup();
645   }
646642}
647643 
648644 
src/mame/drivers/bfm_sc2.c
r15086r15087
37533753   {
37543754      stepper_config(machine, n, &starpoint_interface_48step);
37553755   }
3756   if (reels)
3757   {
3758      awp_reel_setup();
3759   }
37603756}
37613757
37623758static DRIVER_INIT (bbrkfst)
src/mame/drivers/tourvis.c
r15086r15087
1818    Power League IV
1919    Final Match Tennis
2020    Formation Soccer
21    Super Volleay Ball
21    Super Volley ball
2222    Rastan Saga II
2323    Dungeon Explorer
2424    Legendary Axe
r15086r15087
503503
504504ROM_START(tvsvball)
505505   ROM_REGION( 0x100000, "maincpu", 0 )
506   ROM_LOAD( "tourv_supervalleyball.bin", 0x00000, 0x100000, CRC(8a32a1ca) SHA1(80144fb4035415eb9b2c67d78d55757ed0d641a1) )
506   ROM_LOAD( "tourv_supervolleyball.bin", 0x00000, 0x100000, CRC(8a32a1ca) SHA1(80144fb4035415eb9b2c67d78d55757ed0d641a1) )
507507
508508   TOURVISION_BIOS
509509ROM_END
r15086r15087
520520GAME( 1989, tvdunexp, tourvis, tourvision, tourvision, tourvision, ROT0, "bootleg (Tourvision) / Hudson / Atlus", "Dungeon Explorer (Tourvision PCE bootleg)", GAME_IMPERFECT_SOUND | GAME_NOT_WORKING )
521521GAME( 1990, tvthbld,  tourvis, tourvision, tourvision, tourvision, ROT0, "bootleg (Tourvision) / Sega / NEC Avenue", "Thunder Blade (Tourvision PCE bootleg)", GAME_IMPERFECT_SOUND | GAME_NOT_WORKING )
522522GAME( 1990, tvrs2,    tourvis, tourvision, tourvision, tourvision, ROT0, "bootleg (Tourvision) / Taito", "Rastan Saga II (Tourvision PCE bootleg)", GAME_IMPERFECT_SOUND | GAME_NOT_WORKING )
523GAME( 1990, tvsvball, tourvis, tourvision, tourvision, tourvision, ROT0, "bootleg (Tourvision) / Video System", "Super Volleyball (Tourvision PCE bootleg)", GAME_IMPERFECT_SOUND | GAME_NOT_WORKING )
523GAME( 1990, tvsvball, tourvis, tourvision, tourvision, tourvision, ROT0, "bootleg (Tourvision) / Video System", "Super Volley ball (Tourvision PCE bootleg)", GAME_IMPERFECT_SOUND | GAME_NOT_WORKING )
524524GAME( 1991, tvpwlg4,  tourvis, tourvision, tourvision, tourvision, ROT0, "bootleg (Tourvision) / Hudson", "Power League IV (Tourvision PCE bootleg)", GAME_IMPERFECT_SOUND | GAME_NOT_WORKING )
525525GAME( 1991, tvsci,    tourvis, tourvision, tourvision, tourvision, ROT0, "bootleg (Tourvision) / Taito", "Special Criminal Investigation (Tourvision PCE bootleg)", GAME_IMPERFECT_SOUND | GAME_NOT_WORKING )
src/mame/drivers/bfmsys85.c
r15086r15087
382382
383383   ROC10937_init(0,MSC1937,1);//?
384384
385   awp_reel_setup();
386385}
387386
388387// memory map for bellfruit system85 board ////////////////////////////////

Previous 15994 Revisions Next


© 1998-2018 The MESS Team