Question

3.8) Convert the hexadecimal number 0x15 to a decimal number. 3.9) Convert the hexadecimal number 0x19...

3.8) Convert the hexadecimal number 0x15 to a decimal number.

3.9) Convert the hexadecimal number 0x19 to a decimal number.

3.10) Convert the decimal number -35 to an 8-bit two’s complement binary number.

3.11) Convert the decimal number -32 to an 8-bit two’s complement binary number.

3.12) Assuming the use of the two’s complement number system find the equivalent decimal values for the following 8-bit binary numbers:

a)10000001

b)11111111

c)01010000

d)11100000

e)10000011

3.13) Convert the base 8 number 204 to a decimal number.

3.14) Convert the base 7 number 204 to a decimal number.

3.15) Convert the base 6 number 204 to a decimal number.

3.16) Convert the base 5 number 204 to a decimal number.

3.17) Convert the base 10 number 81 to a base 9 number.

3.18) For each row of the following table, convert the given number to each of the other two bases, assuming the two’s complement number system is used:

16-Bit Binary Hexadecimal Decimal

1111111100111100

0xFF88

128

1111111111111010

0x0011

-25

3.19) You are given the following two numbers in two’s complement representation:

01101110

00011010

Perform the binary addition. Did signed overflow occur? Explain how you determined whether or not overflow occurred.

3.20) In this chapter, the one’s complement number system was never mentioned, but at http://courses.cs.vt.edu/csonline/NumberSystems/Lessons/ you can learn about it. Explain the major trade-offs between using the one’s or two’s complement system.

3.21) You are given the following two numbers in two’s complement representation:

11101000

-00010011

Perform the binary subtraction. Did signed overflow occur? Explain how you determined whether or not overflow occurred.

3.22) Sign extend the two-digit hex number 0x88 to a four-digit hex number. 0x .

3.23) The following subtract instruction is located at address 0x00012344:

Loop: addi $t4, $t4, -8

sub $t2, $t2, $t0

bne $t4, $t2,loop

What are the two possible values for the contents of the PC register after the branch instruction has executed? 0x . 0x .

This branch instruction is described in Appendix C.

3.24) You are given the following two 8-bit binary numbers in the two’s complement number system:

X = 100101002 = 10 Y = 001011002 = 10

What values do these numbers represent in decimal? Perform the following arithmetic operations on X and Y:

X + Y X-Y Y-X

10010100 10010100 00101100

00101100

Show your answers as 8-bit binary numbers in the two’s complement number system. To subtract Y from X, find the two’s complement of Y and add it to X. Indicate whether overflow occurs in performing any of these operations.

Now show a solution to the same arithmetic problems using the hexadecimal representations of X and Y.

3.25) The following code segment is stored in memory starting at memory location 0x00012344:

loop: lw $t0, 0($a0) #

addi $a0, $a0, 4 #

andi $t1, $t0, 1 #

beqz $t0, loop #

What are the two possible values for the contents of the PC after the branch instruction has executed? In the comments field, add a pseudocode description for each instruction.

0x . 0x .

0 0
Add a comment Improve this question Transcribed image text
Answer #1

3.8) decimal number is "21"

3.9) decimal number is "25"

3.10) 11011101

3.11) 11100000

3.12)

     a) -127

     b) -1

     c) 80

     d) -32

     e) -125

3.13) 132

3.14) 102

3.15) 76

3.16) 54

3.17) 100

3.18)

3.19) 10001000

3.21)

3.22)

3.23)

3.24)x=

3.25)

