MAMEWorld >> Programming
View all threads Index   Flat Mode Flat  

tb2000
Arcade and retro fan
Reged: 08/20/07
Posts: 108
Loc: Somewhere in the UK
Send PM
Re: Few Dip switch questions
12/05/07 02:30 AM


> 1) The best way to work out the address at which it reads a bank of DIP switches is
> from the schematic. Look at the address decode logic and work out where the DIP
> switch is mapped.
>
> 2) It's very rare for DIPs within a single bank to have different polarity to each
> other. The text description refers to the state of the feature, not the position of
> the switch. Some some games, require a switch to be on to turn a feature off, and
> that's far more likely than one of the switches having the opposite polarity. Unless
> you actually know from the schematic that the polarity of one switch is reversed,
> don't mess with it. That said, the way to invert a DIP switch is to prefix the number
> with a "!", but this should usually only be done for an entire bank (e.g. see dkong.c
> and mario.c).
>
> Make sure you're 100% certain of the DIP locations before submitting the code.
> Cleaning up incorrect information later can be a pain.

Thanks for the reply. I might have to leave that in that case then, I haven't got any schematics and I can't seem to find any on the net that have been scanned (or even any for sale!). I have my Robocop 2 board but it's probably more difficult trying to trace the tracks and where they go than looking at the schematics!
At least I can add some of the diplocations for the dipswitches listed in the driver anyway.

Thanks







Entire thread
Subject Posted by Posted on
* Few Dip switch questions tb2000 12/02/07 04:14 PM
. * Re: Few Dip switch questions Vas Crabb  12/03/07 01:17 AM
. * Re: Few Dip switch questions tb2000  12/05/07 02:30 AM
. * Re: Few Dip switch questions StilettoAdministrator  12/05/07 10:47 PM
. * Re: Few Dip switch questions Vas Crabb  12/06/07 02:37 AM
. * Re: Few Dip switch questions StilettoAdministrator  12/06/07 08:26 AM

Extra information Permissions
Moderator:  Pi 
0 registered and 4 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 3700