Microprocessor Simulator 0 Help



Download 1.18 Mb.
Page64/82
Date18.03.2021
Size1.18 Mb.
#56105
1   ...   60   61   62   63   64   65   66   67   ...   82
sms32v50 (3)
sms32v50 (3), sms32v50 (6)

Binary and Hexadecimal


Contents


Converting Between Binary and Hex

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

Download 1.18 Mb.

Share with your friends:
1   ...   60   61   62   63   64   65   66   67   ...   82




The database is protected by copyright ©ininet.org 2024
send message

    Main page