Documente Academic
Documente Profesional
Documente Cultură
Representation 1 1 0 1
Positions quantity One (20 = 1) Two (21 = 2) Four (22 = 4) Eight (24 = 8)
Representation 1 1 0 1
Positions quantity 1* 20 = 1 0 * 21 = 2 1* 22 = 4 1 * 24 = 8 13
Representation 1 0 0 1
Positions quantity 1* 20 = 1 0 * 21 = 0 0* 22 = 0 1 * 24 = 8 9
= = = = =
5 24 14 20 51
Quotient 4 2 1
Remainder 0 0 1
Hexadecimal to binary
0 0 2 A =
One ( 160) Sixteen (161)
Two hundred Fifty six (162) Four thousand ninety six (163)
10 x 160 = 10
7 1 5 =
One ( 80 = 1 ) Eight (81 = 8) Sixty Four (82 = 64) 5 x 80 = 5 1 x 81 = 8 7 x 82 = 448 461
54 / 16 = 3 / 16 =
3 0
6 3
Hexadecimal Symbol represents the series of 4 bits, while Octal symbol represents a series of 3 bit In order to convert binary to decimal, must arrange the binary digits into groups of 4 Starting from the right most, arrange the binary digits into groups of 4 Converts each groups into hexadecimal by multiplying it by its position value and get the sum of each.
11 3
0110 0111 6 7
1
1 2
111 7
Addition of Hexadecimal What is the result of ABC16 + 2AA16? Solution: 1 1 ABC16 10 11 12 2AA16 2 10 10 13 22 22 -16 -16 13 6 6
1.
Addition done by adding the given hexadecimal value. If the added hexadecimal value exceeds the base radix, subtract the radix and get the result. Add 1 to the next highest value of hexadecimal
616
Addition of Hexadecimal
1. What is the result of 2DE16 +
FED16? 2. What is the result of CADE + CAFE? 3. What is the result of AE12 + FACADE
4FE16 4 15 14 13 + 2ED16 2 14 2 1 1
Addition of Octal
What is the result of 7528 + 5678? Solution: 1 1 1 7 5 2 + 5 6 _7 13 12 9 - 8 -8 -8 1 5 4 1
1.
Add the given octal value. If the added octal values exceeds the base or radix, subtract the radix, and get the results, then, add 1 to the next highest value of octal. If there are extra decimal value to the next highest position, just bring down the remaining decimal value.
Octal Addition
1. What is the result of
5 1 0 7 +6 5 5 6 7 7 10 6 7 14 -8 -8 7 2 6 8 6
Binary Subtraction
0 0 0 0 1 0borrow with 1 2. 10000(16) - 1111(15) 1 1 0 1 + 1 1 0
1. 1010(10) -
100(4) 110(6)
Subtraction of Hexadecimal
What is the result of 5238 3578? Answer: 5 (4) 2(1+8) =9 (3+8 =11) 3 5 7 1 4 48
1.
Subtract the given hexadecimal value if the hexadecimal minuend is less than the hexadecimal borrow to the next hexadecimal position. If any results change those decimal digits to its corresponding letters.
Is one which the decimal digits are stored in terms of their 4-bit binary equivalents. There are two (2) basic format: 1. Packed Format the decimal digit is stored in a sequence of 4-bit groups. The number 2004 0010 0000 0000 0100 2 0 00 4
1100 1101
1111 1000
zone bit 8
1101 1001
zone bit 9
B. Positive Integer
Decimal number are usually converted first to the binary equivalent. If we have an 8 bit register, it may express integer decimal numbers between 0 and 28 -1 or 255. If we have a bit of 16 bit register, we can store integer decimal numbers between 0 and 216 -1 or 65536. The magnitude of the number that can be stored in a register is 28 -1 where n is the number of bits with the register of memory cell.
C. Negative number
There are two (2) ways of representing negative number: 1. Absolute value representation negative numbers can be represented by attaching an extra bit to indicate the sign bit (leftmost). The resulting format is called sign-magnitude format Ex: +16 = 0001 0000 (sign bit is 0 to indicate the plus sign)
-16 = 1001 0000 (sign bit is 0 to indicate the plus sign) (This format representing negative numbers is seldom use)
10111