MAMEWorld >> Programming
View all threads Index   Flat Mode Flat  

Kale
Il Sindaco
Reged: 09/26/03
Posts: 155
Loc: Naples, Italy
Send PM
Re: Rotary DIP switches
06/23/09 05:24 PM



Code:

	
PORT_START("name_of_the_bcd_dipsw_tag")
PORT_DIPNAME( 0x0f, default_val, whatever_the_dip_does ) //BCD DIP-SW
PORT_DIPSETTING( 0x00, "value_0" )
PORT_DIPSETTING( 0x01, "value_1" )
...
PORT_DIPSETTING( 0x09, "value_9" )
//A-F invalid / doesn't exist



In short, it's not necessary that you call all the dipsettings of a given input (there are various examples in the source that does that).







Entire thread
Subject Posted by Posted on
* Rotary DIP switches palindrome 06/22/09 10:53 AM
. * Re: Rotary DIP switches Vas Crabb  06/22/09 12:37 PM
. * Re: Rotary DIP switches palindrome  06/23/09 07:38 AM
. * Re: Rotary DIP switches Kale  06/23/09 05:24 PM
. * Re: Rotary DIP switches palindrome  06/24/09 05:00 AM
. * Re: Rotary DIP switches Vas Crabb  06/23/09 01:46 PM

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: 3809