It varies from one emulator to the next. Visual Boy Advance, mGBA, and No$GBA each handle cheat entry differently, so it helps to say which one you're using before anyone can walk you through it.