To give you an idea for some of the tricks in the ECU, here is a piece of seemingly incomprehensible code for reading in data from Port C (IDL, DFG/LP, TE1, HT, AC, STA, OX1 and IGSW).
Port C is address $28h, and the processed data is stored in RAM variable $4Fh.
ROM:F6CA ld...