src/mame/video/awpvid.c
| r15086 | r15087 | |
| 15 | 15 | #include "rendlay.h" |
| 16 | 16 | #include "machine/steppers.h" |
| 17 | 17 | |
| 18 | | static UINT8 steps[MAX_STEPPERS]; |
| 19 | | static UINT8 symbols[MAX_STEPPERS]; |
| 20 | 18 | static UINT16 reelpos[MAX_STEPPERS]; |
| 21 | 19 | |
| 22 | | void 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 | | |
| 61 | 20 | void awp_draw_reel(int rno) |
| 62 | 21 | { |
| 63 | | int rsteps = steps[rno]; |
| 64 | | int rsymbols = symbols[rno]; |
| 65 | | int m; |
| 66 | 22 | int x = rno + 1; |
| 67 | | char rg[16], rga[16], rgb[16]; |
| 23 | char rg[16]; |
| 68 | 24 | |
| 69 | 25 | sprintf(rg,"reel%d", x); |
| 70 | 26 | reelpos[rno] = stepper_get_position(rno); |
| r15086 | r15087 | |
| 74 | 30 | } |
| 75 | 31 | else |
| 76 | 32 | { |
| 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 | | } |
| 84 | 33 | |
| 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 | | |
| 91 | 34 | output_set_value(rg,(reelpos[rno])); |
| 92 | 35 | |
| 93 | 36 | // if the reel isn't configured don't do this, otherwise you'll get DIV0 |
src/mame/drivers/tourvis.c
| r15086 | r15087 | |
| 18 | 18 | Power League IV |
| 19 | 19 | Final Match Tennis |
| 20 | 20 | Formation Soccer |
| 21 | | Super Volleay Ball |
| 21 | Super Volley ball |
| 22 | 22 | Rastan Saga II |
| 23 | 23 | Dungeon Explorer |
| 24 | 24 | Legendary Axe |
| r15086 | r15087 | |
| 503 | 503 | |
| 504 | 504 | ROM_START(tvsvball) |
| 505 | 505 | 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) ) |
| 507 | 507 | |
| 508 | 508 | TOURVISION_BIOS |
| 509 | 509 | ROM_END |
| r15086 | r15087 | |
| 520 | 520 | GAME( 1989, tvdunexp, tourvis, tourvision, tourvision, tourvision, ROT0, "bootleg (Tourvision) / Hudson / Atlus", "Dungeon Explorer (Tourvision PCE bootleg)", GAME_IMPERFECT_SOUND | GAME_NOT_WORKING ) |
| 521 | 521 | GAME( 1990, tvthbld, tourvis, tourvision, tourvision, tourvision, ROT0, "bootleg (Tourvision) / Sega / NEC Avenue", "Thunder Blade (Tourvision PCE bootleg)", GAME_IMPERFECT_SOUND | GAME_NOT_WORKING ) |
| 522 | 522 | GAME( 1990, tvrs2, tourvis, tourvision, tourvision, tourvision, ROT0, "bootleg (Tourvision) / Taito", "Rastan Saga II (Tourvision PCE bootleg)", GAME_IMPERFECT_SOUND | GAME_NOT_WORKING ) |
| 523 | | GAME( 1990, tvsvball, tourvis, tourvision, tourvision, tourvision, ROT0, "bootleg (Tourvision) / Video System", "Super Volleyball (Tourvision PCE bootleg)", GAME_IMPERFECT_SOUND | GAME_NOT_WORKING ) |
| 523 | GAME( 1990, tvsvball, tourvis, tourvision, tourvision, tourvision, ROT0, "bootleg (Tourvision) / Video System", "Super Volley ball (Tourvision PCE bootleg)", GAME_IMPERFECT_SOUND | GAME_NOT_WORKING ) |
| 524 | 524 | GAME( 1991, tvpwlg4, tourvis, tourvision, tourvision, tourvision, ROT0, "bootleg (Tourvision) / Hudson", "Power League IV (Tourvision PCE bootleg)", GAME_IMPERFECT_SOUND | GAME_NOT_WORKING ) |
| 525 | 525 | GAME( 1991, tvsci, tourvis, tourvision, tourvision, tourvision, ROT0, "bootleg (Tourvision) / Taito", "Special Criminal Investigation (Tourvision PCE bootleg)", GAME_IMPERFECT_SOUND | GAME_NOT_WORKING ) |