OSDev.org

The Place to Start for Operating System Developers
It is currently Thu Mar 28, 2024 4:11 pm

All times are UTC - 6 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: DAP Question (LBA)
PostPosted: Thu Feb 21, 2002 12:00 am 
Hi!

I have one matter: how is store a longlong in memory (little endian convention)...

Thanks


Top
  
 
 Post subject: RE:DAP Question (LBA)
PostPosted: Thu Feb 21, 2002 12:00 am 
>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


Top
  
 
 Post subject: RE:DAP Question (LBA)
PostPosted: Thu Feb 21, 2002 12:00 am 
Thanks


Top
  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: Amazonbot [bot] and 88 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

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group