Add a comment
Know the answer?
Add Answer to:
3.8) Convert the hexadecimal number 0x15 to a decimal number. 3.9) Convert the hexadecimal number 0x19...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • (1) Convert this Hexadecimal to Binary, Octal and Decimal : ABCDEF (2) how the representation of...

    (1) Convert this Hexadecimal to Binary, Octal and Decimal : ABCDEF (2) how the representation of each of these numbers in both two’s complement and sign magnitude formats. Use the following assumptions: ● Assume that the sign magnitude number should be represented in the fewest number of bits possible. ● Assume that the sign bit for negative sign magnitude numbers should be a 1. ● Assume that the two’s complement numbers should be 8 bit numbers. 1. 108 2. -65

  • 1. Convert the decimal number +164 and -164 to 9-bit binary numbers according to Sign magnitude,...

    1. Convert the decimal number +164 and -164 to 9-bit binary numbers according to Sign magnitude, One’s complement, and Two’s complement 2. Convert the binary number 111011010 to base 10 decimal form (our regular number system) treating it as each of the following representations: Sign magnitude, One’s complement, and Two’s complement

  • 1. Convert the binary number 10101102 to octal, decimal, and hexadecimal numbers. 2. Convert the decimal...

    1. Convert the binary number 10101102 to octal, decimal, and hexadecimal numbers. 2. Convert the decimal number 236.7510 to binary,octal, and hexadecimal numbers. 3. Add the following two binary numbers: 100111102 and 011110112. Remember to show any carries that are generated along the way. 4. Repeat the previous question, but this time subtract the second binary number from the first. Remember to show any borrows that are required along the way. 5. Determine the encoding of the decimal number 28610...

  • 1. What decimal number is represented by the following excess 8 notation? 2. Convert 1111 from...

    1. What decimal number is represented by the following excess 8 notation? 2. Convert 1111 from excess eight representation to its equivalent base ten binary form 3. With two's complement signed binary representation, what is the range of numbers as written in binary and in decimal for an eight-bit cell? (lowest to highest) 4. Convert -7 from decimal to binary, assuming seven-bit two’s complement binary representation 5. Convert 111 1010 from binary to decimal assuming seven bit two's complement binary...

  • Exercise 1.25 Convert the following decimal numbers to unsigned binary numbers Exercise 1.31 Repeat Exercise 1.29,...

    Exercise 1.25 Convert the following decimal numbers to unsigned binary numbers Exercise 1.31 Repeat Exercise 1.29, but convert to 8-bit sign/magnitude numbers KExercise 1.32 Repeat Exercise 1.30, but convert to 8-bit sign/magnitude numbers (a) 4210 (b) 6310 Exercise 1.33 Convert the following 4-bit two's complement numbers to 8-bit two's complement numbers. (c) 22910 (d) 84510 (a) 0101 b) 1010 XExercise 1.26 Convert the following decimal numbers to unsigned binary numbers. Exercise 1.34 Convert the following 4-bit two's complement numbers to...

  • 1. What is the largest decimal number we can represent with a 16 bit two's complement...

    1. What is the largest decimal number we can represent with a 16 bit two's complement number? 2. Convert the following signed binary numbers to decimals. 11001         010011            1110100            1100111           3. Convert the following decimal numbers to 6-bit two's complement binary numbers and add them. Note if there is an overflow. 7 + 13 Two's complement/binary number for 7: Two's complement/binary number for 13: Sum: Overflow? 4. Convert the following decimal numbers to 6-bit two's complement binary numbers...

  • CS 3503-06 Homework 1 Due: 11:59pm, Friday, Jan. 24. Please show the details of your work....

    CS 3503-06 Homework 1 Due: 11:59pm, Friday, Jan. 24. Please show the details of your work. Please submit in D2L using the associated link. Problems (total: 100 points) Representation of signed numbers (5 x 4 = 20 points) In an 8-bit system, find out the binary representation for the following numbers using sign-and-magnitude, ones’ complement, and two’s complement, respectively: 55 -47 In a 4-bit system, find out the binary representation for the following numbers using sign-and-magnitude, ones’ complement, and two’s...

  • Why do computers use the binary number system instead of the decimal number? Convert 43_10 to...

    Why do computers use the binary number system instead of the decimal number? Convert 43_10 to binary and hexadecimal. Convert 100111_2 to hexadecimal and decimal Convert 110101_2 to its 2's complement representation. What is the largest Hex value that can be moved into 8-bit register 16-bit register What are the decimal equivalents of these Hex values?

  • 3) Convert following decimal to 8-bit signed numbers in hexadecimal, use two’s-complement for signed integer 127d,...

    3) Convert following decimal to 8-bit signed numbers in hexadecimal, use two’s-complement for signed integer 127d, -20d, -128d, -1d 4) Convert the 16-bit signed numbers to the decimal C0A3h, 3AECh, 0101 1001 0111b, 1011 0101 1001 0111b please solve the problems step by step. It would be of great help.

  • please include only the digits of the appropriate number system. In particular, do not precede the...

    please include only the digits of the appropriate number system. In particular, do not precede the answers with ‘0x’ or ‘0b’ or follow your answers with base indicators, like subscript 2 or 10. 1. A processor uses 24 bits for its memory addressing. How many possible distinct locations (in decimal) can the computer address? The computer memory address locations are numbered from 0 to the maximum. If a memory locations' address is (7243)10, how is this address represented in binary...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT