SlideShare ist ein Scribd-Unternehmen logo
1 von 2
Draw the stack memory map for each of the following program. How many times does each
program jump back to the label REPEAT?
STARTÂ Â ORG $1000
MOVEA.L #$2000,A7
MOVE.L #11,(A7)
MOVE.L #3,D0
REPEAT
MOVE.L D0,-(A7)
CMP.L #2,D0
DBPL D0,REPEAT
STOP #$2700
END START
Solution
STARTÂ Â ORG $1000 //orgin of program is 1000
MOVEA.L #$2000,A7 // Stack pointer is 2000
MOVE.L #11,(A7) // move 11 (hex B) to stack
MOVE.L #3,D0 // move 3 to D0
REPEAT
MOVE.L D0,-(A7) // Decrement stack pointer and move D0
CMP.L #2,D0 // compare D0 with 2
DBPL D0,REPEAT // If result of compare is positive decrement D0 and branch to repeat
STOP #$2700 // Stop after loading 2700 to base register
END START
Hence
Stack
As it is clear the loop will run 3 times.
since first time 3 will become 2 (3-2 positive) second time ( 2-2 positive ; 0 is positive) 1-2 is
negative loop will exit.
Memory Address Value
2000 B
1FFF 3
1FFE 2

Weitere Àhnliche Inhalte

Ähnlich wie Draw the stack memory map for each of the following program- How many.docx

micro_lecture-ch-456.pptx
micro_lecture-ch-456.pptxmicro_lecture-ch-456.pptx
micro_lecture-ch-456.pptxAmnaShujaa
 
CH-3 CO-all-about-operating-system(Update).pptx
CH-3 CO-all-about-operating-system(Update).pptxCH-3 CO-all-about-operating-system(Update).pptx
CH-3 CO-all-about-operating-system(Update).pptxXyzXyz338506
 
1344 Alp Of 8086
1344 Alp Of 80861344 Alp Of 8086
1344 Alp Of 8086techbed
 
Programs using Microcontrollers.ppt
Programs using Microcontrollers.pptPrograms using Microcontrollers.ppt
Programs using Microcontrollers.pptSasiBhushan22
 
Stack and subroutine
Stack and subroutineStack and subroutine
Stack and subroutineAshim Saha
 
Chap 3_2.ppt
Chap 3_2.pptChap 3_2.ppt
Chap 3_2.pptinian2
 
IMPLEMENTING ARITHMETIC INSTRUCTIONS IN EMU 8086
IMPLEMENTING ARITHMETIC INSTRUCTIONS IN EMU 8086IMPLEMENTING ARITHMETIC INSTRUCTIONS IN EMU 8086
IMPLEMENTING ARITHMETIC INSTRUCTIONS IN EMU 8086COMSATS Abbottabad
 
Assembly Language
Assembly LanguageAssembly Language
Assembly LanguageAMIT GODRE
 
microp-8085 74 instructions for mct-A :P
microp-8085 74 instructions for mct-A :Pmicrop-8085 74 instructions for mct-A :P
microp-8085 74 instructions for mct-A :PJathin Kanumuri
 
8085 Paper Presentation slides,ppt,microprocessor 8085 ,guide, instruction set
8085 Paper Presentation slides,ppt,microprocessor 8085 ,guide, instruction set8085 Paper Presentation slides,ppt,microprocessor 8085 ,guide, instruction set
8085 Paper Presentation slides,ppt,microprocessor 8085 ,guide, instruction setSaumitra Rukmangad
 
microp-8085 74 instructions for mct-A :P-2
microp-8085 74 instructions for mct-A :P-2microp-8085 74 instructions for mct-A :P-2
microp-8085 74 instructions for mct-A :P-2Jathin Kanumuri
 
Instruction set of 8086
Instruction set of 8086Instruction set of 8086
Instruction set of 8086Vijay Kumar
 
Instructionsetof8086 180224060745(3)
Instructionsetof8086 180224060745(3)Instructionsetof8086 180224060745(3)
Instructionsetof8086 180224060745(3)AmitPaliwal20
 
8085 instruction set
8085 instruction set8085 instruction set
8085 instruction setJLoknathDora
 
Programming basic computer
Programming basic computerProgramming basic computer
Programming basic computerMartial Kouadio
 

Ähnlich wie Draw the stack memory map for each of the following program- How many.docx (20)

