home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / arch / 12227 < prev    next >
Encoding:
Internet Message Format  |  1993-01-11  |  2.4 KB

  1. Path: sparky!uunet!pipex!bnr.co.uk!uknet!lsl!snail
  2. From: snail@lsl.co.uk
  3. Newsgroups: comp.arch
  4. Subject: Re: A theory for Big & Little Endian's origin
  5. Message-ID: <1993Jan11.192019.2922@lsl.co.uk>
  6. Date: 11 Jan 93 19:20:19 GMT
  7. References: <1iig7aINNtc@spim.mti.sgi.com> <1993Jan8.120225.8330@infodev.cam.ac.uk> <willmore.726511292@help.cc.iastate.edu> <16294@auspex-gw.auspex.com>
  8. Organization: Laser-Scan Ltd., Cambridge
  9. Lines: 47
  10.  
  11. In article <16294@auspex-gw.auspex.com>, wally@Auspex.COM (Wally Bass) writes:
  12. > In article <willmore.726511292@help.cc.iastate.edu> willmore@iastate.edu (David Willmore) writes:
  13. > Given that Intel x86 started as narrow data flow stuff, it's
  14. > not surprising that it ended up with low-byte-first.
  15.  
  16. It's quite interesting that Intel did get it right on one (and only one, I
  17. think) of their chips. I can't remember the number of it, but I think it was 
  18. before the 8080, and I don' think it was a 4004 or 8008, but could be wrong,
  19. but one of their chips was big-endian - then they changed their minds - was it
  20. an 8051 or something like that.
  21.  
  22. Little endian sucks if you're an assembly freak (such as I was for many years)
  23. an you look at memory dumps for multi-byte values like addresses, the nibbles
  24. are all in the wrong order:-
  25.  
  26.     Big Endian    : $1234
  27.     Little Endian    : $3412
  28.  
  29. At least it'd be easier if little endian had the bits the right way round - but
  30. thats only a concept, so on a little endian machine I could look for:-
  31.  
  32.      $4321, yes bizarre idea, and just as well no one ever did it!
  33.  
  34. but searching for $3412 when I want address $1234 is painful to say the least.
  35. No I program in C and Modula 2, so it isn't really a problem for me anymore.
  36.  
  37. That $ just brought another thing in, I hate Intel syntax.
  38.  
  39.     $65 is better than 65H because I know it's hex before I read it.
  40.     $A is better than 0AH because AH is illegal, and I know it's hex before
  41.            I read it, and I don't need a leading zero to make it legal.
  42.  
  43.     Same goes for binary %00010001 as against 00010001B
  44.  
  45.         I can't remember the Octal syntax, but ....
  46.  
  47. Yes, I'm just a Mostek/Motorola junkie.
  48.  
  49. Looks good on the outside, but
  50.      Intel inside.
  51. -- 
  52. snail@lsl.co.uk      
  53.  
  54. "Washing one's hands of the conflict between the powerful and the powerless
  55.  means to side with the powerful, not to be Neutral."
  56.                                                      Quote by Freire.
  57.                                                      Poster by OXFAM.
  58.