Jump to content



0

7800 fire buttons a+b


2 replies to this topic

#1 Heaven/TQA OFFLINE  

Heaven/TQA

    Quadrunner

  • 8,109 posts
  • Location:Baden-Württemberg, Germany

Posted Sun Jan 6, 2002 8:32 AM

How can i test if the fire buttons on the joypads are pressed for each player???

i need this for Senso 7800 dx...

havent found any document and even the robotron source was no help (or i missed the comment in this masterpiece of code...)

hve

#2 DanBoris OFFLINE  

DanBoris

    Dragonstomper

  • 930 posts
  • Location:New Jersey, USA

Posted Sun Jan 6, 2002 8:26 PM

Both buttons can be read from INPT4 ($0C) and INPT5 ($0D) on the TIA. You can read the buttons individually via the paddle inputs on the TIA $08-$0B, two ports for each stick, one for each button.

Dan

#3 Eckhard Stolberg OFFLINE  

Eckhard Stolberg

    Dragonstomper

  • 882 posts
  • Location:Germany

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




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users