The von Neumann Model Chapter 4 - PowerPoint PPT Presentation

1 / 8
About This Presentation
Title:

The von Neumann Model Chapter 4

Description:

How do we convert from decimal - hexadecimal? We divide by 16 and use the remainer as before in the radix method. Hexadecimal Notation ... – PowerPoint PPT presentation

Number of Views:64
Avg rating:3.0/5.0
Slides: 9
Provided by: csN71
Category:
Tags: chapter | model | neumann | radix | von

less

Transcript and Presenter's Notes

Title: The von Neumann Model Chapter 4


1
1
Bits, Data types, and Operations Chapter 2
COMP 2610
Dr. James Money COMP 2610
2
Hexadecimal Notation
  • A 10
  • B 11
  • C 12
  • D 13
  • E 14
  • F - 15

3
Hexadecimal Notation
  • How do we convert from decimal -gt hexadecimal?
  • We divide by 16 and use the remainer as before in
    the radix method

4
Hexadecimal Notation
  • Convert the following numbers to hexadecimal
  • 128
  • 273
  • 983

5
Hexadecimal Notation
  • Converting to decimal from hexadecimal works
    similarly. We have to use the base of 16.
  • If M (bkbk-1b2b1b0)16, then
  • Mbk x 16k bk-1 x 16k-1 b1161 b0160

6
Hexadecimal Notation
  • Convert the following hexadecimal numbers to
    unsigned decimal form
  • 0x34
  • 0x10D
  • 0xABC4

7
Hexadecimal Notation
  • Addition with hexadecimal form follows the same
    as binary using long addition
  • However, the carry can be more difficult to
    handle you have to mod by 16 to get the right
    carry value
  • You have to remember A10, B11, etc

8
Hexadecimal Notation
  • Add
  • 0x027A 0x123
  • 0xA357 0xB35D
Write a Comment
User Comments (0)
About PowerShow.com