Tuesday, September 6, 2016

1.1.2 Hexadecimal

REPRESENT INTEGERS AS HEXADECIMAL NUMBERS
IT IS NORMALLY EASIER TO CONVERT THE DENARY NUMBERS OR HEXADECIMAL NUMBERS TO BINARY TO CONVERT BETWEEN DENARY AND HEXADECIMAL. CONVERT THE INTEGER VALUES TO BINARY FIRST.
T
O CONVERT 101111100001 TO HEXADECIMAL, JUST SPLIT THEM UP INTO 4 BITS 1011 1110 0001, THEN CALCULATE THE DENARY VALUE. AND THE RESULT IS YOUR HEXADECIMAL. HEX VALUE FOR 10 IS A, 11 IS B, 12 IS C, 13 IS D, 14 IS E, 15 IS F. THE ANSWER WOULD BE B E 1. 


SHOW UNDERSTANDING OF THE REASONS FOR CHOOSING HEXADECIMAL TO REPRESENT NUMBERS
HEXADECIMAL IS CHOSEN SOMETIMES BECAUSE IT IS SHORTER TO REPRESENT A LONGER SERIES OF DATA. IT CAN REPRESENT 4 BITS IN 1 CHARACTER. IT IS NORMALLY USED FOR THINGS LIKE COLOUR, IT CAN ALSO BE USED FOR MEMORY DUMPS.


CONVERT POSITIVE HEXADECIMAL INTEGERS TO AND FROM DENARY
CONVERT THE HEXADECIMAL VALUES TO BINARY. E.G. B E 1 WOULD BE 1011 1110 0001, THEN PUT THIS IN THE TABLE AND WORK OUT THE DENARY VALUE


CONVERT POSITIVE HEXADECIMAL INTEGERS TO AND FROM BINARY
TO CONVERT THE HEXADECIMAL VALUES TO BINARY, SPLIT THE HEXADECIMAL PER CHARACTER AND FIND THE 4 BIT VALUE FOR IT. E.G. B E 1 WOULD BE 1011 1110 0001
 

REPRESENT NUMBERS STORED IN REGISTERS AND MAIN MEMORY AS HEXADECIMAL
SIMILAR TO HOW BINARY CAN BE USED FOR REGISTERS, HEXADECIMALS CAN ALSO BE USED FOR REGISTERS TO CONTROL SOMETHING


IDENTIFY CURRENT USES OF HEXADECIMAL NUMBERS IN COMPUTING, SUCH AS DEFINING COLOURS IN HYPERTEXT MARKUP LANGUAGE (HTML), MEDIA ACCESS CONTROL (MAC) ADDRESSES, ASSEMBLY LANGUAGES AND MACHINE CODE, DEBUGGING
AS ALREADY STATED, HEXADECIMAL CAN BE USED TO DEFINE COLOURS (E.G. #FFFFFF), MAC ADDRESSES, ASSEMBLY LANGUAGES (E.G. LOAD (120)) AND DEBUGGING ETC.

0 coment�rios:

Post a Comment