Dice the spam and onion into small cubes.
Beat the eggs in a bowl.
Heat oil in a pan and stir-fry the spam and onion.
Add the rice and stir-fry together.
Pour in the beaten eggs and stir quickly while frying.
Taste and season with salt and black pepper.