Computer Science, asked by bidyarani2616, 1 year ago

Why hexadecimal number system is used in microprocessor 8085?

Answers

Answered by hetanshusonar
0
Hexadecimal (base 16 - 0 1 2 3 4 5 6 7 8 9 A B C D E F) is used as a shortcut notation for binary numbers (0 1) because it works out nicely for 8, 16, 32, and 64 bit processors. You can represent all binary numbers with each set of 4 bits as 1 hex character A=1010, B=1011, F = 1111, 0 = 0000, 7 = 0111, etc.
Compilers of languages and even down to assemblers can instantly decode hex numbers to binary numbers and send them as data or cpu instructions into the cpu or to memory.
A coder learns hex,binary, octal(base 8 — 3 bit chunks) all together and should be able to translate all three easily on paper if not in one’s head.
This is because hex and octal are both bases that are powers of 2.
You come to know thatFFFF is all ones binary and if you are working directly with assembly code or small cpu specialty instructions you get real good at hex.
Hex is not the best for transmission of data, however. Email systems often use base 64 (0–9 ,a-z A-Z, +,/, =) to encode data because older systems could only handle text, and it compresses the data losslessly.
Simple answer: Hex is encoding 4 binary digits into one hex digit, and is easier to read than strings of 0s and 1s.
Most languages default to reading numbers as base 10 unless you express them with a prefix like (0x for C) as “0x14” for hex 14, decimal 20, binary 0001 0100. otherwise the machine would read it as decimal 14 , hex 0D , bin 0000 1110 .
So you can see that any 16 bit binary number can be represented by 2 hex digits, 32 bite binary by 4 hex digits, 64 bit binary by 8 hex digits.
You can do math with hex numbers just like with decimal numbers but with 5 more digits to deal with. (99 +1 = 100 dec) (FF + 1 = 100 hex).


I HOPE THIS HELPS U...
THANK U....
Answered by humayunkobirice
1

Hexadecimal number is easy to understand from binary number. So hexadecimal number system is used in microprocessor 8085.


Similar questions