I don't know if this helps but i've been working with gameshark codes to move the HUD, I've been using this website for the codes and it's helped me alot: https://sites.google.com/site/sm64gameshark/codes/hud-customization
Again, I don't know how helpful this is because I have no idea if you can implement gamesharks into the ROM itself
Update: I found this thread that could really help https://www.smwcentral.net/?p=viewthread&t=103579
It has a program that directly changes gameshark codes into a ROM patches.
I hope I could help