Jump to content
Sign in to follow this  
MAC-42

7800basic and the 2600 Keyboard Controller

Recommended Posts

On a whim, I was looking at the pinouts for the 2600 keyboard controller last night. Am I correct in thinking that it can be used as-is with 7800basic? (That is, 7800basic shouldn't need changes to accommodate it.) Looks to me like the keyboard matrix could be implemented with combined controller functions. For instance, keypad button 1 on the player 2 port could be activated using:

if joy1up && joy1fire1 then...

Just wondered if this was correct.

Share this post


Link to post
Share on other sites

Not sure that description in the link is right - the Atari documented method as used on the computer should also be applicable to 2600 & 7800.

 

The 4 directional pins can be configured as outputs - to read each row in turn you select it then the values are read from fire button + 2 Pot inputs to give the state of the selected keys.

  • Like 2

Share this post


Link to post
Share on other sites

Its a bit more involved, as Rybag suggests. This thread has an example for bB, and the reading routine near the end of the program should equally apply to 7800basic.

 

You should also first turn off the 2-button joystick mode that 7800basic enables by default for that port. You should be able to do this for port 0 with "INPT1=$f0:SWCHB=4" and for port 1 with "INPT3=$f0:SWCHB=8"

 

Unfortunately I don't have a keyboard controller, so all of my info is theoretical.

  • Like 1

Share this post


Link to post
Share on other sites

Thanks for the info, folks. Again, this was just a thought experiment. Maybe someone will find this useful someday.

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