Computer Organization Test #1 (50 pts)--1/29/2004 1 ASSIGNMENT #2 DUE Saturday 3/20/ XXXXXXXXXXday grace period XXXXXXXXXXProf. Barimani’s CSC 353 Class Please write your name on your answer sheets 1:...

1 answer below »
File attached


Computer Organization Test #1 (50 pts)--1/29/2004 1 ASSIGNMENT #2 DUE Saturday 3/20/2021 (1 day grace period) Prof. Barimani’s CSC 353 Class Please write your name on your answer sheets 1: 1.5pt 2: 1.5pts 3: 1.5pts 4: 1.5pts 5: 1.5pts 6: 2.5pts 1) Must show all work (steps), i.e. final answers from a calculator or other software tools will not be accepted without showing all steps. 2) Indicate or circle your final answers. 3) Indicate the overflows as (OVERFLOW: YES/ No when asked) Accepted file submission format: 1) MS Word: *.doc, *.docx, *.pdf 2) Images: *.png, *. jpg 1. Add the following unsigned hex integers —must show all carries (check for overflow). 00EF 0FDB 00F9 1FDC + D0C4 _______ 2. a) Multiply the following two 16 -bits unsigned binary numbers (Hint: answer should be 32 bits, but can have leading zeros). 2. b) Verify your answer in based 10. 00101111 * 00001100 ------------ 3. Assume the following C++ statements are executed in the current version of C++ version in which, all short int data type variables stored the integers as 16 bits 2's complements numbers. What is the binary content of c? You must justify your answer mathematically to get credit. You may use Hex conversion as steps. short int x, y, c; x= -32757; y= -66; c= x + y; printf("c= %hd\n",c); 2 4. Convert the following base 10 number to a short float (32 bits) format and show the final content of memory in Hex. float x= -452.0895f; 31 30 23 22 0 S Exp Mantissa 5. Assume the variable alpha is declared in C++ as char alpha[4]= "2eM"; Show the binary content of alpha after the following statement is carried out? (ASCII of '0' is 30hex , ASCII of 'A' is 41hex, and ASCII of 'a' is 61hex. for (int i= 0 ; i <= 2;="" i++){="" alpha[i]="" +="7;" }="" 6a.="" create="" a="" parse="" tree="" for="" the="" following="" c++="" code="" of="" sequence="" (the="" grammar="" will="" be="" provided="" in="" class).="" assume="" the="" variables="" are="" dword="" (32="" bits)="" 6b.="" translate="" the="" following="" while="" loop="" in="" its="" entirety="" (including="" if-else="" and="" expressions)="" to="" nasm="" assembly="" instructions.="" make="" sure="" to="" place="" all="" referenced="" branching="" labels="" on="" the="" left="" sides,="" at="" correct="" locations.="" note:="" no="" direct="" memory="" to="" memory="" operations.="" some="" useful="" instructions:="" mov,="" add,="" sub,="" jmp,="" j??="" general="" registers="" you="" can="" use:="" eax,="" ebx,="" ecx,="" edx="" i="B" +="" 1;="" while="" (i="" –="" 4="">< d="" +="" 9){="" i="i" +="" 4;="" if="" (="" i="">= B ){ C = B – 7; } else{ C = B + 9; } }
Answered 1 days AfterMar 25, 2021

Answer To: Computer Organization Test #1 (50 pts)--1/29/2004 1 ASSIGNMENT #2 DUE Saturday 3/20/ XXXXXXXXXXday...

Pulkit answered on Mar 27 2021
148 Votes
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here