Page 1 of 1
DAP Question (LBA)
Posted: Thu Feb 21, 2002 12:00 am
by AndrewBuckley
Hi!
I have one matter: how is store a longlong in memory (little endian convention)...
Thanks
RE:DAP Question (LBA)
Posted: Thu Feb 21, 2002 12:00 am
by J. Weeks
>On 2002-02-21 02:51:45, Merlin wrote:
>Hi!
>
>I have one matter: how is store a longlong in memory (little endian convention)...
I _believe_ it's simply stored in reverse, with the
LSB stored first. It might be compiler dependant,
of course, because 32-bit compilers have to
implement their own code to add 64-bit numbers
(because the processor can't do it).
You can do what I used to always do in a jam .
Just make a little program with a variable:
long long 0x1122334455667788;
And then load it into debug and find that variable,
and see how it's compiled.
I'm guessing, 88 77 66 55 44 33 22 11 (hex)
J. Weeks
RE:DAP Question (LBA)
Posted: Thu Feb 21, 2002 12:00 am
by Guest
Thanks