Assembly language

1,172 views

Published on

Published in: Education
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
1,172
On SlideShare
0
From Embeds
0
Number of Embeds
110
Actions
Shares
0
Downloads
56
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Assembly language

  1. 1. Prof. Jalindar Baban Karande
  2. 2. Processor Architecture and Interfacing, SE(Information Technology) prof. Jalindar Baban Karande Slide 2
  3. 3. Functional Groups of Example Instructions Programs Basic Building Blocks of Code ToolsProcessor Architecture and Interfacing, SE(Information Technology) prof. Jalindar Baban Karande Slide 3
  4. 4. Tools Assemblere.g. TASM, MASM, NASM and many more Source Code Assembler Machine Code Processor Architecture and Interfacing, SE(Information Technology) prof. Jalindar Baban Karande Slide 4
  5. 5. Linker [e.g Tlink]Processor Architecture and Interfacing, SE(Information Technology) prof. Jalindar Baban Karande Slide 5
  6. 6. Loader Loads object codes into memory for executionDebugger [e.g TD] A debugger or debugging tool is a computer program that is used to test and debug other programs.Processor Architecture and Interfacing, SE(Information Technology) prof. Jalindar Baban Karande Slide 6
  7. 7. Basic Building Blocks Assembler Directives SEGMENTS and ENDS Naming Data and Addresses  EQU  DB  DW  DD Types of numbersProcessor Architecture and Interfacing, SE(Information Technology) prof. Jalindar Baban Karande Slide 7
  8. 8. Example CodeDATA SEGMENT FIRST DW 1234H SECOND DW 0002H RESULT DW 01 DUP(0)DATA ENDsCODE SEGMENT ASSUME CS:CODE,DS:DATASTART: MOV AX,DATA ; INIT DS REGISTER MOV DS,AX MOV AX,FIRST MOV BX,SECOND ADD AX,BX MOV RESULT,AXCODE ENDS END STARTProcessor Architecture and Interfacing, SE(Information Technology) prof. Jalindar Baban Karande Slide 8
  9. 9. Discussion on Example Code Named Variable ASSUME directive Initializing Segment registers END directive Labels [ not in example program]Processor Architecture and Interfacing, SE(Information Technology) prof. Jalindar Baban Karande Slide 9
  10. 10. Data transfer instructions MOV PUSH POP PUSHA POPA XCHG XLAT And many moreProcessor Architecture and Interfacing, SE(Information Technology) prof. Jalindar Baban Karande Slide 10
  11. 11. Arithmetic Instructions ADD ADC INC AAA DAAProcessor Architecture and Interfacing, SE(Information Technology) prof. Jalindar Baban Karande Slide 11
  12. 12. Functional Groups Data Transfer Arithmetic Bit Manipulation String instruction Program execution transfer Processor control instructionsProcessor Architecture and Interfacing, SE(Information Technology) prof. Jalindar Baban Karande Slide 12
  13. 13. References Douglas V. Hall, Chapter 3. “8086 Assembly language Programming -An Introduction”, “Microprocessor and Interfacing”, Tata McGraw Hill, Second Edition.Processor Architecture and Interfacing, SE(Information Technology) prof. Jalindar Baban Karande Slide 13

×