You are on page 1of 6
7. | Preven ie SA : (Objective © Je | oleferrne the ance G | sf othe gue meu bee Caxeng ) us J AUC ROp TS CUmoe, Pxppawectus Reputved : BSS qrutuoprocosery Ail Algorithm : Stast the program Get He fist mumber and store ik in & and the second mumber In memory ank move it to accumulator © Ineremnentt rmamoy and compar if with accumulator tf carry Ri prosot . 4 6 veg deter Ltconw tere drorerunt DO weg tester which conte number fest , cere is not H obtamed then get in neo 4 RPP zero |, Stor. The result wh accunulater, compautel oulpat contain 70 cong, mare in arwumnory en vagister and accurnuls sth velour la as Ee the value +o ee and increment Machine “Anemone ae Meme lamer lye code ce tyr 2 LDA Seve gel Ts ) 2000 A ete Pa eo! +7 0 a - {6 002) 2 } a4 ‘ L 2602 uo Mov BA Move from y 2003 H 5-6 Ss 2004y 4 Moyen , ; EG. hob 5 oo Mov EA 4 y Tell 200k 2) ENT S00} : pe r 3: 2v7H oO} : 5 200gh Se io. 2009 4 1€ Mov h&),M ‘i > ds po a 4 Mov BB ¢ sr > i E s.tou GH Nas my 13. woltH RE on 4 syn pau i oO Loab® (x yy 209D DA SEC ud } 1y js 2OOEH 1 - e jem Zon EH 45 - = ja. 2Olo ye Moy Gm Mave M + ¢ register soot * ont Mnerromis Comments so . Mave from A ” unk i f ) N { en wdput Beta Loyo ' OU Coo! : of Loot? OF .— lc[w—_ we fat | Program No: | Objective = To tock the given array tn desardhig Crcler ae 808s nicroprecusor. (Apparatics Kequtred : BOSS ance proemsor kif Plgouthn < Sta the Program Get the first mumbsr andl store tt in & register anol get the second mumbr in aremory and move jh te Aecurnulator. Pnurment rumory and Compau «Ft ct accumulators yf carry la preastt increment Cana by clecrementirg 6 reg tater I rot 1 ZLye. : 4 & vegiater become zero deererrent D emg —whih centaum mumber far, coro is nof obtained thin at fa wumory. Pe et accumulator . ; +f the compared output Contains canry , Pera he valu In amumory te C magister and lator F rumoy and fneremunt fre value My Occ jamemory. vam @ i mMeroy adds 2000 2ool hy 2002) Voo 7H 2oo®u 2909 200A H 299R + Zo0c + ooh H WIE H 200 F H 2010 H Machine. Mnemonics cole 3A LOM Fou oo 7 Mov Gr! Mov bf ¢7 Mov €,fA 2 Lx1 i, B8°f oO) So 4¢ Moy &/ 0 ug mov 6,e ay Oat Be Ge DA dne ul Se zs 4S ts ye mov CY pote Gu DY move ™ 40 € S Nhe Memory Machine Adel reas +1) Reouth: Input Oata : So0g > ©% Sool > eS” Jov2*+ OL S003: OF Mrnemora Commenk fie ft J Output Date 6000 106 ovo: oF

You might also like