Join ABADSS Now
ViewSat

ABA DSS - Free to Air Satellite TV Community > Newbies Section > FAQ & How To » understanding binary code

FAQ & How To General forum for Newbies. Will have FAQ's and How To's written by senior members.

Comment
understanding binary code
Published by toysrus
September 26th, 2006
understanding binary code

Understanding binary code

Very special thanks to Blackswan for this information


Computers are nothing more than a calculator on steroids. The only thing they understand, is numbers. You may see words on the screen when you're chatting on the forums, or realistic graphics while playing your favorite game, but all the computer sees are numbers. Millions of numbers. Thatis the way computers work. They calculate lots of numbers very fast. To understand this, we need to understand how a computer works. A computer is nothing more than a bunch of switches. They only have two positions, on or off. Everything a computer does involves turning these switches on and off in certain sequences.
Let's go back to grade school for a moment. In school we learned about the base ten or Arabic numbering system. which is also called the decimal system. What this means is that we have ten digits in our numbering system. Rember the columns you were taught? Ones, tens, hundreds and thousands, etc remember no column could contain a number higher than 9. When counting, you increase each digit in the right-most place column until you reach 9, then you return to zero and place a 1 in the next column to the left. Well suprise! other numbering systems work the same way. In computer programming we use two numbering systems that are interrelated. The base 2 system, called the binary system, and the base 16 system called the hexidecimal, or hex system.
Computers use the two digit, or binary system to represent how it sets it's switches, either on-0 or off-1 We call such numbers binary numbers (bin means two), and they follow the same basic rules that decimal numbers do: Start with 0, increment to 1, then go back to 0 and increment the next column to the left. For example:
binary-decimal equivelent
0- 0
1- 1
10- 2
11- 3
100- 4
101- 5
110- 6
111- 7
1000- 8
1001- 9

Notice that having only two digits to work with means that your place columns grow rapidly. Because of this there is another numbering system that is used with computers, hexidecimal. Hexidecimai, or hex, as it is called is a base 16 numbering system which means that every places column counts up to sixteen individual digits. Now we have to have somthing to represent the extra six digits. We do this by using the first six letters of the alphabet. Thus the digits for the hexidecimal numbering system are:
0 1 2 3 4 5 6 7 8 9 A B C D E F
Hexidecimal numbers work exactly the same way the other numbering systems do. Count up to the last digit, then return to zero and increment the next column to the left. For example:
hexidecimal-decimal equivelent
0- 0
1- 1
2- 2
3- 3
4- 4
5- 5
6- 6
7- 7
8- 8
9- 9
A- 10
B- 11
C- 12
D- 13
E- 14
F- 15
10- 16
11- 17
and so on.
the hexidecimal numbering system, is the a standard for computer programmers and engineers the world over. It is common when viewing a bin to use a hex editor/viewer that displays the hex values of each character. Hex values are usually shown in groups of four characters consisting of two bytes. One byte=two hex characters, or xx. Two bytes= four hex characters or xxxx.
A byte is, 8 bits in size. It can be represented by a two digit hexidecimal number (00-FF). If you are programming for the Windows platform in C or C++ you have probably noticed the commonly used variable type DWORD (Double-WORD). A WORD is 16 bits iin size, which makes a DWORD 32 bits. If you are an HTML programmer you have probably seen color values that are composed of hex numbers. Colors are represented as a mixture of Red, Green and Blue values (RGB). Each of these three primary colors can have a value from 0-255 (decimal), which translates into three sets of two-digit hexidecimal numbers: 00 1A FF. So you can see we use these hex values tell the computer what to do. Hex values can be designated by a $, $4ff0, or a 0x, 0x4ff0. The $ is the old way, and the 0x is the current method.
Tutorial Tools
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
 
By tomcat01 on September 26th, 2006
wow

i did'nt want to read that it gave me flash backs to networking and university blah blah blah ...
otherwise for those who don't know very good ...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #1 (permalink)  
By Threshold on September 26th, 2006
SHUDDER!!
I think that was one of the reasons I graduated in business and immediately headed for the sciences!
Sure brings back old memories.
Well done!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Related Content   #1.5
ABAdss Site Sponsors
 
 
Posts: lots
Bot is online  
Comment

Tutorial 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 Off
Trackbacks are On
Pingbacks are On
Refbacks are On

 
Search ABAdss
Find Top Dealers



What's New
Site Sponsors
Forum Stats
Translate ABADSS
Hot Deals
Tag Cloud
All times are GMT -4. The time now is 05:03 AM.

Broward County Lawyer & Attorney -- Block buster -- West Palm Beach Lawyer & Attorney

Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC5 Copyright by ABADSS System


Vote for us at these links!

Enter DSS Top 33 and Vote for this site !!!  FTA Top List -- The Best Free to Air Sites on the Net!


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452