Boost cut, AFR tracking, fuel pressure drop, oil pressure drop, cylinder misfire indicator, sensor faults, adaptive knock control, rev limiter, valet option and all of these will trigger a check engine light when conditions are met.
I have seen Megasquirt but there has been so much more...