MAMEWorld >> Programming
View all threads Index   Flat Mode Flat  

Vas Crabb
BOFH
Reged: 12/13/05
Posts: 4457
Loc: Melbourne, Australia
Send PM
Re: Few Dip switch questions
12/03/07 01:17 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.







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 3 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