Assembly Languange Introduction Installation of MASM Installation of
Assembly Languange Introduction Installation of MASM Installation of Text. Pad
Install MASM 6. 15
INSTALLATION 1. Click SETUP -follow the instruction 2. Click folder Text. Pad – click Text. Pad 4 -follow the instruction
TASK 1 : To configure Text. Pad and to enable it run a program - Open Text. Pad - menu configure - preferences
Step 1 - Tool – Add - DOS Command
1. 2. 3. 4. 5. Write - make 32. bat $Base. Name OK Apply Rename = Build 32 -bit MASM OK
Step 2 - Tool – Add - DOS Command 1. 2. 3. 4. 5. 6. Write - $Base. Name OK Apply Rename = Run ASM Prog uncheck =Capture Output OK
Step 3 - Tool – Add - DOS Command 1. 2. 3. 4. 5. Write - C: Masm 615run. CV. bat $Base. Name OK Apply Rename = Debug 32 -bit MASM OK
TASK 2 : to copy MASM files into desired place/folders Step 1 ◦ From F: MASM 6. 15 For. StudentsText. Pad ◦ Copy MASM 6. syn ◦ Paste to C: Program FilesText. Pad 4System
TASK 3 : To copy MAKE 32 files into desired place/folders Step 2 ◦ From C: Masm 615 ◦ Copy Make 32 ◦ Paste to folder of your source file Eg : F: MASM SOURCE FILES
TASK 4 : To make Text. Pad enable to differentiate the program contents Step 1
Step 2
Step 3
Step 4 ** if the MASM 6. syn file did not yet copy to System, this function is not available.
Step 5
To build a program
TITLE Add and Subtract (Add 1. asm) ; This program adds and subtracts 32 -bit integers. ; Last update: 2/1/02 INCLUDE Irvine 32. inc. code main PROC mov eax, 10000 h add eax, 40000 h sub eax, 20000 h call Dump. Regs exit main ENDP END main ; EAX = 10000 h ; EAX = 50000 h ; EAX = 30000 h
Command results
To run a program
Output EAX = is a register that carries answer for the program
Assembly-Link-Execute Cycle
- Slides: 22