Download presentation
Presentation is loading. Please wait.
Published byΑρμονία Καζαντζής Modified over 5 years ago
1
Introduction Installation of MASM Installation of TextPad
Assembly Languange Introduction Installation of MASM Installation of TextPad
2
Install MASM6.15
3
INSTALLATION 1.Click SETUP -follow the instruction 2.Click folder TextPad – click TextPad4
4
TASK 1 : To configure TextPad and to enable it run a program - Open TextPad - menu configure - preferences
5
Step 1 - Tool – Add - DOS Command
6
1. Write - make32.bat $BaseName
2. OK 3. Apply 4. Rename = Build32-bit MASM 5. OK
7
Step 2 - Tool – Add - DOS Command
1. Write - $BaseName 2. OK 3. Apply 4. Rename = Run ASM Prog 5. uncheck =Capture Output 6. OK
8
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
9
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
10
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
11
TASK 4 : To make TextPad enable to differentiate the program contents Step 1
12
Step 2
13
Step 3
14
Step 4 ** if the MASM6.syn file did not yet copy to System, this function is not available.
15
Step 5
16
To build a program
17
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
18
Command results
19
To run a program
20
Output EAX = is a register that carries answer for the program
21
Assembly-Link-Execute Cycle
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.