.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

Raging Tiger- Save $9.00
The Star and the Crescent- Save $9.00

   







Go Back   .com.unity Forums > Shrapnel Community > Space Empires: IV & V

Reply
 
Thread Tools Display Modes
  #1  
Old May 13th, 2008, 08:49 PM
Fyron's Avatar

Fyron Fyron is offline
Shrapnel Fanatic
 
Join Date: Jul 2001
Location: Southern CA, USA
Posts: 18,394
Thanks: 0
Thanked 12 Times in 10 Posts
Fyron is an unknown quantity at this point
Default 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.
__________________
It's not whether you win or lose that counts: it's how much pain you inflict along the way.
--- SpaceEmpires.net --- RSS --- SEnet ModWorks --- SEIV Modding 101 Tutorial
--- Join us in the #SpaceEmpires IRC channel on the Freenode IRC network.
--- Due to restrictively low sig limits, you must visit this link to view the rest of my signature.
Reply With Quote
  #2  
Old May 13th, 2008, 09:02 PM
narf poit chez BOOM's Avatar

narf poit chez BOOM narf poit chez BOOM is offline
Shrapnel Fanatic
 
Join Date: Mar 2003
Location: CHEESE!
Posts: 10,009
Thanks: 0
Thanked 7 Times in 1 Post
narf poit chez BOOM is on a distinguished road
Default 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.
Reply With Quote
  #3  
Old May 13th, 2008, 10:54 PM
MrToxin's Avatar

MrToxin MrToxin is offline
Corporal
 
Join Date: Oct 2006
Posts: 105
Thanks: 0
Thanked 0 Times in 0 Posts
MrToxin is on a distinguished road
Default 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.
Reply With Quote
  #4  
Old May 13th, 2008, 11:20 PM
narf poit chez BOOM's Avatar

narf poit chez BOOM narf poit chez BOOM is offline
Shrapnel Fanatic
 
Join Date: Mar 2003
Location: CHEESE!
Posts: 10,009
Thanks: 0
Thanked 7 Times in 1 Post
narf poit chez BOOM is on a distinguished road
Default 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.
Reply With Quote
  #5  
Old May 14th, 2008, 01:20 AM
Fyron's Avatar

Fyron Fyron is offline
Shrapnel Fanatic
 
Join Date: Jul 2001
Location: Southern CA, USA
Posts: 18,394
Thanks: 0
Thanked 12 Times in 10 Posts
Fyron is an unknown quantity at this point
Default Re: SEV question

11111111 just translates into 8 latches set high, not "255".
__________________
It's not whether you win or lose that counts: it's how much pain you inflict along the way.
--- SpaceEmpires.net --- RSS --- SEnet ModWorks --- SEIV Modding 101 Tutorial
--- Join us in the #SpaceEmpires IRC channel on the Freenode IRC network.
--- Due to restrictively low sig limits, you must visit this link to view the rest of my signature.
Reply With Quote
  #6  
Old May 14th, 2008, 03:11 PM

Baron Munchausen Baron Munchausen is offline
General
 
Join Date: Aug 2000
Location: Ohio, USA
Posts: 4,323
Thanks: 0
Thanked 0 Times in 0 Posts
Baron Munchausen is on a distinguished road
Default 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.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 01:23 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.