micro_lecture-ch-456.pptx
micro_lecture-ch-456.pptxmicro_lecture-ch-456.pptx
micro_lecture-ch-456.pptx
 
CH-3 CO-all-about-operating-system(Update).pptx
CH-3 CO-all-about-operating-system(Update).pptxCH-3 CO-all-about-operating-system(Update).pptx
CH-3 CO-all-about-operating-system(Update).pptx
 
1344 Alp Of 8086
1344 Alp Of 80861344 Alp Of 8086
1344 Alp Of 8086
 
Programs using Microcontrollers.ppt
Programs using Microcontrollers.pptPrograms using Microcontrollers.ppt
Programs using Microcontrollers.ppt
 
8085 instruction set
8085 instruction set8085 instruction set
8085 instruction set
 
Stack and subroutine
Stack and subroutineStack and subroutine
Stack and subroutine
 
Microprocessor
MicroprocessorMicroprocessor
Microprocessor
 
Chap 3_2.ppt
Chap 3_2.pptChap 3_2.ppt
Chap 3_2.ppt
 
IMPLEMENTING ARITHMETIC INSTRUCTIONS IN EMU 8086
IMPLEMENTING ARITHMETIC INSTRUCTIONS IN EMU 8086IMPLEMENTING ARITHMETIC INSTRUCTIONS IN EMU 8086
IMPLEMENTING ARITHMETIC INSTRUCTIONS IN EMU 8086
 
Assembly Language
Assembly LanguageAssembly Language
Assembly Language
 
microp-8085 74 instructions for mct-A :P
microp-8085 74 instructions for mct-A :Pmicrop-8085 74 instructions for mct-A :P
microp-8085 74 instructions for mct-A :P
 
8085 Paper Presentation slides,ppt,microprocessor 8085 ,guide, instruction set
8085 Paper Presentation slides,ppt,microprocessor 8085 ,guide, instruction set8085 Paper Presentation slides,ppt,microprocessor 8085 ,guide, instruction set
8085 Paper Presentation slides,ppt,microprocessor 8085 ,guide, instruction set
 
microp-8085 74 instructions for mct-A :P-2
microp-8085 74 instructions for mct-A :P-2microp-8085 74 instructions for mct-A :P-2
microp-8085 74 instructions for mct-A :P-2
 
Instruction set of 8086
Instruction set of 8086Instruction set of 8086
Instruction set of 8086
 
Instructionsetof8086 180224060745(3)
Instructionsetof8086 180224060745(3)Instructionsetof8086 180224060745(3)
Instructionsetof8086 180224060745(3)
 
Lesson no.2
Lesson no.2Lesson no.2
Lesson no.2
 
8085 instruction set
8085 instruction set8085 instruction set
8085 instruction set
 
module 5.1.pptx
module 5.1.pptxmodule 5.1.pptx
module 5.1.pptx
 
module 5.pptx
module 5.pptxmodule 5.pptx
module 5.pptx
 
Programming basic computer
Programming basic computerProgramming basic computer
Programming basic computer
 

Mehr von edwardk6

Identify which of the following is NOT a TCP-IP Attack- Question 5 opt.docx
Identify which of the following is NOT a TCP-IP Attack- Question 5 opt.docxIdentify which of the following is NOT a TCP-IP Attack- Question 5 opt.docx
Identify which of the following is NOT a TCP-IP Attack- Question 5 opt.docxedwardk6
 
