Jump to content

Homebrew - Joystick and Keyboard Tester


Recommended Posts

I am working on a Test Cart for joysticks and keypads to help with the development of one of my projects.  

On the splash screen press SELECT to start the test.



It will read the state of DIFFICULTY switches being A for joystick and B for keyboard and enter one of the following modes.


Left: Joystick, Right: Joystick



Left: Joystick, Right: Keyboard



Left: Keyboard, Right: Joystick



Left: Keyboard, Right: Keyboard



It can test joysticks with omega booster. The button state is show using 2 methods:
- The score counter shows the logic state of the TIA inputs (1/0) in the following order:


- The second method is graphical and consider the fire button active low while the thumb and trigger buttons are active high.



The keyboard is straightforward.


The program runs nicely on Stella, but I would appreciate if somebody with a programmable cart can test it on the real hardware, before I burn a ROM.

Both the binary and the source code are attached.

Note: I have used the keyread.asm routine by CurtisP from a post from 2009, but it was necessary to modify the code to return all the SWCHA bits to 1 after reading the last row, otherwise the right joystick kept stuck to the right position.

keypad_store SUBROUTINE
   LDX #%11111111  ; set all SWCHA bits back to 1 
   STX SWCHA       ;
   STA keypads
   ORA keypads
   STA keypads





Edited by Danjovic
added missin file on zip
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.

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.


  • Recently Browsing   0 members

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