+  RHDN Forum Archive
|-+  Romhacking
| |-+  General Romhacking
| | |-+  Help!
Pages: [1]
Author Topic: Help!  (Read 489 times)
nideba
Guest
« on: November 27, 2006, 12:54:47 am »

I don't understand this part:

'Well, a bit is a 0 or 1. A byte is 8 bits: 0000 0000 through 1111 1111. The first four bits give you a range of 16 possibilities. The second four bits also give you 16 possibilities. So if you have 16 times 16 combinations, that gives you 256 possibilities. Or a byte.'

I don't understand why the first four bits give a range of 16 possibilities. Does all four bits give 16 possibilities? Can anyone tell me?

Doom127
Guest
« Reply #1 on: November 27, 2006, 01:15:03 am »

Think of all the possible 1/0 number combinations that can be produced with 0000 through 1111 (ie: 0001, 0011, 0111, etc.) There are exactly 16- that's what's meant by it.
Ryusui
Guest
« Reply #2 on: November 27, 2006, 01:30:18 am »

0000 (0)
0001 (1)
0010 (2)
0011 (3)
0100 (4)
0101 (5)
0110 (6)
0111 (7)
1000 (8)
1001 (9)
1010 (10)
1011 (11)
1100 (12)
1101 (13)
1110 (14)
1111 (15)

Sixteen possibilities, counting from 0. Note how every power of two adds another bit to the left: 1, 2, 4, 8, 16, etc.
« Last Edit: November 27, 2006, 04:10:20 am by Ryusui »
kenghot
Guest
« Reply #3 on: November 27, 2006, 02:12:56 am »

1 digit 'll have 2 possible (1 or 0) , so 4 digits will have 2 x 2 x 2 x 2 = 16  Wink
Spikeman
Guest
« Reply #4 on: November 27, 2006, 04:09:32 am »

Quote from: Ryusui on November 27, 2006, 01:30:18 am
1000 (Cool

 Wink

(You forgot to click Don't use smileys)
Ryusui
Guest
« Reply #5 on: November 27, 2006, 04:11:06 am »

Fixed. I hate it when smileys show up exactly when I don't need them to. Tongue
nideba
Guest
« Reply #6 on: December 07, 2006, 03:23:35 am »

Thanks! I can understand now.
Pages: [1]  


Powered by SMF 1.1.4 | SMF © 2006-2007, Simple Machines LLC