View Single Post
  #968  
Old 12-27-2009, 01:46 AM
b3lha's Avatar
b3lha b3lha is offline
Phil & Belha
 
Join Date: Aug 2001
Location: Alcyone Limited, Buckinghamshire UK
Posts: 2,671
Re: Memory dump of ECU

Quote:
Originally Posted by RoughSilver92 View Post
About these little Indians:

In the chunk of code below when loading and adding the 16 bit values conventional thinking says 8663 contains 66 00 or 26,112(I think). Since it is little endian is it really a 00 66 or 102? Same with adc ax,8665, is it really adding 00 0a (10) or 0a 00 (2560)?
8663 is 0066
8665 is 000A

At some point you'll discover a nasty little trick in the code where they write a 16 bit value to an address and then never use it. Sometimes, they just read the high byte from (address+1) and use that instead of the whole 16 bits.

There's also some 24-bit numbers. Again, these are stored low byte first, high byte last.
__________________
Subaru ECU and TCU Website
1992 Alcyone SVX Version L
1992 Alcyone SVX Version L
1994 Alcyone SVX S40-II
2004 Subaru Legacy 2.5 SE Sports Tourer
1996 Subaru Legacy 2.2 GX Wagon
1988 Subaru Justy J12 SL-II
Reply With Quote