1. Trang chủ
  2. » Mẫu Slide

Lecture Computer organization and assembly language - Lecture 03: Data Representation 2 - TRƯỜNG CÁN BỘ QUẢN LÝ GIÁO DỤC THÀNH PHỐ HỒ CHÍ MINH

10 7 0

Đang tải... (xem toàn văn)

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 10
Dung lượng 128,14 KB

Các công cụ chuyển đổi và chỉnh sửa cho tài liệu này

Nội dung

Computer Organization and Assembly Language.. Lecture 03: Data Representation 02..[r]

Trang 1

CSC 221

Computer Organization and

Assembly Language

Lecture 03: Data Representation 02

Trang 2

Lecture 02: Review

• Data Representation

• Decimal Representation

• Binary Representation

• Two’s Complement

• Hexadecimal Representation

Trang 3

Lecture Outline

• Data Representation

• Binary Multiplication

• Binary Division

• Floating Point Representation

Trang 4

Binary Multiplication

• Multiplication follows the general principal of shift and add.

• The rules include:

Trang 5

Binary Multiplication

EXAMPLE 1

Complete 15 * 5 in binary.

1. Convert to binary

15 = 000011112

5 = 000001012

3. Ignore any insignificant zeros.

000011112

000001012

x

Trang 6

Binary Multiplication

EXAMPLE 1

1 1 1 12

1 0 1 2

1 1 1 1

x

1111 x 1 = 1111

Trang 7

Binary Multiplication

EXAMPLE 1

second digit

1 1 1 12

1 0 1 2

1 1 1 1

0 0 0 0 0

Shift One Place

Trang 8

Binary Multiplication

EXAMPLE 1

digit

1 1 1 12

1 0 1 2

1 1 1 1

0 0 0 0 0

1 1 1 1 0 0

Shift One Place

Trang 9

Binary Multiplication

EXAMPLE :

1 1 1 1

0 0 0 0 0

1 1 1 1 0 0

1 0 0 1 0 1 1

+

Trang 10

Binary Division

• Division in binary is similar to long division in decimal.

• It uses what is called a shift and subtract method.

Ngày đăng: 01/04/2021, 18:05

TÀI LIỆU CÙNG NGƯỜI DÙNG

TÀI LIỆU LIÊN QUAN

🧩 Sản phẩm bạn có thể quan tâm

w