SlideShare a Scribd company logo
1 of 3
Download to read offline
i need the executable file of this program (.exe)
This is Assembly code This program calculates the integer expression A=(A+B)-(C+D) using
registers INCLUDE Irvine32.inc. data A DWORD 150 B DWORD 100 C DWORD 50 D
DWORD 40 .code main PROC; save the integer values in registers mov eax, A; EAX=150
mov ebx.B; EBX=100 mov ecx.C; ECX=50 mov edx.D; EDX=40; calculates the integer
expression add eax.ebx; EAX: (A+B) add ecx.edx; ECX: (C+D) sub eax.ecx; EAX: (A+B)-
(C+D) mov A.eax; A=(A+B)-(C+D) exit main ENDP END main Here the name of program
file is intExp.asm; the program contains comments starting with a semicolon (;) symbol.
Solution
Ans: Its not possible to upload the file. The following steps you can get your intExp.exe from
intExp.asm.
Step 1:
a) Open a MS-DOS window
b) your program as intExp.asm
c) Assemble the program with
C:> MASM demo
MASM will create an object file intExp.obj
Set your path variable to MASM.EXE]
d) Link the program with
C:> LINK intExp ( + prog1 + prog2 ....)
This adds info to intExp.obj and creates
the executable intExp.exe.
e) Run the program with
C:> intExp
intExp expects the input of a character from KB: and sends it
to the screen.
2. Do Assembly and Linkage in one Step
From MASM 6.0 on MicroSoft delivered a program ML that allowed
to do assembly and linkage in one step.
C:> ML intExp.asm : creates intExp.exe
Useful switches : /Zi : add debug info ( codeview)
/Fl : add a list file demo.lst
/Fm : add a map file demo.map
A complete call looks like :
C:> ML /Zi /Fl /Fm intExp.asm
Have a look at intExp.lst, intExp.map.
The full list of options is available via :
C:> MASM /H
C:> LINK /HELP ; LINK /?
C:> ML /HELP ; ML /?
BORLAND version :
For Borland environment ( C:>BC5TASM....)
Prefer to use Borland assembler TASM and linker TLINK.
Assembly : C:> TASM /l /n /z intExp
creates intExp.obj
Switches : /l : create listing intExp.lst
/n : no symbol table
/z : display source lines with errors
Linkage : C:> TLINK /3 /m /v intExp
creates intExp.exe
Switches : /3 : use 32-bit registers
/m : create map file intExp.map
/v : add debug info for the debugger TD
List of all options : C:> TASM /? ; C:> TLINK /?
3. IDE : PWB
Start : Doubleclick the PWB icon or
use a DOS window and type C:> PWB
The edit-part of the functionality should be self.
File --> -New / -Open / - Save / -Save as / -Close / -Exit
Edit --> -Cut / -Copy / -Paste / -Delete ..
Before you can convert the asm source code into an exe file
you should tell PWB which kind of executable
you want to build. It can done by setting many options
in the OPTIONS menue :
Options --> Project Templates -->
activate : RunTimeSupport : Assembler
Project Template : DOS EXE ok
Options --> Build Options -->
activate : Use Debug Options ok
Options --> Language Options --> MASM-Options -->
activate : MASM 5.1 Compatibility
delete : Warnings treated as errors
go to --> Set Debug Options -->
activate : Generate Listing File
All the options are set you are able to build the
executable file.
Project -> Compile File : intExp.ASM : create obj only
--> Build : intExp.EXE : create exe file
--> Rebuild All : reaasemble/link
--> New Project : for multimodule programs
--> Open Project
To execute and debug the program :
Run --> Execute intExp.exe
Debug intExp.exe

More Related Content

Similar to i need the executable file of this program (.exe) This is Assembly.pdf

Similar to i need the executable file of this program (.exe) This is Assembly.pdf (20)

What is turbo c and how it works
What is turbo c and how it worksWhat is turbo c and how it works
What is turbo c and how it works
 
EMBEDDED SYSTEMS 4&5
EMBEDDED SYSTEMS 4&5EMBEDDED SYSTEMS 4&5
EMBEDDED SYSTEMS 4&5
 
C introduction
C introductionC introduction
C introduction
 
Debug tutorial
Debug tutorialDebug tutorial
Debug tutorial
 
Fp201 unit2 1
Fp201 unit2 1Fp201 unit2 1
Fp201 unit2 1
 
