i need the executable file of this program exe This is Assem

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:>\\BC5\\TASM....)

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

  

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 Irv
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 Irv
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 Irv

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site