Well I will give you the code for getting dig as a TM. If you have a gamesharkind device, well if not then... anyways:Do this, keep a cheap item as the first item and then type this code-0F5D813F 1C7C517E (and the first character is zero and not the letter "O"). Now after typing it then return to the game and if you are in the Main pocket of bag then exit and check the first item, if its the Tm and if you want it in the right pokect then deposit it in the computer(after removing the code) and then withdraw it.
If you dont want the Tm but want it directly to be taught to a Pokemon then: Type this-0AD9018E 810ACF43 and have heart scales on you and take ANY pokemon to the Heartscale Guy and ask him to teach the Pokemon the move when you do reach the list Of known attacks checkout the first attack-It will Be Dig -Check the type of attack by its side) and Teach it, it will learn dig and remember Any Pokemon codes because with the heart scale codes its easy to teach even A tentacool the attack FireBlast. Remember to remove the codes once your done. Enjoy!!!