Introduction Installation of MASM Installation of TextPad Assembly Languange Introduction Installation of MASM Installation of TextPad
Install MASM6.15
INSTALLATION 1.Click SETUP -follow the instruction 2.Click folder TextPad – click TextPad4
TASK 1 : To configure TextPad and to enable it run a program - Open TextPad - menu configure - preferences
Step 1 - Tool – Add - DOS Command
1. Write - make32.bat $BaseName 2. OK 3. Apply 4. Rename = Build32-bit MASM 5. OK
Step 2 - Tool – Add - DOS Command 1. Write - $BaseName 2. OK 3. Apply 4. Rename = Run ASM Prog 5. uncheck =Capture Output 6. OK
Step 3 - Tool – Add - DOS Command 1. Write - C:\Masm615\runCV.bat $BaseName 2. OK 3. Apply 4. Rename = Debug 32-bit MASM 5. OK
TASK 2 : to copy MASM files into desired place/folders Step 1 From F:\MASM6.15ForStudents\TextPad Copy MASM6.syn Paste to C:\Program Files\TextPad 4\System
TASK 3 :To copy MAKE32 files into desired place/folders Step 2 From C:\Masm615 Copy Make32 Paste to folder of your source file Eg : F:\MASM SOURCE FILES
TASK 4 : To make TextPad enable to differentiate the program contents Step 1
Step 2
Step 3
Step 4 ** if the MASM6.syn file did not yet copy to System, this function is not available.
Step 5
To build a program
TITLE Add and Subtract (Add1 TITLE Add and Subtract (Add1.asm) ; This program adds and subtracts 32-bit integers. ; Last update: 2/1/02 INCLUDE Irvine32.inc .code main PROC mov eax,10000h ; EAX = 10000h add eax,40000h ; EAX = 50000h sub eax,20000h ; EAX = 30000h call DumpRegs exit main ENDP END main
Command results
To run a program
Output EAX = is a register that carries answer for the program
Assembly-Link-Execute Cycle