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 Apr 25, 2005 | 09:21 AM
  #1  
MonteCarSlow's Avatar
Thread Starter
Member
 
Joined: Jun 2001
Posts: 391
Likes: 0
From: Eh?
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>

Reply
Old Apr 25, 2005 | 09:30 AM
  #2  
dimented24x7's Avatar
Supreme Member
iTrader: (2)
 
Joined: Jan 2002
Posts: 9,962
Likes: 5
From: Moorestown, NJ
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.
Reply
Old Apr 25, 2005 | 09:44 AM
  #3  
MonteCarSlow's Avatar
Thread Starter
Member
 
Joined: Jun 2001
Posts: 391
Likes: 0
From: Eh?
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.
Reply
Old Apr 25, 2005 | 11:03 AM
  #4  
dimented24x7's Avatar
Supreme Member
iTrader: (2)
 
Joined: Jan 2002
Posts: 9,962
Likes: 5
From: Moorestown, NJ
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.
Reply
Old Apr 25, 2005 | 11:56 AM
  #5  
MonteCarSlow's Avatar
Thread Starter
Member
 
Joined: Jun 2001
Posts: 391
Likes: 0
From: Eh?
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.
Reply
Old Apr 25, 2005 | 12:37 PM
  #6  
MonteCarSlow's Avatar
Thread Starter
Member
 
Joined: Jun 2001
Posts: 391
Likes: 0
From: Eh?
Car: 1988 Monte Carlo SS
Engine: 5.7L TPI
Transmission: T5
Axle/Gears: 3.73
edit: deleted incorrect information...

Last edited by MonteCarSlow; Apr 26, 2005 at 04:14 PM.
Reply
Old Apr 25, 2005 | 01:28 PM
  #7  
dimented24x7's Avatar
Supreme Member
iTrader: (2)
 
Joined: Jan 2002
Posts: 9,962
Likes: 5
From: Moorestown, NJ
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.
Reply
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
Glowsock
Tech / General Engine
13
Jul 24, 2025 03:15 PM
Ghettobird52
Tech / General Engine
16
Jul 5, 2024 11:18 PM
92camaroJoe
TBI
32
Jul 29, 2023 07:57 PM
Infested
Tech / General Engine
3
May 22, 2018 11:56 PM
92camaroJoe
Tech / General Engine
6
Aug 13, 2015 06:07 AM




All times are GMT -5. The time now is 05:23 PM.