You are on page 1of 20
__! DOCUMENT OF _ARA\ TOR! RIGHTS v1 ~ BCD and AsCIT arithmetic * Basic ngie instyuchons _ Shigt ond Rotate . string comparisons SN Sone. DMP, gr - S Controlling the glow oy program » Procedures > + Intrdugtion’ fo interrupts VN . Ra «Ma ekinds contro! and . Miscellaneous instructions] This Notes Is valid + only for the duration *|) | Jan-2014 to Dec-2014 eile ICLASSES ARE ALSO CONDUCTED FOR EC/EEE/IT/ TC BRANCH CTS @ ARADHYA TUTORIALS 9845642144 (MALLESHWARAM) 1) -99727B1L11 AVANAGAR) 9972851111 (VIJAYANAGAR) 9901942144(1 NDIRANAGAR) H ene: 2/26) or _ARADHY: RIG Write a note on BCD _ arithmetic - The Q instruetons = related «= to BCD. axith metic ove + DAA ( Decimal Adjust Ayr Addition) + DAS (Decimal Adjust ART Subtraction ) DAA - — stands + Decimal Adjust agkr Addition. Jace ayer ADD 07 It would be , ADC Mnetruction- This is done in ordey to adjust the wesult into ay BCD vesulk. The pAn — instruction’ yunchions omy with the AL meer & (Reps class notes) Zimal Adjust ayhey pas\- stands 7 OY = subbraction Slt “would — Se placed _ SUB OF tpg instruction: This is us 0 “te adjust = the pesult to o in. order Ron x Tesule- The \ubestione only toith pas — instruct'on the AL aaa fg: (Reper class notes) This Notes is valid * only for the duration * Jan-2014 to Dec-2014 |} 9845642144 (MALLESHWARAM) 9972731111 JAVANAGAR) 9972851111 (VIJAYANAGAR) 9901942144(INDIRANAGAR) borite a mote on ASCII azithmetc - ASCII arithmetic involves 4 insteuehons such as ann, AAD, Ann and AAS. All these instructions uce xt the AX Te rete ~ as the Diets Cn’ destination regish® - Wests a bps en eoam jpn - stands por Meats. o¥d jist Addition. Whenever too se numbers ave added, it. \dbe mesulk im an usepul aesule~ Hence PAA instruction = mUSt> be usecl ayer suth an adaihen in order an make the (wesule meaning, & “uass = moks AAD - stands ayer pseu Adjust Be re Divisto WJ the AX register | contarns an ~—unpatked BCD number bezore division , then APD — mush be used: The usage 4% ppp ensures that Phe upacked = BCD numbers present in - ax would ct emvertd to Asell x and then — division fakes place rie Rep ielossan 098|maneNcES evan = | + only for the duration * | Jan-2014 to Dec-2014 pam - stands 5 pseiT = pd just ayer —— rautipreatlo: This metrulbon iP used ajtr the =~ mulbiplicafon 3 to AsclI numbers. ° + Reps _alass moks ‘9845642144 (MALLES (MALLESHWARAM) 9972731111 JAYANAGAR) 9972851111 (VIJAYANAGAR) 990194214(NDIRANAGAR)

You might also like