Replies: 1 comment
|
You’re looking at this from the wrong direction. It isn’t abut making thing convenient in the XML, and the port names (in
You’re welcome to add |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
The name used in
PORT_STARTandPORT_DIPLOCATIONfor DIP switches is not homogenous. It may be calledSWAorSW(A)orSW AorDIP-orDIPSW1orDSW-1orDSW0... Whether it starts counting from0,1orAseems arbitrary too. These two names do not always agree with each other either. The bit mask used in the driver is not linked to the DIP location either and it may be in reverse order where DIP1 is mapped above DIP2 in a 16-bit word.For documentation and for tools depending on MAME's XML output, having a homogeneous naming, such as
DIP1, DIP2...each made of 8 bits, would be benefitial.I am willing to make these changes now for some 50+ drivers and keep updating other drivers over time. Before spending time on this, is my PR likely to be accepted?
DIPplus an index starting at 1, increase every 8 bits. Except where the manual uses a letter or uses 4-bit switchesDSWplus an index starting at 1 and increasing every 8 bits for PORT_START, regardless of manual. Order by bit mask used in the driverIn this way, the
PORT_DIPLOCATIONtries to document the board in an uniform way -but respectful with the manual- andPORT_STARTrepresents the emulation model of the hardware, but is uniform across driversAll reactions