Eric Stage I
TurboTweak Guy
- Joined
- May 25, 2001
- Messages
- 2,671
For anyone thats studied the MAF code:
See here,
3A00: CE 00 50 LDX #$0050 X = Address of ReferencePACount
3A03: 96 A9 LDAA $A9 A = Unscaled MAF Table Result
3A05: BD FC 85 JSR $FC85 ; D = ReferencePACount * Unscaled MAF Table Result
3A08: DD 83 STD $83 InjectorPW = D
Ok, fine, so $A9 is unscaled airflow, great.
And later on we see that $AA is the maf table scalar.
Now, here's my quandary. In the rom, there is some code for max airflow. It looks at the max airflow vs. rpm table, compares it to the actual airflow, and limits max airflow if necessary. If the table is used, the lookup is done and the result is in acc A. Then here's what happens:
EE7E: 5F CLRB
EE7F: DD AB STD $AB
EE81: C6 FF LDAB #$FF
EE83: D7 A9 STAB $A9
EE85: 97 AA STAA $AA
Here, it appears to me that $A9 is the table scalar and $AA is unscaled airflow. Is this an error?
Earlier $A9 is unscaled airflow, now $A9 is the scalar. Same deal with $AA.
Am I misinterpreting something?
Sorry for all the mumbo jumbo, but I though I'd throw this out there and see if anyone has a thought.
Regards,
Eric
See here,
3A00: CE 00 50 LDX #$0050 X = Address of ReferencePACount
3A03: 96 A9 LDAA $A9 A = Unscaled MAF Table Result
3A05: BD FC 85 JSR $FC85 ; D = ReferencePACount * Unscaled MAF Table Result
3A08: DD 83 STD $83 InjectorPW = D
Ok, fine, so $A9 is unscaled airflow, great.
And later on we see that $AA is the maf table scalar.
Now, here's my quandary. In the rom, there is some code for max airflow. It looks at the max airflow vs. rpm table, compares it to the actual airflow, and limits max airflow if necessary. If the table is used, the lookup is done and the result is in acc A. Then here's what happens:
EE7E: 5F CLRB
EE7F: DD AB STD $AB
EE81: C6 FF LDAB #$FF
EE83: D7 A9 STAB $A9
EE85: 97 AA STAA $AA
Here, it appears to me that $A9 is the table scalar and $AA is unscaled airflow. Is this an error?
Earlier $A9 is unscaled airflow, now $A9 is the scalar. Same deal with $AA.
Am I misinterpreting something?
Sorry for all the mumbo jumbo, but I though I'd throw this out there and see if anyone has a thought.
Regards,
Eric