[Solved] CS1400 Home work 2 Binary Codes and Arithmetic

$25

File Name: CS1400_Home_work_2__Binary_Codes_and_Arithmetic.zip
File Size: 442.74 KB

SKU: [Solved] CS1400 Home work 2 – Binary Codes and Arithmetic Category: Tag:
5/5 - (1 vote)

Fixed Point Codes:

1.1. Convert 512(8) into 32-bit twos complement binary number.

1.2. Convert -512(10) into 32-bit twos complement binary number.

1.3.Convert -87E524(16) into 32-bit twos complement binary number.

1.4. Represent following numbers 517(10) , 2048(8) , -4A9D(16) in :

  • Binary sign magnitude code;
  • Binary twos complement code.

Remark: Use half word (16-bits) to present the binary numbers.

2. Fixed Point Arithmetic

2.1. What decimal number does this twos complement binary number represent:

11111111 11011011

2.2. What decimal number does this twos complement binary number represent:

11111111 11111111

2.3. What decimal number does this twos complement binary number represent (present the answer in scientific notation):

01111111 11111111

  • Present the following binary numbers in Excess 127 and Excess 1023 code: 1001, -100011, -100101.
  • Perform the following operations, representing the decimal numbers in 8-bit twos complement code. Fill in the flags C, N, Z, V. If the operations produce arithmetic overflow, eExplain how you have estimated the overflow.

20 (+5); 127 + (126); 127 + ( 128);

-20 + (+ 64); -20 (+111); -127 (+ 2); 126 + ( 2).

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[Solved] CS1400 Home work 2  Binary Codes and Arithmetic[Solved] CS1400 Home work 2 Binary Codes and Arithmetic
$25