0% found this document useful (0 votes)
36 views14 pages

MI Practical 1-3

The document outlines a series of experiments related to microprocessor programming, including loading immediate data into registers, performing arithmetic operations, and storing results in memory locations. It provides algorithms, program codes, and results for various tasks such as loading data into registers, adding and subtracting numbers, and multiplying unsigned 8-bit numbers. Additionally, it includes questions and answers related to microprocessor concepts and addressing modes.

Uploaded by

Raj Patel
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
36 views14 pages

MI Practical 1-3

The document outlines a series of experiments related to microprocessor programming, including loading immediate data into registers, performing arithmetic operations, and storing results in memory locations. It provides algorithms, program codes, and results for various tasks such as loading data into registers, adding and subtracting numbers, and multiplying unsigned 8-bit numbers. Additionally, it includes questions and answers related to microprocessor concepts and addressing modes.

Uploaded by

Raj Patel
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 14
transfer it into register B and memory location 4050H. Algorithm: EXPERIMENT - 1 AIM: Write a Program to load immediate data in the register and 1, Load the accumulator with immediate data 45H. 2, Load HL pair with BOSOH ¢ contents of accumulator to register B ¢ contents of accumulator to memory location}OS0H. Date: Program: Memory | Machin | janet] Nmemonic | Operand Comments Ln Code [> Dyua.f5p A coca A) Prsnapvaau Start: coo | ZE | MVEA YI Sted 4 tm _A | C001} ul Coon | 4A LPIDV | B,A |move te velua fiom _A to BI jco0% | 32 STA_| DO5D |stoted tte Value of A ia Dasa coou| 50\.. | . : .: C005 | DO Zo Coober | | pearls [Pxograsa Ec! » A | co00 7 Psogioiaaa Sayt- 000 Pyt | p,25 |slaxe Ziv D Coo | | [cv02 | PAOV | Byd move dle Value of h tn | vO 3160712 - Microprocessor & Interfacing ie the Value 26 40 8 — move Abe value_of | RdaA| linisve “We Value of £44 8 | | Wove the Value of Atoé it agua Ered 4 Veet the due 26 ab ee Wea xy locatiou. 1 oa icoou! a [LpA bol Value of nom_to4 Coo0g! 3A 12 IE coo, 190 coo2 dO 003 gr STA DOTD Shoe tk value of Ato DoFo Cooy 90 Coos 00 Coo 6 CF gst 2 epee oid Oo 221260107017 Results: 4) dyna - £9 >G&O woo pyna-5> RK ‘ Arul B=ul byna-t5) D pos0 a Ut 2) pywa -65 > &0 coe pyna-¥9> RB 8-36 A> 26 226 3160712 Microprocessor & Interfacing 2) Dyna 85> GO ooo Dyna >R Az23 8223 H=b0 L=50 PA > D050 U Dyna—#F >I C000 dyna-75>R dyna -59 7D oU59 peso 2 >3B26 a Timely, Completion 2) Quiz and Vive 6) Total (a0) Zz 3 lo Meno Signatures E & Interfacin 121260107017 3160712 - Microprocessor & Interfacing Answer the following questions: 1. The S085 microprocessor has_& it data bus and_[ 6 bit address bus. 2. The 8085 can access maximum of 64 KB memory, Why? FP Te €0BS mnicsoptocersoy carn aces a woximom of 64 kB of Memosy because? SB A wIbbIE addsem bus. Te IM 603" bys, ddtermived how much memory Ane Procemmy cam — addsons 3. Give the function of Program Counter, > Te psy couutey (pc) holds the memory addins of Hx ued Rutwetou to be executed by the cpu. Te eure chu kuows whese to fetch the wot Sutroctou frou Suolhing sequeutiol eneoutional of program, 4. AWhy is the data bus bidirectional? ae i allows dita <5 Dm dda oy B Cae car’ vourary (oe Po doses) Flow bath rt operation » amd from mentary Cox Bo dutta) duvivg wri vie a yead operation. Ts Sao 5 ins ae aalien wiBted communication betwen He psocerso wre UM commpruenntt . 221260107007 EXPERIMENT - 2 AL rite a Program to add and subtract two unsigned 8-bit numbers. Algorithm: Fi }. Load the accumulator from the memory location 2. Lead the ister with immediate data 3. Add the numbers 4. Load HL pair with any memory location 5 tents of memory location from the answer of addition seme | M8" caper] stnemonic] operand Comments Lu Code ) MaIKS FA Cong LH psomsassa fart: cooo | 2) |e] LXI |H wag |stave macusores lovatiow wore lia He pair [evo | 20 coor | D& u C003 | 36 Pur |M,19 |stese io ak wlan cooy | 40 AVE coos | 2£ Asps| Piya lslexe uo Su A cog ¢ | uo Se | ena cor | 6 Abp | M. | A mt to A coor [32 STA | 030 | Stabe fhevalue of A to lacatfou co30 coo4 | 30 s z cook | €0 coon | CF RST 4 A progress eud U 291260107017 3160712 - Microprocessor & Interfacing Machin | Label . Mnemonic!) Operand Comments ote Dyha-22> "lA coon Apsoopsassa san L wt. |cooo_| 3E mur |A,o2 | IShore 92 tp A [coo] | 02 | coor | 66 far | Byog | Sloye 0% to & [ c00x | 03 Leo | tO} | App | R Jam Btn A e005 | 38> | | STA [DoF |shue Value of A at location De4o coo6 | FO L | coor | pg} | cooy_| CF Rr | 4 ag md | bla in ll OAM wad yet et te leoon | Ze | i Pur |A,c0 | shee Go to A cod | 50 on - ood | 06 WE _| 8,25 | shove a8 e083 | 25 leoou | 90 SuB | BR [subsheadt @ Prous A_| I coos | 3 Sré_| €0U0 |etoxe valus of A to locatialy couo cook | uo | Oo -co ~y I coor | CF Ror | t Pogo Oui _ Menor’ Locatign, Dyma_P5>A tooo Seog 3e cool _ coord ei C03 50 Cou co cVa5 36 C00 6 15 Coot 4%. cooy 32 009 uo co0A bo Coo B oF wocwing code label — wamou'e opted Congas code Thseqyoun Yoost- PVE AS store 25 4p A OD C050 Siete locale Coto | HL paly | | Mu MIS Store G ty may 49, | 5eB PL substract ur frm 4 STA POYO stove Value of Ato Seaton Doug : id. RIT A 4 {1 progyaae ou anineou07017 3160712 ~ Microprocessor & Interfacing Results: PD Dynt=F5>G0 coo J 2) Dyna-t5>Go cooo Dyra-25> BD Cogo DyMa-5 > DS poxo pynats> R Dyna-P5> R ~» A=d0 —p A=05 5 > Byna-05> ko coon J uy Dyna Oyna-£5> bd cogo oe Go woo a a- Dyna~o5> R / hau po bouo D> Az “sang . Timely Quiz and Viva] Total Completion (2) GB) (10) {0 Mem Signature: 3160712 - Microprocessor & Interfacing 260107017 Answer the following questions: 1. What is addressing mode? =p Te abhonivg mde %S a way a computer eee ae ’ 3 memory locals. Be deres BOCeASOY “peal Pion: enn adliones talo plyysi ical meet rettin e me 2. Give the eva “jin type of addressing mode. + id) pluysiced all BleeAsing % wanton, addxeys¢ 1000 PTeeor accesses ~! ia) womens \ocatiou ! 1000 fb) Vivloal a cklvensi waked adden #5000 muiu Tearslibes “tot physical altyoy 22000 Placer acermer & pluysic wemo@M locatiou2090. 3. Explain ORG directive. bite 1 aM Rrauple of Ae ope ivective + ERLE ooo Pov Ax, S App AX)3 4. Define TState, Machine Cyele and Instruction Cyele, DT Stade ¢ Te ts a clock ported to perfau asivall part of on opetation « > Plachiine. ayes Tt is We time SE tales to complete “ow operation like accening mentio > dustytion uses at is the Hae tt tealees to enecatte aun fu styoctiow . EXPERIMENT — 3 ‘Algorithm Load 3 4 5. Add 6. AIM: Write Initialize product and car HHL regi ih nlents of two registers, Cheek for carry Cheek whether rep memory location utherwise yo t then increment the contents of carry additio Date: 2] [p02 a Progra i Toxram to multiply two unsigned &bitn MIS over if yes then store the value of product and carry into the jumbers. Wo step 5 Program: Memory | Machin | ; ocatio | ¢ Label) Mnemonic] Operand Comments a Code Dyna &5 > & cou cou B2. ou, Dynd— ¢5 & Cou slocation coun (P coun=ou)| if |~+ locabiou cour (cour= ar) Cou} AD. 02 | pyud-£9y| A | cnoo | | : ; cong | 3A Loo |couo |tead #coun at—A iy A coo | UO /. Coo2 | CO coos | SF] | Pov | Ea |rtve val of Ace £ | coou|_!6 Mur | 0/00 [Blase ag fu _D- e095] 00 coo, | 34 tA leouy |toad cour _valug ta A_| CooF | Ul et ae mov GA — wove Value of A toc CooA al lxx H,0000 store 0000 twa Hel pair CooR 00 . Roos ‘4 pas =D Doble addition pata tu D 221260107017 “ection coe co0f 6040 cou COD cas colu cad code. oD cL OE co 22 30 co oF 4) Dyna-&5 PA ¢o00 Coo} 902, C002 © Coou CooS” C006 coop Cooly Coog cook 2 uo co 36 03 23 26 B2 3A uo cu mon = MahinZ — Caboel Coog 3160712 - Microprocessor & Interfacing WAAOWE — operand. commonly Ber c Decsemeut ¢ INZ COE — cade if counter ig 0° sip 30 stove HL value af co30 manor, location Rsv t LXE Hycouo Load, couo value ju WL paly pwr 103 shoring “os alia 3K meuony (HL pais) -ENX . OH Paerandeuting HL pair Pv ™m,B2 peg B2 value tn ony G* HL pair) LvA COUT Load cou value in A 221260107017 3160712 - Microprocessor & Interfacing Label Mnetnonie Operand Comments Pov IEA |wove va of A te € Myr lo,oo Stoting Pre LbA |cout | toad value of! cour do A | [cook | Ul leoaio | (O | Coll UF Mov GA _lwove value of (A to C Colz | 2 | xx 1, 0000] 6fae cong Ju _H- paix cole |09 | Cou loo L -- 7 Cos | 9 BAD |B Ipoable addition dat fu_D | colb | 00 DR 1 C ldereweut _¢ : V2 | eb i é is_o leurz | C2 |v coisicheck if a ule 1 1coiA| © | cold co i — m colA | 22 Hep |co30 Ish ve _H - co , 30 sewn location LColg | core | OO cop | CF esr | 4 ———+ ~ 221260107017 Results: V Dyn -5> &0 ooo Dynn- rb een C030 = 0X Dyna ©57 BD coo0 3160712 ~ Microprocessor & Interfacing Dyna-t578 D covo 2) Dyna-t57 Cro cove Dyna tS 7D cozo c030 = BO216 EVALUATION: i Involvement | Participa Timely 5 Griz and Viva Teal 2) Problem solv Completion (2) 3 Q 3 2. 2 lo A908 ikem i 221260107017 3160712 - Microprocessor & Interfacing Answer the following questions: 1. Write a program to ad , Program to add two 16 bit values. Store result in memory location DBODH. a MAD A‘ ay Pus B, 3un Av 2 Mov PA 2NxX H POV A ,oott ADC oon PAV pa, 4 LxT 1, Food CxT y, DBooH Lpay¥ roV pA Tux 4 TNX op PAX i pov a, A add two 16 bit values using DAD instruction. Store result in memory DBO. A )12H RB, 3uH Hy 00m0H D,o000r L)A b.B D STA DBoolt SHLD DBoIH

You might also like