home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / arch / 12245 < prev    next >
Encoding:
Text File  |  1993-01-12  |  1.2 KB  |  34 lines

  1. Newsgroups: comp.arch
  2. Path: sparky!uunet!cs.utexas.edu!zaphod.mps.ohio-state.edu!menudo.uh.edu!sugar!ficc!peter
  3. From: peter@ferranti.com (peter da silva)
  4. Subject: Re: A theory for Big & Little Endian's origin
  5. Message-ID: <id.WFNW._A5@ferranti.com>
  6. Organization: Xenix Support, FICC
  7. References: <willmore.726511292@help.cc.iastate.edu> <16294@auspex-gw.auspex.com> <1993Jan11.192019.2922@lsl.co.uk>
  8. Date: Tue, 12 Jan 1993 15:03:49 GMT
  9. Lines: 23
  10.  
  11. In article <1993Jan11.192019.2922@lsl.co.uk> snail@lsl.co.uk writes:
  12. > Little endian sucks if you're an assembly freak (such as I was for many years)
  13. > an you look at memory dumps for multi-byte values like addresses, the nibbles
  14. > are all in the wrong order:-
  15.  
  16. >     Big Endian    : $1234
  17. >     Little Endian    : $3412
  18.  
  19. So print your dumps backwards. DEC's VAX macro-assembler does something
  20. like this:
  21.  
  22.  
  23.                HEX        ADDR        CODE
  24. 7 6  5 4  3 2  1 0
  25.          1234 00EC        0100        INSTR  #1234
  26.                 90        0104        INSTR
  27.  
  28. Just a DEC hardware junkie.
  29. -- 
  30. Peter da Silva                                            `-_-'
  31. Ferranti International Controls Corporation                'U` 
  32. Sugar Land, TX  77487-5012 USA
  33. +1 713 274 5180                            "Zure otsoa besarkatu al duzu gaur?"
  34.