Identifying Matter- Physical Properties (Section 1-4 15- The elements.docx
Identifying Matter- Physical Properties (Section 1-4 15- The elements.docxIdentifying Matter- Physical Properties (Section 1-4 15- The elements.docx
Identifying Matter- Physical Properties (Section 1-4 15- The elements.docxedwardk6
 
Identifying aclds and bases by their reaction with water Kri Some chem.docx
Identifying aclds and bases by their reaction with water Kri Some chem.docxIdentifying aclds and bases by their reaction with water Kri Some chem.docx
Identifying aclds and bases by their reaction with water Kri Some chem.docxedwardk6
 
Identify the two primary sources of stockholders equity- and which sou.docx
Identify the two primary sources of stockholders equity- and which sou.docxIdentify the two primary sources of stockholders equity- and which sou.docx
Identify the two primary sources of stockholders equity- and which sou.docxedwardk6
 
If you had a system- that had large amounts of daily data inflows- tha.docx
If you had a system- that had large amounts of daily data inflows- tha.docxIf you had a system- that had large amounts of daily data inflows- tha.docx
If you had a system- that had large amounts of daily data inflows- tha.docxedwardk6
 
If two points are in a common reference frame- then a They are not in.docx
If two points are in a common reference frame- then a They are not in.docxIf two points are in a common reference frame- then a They are not in.docx
If two points are in a common reference frame- then a They are not in.docxedwardk6
 
Identify at least two types of system architectures that work well in.docx
Identify at least two types of system architectures that work well in.docxIdentify at least two types of system architectures that work well in.docx
Identify at least two types of system architectures that work well in.docxedwardk6
 
Identify and prioritize information assets- Identify and prioritize th.docx
Identify and prioritize information assets- Identify and prioritize th.docxIdentify and prioritize information assets- Identify and prioritize th.docx
Identify and prioritize information assets- Identify and prioritize th.docxedwardk6
 
If the Android platform you are developing for does not support fragme.docx
If the Android platform you are developing for does not support fragme.docxIf the Android platform you are developing for does not support fragme.docx
If the Android platform you are developing for does not support fragme.docxedwardk6
 
E13-7 On January 1- 2010- the stockholders-' equity section of Nunez C.docx
E13-7 On January 1- 2010- the stockholders-' equity section of Nunez C.docxE13-7 On January 1- 2010- the stockholders-' equity section of Nunez C.docx
E13-7 On January 1- 2010- the stockholders-' equity section of Nunez C.docxedwardk6
 
E 4- Elijah Samuels and Tony Winslow agreed to form a partnership- Sam.docx
E 4- Elijah Samuels and Tony Winslow agreed to form a partnership- Sam.docxE 4- Elijah Samuels and Tony Winslow agreed to form a partnership- Sam.docx
E 4- Elijah Samuels and Tony Winslow agreed to form a partnership- Sam.docxedwardk6
 
During October- Wichita Light Company experiences the following transa.docx
During October- Wichita Light Company experiences the following transa.docxDuring October- Wichita Light Company experiences the following transa.docx
During October- Wichita Light Company experiences the following transa.docxedwardk6
 
During a total lunar eclipse- in which the moon passes entirely into t.docx
During a total lunar eclipse- in which the moon passes entirely into t.docxDuring a total lunar eclipse- in which the moon passes entirely into t.docx
During a total lunar eclipse- in which the moon passes entirely into t.docxedwardk6
 
During 2011- Arthur Corportation reported a net income of $3-059-000-.docx
During 2011- Arthur Corportation reported a net income of $3-059-000-.docxDuring 2011- Arthur Corportation reported a net income of $3-059-000-.docx
During 2011- Arthur Corportation reported a net income of $3-059-000-.docxedwardk6
 
Driving School has 4 learning centres- The network of each learning ce.docx
Driving School has 4 learning centres- The network of each learning ce.docxDriving School has 4 learning centres- The network of each learning ce.docx
Driving School has 4 learning centres- The network of each learning ce.docxedwardk6
 
Donnie Hilfiger has two classes of stock authorized- S1 par preferred.docx
Donnie Hilfiger has two classes of stock authorized- S1 par preferred.docxDonnie Hilfiger has two classes of stock authorized- S1 par preferred.docx
Donnie Hilfiger has two classes of stock authorized- S1 par preferred.docxedwardk6
 
Doris Washington recently assumed her new position as HR Director at t.docx
Doris Washington recently assumed her new position as HR Director at t.docxDoris Washington recently assumed her new position as HR Director at t.docx
Doris Washington recently assumed her new position as HR Director at t.docxedwardk6
 
Doppler Effect- True or False John is listening to a horn- He knows th.docx
Doppler Effect- True or False John is listening to a horn- He knows th.docxDoppler Effect- True or False John is listening to a horn- He knows th.docx
Doppler Effect- True or False John is listening to a horn- He knows th.docxedwardk6
 
DQ #4 Explain the US Government Thrift Savings Plans-SolutionThe US Go.docx
DQ #4 Explain the US Government Thrift Savings Plans-SolutionThe US Go.docxDQ #4 Explain the US Government Thrift Savings Plans-SolutionThe US Go.docx
DQ #4 Explain the US Government Thrift Savings Plans-SolutionThe US Go.docxedwardk6
 

Mehr von edwardk6 (19)

Identify which of the following is NOT a TCP-IP Attack- Question 5 opt.docx
Identify which of the following is NOT a TCP-IP Attack- Question 5 opt.docxIdentify which of the following is NOT a TCP-IP Attack- Question 5 opt.docx
Identify which of the following is NOT a TCP-IP Attack- Question 5 opt.docx
 
Identifying Matter- Physical Properties (Section 1-4 15- The elements.docx
Identifying Matter- Physical Properties (Section 1-4 15- The elements.docxIdentifying Matter- Physical Properties (Section 1-4 15- The elements.docx
Identifying Matter- Physical Properties (Section 1-4 15- The elements.docx
 
Identifying aclds and bases by their reaction with water Kri Some chem.docx
Identifying aclds and bases by their reaction with water Kri Some chem.docxIdentifying aclds and bases by their reaction with water Kri Some chem.docx
Identifying aclds and bases by their reaction with water Kri Some chem.docx
 
Identify the two primary sources of stockholders equity- and which sou.docx
Identify the two primary sources of stockholders equity- and which sou.docxIdentify the two primary sources of stockholders equity- and which sou.docx
Identify the two primary sources of stockholders equity- and which sou.docx
 
If you had a system- that had large amounts of daily data inflows- tha.docx
If you had a system- that had large amounts of daily data inflows- tha.docxIf you had a system- that had large amounts of daily data inflows- tha.docx
If you had a system- that had large amounts of daily data inflows- tha.docx
 
If two points are in a common reference frame- then a They are not in.docx
If two points are in a common reference frame- then a They are not in.docxIf two points are in a common reference frame- then a They are not in.docx
If two points are in a common reference frame- then a They are not in.docx
 
Identify at least two types of system architectures that work well in.docx
Identify at least two types of system architectures that work well in.docxIdentify at least two types of system architectures that work well in.docx
Identify at least two types of system architectures that work well in.docx
 
Identify and prioritize information assets- Identify and prioritize th.docx
Identify and prioritize information assets- Identify and prioritize th.docxIdentify and prioritize information assets- Identify and prioritize th.docx
Identify and prioritize information assets- Identify and prioritize th.docx
 
If the Android platform you are developing for does not support fragme.docx
If the Android platform you are developing for does not support fragme.docxIf the Android platform you are developing for does not support fragme.docx
If the Android platform you are developing for does not support fragme.docx
 
E13-7 On January 1- 2010- the stockholders-' equity section of Nunez C.docx
E13-7 On January 1- 2010- the stockholders-' equity section of Nunez C.docxE13-7 On January 1- 2010- the stockholders-' equity section of Nunez C.docx
E13-7 On January 1- 2010- the stockholders-' equity section of Nunez C.docx
 
E 4- Elijah Samuels and Tony Winslow agreed to form a partnership- Sam.docx
E 4- Elijah Samuels and Tony Winslow agreed to form a partnership- Sam.docxE 4- Elijah Samuels and Tony Winslow agreed to form a partnership- Sam.docx
E 4- Elijah Samuels and Tony Winslow agreed to form a partnership- Sam.docx
 
During October- Wichita Light Company experiences the following transa.docx
During October- Wichita Light Company experiences the following transa.docxDuring October- Wichita Light Company experiences the following transa.docx
During October- Wichita Light Company experiences the following transa.docx
 
During a total lunar eclipse- in which the moon passes entirely into t.docx
During a total lunar eclipse- in which the moon passes entirely into t.docxDuring a total lunar eclipse- in which the moon passes entirely into t.docx
During a total lunar eclipse- in which the moon passes entirely into t.docx
 
During 2011- Arthur Corportation reported a net income of $3-059-000-.docx
During 2011- Arthur Corportation reported a net income of $3-059-000-.docxDuring 2011- Arthur Corportation reported a net income of $3-059-000-.docx
During 2011- Arthur Corportation reported a net income of $3-059-000-.docx
 
Driving School has 4 learning centres- The network of each learning ce.docx
Driving School has 4 learning centres- The network of each learning ce.docxDriving School has 4 learning centres- The network of each learning ce.docx
Driving School has 4 learning centres- The network of each learning ce.docx
 
Donnie Hilfiger has two classes of stock authorized- S1 par preferred.docx
Donnie Hilfiger has two classes of stock authorized- S1 par preferred.docxDonnie Hilfiger has two classes of stock authorized- S1 par preferred.docx
Donnie Hilfiger has two classes of stock authorized- S1 par preferred.docx
 
Doris Washington recently assumed her new position as HR Director at t.docx
Doris Washington recently assumed her new position as HR Director at t.docxDoris Washington recently assumed her new position as HR Director at t.docx
Doris Washington recently assumed her new position as HR Director at t.docx
 
Doppler Effect- True or False John is listening to a horn- He knows th.docx
Doppler Effect- True or False John is listening to a horn- He knows th.docxDoppler Effect- True or False John is listening to a horn- He knows th.docx
Doppler Effect- True or False John is listening to a horn- He knows th.docx
 
DQ #4 Explain the US Government Thrift Savings Plans-SolutionThe US Go.docx
DQ #4 Explain the US Government Thrift Savings Plans-SolutionThe US Go.docxDQ #4 Explain the US Government Thrift Savings Plans-SolutionThe US Go.docx
DQ #4 Explain the US Government Thrift Savings Plans-SolutionThe US Go.docx
 

KĂŒrzlich hochgeladen

Visit to a blind student's school🧑‍🩯🧑‍🩯(community medicine)
Visit to a blind student's school🧑‍🩯🧑‍🩯(community medicine)Visit to a blind student's school🧑‍🩯🧑‍🩯(community medicine)
Visit to a blind student's school🧑‍🩯🧑‍🩯(community medicine)lakshayb543
 
Millenials and Fillennials (Ethical Challenge and Responses).pptx
Millenials and Fillennials (Ethical Challenge and Responses).pptxMillenials and Fillennials (Ethical Challenge and Responses).pptx
Millenials and Fillennials (Ethical Challenge and Responses).pptxJanEmmanBrigoli
 
Presentation Activity 2. Unit 3 transv.pptx
Presentation Activity 2. Unit 3 transv.pptxPresentation Activity 2. Unit 3 transv.pptx
Presentation Activity 2. Unit 3 transv.pptxRosabel UA
 
USPSÂź Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPSÂź Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPSÂź Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPSÂź Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...Postal Advocate Inc.
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptxmary850239
 
TEACHER REFLECTION FORM (NEW SET........).docx
TEACHER REFLECTION FORM (NEW SET........).docxTEACHER REFLECTION FORM (NEW SET........).docx
TEACHER REFLECTION FORM (NEW SET........).docxruthvilladarez
 
Oppenheimer Film Discussion for Philosophy and Film
Oppenheimer Film Discussion for Philosophy and FilmOppenheimer Film Discussion for Philosophy and Film
Oppenheimer Film Discussion for Philosophy and FilmStan Meyer
 
Transaction Management in Database Management System
Transaction Management in Database Management SystemTransaction Management in Database Management System
Transaction Management in Database Management SystemChristalin Nelson
 
Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management systemChristalin Nelson
 
ClimART Action | eTwinning Project
ClimART Action    |    eTwinning ProjectClimART Action    |    eTwinning Project
ClimART Action | eTwinning Projectjordimapav
 
Textual Evidence in Reading and Writing of SHS
Textual Evidence in Reading and Writing of SHSTextual Evidence in Reading and Writing of SHS
Textual Evidence in Reading and Writing of SHSMae Pangan
 
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfVirtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfErwinPantujan2
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Mark Reed
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONHumphrey A Beña
 
Congestive Cardiac Failure..presentation
Congestive Cardiac Failure..presentationCongestive Cardiac Failure..presentation
Congestive Cardiac Failure..presentationdeepaannamalai16
 
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Celine George
 
Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4JOYLYNSAMANIEGO
 
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...JojoEDelaCruz
 
HỌC TỐT TIáșŸNG ANH 11 THEO CHÆŻÆ NG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIáșŸT - Cáșą NĂ...
HỌC TỐT TIáșŸNG ANH 11 THEO CHÆŻÆ NG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIáșŸT - Cáșą NĂ...HỌC TỐT TIáșŸNG ANH 11 THEO CHÆŻÆ NG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIáșŸT - Cáșą NĂ...
HỌC TỐT TIáșŸNG ANH 11 THEO CHÆŻÆ NG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIáșŸT - Cáșą NĂ...Nguyen Thanh Tu Collection
 

KĂŒrzlich hochgeladen (20)

Visit to a blind student's school🧑‍🩯🧑‍🩯(community medicine)
Visit to a blind student's school🧑‍🩯🧑‍🩯(community medicine)Visit to a blind student's school🧑‍🩯🧑‍🩯(community medicine)
Visit to a blind student's school🧑‍🩯🧑‍🩯(community medicine)
 
Millenials and Fillennials (Ethical Challenge and Responses).pptx
Millenials and Fillennials (Ethical Challenge and Responses).pptxMillenials and Fillennials (Ethical Challenge and Responses).pptx
Millenials and Fillennials (Ethical Challenge and Responses).pptx
 
Presentation Activity 2. Unit 3 transv.pptx
Presentation Activity 2. Unit 3 transv.pptxPresentation Activity 2. Unit 3 transv.pptx
Presentation Activity 2. Unit 3 transv.pptx
 
USPSÂź Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPSÂź Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPSÂź Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPSÂź Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx
 
TEACHER REFLECTION FORM (NEW SET........).docx
TEACHER REFLECTION FORM (NEW SET........).docxTEACHER REFLECTION FORM (NEW SET........).docx
TEACHER REFLECTION FORM (NEW SET........).docx
 
Oppenheimer Film Discussion for Philosophy and Film
Oppenheimer Film Discussion for Philosophy and FilmOppenheimer Film Discussion for Philosophy and Film
Oppenheimer Film Discussion for Philosophy and Film
 
Transaction Management in Database Management System
Transaction Management in Database Management SystemTransaction Management in Database Management System
Transaction Management in Database Management System
 
Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management system
 
ClimART Action | eTwinning Project
ClimART Action    |    eTwinning ProjectClimART Action    |    eTwinning Project
ClimART Action | eTwinning Project
 
Textual Evidence in Reading and Writing of SHS
Textual Evidence in Reading and Writing of SHSTextual Evidence in Reading and Writing of SHS
Textual Evidence in Reading and Writing of SHS
 
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfVirtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
 
Congestive Cardiac Failure..presentation
Congestive Cardiac Failure..presentationCongestive Cardiac Failure..presentation
Congestive Cardiac Failure..presentation
 
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
 
Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4
 
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...
 
HỌC TỐT TIáșŸNG ANH 11 THEO CHÆŻÆ NG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIáșŸT - Cáșą NĂ...
HỌC TỐT TIáșŸNG ANH 11 THEO CHÆŻÆ NG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIáșŸT - Cáșą NĂ...HỌC TỐT TIáșŸNG ANH 11 THEO CHÆŻÆ NG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIáșŸT - Cáșą NĂ...
HỌC TỐT TIáșŸNG ANH 11 THEO CHÆŻÆ NG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIáșŸT - Cáșą NĂ...
 
Paradigm shift in nursing research by RS MEHTA
Paradigm shift in nursing research by RS MEHTAParadigm shift in nursing research by RS MEHTA
Paradigm shift in nursing research by RS MEHTA
 

Draw the stack memory map for each of the following program- How many.docx

  • 1. Draw the stack memory map for each of the following program. How many times does each program jump back to the label REPEAT? STARTÂ Â ORG $1000 MOVEA.L #$2000,A7 MOVE.L #11,(A7) MOVE.L #3,D0 REPEAT MOVE.L D0,-(A7) CMP.L #2,D0 DBPL D0,REPEAT STOP #$2700 END START Solution STARTÂ Â ORG $1000 //orgin of program is 1000 MOVEA.L #$2000,A7 // Stack pointer is 2000 MOVE.L #11,(A7) // move 11 (hex B) to stack MOVE.L #3,D0 // move 3 to D0 REPEAT MOVE.L D0,-(A7) // Decrement stack pointer and move D0
  • 2. CMP.L #2,D0 // compare D0 with 2 DBPL D0,REPEAT // If result of compare is positive decrement D0 and branch to repeat STOP #$2700 // Stop after loading 2700 to base register END START Hence Stack As it is clear the loop will run 3 times. since first time 3 will become 2 (3-2 positive) second time ( 2-2 positive ; 0 is positive) 1-2 is negative loop will exit. Memory Address Value 2000 B 1FFF 3 1FFE 2