You are on page 1of 6
Ahs . ' hsanullah Univercsity eaener saroaiie ology Deperchment of Computerc Scien & ae Course No + CE2214 Course Title: Assembly Language Pagarenmonng Sessional Date of Percforemanes ¢ 09/05/2023 Date of Submission; 16 [05/202 Subnitied Te 2 Me Tehein Nele Ms. Nawrein Tabassum Zubmiticd By- Qrrcoup * Cr Nome {Lon Oware + 9021010412) Id Section : C Question 4 Suppose tht 6 byte cortaing Hu ASCII code of a dectmal digit ; Whet hex nunber should be subtracted freom Hu et to aenverct HE fo the umerten! Porm of the aburactens? Arsweres? ASCIL cde on Amenienn Standard Code tor Tnfercusnhion Tuterehonge code 14 the system het uses seven Lits +o ecde cath ahvuctere eo Hura arn atotal of gia i238 ASCIL andes, SIpec omer titel Asoc tacdlcmal A dedins | digee to ts numerics! value, we need + aubtreeet the ASCII aode of the alarretore Lt, whiah bas a value of 30h in hexsdeainnal. beasuse the ASCII coks tore the This f oowcartive and stort ot cligits 6 +o 9 are 20h, 20 aubtraeting oh from Hu AST acd of any digit will a omer numerical value. For exomple Hu ASCII code of 3 i, which 14 38h. Se, 3Bh- 30h= 8 49. the hex numberr hat should be ob “ NE soles or ee ae digit fo comer} it ets numerdeal desivul Pron 15 Boh- Question 2: Fore cach of He Pollowing | dell whetture i+ fy positfye ore negative. 6- bit stared numbers 4) 78EDh _b]} 1o}0010010010100 b Answers Te deteremine whettere a 16- bit numbere 14 positive ore pegctive, we need to look ot the | most 2ignifi cont bit (mse), whieh is the left most Lit tn the Dey representation ore —the Fourth hexadecimal digit te “Hie hexackainwl | represen tact on. err Msp t Othe number fs positive. We Map 16 4, the number 75 negative. ee) J SEsh = (Db ead 3 ae | Ona tooo s110 © ootl Do, FBESH = gii1l000 1 eOO!l b as, the MB 16 O Hu number is positfie, >| ]o10010010010100b Here the MSB te 1, which reepreesents negetive sign. P reget 9 So-+e number fs negative. Question 23 Give the unsigned aud 234 tucterprectortions of cach of the Pottoving 16- brt ned decimal ore 8-brt numbers. a. FFE eaten ta Answers 4) © obtain the eigned this number, we first need +o aheak He most significant bi+ (Msp), whieh is cleatmal ivrlereprectetion oft | tin ebbnest brt in tHe thar representa. | Hon. Now, (ine OV! thet tel TO So, FFFE h= onliiiimiliob Hera, M$B fy 0. 40 Hhe numbere ts Psttire. Now, FEFEh= 7x0 + FXIG +° Fxg + Ex $4 5 2 1 . FIG + ISXIG + 15X1G + 14x16 wd " = 327t¢ bd So He sigue deaimal intercprecteti on of JEFEh *s 22766 b- bl Feb | BE SEEL | Thtt tite Soe FEh=(imin6b as te MSB 14 4, So the number is regrtive Cee Ter tilert ante O; 0000000! +1 antinori ST A 00000019 Now job = ixaitoxe d = 2d Sp the pie decimal FEh {6 -2. pre trrtecprectetton of

You might also like