Basically the ignition timing is stored in a MAP, but you can "trim" the ignition timing slightly using the wires by the ECU, using different fuels is one example as different fuels burn at different rates so the timing may need slight adjustment.
Martin