This table disappeared in the latest release (0.11), right ?
Addendum:
ADD_FUEL,&H7530,16,1,16,1,Acceleration increase volume
yes, it has been removed, on purpose. That's so complicated and I forgot a lot
viewtopic.php?f=8&t=2335&p=17070&hilit= ... dle#p17070
Now, I have a big problem with this location (it cannot be what you call it):
FUEL_INCREASE_RATE,&H79FF,1,1,1,1,Fuel increase rate adjustment
When looking into the code:
Code: Select all
CODE:978E ict_8: ; ...
CODE:978E ldx #tp_limit
CODE:9791 tim #%10000, flags2 ; Bit 0: 0=first time, 1=not first time
CODE:9794 beq ict_9
CODE:9794
CODE:9796 ldx #fuel_cut_recovery
CODE:9799
CODE:9799 ict_9: ; ...
CODE:9799 jsr interp_16 ; X=table adress
CODE:9799 ; A=value to look up
CODE:9799 ;
CODE:9799 ; A=output value
CODE:9799
CODE:979C cmpa tp1
CODE:979F bcc ict_10
CODE:979F
CODE:97A1 ldaa inj_counter1
CODE:97A4 cmpa location_79FF
CODE:97A7 bcs ict_11
CODE:97A7
CODE:97A9 oim #%10000, flags2 ; Bit 0: 0=first time, 1=not first time
CODE:97AC bra ict_2
CODE:97AC
CODE:97AE
CODE:97AE ict_10: ; ...
CODE:97AE clr inj_counter1
CODE:97B1 aim #%11101111, flags2 ; Bit 0: 0=first time, 1=not first time
CODE:97B4
CODE:97B4 ict_11: ; ...
CODE:97B4 ldx ttp_min
CODE:97B7 cpx tp
CODE:97BA bcs ict_12 ; If tp>ttp_min then branch
CODE:97BA
CODE:97BC stx tp ; Else tp=ttp_min
CODE:97BF
CODE:97BF ict_12: ; ...
CODE:97BF ldx ttp_max
CODE:97C2 cpx tp
CODE:97C5 bcc ict_13 ; If tp<ttp_max then branch
CODE:97C5
CODE:97C7 stx tp ; Else tp=ttp_max
CODE:97CA
CODE:97CA ict_13: ; ...
CODE:97CA rts
with
DATA:F960 tp_limit: fcb 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255
DATA:F970 fuel_cut_recovery: fcb 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48
RAM2:14E4 inj_counter1: rmb 1
Basically, 0x79FF is a counter limit (OEM value=10) for inj_counter1.
And inj_counter1 counts the number of times TP is above TP_limit threshold or below TP_load_recovery threshold before validating it ...
This is just to avoid transitional effects.
inj_counter1 is incremented in a routined called into IRQ2 (don't remember the irq2 call rate).
Code: Select all
CODE:A1E2 compute_counters: ; ...
CODE:A1E2 ldaa limiters_counter2
CODE:A1E5 beq loc_6208
CODE:A1E5
CODE:A1E7 dec limiters_counter2
CODE:A1EA
CODE:A1EA loc_6208: ; ...
CODE:A1EA tim #%1111, byte_81
CODE:A1ED bne loc_815
CODE:A1ED
CODE:A1EF inc inj_counter1
CODE:A1F2 bne loc_6209
CODE:A1F2
CODE:A1F4 com inj_counter1
CODE:A1F7
CODE:A1F7 loc_6209: ; ...