While you're playing, press the Select button to bring up the code entry.
From there you'll need to input a hex code for the item you want. A commonly referenced list of these codes can be found at https://www.aibohack.com/nds/aclist.htm, which maps codes to their corresponding items.