To use cheat codes in Pokemon Emerald on the Game Boy Advance SP, you will need a cheat device such as an Action Replay or a GameShark. These tools let you input and activate codes that the standard game does not support on its own.
Hope that points you in the right direction!