4
Address 65280 (Hex &FF00) is the I/O port on the CoCo for the joystick and the keyboard row input. It is the case that the lower 2 bits are assigned to the left and right joystick buttons. Bit 7 is associated with the joystick direction, which is why it can be either 0 OR 1 while a button is pressed. So, your proposed approach is correct.
Only top voted, non community-wiki answers of a minimum length are eligible
Related Tags
color-computer × 22color-basic × 4
emulation × 2
joystick × 2
6809 × 2
coco × 2
os-9 × 2
commodore-64 × 1
apple-ii × 1
graphics × 1
programming × 1
assembly × 1
keyboards × 1
atari × 1
cassette-tape × 1
maintenance × 1
motorola-68000 × 1
disk-image × 1
program-pak × 1
bugs × 1