Forum unknown
· Programming
#Fire button
7 messages in this thread
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
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.
I tried that memory location to no avail. The new Hardware Manual shows
other addresses, but I couldn't get them to work either.
I tried that memory location to no avail. The new Hardware Manual shows
other addresses, but I couldn't get them to work either.
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.
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.
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.