The motor will fit. However, 77-78 bikes have a wider swingarm and corresponding rear sprocket carrier. You may need a spacer or offset drive sprocket to align the chain. Speaking of chain, the chain/sprocket size is different between early models and 77-78 bikes, 520 vs 530. You could change the swingarm and rear wheel sprocket carrier out for an earlier model. Both can be found easily. I did the opposite and put a 77 motor in a 75 frame, but used the 77 swingarm and rear wheel.