1 / 22

Assembly Language

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.

kovit
Download Presentation

Assembly Language

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Assembly Language 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 -follow the instruction

  4. TASK 1 : To configure TextPadand 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 contentsStep 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.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

  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

More Related