DIY PROM Do It Yourself PROM chip burning help. No PROM begging. No PROMs for sale. No commercial exchange. Not a referral service.

cumulative fuel units in $8D?

Thread Tools
 
Search this Thread
 
Old 04-25-2005, 09:21 AM
  #1  
Member

Thread Starter
 
MonteCarSlow's Avatar
 
Join Date: Jun 2001
Location: Eh?
Posts: 391
Likes: 0
Received 0 Likes on 0 Posts
Car: 1988 Monte Carlo SS
Engine: 5.7L TPI
Transmission: T5
Axle/Gears: 3.73
cumulative fuel units in $8D?

Can someone help me figure out what the unit of measure is for the 16 bit cumulative fuel counter at 0x0130 in the $8D (AUJP) mask? The code below takes the upper 16 bits of the 24 bit cumulative bpw counter at 0x012D, multiplies by 8 and saves at 0x0130. The math done to the upper 16 most significant bits has me confused. The units should still be injector on time, but how do I correlate the values in my log (over a time period) against the cumulative distance counter to find an accurate fuel economy value for that period?

<code>
ldd L012D ; RUN TIME TOTAL DELIVERED FUEL
lsld ; MULT * 2, MULT BY 8
lsld ; MULT * 2
lsld ; MULT * 2
std L0130 ; RUN TOTAL DELIVERED FUEL TO INST PNL
</code>

Old 04-25-2005, 09:30 AM
  #2  
Supreme Member

iTrader: (2)
 
dimented24x7's Avatar
 
Join Date: Jan 2002
Location: Moorestown, NJ
Posts: 9,962
Likes: 0
Received 3 Likes on 3 Posts
Car: 88 Camaro SC
Engine: SFI'd 350
Transmission: TKO 500
Axle/Gears: 9-bolt w/ 3.23's
It looks to be that the contents of the address 0x12D are being divided by 32 and then stored/outputted to 0x130.
Old 04-25-2005, 09:44 AM
  #3  
Member

Thread Starter
 
MonteCarSlow's Avatar
 
Join Date: Jun 2001
Location: Eh?
Posts: 391
Likes: 0
Received 0 Likes on 0 Posts
Car: 1988 Monte Carlo SS
Engine: 5.7L TPI
Transmission: T5
Axle/Gears: 3.73
Originally posted by dimented24x7
It looks to be that the contents of the address 0x12D are being divided by 32 and then stored/outputted to 0x130.
I don't think you've got that right. The LSLD opcode is Logical Shift Left Double.

example (8 bits)
0000 0100 (4 decimal)
..shift bits left by one position
0000 1000 (8 decimal)

The operation is a multiply by 2. If done three times, the result is mulitply by 8.
Old 04-25-2005, 11:03 AM
  #4  
Supreme Member

iTrader: (2)
 
dimented24x7's Avatar
 
Join Date: Jan 2002
Location: Moorestown, NJ
Posts: 9,962
Likes: 0
Received 3 Likes on 3 Posts
Car: 88 Camaro SC
Engine: SFI'd 350
Transmission: TKO 500
Axle/Gears: 9-bolt w/ 3.23's
I said that because only the upper two bytes of the three byte (24 bit) value are used. Just by the face of things, this is equivelent to dividing by 256. Multiply by 8 and its a fast and crude way of dividing by 32. Is that the intention? Beats me. But what I see there with only the two uppermost bytes taken thats the conclusion Id draw.
Old 04-25-2005, 11:56 AM
  #5  
Member

Thread Starter
 
MonteCarSlow's Avatar
 
Join Date: Jun 2001
Location: Eh?
Posts: 391
Likes: 0
Received 0 Likes on 0 Posts
Car: 1988 Monte Carlo SS
Engine: 5.7L TPI
Transmission: T5
Axle/Gears: 3.73
Originally posted by dimented24x7
I said that because only the upper two bytes of the three byte (24 bit) value are used. Just by the face of things, this is equivelent to dividing by 256. Multiply by 8 and its a fast and crude way of dividing by 32. Is that the intention? Beats me. But what I see there with only the two uppermost bytes taken thats the conclusion Id draw.
I see what you are saying now... your right, the bigger picture is a divide by 32. Sorry about that.
Old 04-25-2005, 12:37 PM
  #6  
Member

Thread Starter
 
MonteCarSlow's Avatar
 
Join Date: Jun 2001
Location: Eh?
Posts: 391
Likes: 0
Received 0 Likes on 0 Posts
Car: 1988 Monte Carlo SS
Engine: 5.7L TPI
Transmission: T5
Axle/Gears: 3.73
edit: deleted incorrect information...

Last edited by MonteCarSlow; 04-26-2005 at 04:14 PM.
Old 04-25-2005, 01:28 PM
  #7  
Supreme Member

iTrader: (2)
 
dimented24x7's Avatar
 
Join Date: Jan 2002
Location: Moorestown, NJ
Posts: 9,962
Likes: 0
Received 3 Likes on 3 Posts
Car: 88 Camaro SC
Engine: SFI'd 350
Transmission: TKO 500
Axle/Gears: 9-bolt w/ 3.23's
Originally posted by MonteCarSlow
I see what you are saying now... your right, the bigger picture is a divide by 32. Sorry about that.
NP.
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
Ghettobird52
Tech / General Engine
15
12-29-2023 08:23 AM
92camaroJoe
TBI
32
07-29-2023 07:57 PM
Glowsock
Tech / General Engine
11
08-02-2020 07:36 PM
Infested
Tech / General Engine
3
05-22-2018 11:56 PM
92camaroJoe
Tech / General Engine
6
08-13-2015 06:07 AM



Quick Reply: cumulative fuel units in $8D?



All times are GMT -5. The time now is 10:52 AM.