since the OP did not give the motors model number we have no ideaa what it is.
but Yamaha switched to a twist to shift in 1995 ,I would have to guess his 80s 40 is a push and pull shift rod.
drop the lower unit again and place the lower unit in reverse and the shifter in reverse and hook back...