The CPU works using binary. Electronically this is done with electronic switches that are either on or off. This is represented on paper by noughts and ones. A single BIT or binary digit requires one wire or switch within the CPU. Usually data is handled in BYTES or multiples of bytes. A Byte is a group of eight bits. A byte looks like this
01001011
This is inconvenient to read, say and write down so programmers use hexadecimal to represent bytes. Converting between binary and hexadecimal is not difficult. First split the byte into two nybbles (half a byte) as follows
Share with your friends: |