Your SlideShare is downloading. ×
  • Like
Assembly language
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×

Now you can save presentations on your phone or tablet

Available for both IPhone and Android

Text the download link to your phone

Standard text messaging rates apply

Assembly language

  • 885 views
Published

 

Published in Education
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
885
On SlideShare
0
From Embeds
0
Number of Embeds
4

Actions

Shares
Downloads
45
Comments
0
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. Prof. Jalindar Baban Karande
  • 2. Processor Architecture and Interfacing, SE(Information Technology) prof. Jalindar Baban Karande Slide 2
  • 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. 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. Linker [e.g Tlink]Processor Architecture and Interfacing, SE(Information Technology) prof. Jalindar Baban Karande Slide 5
  • 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. 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. 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. 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. 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. Arithmetic Instructions ADD ADC INC AAA DAAProcessor Architecture and Interfacing, SE(Information Technology) prof. Jalindar Baban Karande Slide 11
  • 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. 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