Pages

Saturday, 20 December 2014

HEXADECIMAL NUMBER OPERATION



*Hexadecimal Addition
*Hexadecimal Subtraction
*Hexadecimal Multiplication
*Hexadecimal Division

>Hexadecimal Addition<

a) 16F + 4A2                    
        1 1
                             1 6 F                  
+         4 A 2
________________
          6  1  1
_________________

*In hexadecimal addition ,if the number is greater than 15₁ₒ,the amount of the sum that exceeds 16₁ₒ will carry a 1 to the next column

à   F + 2 = 15₁₀ + 2₁₀ =17₁₀
·        17₁₀  is greater than 15₁₀
·        So, 17 – 16 = 1

è 6₁₀  + 10₁₀ +1₁₀ = 17₁₀
·         17₁₀  is greater than 15₁₀
·        So, 17 – 16 = 1

è 1₁₆ + 4₁₆ + 1₁₆ = 6



 >Hexadecimal Subtraction<

a)     84₁₆ -2A₁₆

                  16
                                                   7  8 4 ₁₆
        -       2 A₁₆
               _______________
                   5 A₁₆
            _______________

è (16+4) – A =A₁₆

è 7 – 2 = 5₁₆


b)     C3₁₆ - 0B₁₆

            16
           BC 3₁₆
-                     0 B₁₆
   ______________
           B 3₁₆
   _______________


è (16 + 3) – B = 3₁₆

è B – 0 = B₁₆


>Hexadecimal Multiplication<


                                            6    5                     
                                            9    7                    

                               1   A   8
                  x                A   F
                 __________________
                          
 1   8   D   8
                +   1   0   9   0    0 
                 ____________________
                    
1  2   1    D   8
                 ____________________


è  8₁₆ x F₁₆ = 8 x 15₁ₒ
                = 120₁ₒ   - > 78₁₆

è  A₁₆ x F₁₆ = 10₁ₒ x 15₁ₒ
                =  150₁ₒ  + 7₁ₒ
                =  157₁ₒ  - > 9 D₁₆

è  1 x F₁₆ = 1 x 15₁ₒ
             = 15₁ₒ + 9
             =  24₁ₒ  - > 18₁₆

è 8₁₆ x A₁₆ = 8 x 10₁ₒ
                     = 80₁ₒ - > 50₁₆

è A₁₆ x A₁₆ = 10 x 10
                = 100₁ₒ + 5
                 = 105₁ₒ  - > 69₁₆

è 1 x A₁₆ = 1 x 10₁ₒ
                   = 10 + 6
                    = 16₁ₒ  - > 10₁₆

 1 8 D 8 + 1 0 9 0 0 = 121D8₁₆


post by;
Nursyahirah Syafiqah binti Baharim

Saturday, 13 December 2014

ARITHMETIC

  2ND COMPLEMENT NUMBER

Lets convert no -225

Step 1: Separate the sign and magnitude number -1. If
                  the sign bit is 1, its represent as negative sign in the 2s                     complement conversion.
Step 2: Convert the decimal number to its 7-bits binary equivalent.

BINARY NUMBER OPERATION

Binary Addition


       The binary addition rules

   Examples:     
                               
   
   
Binary Subtraction




    The binary subtraction rule

   Example:
                      


                 
Binary Multiplication


        The binary multiplication rule
      Example:
Binary division

Example:

                 

SOURCES: LAB MODULE


PREPARED BY : UMMI IZZATI MUSTAPHA