Numeral Systems - PowerPoint PPT Presentation

1 / 13
About This Presentation
Title:

Numeral Systems

Description:

start from the first digit from right, and set the digit counter to 0. Step 2. Multiply the current digit by 2 to the power of the digit counter ... – PowerPoint PPT presentation

Number of Views:33
Avg rating:3.0/5.0
Slides: 14
Provided by: mah138
Category:

less

Transcript and Presenter's Notes

Title: Numeral Systems


1
Numeral Systems
2
  • Instructions in SPARC occupy 32 bits
  • 8 bits to specify the instruction
  • 5 bits for address of registers
  • 1 bits to specify if there is a second source
    register or an immediate constant
  • 8 bits to either specify second source register
    or to provide an additional 8 bits to specify
    floating point instructions
  • 32 bits of instruction can be written as
    hexadecimal constant numbers 0x902765ab

3
Instructions
  • Format three
  • Majority of instructions
  • Format one
  • Call instruction
  • Format two
  • Branch instructions

4
  • What should you know?

5
  • Numeral
  • A symbol or group of symbols that represent a
    number.
  • Different numerals 11, eleven, XI
  • Numeral System
  • Framework where a set of numbers are represented
    in a consistent manner.
  • Numeral 11
  • Binary numeral for three
  • Decimal numeral for eleven
  • .

6
Different bases
  • In computing
  • Basis of digital computers base 2
  • Modern computers
  • Transistors
  • High or low voltage
  • Bit
  • The smallest unit of memory for 2 different
    voltage
  • Bits are arranged in groups
  • Processing
  • Shorter binary numbers
  • More manageable for human

7
Numeral systems
  • Hexadecimal
  • Numeral system with base 16
  • Use symbols 0-9, a-f, or A-F
  • One hexadecimal digit stands in place of four
    binary digits.

8
conversion
  • X Bin Dec
  • 0 0000 0
  • 1 0001 1
  • 2 0010 2
  • 3 0011 3
  • 4 0100 4
  • 5 0101 5
  • 6 0110 6
  • 7 0111 7
  • 8 1000 8
  • 9 1001 9
  • A 1010 10
  • B 1011 11
  • C 1100 12
  • D 1101 13
  • E 1110 14
  • F 1111 15

9
Binary to Hexadecimal
  • Example 1. convert Binary to Hexadecimal
  • STEP 1. Break the Byte into 'quartets'
  • STEP 2. covert each quartet to its Hex equivalent
  • You need to know how to convert decimal to binary
    and the other way around.

10
Binary to Decimal
  • Step1. start from the first digit from right, and
    set the digit counter to 0
  • Step 2. Multiply the current digit by 2 to the
    power of the digit counter
  • Step 3. Add the result to SUM
  • Step 4. get the next digit , set the digit
    counter and jump to Step 2.

11
Binary to Hexadecimal
  • Example 1. Consider Binary 1000100100110111  (a
    16-bit Byte)
  • STEP 1 Break the Byte into 'quartets' -  1000 
    1001  0011  0111
  • STEP 2 covert each quartet to its Hex equivalent
    -  8937
  • Therefore ... 1000100100110111 8937Hex

12
Binary to Hexadecimal
  • Example 2. Consider Binary 1111110001000001
  • STEP 1 Break the Byte into 'quartets' - 1111 
    1100  0100 0001
  • STEP 2 Use the table above to covert each quartet
    to its Hex equivalent -  FC41
  • Therefore ... 1111110001000001 FC41Hex

13
Binary to Hexadecimal
  • Example 3. Consider Binary 11010101STEP 1 Break
    the Byte into 'quartets' - 1101  0101
  • STEP 2 Use the table above to covert each quartet
    to its Hex equivalent -  D5
  • Therefore ... 11010101 D5Hex
Write a Comment
User Comments (0)
About PowerShow.com