Introduction to c programming
Introduction to c programmingIntroduction to c programming
Introduction to c programming
 
Lec 04 intro assembly
Lec 04 intro assemblyLec 04 intro assembly
Lec 04 intro assembly
 
Basics Of C++.pptx
Basics Of C++.pptxBasics Of C++.pptx
Basics Of C++.pptx
 
C introduction
C introductionC introduction
C introduction
 
C programming
C programmingC programming
C programming
 
Introduction to C programming
Introduction to C programmingIntroduction to C programming
Introduction to C programming
 
2621008 - C++ 1
2621008 -  C++ 12621008 -  C++ 1
2621008 - C++ 1
 
Machine language
Machine languageMachine language
Machine language
 
Class 12 computer sample paper with answers
Class 12 computer sample paper with answersClass 12 computer sample paper with answers
Class 12 computer sample paper with answers
 
C notes.pdf
C notes.pdfC notes.pdf
C notes.pdf
 
The basics of c programming
The basics of c programmingThe basics of c programming
The basics of c programming
 
Swug July 2010 - windows debugging by sainath
Swug July 2010 - windows debugging by sainathSwug July 2010 - windows debugging by sainath
Swug July 2010 - windows debugging by sainath
 
C tutorials
C tutorialsC tutorials
C tutorials
 
C# Lab Programs.pdf
C# Lab Programs.pdfC# Lab Programs.pdf
C# Lab Programs.pdf
 
C# Lab Programs.pdf
C# Lab Programs.pdfC# Lab Programs.pdf
C# Lab Programs.pdf
 

More from fedosys

If messages are being sent from your email account without your know.pdf
If messages are being sent from your email account without your know.pdfIf messages are being sent from your email account without your know.pdf
If messages are being sent from your email account without your know.pdffedosys
 
Identify some of the postmodern trends movements that women artist .pdf
Identify some of the postmodern trends movements that women artist .pdfIdentify some of the postmodern trends movements that women artist .pdf
Identify some of the postmodern trends movements that women artist .pdffedosys
 
Help me fix the error shown above in my code of image.cpp please~I.pdf
Help me fix the error shown above in my code of image.cpp please~I.pdfHelp me fix the error shown above in my code of image.cpp please~I.pdf
Help me fix the error shown above in my code of image.cpp please~I.pdffedosys
 
Explain how the format of the mark-up language differs from the docu.pdf
Explain how the format of the mark-up language differs from the docu.pdfExplain how the format of the mark-up language differs from the docu.pdf
Explain how the format of the mark-up language differs from the docu.pdffedosys
 
Here is the given code, and the things I need to be done. Ive post.pdf
Here is the given code, and the things I need to be done. Ive post.pdfHere is the given code, and the things I need to be done. Ive post.pdf
Here is the given code, and the things I need to be done. Ive post.pdffedosys
 
Each student in my class was given bodily fluids. Everyone was n.pdf
Each student in my class was given bodily fluids. Everyone was n.pdfEach student in my class was given bodily fluids. Everyone was n.pdf
Each student in my class was given bodily fluids. Everyone was n.pdffedosys
 
Hello everyone,Im actually working on a fast food order program..pdf
Hello everyone,Im actually working on a fast food order program..pdfHello everyone,Im actually working on a fast food order program..pdf
Hello everyone,Im actually working on a fast food order program..pdffedosys
 
Describe the attributes that make a vision meaningful to stakeholder.pdf
Describe the attributes that make a vision meaningful to stakeholder.pdfDescribe the attributes that make a vision meaningful to stakeholder.pdf
Describe the attributes that make a vision meaningful to stakeholder.pdffedosys
 
Create a C program which auto-completes suggestions when beginning t.pdf
Create a C program which auto-completes suggestions when beginning t.pdfCreate a C program which auto-completes suggestions when beginning t.pdf
Create a C program which auto-completes suggestions when beginning t.pdffedosys
 
Compare the DHCP and DHCPv6SolutionThe comparison between the .pdf
Compare the DHCP and DHCPv6SolutionThe comparison between the .pdfCompare the DHCP and DHCPv6SolutionThe comparison between the .pdf
Compare the DHCP and DHCPv6SolutionThe comparison between the .pdffedosys
 
Consider in a given economy For a given time period the following in.pdf
Consider in a given economy For a given time period the following in.pdfConsider in a given economy For a given time period the following in.pdf
Consider in a given economy For a given time period the following in.pdffedosys
 
