|
|
|
|
 |

May 13th, 2008, 08:49 PM
|
 |
Shrapnel Fanatic
|
|
Join Date: Jul 2001
Location: Southern CA, USA
Posts: 18,394
Thanks: 0
Thanked 12 Times in 10 Posts
|
|
Re: SEV question
Quote:
MrToxin said:
Technically, a byte runs from 0 to 255.
|
If you want to be technical... A byte is contiguous sequence of a fixed number of binary digits. The exact size depends on the system in question (generally the smallest addressable word size). Even in C, where a byte is 8 bits, what those bits mean is arbitrary. It might represent integer values from 0 to 255, or it might be values from -128 to 127. Or it might just be a set of 8 boolean values.
|

May 13th, 2008, 09:02 PM
|
 |
Shrapnel Fanatic
|
|
Join Date: Mar 2003
Location: CHEESE!
Posts: 10,009
Thanks: 0
Thanked 7 Times in 1 Post
|
|
Re: SEV question
There are, however, 256 possible variations on an 8-bit byte, where a bit has two possible values. 
__________________
If I only could remember half the things I'd forgot, that would be a lot of stuff, I think - I don't know; I forgot!
A* E* Se! Gd! $-- C-^- Ai** M-- S? Ss---- RA Pw? Fq Bb++@ Tcp? L++++
Some of my webcomics. I've got 400+ webcomics at Last count, some dead.
Sig updated to remove non-working links.
|

May 13th, 2008, 10:54 PM
|
 |
Corporal
|
|
Join Date: Oct 2006
Posts: 105
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: SEV question
Quote:
narf poit chez BOOM said:
There are, however, 256 possible variations on an 8-bit byte, where a bit has two possible values.
|
And bytes are based on bits. That's where the 0 to 255 "standard byte" crap comes from.
00000000 translates to 0. 11111111 translates to 255. How a program interprets that is up to the programmer.
Of course, most programs use much, much larger slices of memory for...well, everything anyway so yeah.
Those of you that know what XOR means know what I'm talking about. :V
__________________
I'm sewage flavored.
|

May 13th, 2008, 11:20 PM
|
 |
Shrapnel Fanatic
|
|
Join Date: Mar 2003
Location: CHEESE!
Posts: 10,009
Thanks: 0
Thanked 7 Times in 1 Post
|
|
Re: SEV question
I believe I posted a sufficient understanding of that...Fyron. 
__________________
If I only could remember half the things I'd forgot, that would be a lot of stuff, I think - I don't know; I forgot!
A* E* Se! Gd! $-- C-^- Ai** M-- S? Ss---- RA Pw? Fq Bb++@ Tcp? L++++
Some of my webcomics. I've got 400+ webcomics at Last count, some dead.
Sig updated to remove non-working links.
|

May 14th, 2008, 01:20 AM
|
 |
Shrapnel Fanatic
|
|
Join Date: Jul 2001
Location: Southern CA, USA
Posts: 18,394
Thanks: 0
Thanked 12 Times in 10 Posts
|
|
Re: SEV question
11111111 just translates into 8 latches set high, not "255".
|

May 14th, 2008, 03:11 PM
|
|
General
|
|
Join Date: Aug 2000
Location: Ohio, USA
Posts: 4,323
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: SEV question
Quote:
Fyron said:
Quote:
MrToxin said:
Technically, a byte runs from 0 to 255.
|
If you want to be technical... A byte is contiguous sequence of a fixed number of binary digits. The exact size depends on the system in question (generally the smallest addressable word size). Even in C, where a byte is 8 bits, what those bits mean is arbitrary. It might represent integer values from 0 to 255, or it might be values from -128 to 127. Or it might just be a set of 8 boolean values.
|
And some of the old computers had very different byte sizes. Anywhere from 4 to 11 bits. For that matter, various current IBM hardware might also have different byte sizes. It's the Intel choice of 8 bits that we are living with in the PC world now.
|
| Thread Tools |
|
|
| Display Modes |
Hybrid Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is On
|
|
|
|
|