MiSTer-devel / Arcade-Pacman_MiSTer

Arcade: Pacman for MiSTer
23 stars 22 forks source link

dipsw in mra #21

Closed eubrunosilva closed 4 years ago

eubrunosilva commented 4 years ago

Hi

looking at birdiy:

name and ids its easy to get from mame. but how do i get switches default and dip bits? Thanks

sorgelig commented 4 years ago

Defaults - no idea. set what do you like. dip bits are from mame as well. it's first and last bit assigned for function. Up to 64 bits for dips are currently supported (8 bytes). Pacman uses 3 bytes (in0,in1,dipsw1) - it's core (arcade) dependent size;

eubrunosilva commented 4 years ago

ups the code i wrote here wasnt displayed.

https://github.com/mamedev/mame/blob/master/src/mame/drivers/pacman.cpp#L1734 you have here the input for birdiy

PORT_DIPNAME( 0x03, 0x01, DEF_STR( Coinage ) ) PORT_DIPLOCATION("SW:1,2") how do you get the 16,17 bit for this?

also the defaults, how do you get the FF,FF,E9 ? you have here 3 default values for two dipnames.

sorgelig commented 4 years ago

pacman uses 4x8 dips. 4th isn't used and always FF. 0x03 is mask in 3rd byte which is bits 16-17. Use all FF for default as safe value. User will be able to setup the dips manually.

eubrunosilva commented 4 years ago

about pacman club. Its supposed to use: INPUT_PORTS_START( mspacman ) that should have

and not (also i didn't found this values in pacman.cpp)

is this core different?

my line of tough was grab dip config for each "input sets" and all of the alternatives and other parent games that use this "input set" i would place this configs in mra...

sorgelig commented 4 years ago

probably something missing in your message. I don't understand it.

sorgelig commented 4 years ago

btw, pacman club dip switches in mame is totally wrong. Or there are different pacman club roms. The dips in pacman club.mra are correct

eubrunosilva commented 4 years ago

yeah not easy to explain... and i didnt do it well...

GAME( 1989, clubpacm, 0, woodpek, mspacman, pacman_state, empty_init, ROT90, "Miky SRL", "Pacman Club / Club Lambada (Argentina)", MACHINE_SUPPORTS_SAVE | MACHINE_NOT_WORKING )

The bold part should be the input (inputs,dips) used in the game. The same as mspacman. But if its wrong. i am changing them in my db for the ones you have for pacman club :)

sorgelig commented 4 years ago

you can try mspacman dips on club and see how it will work

eubrunosilva commented 4 years ago

hi no need index="1" in Super Glob?

sorgelig commented 4 years ago

if no index="1" then ROM is compatible with Pacman ROM