220 likes | 391 Views
Assembly Language. Introduction Installation of MASM Installation of TextPad. Install MASM6.15. INSTALLATION. 1.Click SETUP -follow the instruction 2.Click folder TextPad – click TextPad4 -follow the instruction.
E N D
Assembly Language Introduction Installation of MASM Installation of TextPad
INSTALLATION 1.Click SETUP -follow the instruction 2.Click folder TextPad – click TextPad4 -follow the instruction
TASK 1 : To configure TextPadand to enable it run a program- Open TextPad- menu configure - preferences
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 contentsStep 1
Step 4 ** if the MASM6.syn file did not yet copy to System, this function is not available.
TITLE Add and Subtract (Add1.asm); This program adds and subtracts 32-bit integers.; Last update: 2/1/02INCLUDE Irvine32.inc.codemain PROCmov eax,10000h ; EAX = 10000h add eax,40000h ; EAX = 50000h sub eax,20000h ; EAX = 30000h call DumpRegs exitmain ENDPEND main
Output EAX = is a register that carries answer for the program