Jump to content
IGNORED

Homebrew - Joystick and Keyboard Tester


Danjovic

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.

image.png.ba837e6b22cf98e259e2c52427cbfa7b.png

 

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

image.png.1ebdc9b8db9f82742c816511f5e3d3c7.png

 

Left: Joystick, Right: Keyboard

image.png.206bab5938e06937100e0ba43a58a476.png

 

Left: Keyboard, Right: Joystick

image.png.549830eac8fad59ad21ce96b83d9d3e3.png

 

Left: Keyboard, Right: Keyboard

image.png.6fff809c46dd91fae7af5b1d8fd0192d.png

 

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:

image.png.41cdc94f73d8723f0672851eb5758f2e.png

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

image.png.b32a4e6bdbedf081922f56ba2d6fecf7.png

 

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
   TYA
   ORA keypads
   STA keypads
   RTS

 

 

image.png

KBTEST.zip

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.

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