Use all your missiles before buying a single missile at the space station. Leave the station, lock on the station, but do not fire. Dock with the station and sell the missile. Leave the station and press M. A line will extend across the bottom of the screen to confirm correct code entry. Your inventory will contain 256 missiles that may be sold or used.