Assembly Language And
Microprocessor
Online Class-3.
Md. Atiqur Rahman (Guest Lecturer )
Habibullah Bahar University collage
Assembly Language
• It is low level language.
• It work direct with the microprocessor.
• It is the final product that is produced by every compiler.
Example: 2
Example
Advance and Comparison with high level
language
• Performance and accuracy better than high level .
• Assembly can communicate better than high level.
• We can use assembly language to direct read pointer at physical address.
• And can control the machine code better …
Create, run an assembly language program
• Create the source program .
• Assembler the program .
• Link the program.
• Run the program.
Type of Register
Programing process :
• Register Address: Both Operands are register like as : Reg, Reg.
i.e. Mov bx,dx
• Immediate Register: one Operands and constant term: i.e mov ax, value
• Memory Addressing: access static data directly . i.e reg, [30h]
Important parts for programing
• 1= input a character with echo.
• 2=output/print a single character.
• 8= input a character without echo.
• 9= print of string ..
• 4ch for Exit
Interrupt
• Stop the current program and allow microprocessor to access hardware to
take input or given output .
• INT 21h= interrupt for text handling.
For input : Mov ah, 1 for output: Mov ah,2
Int 21h int 21h
Thanks

Micro lec-03

  • 1.
    Assembly Language And Microprocessor OnlineClass-3. Md. Atiqur Rahman (Guest Lecturer ) Habibullah Bahar University collage
  • 3.
    Assembly Language • Itis low level language. • It work direct with the microprocessor. • It is the final product that is produced by every compiler.
  • 4.
  • 6.
  • 7.
    Advance and Comparisonwith high level language • Performance and accuracy better than high level . • Assembly can communicate better than high level. • We can use assembly language to direct read pointer at physical address. • And can control the machine code better …
  • 9.
    Create, run anassembly language program • Create the source program . • Assembler the program . • Link the program. • Run the program.
  • 11.
  • 12.
    Programing process : •Register Address: Both Operands are register like as : Reg, Reg. i.e. Mov bx,dx • Immediate Register: one Operands and constant term: i.e mov ax, value • Memory Addressing: access static data directly . i.e reg, [30h]
  • 13.
    Important parts forprograming • 1= input a character with echo. • 2=output/print a single character. • 8= input a character without echo. • 9= print of string .. • 4ch for Exit
  • 14.
    Interrupt • Stop thecurrent program and allow microprocessor to access hardware to take input or given output . • INT 21h= interrupt for text handling. For input : Mov ah, 1 for output: Mov ah,2 Int 21h int 21h
  • 15.