Jump to content
Sign in to follow this  
VicViper

Whats the deal with controller ports?!

Recommended Posts

Seriously, why can no two games agree on what port to use? why do so many games insist on using port 2? is there a technical reason?

  • Like 1

Share this post


Link to post
Share on other sites

Partly yes. The keyboard and joystick port #1 share some lines of the CIA chip so there could be misreadings of the joystick as keyboard input. Thus many games prefer to use port #2 as it doesn't interfer with anyhthing. Other games managed to get around the misreadings or just didn't care, and were programmed for port #1 instead.

 

Even if Commodore didn't want to reroute the ports, they could easily have gotten away with it by just renaming the ports on the outside so port #1 is closest to the power connector. It might've made more developers use the same port.

 

Actually once you start to PEEK around in the memory map, port #2 is at address 56320 and port #1 is at address 56321 so something went wrong with the labeling on the outside, methinks.

Edited by carlsson
  • Like 5

Share this post


Link to post
Share on other sites

Actually both ports interfere with the keybord, the way a joystick in port 2 modifies the keyboard readout is just a bit more subtle(*). :)

 

What really puzzles me is that nearly no game could be arsed to simply poll boths ports in single player mode as this is quite easy to do code-wise - yet Uridium is the only game I know that does that.

 

(*) if you scan the keys the way the kernal rom routine does it - custom made scanners may "reverse" the scan direction and thereby also reverse how each joyport interferes with the results.

Share this post


Link to post
Share on other sites

Seems kind of trivial on the surface, but ends up being one of the most aggravating aspects of gaming on the C64. I share your pain VicViper! :lol:

  • Like 1

Share this post


Link to post
Share on other sites

I'm just putting the finishing touches on another controller, so my solution will be the time honoured method of just leaving controllers in both ports :-D

Share this post


Link to post
Share on other sites

Yes and safe with controller that draws power like Hot Stuff joystick with built in rapid fire. Plugging and unplugging risk blowing CIA but the switcher allows me to switch port without unplugging.

Share this post


Link to post
Share on other sites

On my 128D, I just leave a Wico plugged in each port. Grab the stick that works for each game.

Edited by CRTGAMER
  • Like 1

Share this post


Link to post
Share on other sites

Partly yes. The keyboard and joystick port #1 share some lines of the CIA chip so there could be misreadings of the joystick as keyboard input. Thus many games prefer to use port #2 as it doesn't interfer with anyhthing. Other games managed to get around the misreadings or just didn't care, and were programmed for port #1 instead.

 

Even if Commodore didn't want to reroute the ports, they could easily have gotten away with it by just renaming the ports on the outside so port #1 is closest to the power connector. It might've made more developers use the same port.

 

Actually once you start to PEEK around in the memory map, port #2 is at address 56320 and port #1 is at address 56321 so something went wrong with the labeling on the outside, methinks.

Always wondered about that. Also I remember that moving a joystick in port 1 while in BASIC will type in different characters, as if you typed them in using the keyboard.

Share this post


Link to post
Share on other sites

Always wondered about that. Also I remember that moving a joystick in port 1 while in BASIC will type in different characters, as if you typed them in using the keyboard.

 

The inverse is also true, in that you can press the same affected keys (Ctrl, ←, 1, 2, and Space) to spoof a joystick from port 1.

  • Like 1

Share this post


Link to post
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.

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...
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...