RomRaider Logo

RomRaider

Open Source ECU Tools
 FAQ •  Register •  Login 

RomRaider

Documentation

Community

Developers

It is currently Thu Dec 25, 2025 6:16 am

All times are UTC - 5 hours [ DST ]





Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: issue with endian-ness in ecu defs?
PostPosted: Wed May 30, 2007 8:17 pm 
Offline
Newbie

Joined: Sat Aug 26, 2006 8:22 am
Posts: 74
Does RomRaider sometimes ignore the endian-ness defined for tables in the 32 bit ecu defs?

I was poking around today (A8DH200X and 32BITBASE) and found:
Code:
<table name='MAF Limit (Maximum)' storageaddress='0xC2398'/>
<table name='MAF Limit (Maximum)' category='MAF' storagetype='float' userlevel='3' type='1D' [b]endian='little'[/b] sizey='1'>
<table name='MAF Limit (CEL)' category='MAF' storagetype='float' userlevel='3' type='1D' [b]endian='little'[/b] sizey='1'>


Ok, so if I read at 0xC2398 and unpack what I find there as little-endian I get:
Code:
irb(main):171:0> rom.pos=0xC2398; rom.read().unpack('e')
=> [6.64593822675331e-41]


Let's try big-endian...
Code:
irb(main):170:0> rom.pos=0xC2398; rom.read().unpack('g')
=> [300.0]


My code is correct as far as I can see, so I'm left wondering- why does RomRaider apparently treat it as big when the defs say it's little?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Style based on FI Subsilver by phpBBservice.nl