CompuServe Thread

Forum unknown · Programming

#Fire button

7 messages in this thread
#27420From: Mike BerroJul 21, 1986 9:14 PM
Sorry to keep bugging you but I didn't know if you got my last message concerning reading the fire button of joystick #2. I want to tell the difference between a pulse width of 1/2500 second and 1/5000 second, so I would like to access the port directly from assembly language. Do you know how this could be done? Thanx! — Mike
#27443From: Kevin-Neil KlopJul 21, 1986 11:36 PM
Memory Location $DFF016 contains the I/O control register for the joystick ports. Bit 15 is the enable bit for the fire button (set to 0 to enable), and bit 14 is the current state. This came from the Hardware Reqf manual, page 8-12.
#27492From: Mike BerroJul 22, 1986 6:18 PM
I tried that memory location to no avail. The new Hardware Manual shows other addresses, but I couldn't get them to work either.
#27492From: Mike BerroJul 22, 1986 6:18 PM
I tried that memory location to no avail. The new Hardware Manual shows other addresses, but I couldn't get them to work either.
#27733From: Mike BerroJul 24, 1986 8:48 PM
I finally figured it out myself. You clear bit 7 of address $bfe2ff, and then read bit 7 of $bfe0ff. Thanx for working on it though.
#27733From: Mike BerroJul 24, 1986 8:48 PM
I finally figured it out myself. You clear bit 7 of address $bfe2ff, and then read bit 7 of $bfe0ff. Thanx for working on it though.
#27443From: Kevin-Neil KlopJul 21, 1986 11:36 PM
Memory Location $DFF016 contains the I/O control register for the joystick ports. Bit 15 is the enable bit for the fire button (set to 0 to enable), and bit 14 is the current state. This came from the Hardware Reqf manual, page 8-12.