Background Many cities such as Detroit, MI have been in the news re.pdf
Background Many cities such as Detroit, MI have been in the news re.pdfBackground Many cities such as Detroit, MI have been in the news re.pdf
Background Many cities such as Detroit, MI have been in the news re.pdffedosys
 
Can someone put this code in a zip file. I tried running it last tim.pdf
Can someone put this code in a zip file. I tried running it last tim.pdfCan someone put this code in a zip file. I tried running it last tim.pdf
Can someone put this code in a zip file. I tried running it last tim.pdffedosys
 
Assignment 1. List the three visual elements Brieny descrbe each. 2 W.pdf
Assignment 1. List the three visual elements Brieny descrbe each. 2 W.pdfAssignment 1. List the three visual elements Brieny descrbe each. 2 W.pdf
Assignment 1. List the three visual elements Brieny descrbe each. 2 W.pdffedosys
 
A. Intergenic sequences make up 60 of the human genome. Where do t.pdf
A. Intergenic sequences make up 60 of the human genome. Where do t.pdfA. Intergenic sequences make up 60 of the human genome. Where do t.pdf
A. Intergenic sequences make up 60 of the human genome. Where do t.pdffedosys
 
a) How can habitat selection and sexual selection drive sympatric sp.pdf
a) How can habitat selection and sexual selection drive sympatric sp.pdfa) How can habitat selection and sexual selection drive sympatric sp.pdf
a) How can habitat selection and sexual selection drive sympatric sp.pdffedosys
 
A common test of balances in a revenue cycle is the inquiry of manage.pdf
A common test of balances in a revenue cycle is the inquiry of manage.pdfA common test of balances in a revenue cycle is the inquiry of manage.pdf
A common test of balances in a revenue cycle is the inquiry of manage.pdffedosys
 
7. Recently, Skooterville has experienced a large growth in populati.pdf
7. Recently, Skooterville has experienced a large growth in populati.pdf7. Recently, Skooterville has experienced a large growth in populati.pdf
7. Recently, Skooterville has experienced a large growth in populati.pdffedosys
 
