Finely chop onion, green onion, and spicy chili pepper.
Cut the Spam into small cubes.
Put Spam in a pot and sauté without oil to release its fat.
Add onion, green onion, and chili pepper, and stir-fry together.
Add chili powder and minced garlic, stir-fry for a bit more.
Pour in water (or anchovy broth) and bring to a boil.
Add soft tofu, scooping it roughly with a spoon into the pot.
Taste and adjust seasoning with salt or soy sauce for soup.
Beat an egg and pour it on top, then boil once more.