Posted Mon Jan 7, 2002 7:59 AM
The controller and sound part was taken from the 2600, so you can find information about it in the 2600 programmers guide.
As Dan has said, you can read the buttons from INPT4 (address $0C for player 0) and INPT5 (address $0D for player 1). If bit D7=0, then either button for this player is currently pressed.
On the 7800 you can also read both buttons on the controller individually, which is not possible on the 2600. But you have to set up the 7800 do be able to do that. At the start of your code you have to do:
LDA #$14
STA CTLSWB (address $283)
LDA #$00
STA SWCHB (address $282)
Then you will be able to read the four buttons through INPT0 - INPT3 (addresses $07 to $0B). If bit D7=1, it means the button reperesented by the registers is pushed.
Ciao, Eckhard Stolberg