
Perform the following operations by converting the operands to 2’s complement binary
numbers and then doing the addition or subtraction shown. Please show all work in binary, operating on
8-bit numbers. Is there an overflow?
(a) 48 + 96
(b) -45 - 28
(c) -67 - (-41)

Introduction:
Binary numbers are numbers represented in the binary numeral system, which uses only two digits (0 and 1) to represent numbers. In contrast to the decimal system, which uses 10 digits (0 through 9), the binary system is a base-2 system, meaning that each digit represents a power of 2. The rightmost digit represents 2^0 (1), the second digit from the right represents 2^1 (2), the third digit from the right represents 2^2 (4), and so on.
Trending nowThis is a popular solution!
Step by stepSolved in 4 steps

- Q1) Express 0.62510 in the revised 14-bit floating-point model Q2) Express -32. 25y0 in the revised 14-bit floating-point model Q3) Find the sum of 1410 and 0.25p using the 14-bit floating-point model.arrow_forwardA. Write the binary representation of number 1173.379 in IEEE 754 standard in single precision.Express the result in binary, oct, and hex formats. B. Write the binary representation of number 75.83 in IEEE 754 standard in double precision. Expressthe result in binary, oct, and hex formats. C. Register f3 contains the 32-bit number 10101010 11100000 00000000 00000000. What is thecorresponding signed decimal number? Assume IEEE 754 representation.arrow_forward- In a codeword, we add two redundant bits to each 8-bit data word. Find the following: Number of valid codewords , Number of invalid codewords. - If we want to be able to detect 2-bit errors, what should be the minimum Hamming distance? - In CRC, if the dataword is 5 bits and the codeword is 8 bits, how many 0s need to be added to the dataword to make the dividend? What is the size of the remainder? What is the size of the divisor?arrow_forward
- Assume that a mad scientist has created a computer that has 12-bit registers (storage). The most significant bit is the sign bit. He wants to execute the following computation using 12-bit register. 124-435 (Subtract decimal 435 from decimal 124) Use 2's complement method (in binary) to find the result of the above operation in binary system. Then convert the result back to decimal to check your answer. NOTE: Please don't do the subtraction in decimal! Show all the computations in the answer. Paragraph В I +v Add a File Record Audioarrow_forwardthe following operation: write the operand as 4-bit 2's complement binary numbers, perform the process shown, show all work in binary operating on 4-bit numbers, and • identify overflow if necessary 2 - 4arrow_forwardin ASM (Irvine 32) write a code that solves R = (A % B) % (C % D). Note that ABC are 8 bit signed integers and % is the operator modulo which holds the division operation remainder.arrow_forward
- Use the following data declarations. Assume that the offset of byte Val is 00000000: .data byte Val sbyte 1,2,3.-7h word Val word 1000h.2000h 3000h, 4000h dwordVal dword 34567890h, 90785634h, 1234674Sh Show the value of the final destination operand after each of the following code fragments has executed: (If any instructions is invalid, indicate "INV" as the answer and briefly explain why) a. moy di 2 mov al, byte Val[di] b. mov bx, word Val mov esi, offset wordVal+4 xchg bx, [esi] R c. movsx cx, byte Val+3 d. mov ax, word ptr [dwordVal mov bl. byte ptr [dwordVal +10] e. mov al, 80h number add al 40h signed ;signed number answer al-= answer bx= answer (show your answer in binary) CX- answer |esi= answer bl= SF=arrow_forwardUsing bitwise operators, what would be the best way to multiply/divide 208 and 416.Show your steps clearly to receive credit. Also, express your solution in C logic. You donot need to write the whole code. you may utilize addition and subtractionoperations. However, majority of the computations must be done using bitwise operations.arrow_forwardQuestion 5: Based on the for 32-bit division hardware diagram shown in the next page. Perform the division for 4 bits unsigned integers. Where the dividend is 1011 and the divisor is 0010. Write the division table, with header steps, action, quotient, divisor, and remainder. Divisor 64-DRALU Remainder 64 bits Shift right 64 bits While Control best Quotient Shill left Convert the dividend, divisor, and the calculated results in question (5-1) to decimal to verify your results. Consider the number -1.36875 x 10¹ as the dividend and 5.625 x 10¹ as the divisor. Find their binary representation. Put the results that you got it in question (5-3) in the 8-bit quarter-precision format (1 for sign bit, 2 for exponent, and 5 for fraction) 1. floating-point number. Use the IEEE 754 standard. 2. signed integer. e. Show all the steps of the division to results that you got it in question (5-4). Indicate if there is overflow or underflow by assuming that there is a guard bit, a round bit, and a…arrow_forward
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education





