<body><script type="text/javascript"> function setAttributeOnload(object, attribute, val) { if(window.addEventListener) { window.addEventListener('load', function(){ object[attribute] = val; }, false); } else { window.attachEvent('onload', function(){ object[attribute] = val; }); } } </script> <div id="navbar-iframe-container"></div> <script type="text/javascript" src="https://apis.google.com/js/platform.js"></script> <script type="text/javascript"> gapi.load("gapi.iframes:gapi.iframes.style.bubble", function() { if (gapi.iframes && gapi.iframes.getContext) { gapi.iframes.getContext().openChild({ url: 'https://www.blogger.com/navbar/19216795?origin\x3dhttp://myafif.blogspot.com', where: document.getElementById("navbar-iframe-container"), id: "navbar-iframe" }); } }); </script>

::..SyNt4x Lif3..::

Understanding Number Systems
Wednesday, November 23, 2005

Im going to provide you all with a few different number systems which have alot to do with programming, hacks and etc. The main number systems that are most important and most widely used are hexadecimal, binary and decimal.

The Binary number system:
This might be hard for users who a new to number systems, but bare with me. Give it time and you'll get better at understanding this number system. Binary basicly only uses 2 numbers, which is 1 and 0, on or off.

Example:
11010011
= (1x128) + (1x64) + (0x32) + (1x16) + (0x8) + (0x4) + (1x2) + (1x1)
= 128 + 64 + 0 + 16 + 0 + 0 + 2 + 1
= 211

Now the Hexadecimal system:
The hex system is widely used and works with powers of 16.
0 1 2 3 4 5 6 7 8 9 A B C D E F

Instead of going to 10, it is replaced with the letter A. So A = 10. It helps to prevent confusion when reading hex. So the above numbers and letters would really be
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 all the way up to 16.

Example:
The binary code for 29 is 00011101
So now you got to work backwards

So you split the 8 bytes into 2 sections with 4 bytes in both sides like so, 0001 1101, you then add up the two hex numbers
0001
(0x8) + (0x4) + (0x2) + (1x1)
= 1
And, 1101
8 + 4 + 0 + 1
= 13
So 1 and 13 converts to 1D which 1D is 29 in hex form. Each byte of memory is represented as 8 bytes split into 2 like the above example.

This is a brief explaination of how data is stored in memory using different types of number systems.

I wont add a table of the different characters and their hexadecimal equivalent, like 29 is 1D. There should be sites on the net with those tables.

Hope you understand what I just said.

posted by ::. aRe-FiFth .:: @ 11/23/2005 03:43:00 AM,




0 Comments:

Post a Comment

<< Home