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