50mL of a 0.1000 M aqueous solution of hydrazoic acid (HN3, Ka=1.91.pdf
50mL of a 0.1000 M aqueous solution of hydrazoic acid (HN3, Ka=1.91.pdf50mL of a 0.1000 M aqueous solution of hydrazoic acid (HN3, Ka=1.91.pdf
50mL of a 0.1000 M aqueous solution of hydrazoic acid (HN3, Ka=1.91.pdffedosys
 
4. For each of the following electrochemical cells i. Identify the a.pdf
4. For each of the following electrochemical cells i. Identify the a.pdf4. For each of the following electrochemical cells i. Identify the a.pdf
4. For each of the following electrochemical cells i. Identify the a.pdffedosys
 

More from fedosys (20)

If messages are being sent from your email account without your know.pdf
If messages are being sent from your email account without your know.pdfIf messages are being sent from your email account without your know.pdf
If messages are being sent from your email account without your know.pdf
 
Identify some of the postmodern trends movements that women artist .pdf
Identify some of the postmodern trends movements that women artist .pdfIdentify some of the postmodern trends movements that women artist .pdf
Identify some of the postmodern trends movements that women artist .pdf
 
Help me fix the error shown above in my code of image.cpp please~I.pdf
Help me fix the error shown above in my code of image.cpp please~I.pdfHelp me fix the error shown above in my code of image.cpp please~I.pdf
Help me fix the error shown above in my code of image.cpp please~I.pdf
 
Explain how the format of the mark-up language differs from the docu.pdf
Explain how the format of the mark-up language differs from the docu.pdfExplain how the format of the mark-up language differs from the docu.pdf
Explain how the format of the mark-up language differs from the docu.pdf
 
Here is the given code, and the things I need to be done. Ive post.pdf
Here is the given code, and the things I need to be done. Ive post.pdfHere is the given code, and the things I need to be done. Ive post.pdf
Here is the given code, and the things I need to be done. Ive post.pdf
 
Each student in my class was given bodily fluids. Everyone was n.pdf
Each student in my class was given bodily fluids. Everyone was n.pdfEach student in my class was given bodily fluids. Everyone was n.pdf
Each student in my class was given bodily fluids. Everyone was n.pdf
 
Hello everyone,Im actually working on a fast food order program..pdf
Hello everyone,Im actually working on a fast food order program..pdfHello everyone,Im actually working on a fast food order program..pdf
Hello everyone,Im actually working on a fast food order program..pdf
 
Describe the attributes that make a vision meaningful to stakeholder.pdf
Describe the attributes that make a vision meaningful to stakeholder.pdfDescribe the attributes that make a vision meaningful to stakeholder.pdf
Describe the attributes that make a vision meaningful to stakeholder.pdf
 
Create a C program which auto-completes suggestions when beginning t.pdf
Create a C program which auto-completes suggestions when beginning t.pdfCreate a C program which auto-completes suggestions when beginning t.pdf
Create a C program which auto-completes suggestions when beginning t.pdf
 
Compare the DHCP and DHCPv6SolutionThe comparison between the .pdf
Compare the DHCP and DHCPv6SolutionThe comparison between the .pdfCompare the DHCP and DHCPv6SolutionThe comparison between the .pdf
Compare the DHCP and DHCPv6SolutionThe comparison between the .pdf
 
Consider in a given economy For a given time period the following in.pdf
Consider in a given economy For a given time period the following in.pdfConsider in a given economy For a given time period the following in.pdf
Consider in a given economy For a given time period the following in.pdf
 
Background Many cities such as Detroit, MI have been in the news re.pdf
Background Many cities such as Detroit, MI have been in the news re.pdfBackground Many cities such as Detroit, MI have been in the news re.pdf
Background Many cities such as Detroit, MI have been in the news re.pdf
 
Can someone put this code in a zip file. I tried running it last tim.pdf
Can someone put this code in a zip file. I tried running it last tim.pdfCan someone put this code in a zip file. I tried running it last tim.pdf
Can someone put this code in a zip file. I tried running it last tim.pdf
 
Assignment 1. List the three visual elements Brieny descrbe each. 2 W.pdf
Assignment 1. List the three visual elements Brieny descrbe each. 2 W.pdfAssignment 1. List the three visual elements Brieny descrbe each. 2 W.pdf
Assignment 1. List the three visual elements Brieny descrbe each. 2 W.pdf
 
A. Intergenic sequences make up 60 of the human genome. Where do t.pdf
A. Intergenic sequences make up 60 of the human genome. Where do t.pdfA. Intergenic sequences make up 60 of the human genome. Where do t.pdf
A. Intergenic sequences make up 60 of the human genome. Where do t.pdf
 
a) How can habitat selection and sexual selection drive sympatric sp.pdf
a) How can habitat selection and sexual selection drive sympatric sp.pdfa) How can habitat selection and sexual selection drive sympatric sp.pdf
a) How can habitat selection and sexual selection drive sympatric sp.pdf
 
A common test of balances in a revenue cycle is the inquiry of manage.pdf
A common test of balances in a revenue cycle is the inquiry of manage.pdfA common test of balances in a revenue cycle is the inquiry of manage.pdf
A common test of balances in a revenue cycle is the inquiry of manage.pdf
 
7. Recently, Skooterville has experienced a large growth in populati.pdf
7. Recently, Skooterville has experienced a large growth in populati.pdf7. Recently, Skooterville has experienced a large growth in populati.pdf
7. Recently, Skooterville has experienced a large growth in populati.pdf
 
