Open navigation menu
Close suggestions
Search
Search
en
Change Language
Upload
Sign in
Sign in
Download free for days
0 ratings
0% found this document useful (0 votes)
14 views
SPOS Assignment 2
Uploaded by
2225 Sanket Patil
AI-enhanced title
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
Download now
Download
Save SPOS Assignment 2 - Copy For Later
Download
Save
Save SPOS Assignment 2 - Copy For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
0 ratings
0% found this document useful (0 votes)
14 views
SPOS Assignment 2
Uploaded by
2225 Sanket Patil
AI-enhanced title
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
Download now
Download
Save SPOS Assignment 2 - Copy For Later
Carousel Previous
Carousel Next
Save
Save SPOS Assignment 2 - Copy For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
Download now
Download
You are on page 1
/ 14
Search
Fullscreen
_ Assignment No $-2 a : 7 4. Expletn the _psacess of _Allexalton of flow Sion ae Ae anheg ey fn Son = Blasgeel aces Tel ries pesrat. mot conde ol anal a, Sse rasquente oat macro. eer a _—_4h machine. tashmucltons 4h a4 appear in | expansion of macxo__cal) py © Flow of con angion axe can__be arb das us 2 " (2) Cond? Non cancl’ Pseudo =o cade ATE. _(2) Unconditional branch Ps eu: a= speode_ AGO. ° AIF is amilaw jo IE ha Jement_, dhe me _ used far hatanching i known as equencing- _ | cymbal. 3 agg gg gil a Cosdiriany staing > — —2—AGO_is sila to _GOTO_stah Jement. _ An ATE elalement has the.
a Ee Aes —~2.An_ AGO. ‘slalement has: the e_synkoo_2 a aioe “ Sequencing syenbal. > — ‘le —saausing dhe usage 2 ALE, AGO ee _sequencina 5 -—gymab bl Ts shown eifn be) Jow — [aMACRO. vary © count, PARGt—: ate _C IT EQ 1) ONCE L ALE _Cg-COUNT EQ 2) + TWICE AIF Cre COUNT vEQ -3.)- THRE CE AGO FINAL | ONCE _MovER _AREG 5X: AD® AREG., d-nrat AGO_- FINAL “TWICE. movER— AREG,X% ADD AREG ,& ARGL LADD _AREGLs “GARG: AGO -FINAL -TRRLCE mover AREG1, X ADD PREG, L ADD _AREG_, FARGL ADD _AREG_, GARG FINAL MEND — | Fig “A maczo with condtHonal expanston o | Ta_this macso, the number af insta ° generate ing expansion _wi}] depen “They help §n__twansfea_of contwol_ 4 expansion of 4he macro. ° || Naxfous cases of ‘macto-.expansion_az she value of She paxomeler & count ONCE, TWICE and__THRICE arse sequencin _ sya A ucd fans __ ont _— to eo eee 4- haesio cal) Expanded couzre Tota tunevay [inourr. aera x _— ADD peen.¥ VARY 9244 | mouse neem y as - LADD ARER Y | - ! ADD. PREG, ¥ —3.lvary 3.7 | myer pera y — + £ LADD AREtr, Yo Tb — ! | ADD. AREG, ¥ af BREG . = ° ATE and 9G O_stalementa den ot appeay in | the expand oumce ATE and Aso slatemen-. 4s___esn4zo|_she sequence in which the _ ———macxo_pxacess ox expands dhe _slatement s 2 during expansion °__Sequencini inet appease tn the = Been pp — ta opp a Jatin the pxaceas sof mmarea. expansfon with -~wselevant data _stxuctures ~~? Each call 40-9 -macso__is_xepla ced —by is ee _ 2s det oe ody Xd using —seplacement actual parameter. Lis. ‘usel? —tn_place of _foxmal__parameter poe ae a es ~—2._ During macso expansion. ,each__sla ement: tas? ~~ the body of “the _macso_is_ picked _up_ one —by-one = sequentially. en| Each. ess tieaile thal ees ene 0) —Alra_ oxdinawy sting. _5odhich. gs / copied os e 3 38 dustog expan: ron, Z C2) hie mome!_af a fooral seme oli arene oh -déd by + the chara chore Gy? a Dusins maceo. sfon__an slips shying 2 Ue Leolained chan any fon. J Eoemal poxarnetems . cat = (ie Sf sceplaced by the— ac: ° Consident_-a__matso_a given. rochelaa Ayu MACRO TNCR & VARIABLE gavee sy, guseeeg—— = MOVER 4 USE REG, ¢ VPRTABLE “AOD Huse REG 5 INR BY Ls} mover 4 Usk REG» 6 9A apple ___}_— _F5 AL rmacso--deffattions: 1 Nome of thie macro me siiuea 00 ~>posttion ee yet) VARTABLE (2) “INCR-BY (3) “USE REG bees) re - | he bs te ins__ hee —— city ~-shatements ae Eaves ‘Constlex ae segema. ef n009 — deffattion _&- ynacrra — fi a givens iquee._—}—_MovVER____ Gus E_ReGs se slimenps | START joo | READ TINCR @VARIABLE , GINCR_8Y., 4 USE_REG, > § VARIABLE — ADD. BUBEREG, & INCRBY —MoveE Mm _ ty USE.REG,. & VARIABLE | INcR Ys ARE | eprint —." STOP. ee SGD Ge de _ Fare 4 — | Noms 4 — eth any, Aa_assembl y— progsam with macro. © The macxo psocesson wil) proce 3 dhe praqsarn —___aiven__in__above _fiquxe ts explained below. —__t1) The _slalement Start_teo wil) be copied — -as_ ft fo. —___(2) The_slalement_ READ-x will be capied as 3h is . ——__¢3) The sdafemen} READ ¥- all be copied as_it is, (0) “The statement! Inca_x;¥,AREG ts a: cal) ~~ macxo_ “The maceo_INCR wil) be. expande owe: here Values of the — —____Forma]_ Soma) --pavameless. avametes —Toclual_ “pavametens_ Sar aoa rae ant _ fosmal pasar pegs [raver G05, VARIABLE [eipnsiog| MOVER ARE [ \ * =a ADP _AREG, Y | —|.¢8>_ Remaining — Se ee PRINT X | STOP. xX Ds 4 1 i) _ ull es welatnad tothe a [The output of maceo process ox 16 an -expanded— SSS +P gan bi ah es cn calllectantoa e—outpu tout *s—sheuln ia _bela uw) —Figuse = START. too READ» 3k READ. be MOVER. ARES, xX Juss. ADD PREG; |INCR X.Y, AREGr MOVER _AREGL, X ——' 19s expanded here PRINT xX. Stop. | ci Pxpaoded ; code ~ b END.sen} phases of Compt en. - : Scanning ae cl CLexical celia fein | — L —— | : Passing. Schl: ta TT eagatan Analysis | | ! = Symbol table, — | Eons emani. alysis othen 4 { ! |= tables sulin dee E. Code >Generatoy. Fh Fig. gees ee OPE an = me Scanning Chesca Analysis) 2 - [hte elfmed 4 ok aaa a ugge ring) be- a — validated | ton tak fgamat an pasapien a call led 0 cl ale ool peruera ~~ Th the scanning 9-phase each. word of s}ring ts —validaded ge thsliled moths —caley iy —~srecorded ?nto _suitabl aie heads! ~~ ~ereated into an fndewmedate A aspatta a ia 2 L_ source text — pry tate _ sear ent fox aged adored at etal
You might also like
Compiler End Sem
PDF
No ratings yet
Compiler End Sem
8 pages
Semester 7 - CD Imp Notes
PDF
No ratings yet
Semester 7 - CD Imp Notes
31 pages
CD Unit 1
PDF
No ratings yet
CD Unit 1
24 pages
Compiler Bipin
PDF
No ratings yet
Compiler Bipin
94 pages
Tranlsation Software
PDF
No ratings yet
Tranlsation Software
15 pages
CD Notes
PDF
No ratings yet
CD Notes
34 pages
PCPF ?
PDF
No ratings yet
PCPF ?
35 pages
CD Notes Unit-1
PDF
No ratings yet
CD Notes Unit-1
26 pages
CD Unit1
PDF
No ratings yet
CD Unit1
35 pages
Spos Model Answer 2018
PDF
No ratings yet
Spos Model Answer 2018
14 pages
CD Unit 1-1
PDF
No ratings yet
CD Unit 1-1
23 pages
SPCC Assi 2
PDF
No ratings yet
SPCC Assi 2
25 pages
CD Unit 1
PDF
No ratings yet
CD Unit 1
23 pages
MPMC Lab Notes
PDF
No ratings yet
MPMC Lab Notes
35 pages
Compiler Design
PDF
No ratings yet
Compiler Design
27 pages
Compiler Design Unit 1 Notes
PDF
No ratings yet
Compiler Design Unit 1 Notes
49 pages
2Nd Chapt Fybcs - 10 - 07 - 2022 New Doc 10-07-2022 14.06
PDF
No ratings yet
2Nd Chapt Fybcs - 10 - 07 - 2022 New Doc 10-07-2022 14.06
11 pages
Unit1 CD
PDF
No ratings yet
Unit1 CD
25 pages
C Programming Written Notes 1 Pages 1
PDF
No ratings yet
C Programming Written Notes 1 Pages 1
100 pages
Computer Notes (Complete)
PDF
No ratings yet
Computer Notes (Complete)
128 pages
CD Two Marks
PDF
No ratings yet
CD Two Marks
17 pages
C Programming Language
PDF
No ratings yet
C Programming Language
55 pages
18CS752-Python 4
PDF
No ratings yet
18CS752-Python 4
16 pages
CD-Unit-V_Material
PDF
No ratings yet
CD-Unit-V_Material
23 pages
SPOS Assignment
PDF
No ratings yet
SPOS Assignment
16 pages
Null 1
PDF
No ratings yet
Null 1
24 pages
C Notes
PDF
No ratings yet
C Notes
44 pages
TOC Assignment Solution by Ashok Nath Pokhara University
PDF
No ratings yet
TOC Assignment Solution by Ashok Nath Pokhara University
35 pages
Ilovepdf Merged
PDF
No ratings yet
Ilovepdf Merged
66 pages
Programming Languages and Compilers - Notes
PDF
No ratings yet
Programming Languages and Compilers - Notes
37 pages
System Software-1 - Merged
PDF
No ratings yet
System Software-1 - Merged
28 pages
CD Assignment -2
PDF
No ratings yet
CD Assignment -2
25 pages
OOSD Unit-4 Notes
PDF
No ratings yet
OOSD Unit-4 Notes
18 pages
Unit 1
PDF
No ratings yet
Unit 1
14 pages
C++ Fundamentals (DSA)
PDF
No ratings yet
C++ Fundamentals (DSA)
33 pages
System Software, VM, Security, AI
PDF
No ratings yet
System Software, VM, Security, AI
33 pages
Adobe Scan 25-Nov-2023
PDF
No ratings yet
Adobe Scan 25-Nov-2023
14 pages
Doc
PDF
No ratings yet
Doc
29 pages
204-5 Unit-1
PDF
No ratings yet
204-5 Unit-1
24 pages
Model X1 Six-Shooter Common Settling Pond Layout Drawings 120207
PDF
No ratings yet
Model X1 Six-Shooter Common Settling Pond Layout Drawings 120207
4 pages
C Language PDF
PDF
No ratings yet
C Language PDF
115 pages
SS
PDF
No ratings yet
SS
40 pages
CS1603 Class Notes
PDF
No ratings yet
CS1603 Class Notes
65 pages
Data Structures UNIT-1
PDF
No ratings yet
Data Structures UNIT-1
32 pages
Preprocessor & File Handling
PDF
No ratings yet
Preprocessor & File Handling
29 pages
LP Assignment
PDF
No ratings yet
LP Assignment
10 pages
CD Notes
PDF
No ratings yet
CD Notes
20 pages
MPMC Unit 2
PDF
No ratings yet
MPMC Unit 2
23 pages
New Doc 02-15-2024 15.30
PDF
No ratings yet
New Doc 02-15-2024 15.30
20 pages
CD unit 5 sem6
PDF
No ratings yet
CD unit 5 sem6
6 pages
Toc Module 1
PDF
No ratings yet
Toc Module 1
51 pages
Previous Paper-1
PDF
No ratings yet
Previous Paper-1
4 pages
Coa Notes BN
PDF
No ratings yet
Coa Notes BN
36 pages
Compiler Design (1010043418)
PDF
No ratings yet
Compiler Design (1010043418)
50 pages
Flow Control
PDF
No ratings yet
Flow Control
54 pages
ATC Module 1
PDF
No ratings yet
ATC Module 1
8 pages
20 23
PDF
No ratings yet
20 23
40 pages
11 23
PDF
No ratings yet
11 23
26 pages
Unit 4
PDF
No ratings yet
Unit 4
9 pages