Assignment Computer Organization & Architecture

Added on - 28 May 2020

  • 8

    Pages

  • 462

    Words

  • 109

    Views

  • 0

    Downloads

Trusted by +2 million users,
1000+ happy students everyday
Showing pages 1 to 3 of 8 pages
UNIVERSITY AFFILIATIONDEPARTMENT OR FACULTYCOURSE CODECOMPUTER ARCHITECTURE AND ORGANIZATIONSTUDENT NAMESTUDENT REGISTRATION NUMBERDATE OF SUBMISSION1
QUESTION 1(a) Given a tiny computer that has a word size of 8 bits, what are the smallest negative numbersand the largest positive numbers that this computer can represent in each of the followingrepresentations? (2+2+2+2=8 marks)i.One's complementFor the one’s complement,01111111=271=127...forlargestpositivenumber10000000=(01111111)=(271)=127...forlargestnegativenumberii.Two's complementFor the two’s complement,01111111=271=127...forlargestpositivenumber10000000=(10000000)=(27)=128...forlargestnegativenumberiii.Signed magnitude12710¿+12710The leftmost bit is the sign bit. It represents the sign of the magnitude,Binary equivalent of12710=11111112Therefore,12710=111111112to+12710=011111112iv.Unsigned magnitudesmallestunsigned=010,largestunsigned=25510000000002=010¿111111112=25510(b) Convert the followings: (7 marks)i.0x5AB into Octal0x5ABhexadecimal=5AB16Conversion: Hexadecimal to Binary to Octal2
To binary,0x5=0101b0xA=1010b0xB=1011bTherefore,0x5AB=010110101011bTo octal,¿010110101011boctal¿26538ii.101101.1012into DecimalFactor2524232221202-12-22-3Binary101101.101Decimal3208401.0.500.125¿32+8+4+1+0.5+0.125¿45.62510iii.12348into Binary¿octal¿binary1234001010011100¿001010011100b¿10100111002iv.679810into Base 5 number¿679810¿67985=1359+353¿13595=271+454¿2715=54+151¿545=10+454¿105=2+0503
desklib-logo
You’re reading a preview
Preview Documents

To View Complete Document

Click the button to download
Subscribe to our plans

Download This Document