To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.roboticsOpen lugnet.robotics in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / 21005
21004  |  21006
Subject: 
Re: Mechanical Memory for Computing
Newsgroups: 
lugnet.robotics
Date: 
Thu, 26 Jun 2003 16:07:24 GMT
Original-From: 
Bruce Boyes <bboyes@systronix[antispam].com>
Viewed: 
807 times
  
Quoting Ross Crawford <rcrawford@csi.com>:
Actually a byte is whatever you define it to be - a nibble is generally
half a byte, and a word is generally 2 bytes.

Not to start a tempest in a teapot but I know of no recent computer language
or hardware which defines a byte as anything other than 8 bits. "byte-wide"
I/O is always 8 bits wide as are byte-wide registers. Were it not so, there
would be extreme confusion in hardware and software.

In the C world there can be disagreement on different hardware platforms
about the number of bits in an int (16 or 32), word or long word, but the
size of a byte is always 8 bits. Intel vs Motorola hardware differs in where
bit0 is, which drives programmers and designers crazy.

A nibble being half a byte can therefore hold one hex digit 0x0-0xF and a
byte can hold two - 0x00 through 0xff.

On advantage of Java is that all primitive sizes - byte, int, long, etc are
all the same on all hardware, making such definitions truly standardized in
a way which they never were with C tools. The 'endian-ness' of data is also
standardized across all platforms so there is no confusion about whether
'bit 0' is the least- or most- significant bit and where it's located. In
Java it's always the rightmost bit and always the least significant.

Bruce



Message has 2 Replies:
  Re: Mechanical Memory for Computing
 
(...) Various network protocols define bytes as 7-bit + parity. Almost all modern modems still support this, for a simple example. Historically, the hardware-defined 'most covenient' integer size was called the 'word', with word sizes ranging from 4 (...) (21 years ago, 26-Jun-03, to lugnet.robotics)
  Re: Mechanical Memory for Computing
 
(...) Depends on what you call 'recent' :-) The DEC PDP-8 had 12-bit words with 6-bit bytes, if I recall correctly. There were also computers with 36-bit words containing six 6-bit bytes in one word (DEC 10/20?), or three 12-bit bytes. The DataSaab (...) (21 years ago, 30-Jun-03, to lugnet.robotics)

5 Messages in This Thread:


Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR