View Single Post
  #967  
Old 12-26-2009, 05:24 PM
RoughSilver92 RoughSilver92 is offline
Registered User
 
Join Date: Jun 2008
Location: South Bend, IN
Posts: 208
Registered SVX
Re: Memory dump of ECU

Thanks Phil
Great info as usual. I didn't realize that the comparison thing that was going on there was part of the A/D logic(?). I guess in retrospect it doesn't matter how it chooses the value that the program uses. What is important is how the value(s) it does choose interact with the rest of the program. I need to try to stay focused on that. Just from what I have had a good look at so far I can see I should be able to find more things to label, like 1243 and 12c8 seem to hold either default values or (TPS Volts) dependent on certain conditions. I think I have a long road ahead of me breaking down each function into simple if/else statements then trying to pull it all together and make like a flow chart describing the program.

About these little Indians:
Quote:
00008660 80 80 FF 66 00 0A 00 64 82 14 0A FF 02 24 02 02
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)?
Quote:
00E323 D8 clm ; m:0 x:0
00E324 AD6386 lda ax, 0x8663
00E327 8DC812 sta ax, 0x12c8
00E32A 18 clc
00E32B 6D6586 adc ax, 0x8665
00E32E 8D4312 sta ax, 0x1243
00E331 F8 sem ; m:1 x:0
Reply With Quote