English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Asm / Hardware

 
 
Thread Tools
Old 20 June 2021, 15:32   #1
geldo79
Registered User
 
geldo79's Avatar
 
Join Date: Oct 2019
Location: Eydelstedt / Germany
Age: 44
Posts: 114
Problem Joystick/Ports

Hi,

I want to use two Atari-7800 controllers with my amiga. In my game, i test bit 7 of $bfe001 for fire-button of port1, and bit 6 of $bfe001 for fire-button of port 2. But only the controller connected to port 1 is working correctly. On port 2, the fire-button will not be detected. Using a competition pro on port 2 is working without problems. Is there a difference in the two ports? Do i have to modify my A7800 controllers to be compatible with both ports?

Greetings Christian
geldo79 is offline  
Old 04 August 2021, 20:08   #2
Photon
Moderator
 
Photon's Avatar
 
Join Date: Nov 2004
Location: Eksjö / Sweden
Posts: 5,602
It could be a hardware problem, but this is quickly tested in another two player game. (Plug in both joysticks and try to pinpoint a fault with a joystick or a port.)

Can you post code and tell us how often it's read and if system interrupts are on? You are testing the correct bits, so if it doesn't work something weird is going on. One weird things that could prevent a pin from working is if you set its direction to output. But you only have to set direction in a boot ROM, at all times when using the Amiga, no program has to set any of that stuff.

Last edited by Photon; 04 August 2021 at 20:13.
Photon is offline  
Old 04 August 2021, 20:22   #3
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,507
Sounds like usual input vs output mode problem.

Does it work if you set bit 7 of $bfe201?
Toni Wilen is offline  
Old 04 August 2021, 22:00   #4
Photon
Moderator
 
Photon's Avatar
 
Join Date: Nov 2004
Location: Eksjö / Sweden
Posts: 5,602
Toni found out the game loads from a dos disk and turns off OS, I think it's either timing or explicitly setting direction.

Maybe it's fixed already
Photon is offline  
Old 04 August 2021, 22:11   #5
saimo
Registered User
 
saimo's Avatar
 
Join Date: Aug 2010
Location: Italy
Posts: 787
Edit: nevermind, for some weird reason I ended up thinking of button 2.

Last edited by saimo; 04 August 2021 at 23:27.
saimo is offline  
Old 04 August 2021, 23:53   #6
Photon
Moderator
 
Photon's Avatar
 
Join Date: Nov 2004
Location: Eksjö / Sweden
Posts: 5,602
Yeah, after boot you don't have to do anything special, just read the inputs. and this is after boot, so it's something else I think.
Photon is offline  
Old 05 August 2021, 00:02   #7
Bruce Abbott
Registered User
 
Bruce Abbott's Avatar
 
Join Date: Mar 2018
Location: Hastings, New Zealand
Posts: 2,547
Quote:
Originally Posted by geldo79 View Post
Hi,

I want to use two Atari-7800 controllers... Using a competition pro on port 2 is working without problems.
Which 7800 controllers do you have?
Bruce Abbott is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Current limits of Amiga Joystick ports? MrD support.Hardware 17 14 November 2019 10:33
Broken+5v supply on Amiga 2000 joystick ports tomead support.Hardware 2 08 March 2018 20:08
Joystick problem in UAE deagledan support.OtherUAE 16 09 October 2016 17:29
2 joystick problem defrb support.WinUAE 5 20 October 2009 13:12
Ports-panel mouse/joystick selection Borg_Number_One support.WinUAE 3 27 November 2008 10:25

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 23:21.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.13068 seconds with 15 queries