Hi!
I have one matter: how is store a longlong in memory (little endian convention)...
Thanks
DAP Question (LBA)
RE:DAP Question (LBA)
>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
>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