As long as it was full of oil when you cranked it, you did no damage whatsoever. The check engine light came on because the ECU detected a problem with the emissions system which was the cap missing. Have the check engine light reset and you will be fine. You can disconnect the negative battery cable for 5 minutes which may or may not reset the light. If not, it will have to be reset with an OBD2 scan tool.
how to reset check engine light on 1992 Mazda mpv
Remove distributor cap Have assistant crank engine and check to see if rotor is turning as engine is cranked
The check engine light on a Mazda Tribute gives warning of potential problems. It can signal overheating, low oil, or engine misfires.
I'm not sure but you may need to check the engine.
If the check engine light is blinking , an engine cylinder misfire has been detected
A flashing check engine light means an engine cylinder misfire has been detected
A check engine code 332 for a 1994 Mazda 626 means that the EGR valve's voltage is lower than it is expected to be. The ERG valve is part of your Mazda's emission control system.
ODO
If your check engine light is flashing an engine cylinder misfire has been detected
When the check engine light comes on, it's a good indication that something is wrong with your engine.
There are numerous warning lights for a Mazda RX8. Some of the warning lights are for engine oil, charging system, ABS, and check engine.
Click the link.