IDCMP
This message turned up in search, but its forum couldn’t be identified from the original transcript, so it may not be linked into its thread.
A quick look in my Motorola book shows that to test the 31st bit of a
data register (D0), the proper syntax is:
btst #$1f,D0
Your example showed,
btst $1f,D0