50mL of a 0.1000 M aqueous solution of hydrazoic acid (HN3, Ka=1.91.pdf
50mL of a 0.1000 M aqueous solution of hydrazoic acid (HN3, Ka=1.91.pdf50mL of a 0.1000 M aqueous solution of hydrazoic acid (HN3, Ka=1.91.pdf
50mL of a 0.1000 M aqueous solution of hydrazoic acid (HN3, Ka=1.91.pdf
 
4. For each of the following electrochemical cells i. Identify the a.pdf
4. For each of the following electrochemical cells i. Identify the a.pdf4. For each of the following electrochemical cells i. Identify the a.pdf
4. For each of the following electrochemical cells i. Identify the a.pdf
 

Recently uploaded

HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxEsquimalt MFRC
 
How to Manage Call for Tendor in Odoo 17
How to Manage Call for Tendor in Odoo 17How to Manage Call for Tendor in Odoo 17
How to Manage Call for Tendor in Odoo 17Celine George
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17Celine George
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxDr. Ravikiran H M Gowda
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...Amil baba
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxJisc
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxmarlenawright1
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxDenish Jangid
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jisc
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxDr. Sarita Anand
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSCeline George
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structuredhanjurrannsibayan2
 
Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111GangaMaiya1
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxannathomasp01
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxheathfieldcps1
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfSherif Taha
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxPooja Bhuva
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17Celine George
 
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxPooja Bhuva
 

Recently uploaded (20)

HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
Call Girls in Uttam Nagar (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in  Uttam Nagar (delhi) call me [🔝9953056974🔝] escort service 24X7Call Girls in  Uttam Nagar (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in Uttam Nagar (delhi) call me [🔝9953056974🔝] escort service 24X7
 
How to Manage Call for Tendor in Odoo 17
How to Manage Call for Tendor in Odoo 17How to Manage Call for Tendor in Odoo 17
How to Manage Call for Tendor in Odoo 17
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17
 
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
 

i need the executable file of this program (.exe) This is Assembly.pdf

  • 1. i need the executable file of this program (.exe) This is Assembly code This program calculates the integer expression A=(A+B)-(C+D) using registers INCLUDE Irvine32.inc. data A DWORD 150 B DWORD 100 C DWORD 50 D DWORD 40 .code main PROC; save the integer values in registers mov eax, A; EAX=150 mov ebx.B; EBX=100 mov ecx.C; ECX=50 mov edx.D; EDX=40; calculates the integer expression add eax.ebx; EAX: (A+B) add ecx.edx; ECX: (C+D) sub eax.ecx; EAX: (A+B)- (C+D) mov A.eax; A=(A+B)-(C+D) exit main ENDP END main Here the name of program file is intExp.asm; the program contains comments starting with a semicolon (;) symbol. Solution Ans: Its not possible to upload the file. The following steps you can get your intExp.exe from intExp.asm. Step 1: a) Open a MS-DOS window b) your program as intExp.asm c) Assemble the program with C:> MASM demo MASM will create an object file intExp.obj Set your path variable to MASM.EXE] d) Link the program with C:> LINK intExp ( + prog1 + prog2 ....) This adds info to intExp.obj and creates the executable intExp.exe. e) Run the program with C:> intExp intExp expects the input of a character from KB: and sends it to the screen. 2. Do Assembly and Linkage in one Step From MASM 6.0 on MicroSoft delivered a program ML that allowed to do assembly and linkage in one step. C:> ML intExp.asm : creates intExp.exe Useful switches : /Zi : add debug info ( codeview) /Fl : add a list file demo.lst /Fm : add a map file demo.map
  • 2. A complete call looks like : C:> ML /Zi /Fl /Fm intExp.asm Have a look at intExp.lst, intExp.map. The full list of options is available via : C:> MASM /H C:> LINK /HELP ; LINK /? C:> ML /HELP ; ML /? BORLAND version : For Borland environment ( C:>BC5TASM....) Prefer to use Borland assembler TASM and linker TLINK. Assembly : C:> TASM /l /n /z intExp creates intExp.obj Switches : /l : create listing intExp.lst /n : no symbol table /z : display source lines with errors Linkage : C:> TLINK /3 /m /v intExp creates intExp.exe Switches : /3 : use 32-bit registers /m : create map file intExp.map /v : add debug info for the debugger TD List of all options : C:> TASM /? ; C:> TLINK /? 3. IDE : PWB Start : Doubleclick the PWB icon or use a DOS window and type C:> PWB The edit-part of the functionality should be self. File --> -New / -Open / - Save / -Save as / -Close / -Exit Edit --> -Cut / -Copy / -Paste / -Delete .. Before you can convert the asm source code into an exe file you should tell PWB which kind of executable you want to build. It can done by setting many options in the OPTIONS menue : Options --> Project Templates --> activate : RunTimeSupport : Assembler Project Template : DOS EXE ok Options --> Build Options --> activate : Use Debug Options ok
  • 3. Options --> Language Options --> MASM-Options --> activate : MASM 5.1 Compatibility delete : Warnings treated as errors go to --> Set Debug Options --> activate : Generate Listing File All the options are set you are able to build the executable file. Project -> Compile File : intExp.ASM : create obj only --> Build : intExp.EXE : create exe file --> Rebuild All : reaasemble/link --> New Project : for multimodule programs --> Open Project To execute and debug the program : Run --> Execute intExp.exe Debug intExp.exe