Jump to content
IGNORED

Rom Auto Detection of Controller(s) Used?


Mot

Recommended Posts

We know that the emulators (such as Mess, Stella…) auto detect the bankswitching used by looking for specific instructions in the ROM.

 

Example: Bankswitch method 3E is used when

STA $3E; 
LDA #$00

or in HEX 85 3E A9 00

is in the ROM.

 

Would it be as easy to see specific instructions in a ROM to detect that it uses the PADDLES (mostly) or JOYSTICK? And less important are: keyboard/kid/touchpad, and driving controller.

 

This would be useful if a Harmony(or other multicart) user would like a directory of PADDLE games/ROMs.

Link to comment
Share on other sites

For emulation it'd be easy since most games use just one controller type, so keymap or controller config could in theory be automatically set.

 

On real hardware, it's up to the user to have the proper controller inserted.

In a game where more than one type is supported there could be methods to detect what is being used:

 

- paddle, when not inserted shouldn't generate any chargeup through the port, when inserted will usually generate some voltage. But paddle set @ max resistance on the computer at least will generate max value same as if no paddle present.

 

- driving controller, uses Reed encoding which can return directional values which a joystick wouldn't normally generate.

 

But on real hardware in a multicart/menu situation with games that only support one controller type about the only use would be to prompt the user to insert the relevant controller type.

Link to comment
Share on other sites

Maybe, thought less reliable than bankswitching.

 

But how would that be useful? :?

I could write a program to detect and write the PADDLE roms into a directory called paddle and then when I have the paddles out and want to play a few games I would select games from this directory.

 

Or have a program add (Paddles) to the ROM name.

 

I did modify the CC2ROMDB.TXT to have more information:

Demons to Diamonds Paddles DEMNSDIA 4K 78BIOS 7e18d535 Atari 2 P

Demons to Diamonds (PAL) Paddles DEMNDIAP 4K 78BIOS 3e7ece9b Atari 0 P

 

Like Controller (if other than joystick) in the title and new columns at the end: company, rarity, controller

 

But I only wrote the menu gen in java and no one seems to use or like java.

Edited by Mot
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...