SlideShare una empresa de Scribd logo
1 de 29
Descargar para leer sin conexión
Assembly Language Fundamentals of Assembly language Motaz K. Saad Spring 2007 Motaz K. Saad, Dept. of CS
Instruction Execution and Addressing ,[object Object],[object Object],Motaz K. Saad, Dept. of CS
26AE CS 0044 IP Instruction address = ??????? Motaz K. Saad, Dept. of CS
26AE CS 0044 IP Instruction address = 26AE0 +  0044 _______________________   26B24  25BD DS A03F00 26B24 Data address=?????? Motaz K. Saad, Dept. of CS
26AE CS 0044 IP Data  address = 25BD0   +  003F _______________________   25C0F   25BD DS Motaz K. Saad, Dept. of CS
Review old concepts ,[object Object],[object Object],[object Object],[object Object],Motaz K. Saad, Dept. of CS
Example program ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Motaz K. Saad, Dept. of CS
; <your comments> ; Add two numbers and store the results into the third variable TITLE A04ASM1 (EXE)  Move and add operations ; --------------------------------------------- .STACK ; ---------------------------------------------- .DATA FLDD DW   215 FLDE DW   125 FLDF DW   ? ; ----------------------------------------------- .CODE MAIN PROC  MOV  AX,@DATA ;Set address of data  MOV  DS,AX ;  segment in DS  MOV  AX,FLDD ;Move 0215 to AX ADD AX,FLDE ;Add  0125 to AX MOV FLDF,AX ;Store sum in FLDF MOV  AX,4C00H ;End processing INT 21H MAIN ENDP ;End of procedure END   MAIN ;End of program Comments COMMENTS Motaz K. Saad, Dept. of CS
; Add two numbers and store the results into the third variable TITLE A04ASM1 (EXE)  Move and add operations ; --------------------------------------------- .STACK ; ---------------------------------------------- .DATA FLDD DW   0215H FLDE DW   0125H FLDF DW   ? ; ----------------------------------------------- .CODE MAIN PROC MOV  @DATA ;Set address of data  MOV  DS,AX ;Segment in DS  MOV   AX,FLDD ;Move 0215 to AX ADD   AX,FLDE ;Add  0125 to AX MOV   FLDF,AX ;Store sum in FLDF MOV   AX,4C00H ;End processing INT   21H MAIN ENDP ;End of procedure END   MAIN ;End of program IDENTIFIERS Motaz K. Saad, Dept. of CS
Identifiers ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Motaz K. Saad, Dept. of CS
Practice ,[object Object],[object Object],[object Object],Motaz K. Saad, Dept. of CS
[object Object],[object Object],[object Object],[object Object],[object Object],RESERVED WORDS Motaz K. Saad, Dept. of CS
STATEMENT ,[object Object],[object Object],[object Object],[object Object],Motaz K. Saad, Dept. of CS
; Add two numbers and store the results into the third variable page  60,132 TITLE A04ASM1 (EXE)  Move and add operations ; --------------------------------------------- .STACK ; ---------------------------------------------- .DATA FLDD DW   215 FLDE DW   125 FLDF DW   ? ; ----------------------------------------------- .CODE MAIN PROC MOV  AX,@DATA ;Set address of data  MOV  DS,AX ;Segment in DS  MOV   AX,FLDD ;Move 0215 to AX ADD   AX,FLDE ;Add  0125 to AX MOV   FLDF,AX ;Store sum in FLDF MOV   AX,4C00H ;End processing INT   21H MAIN ENDP ;End of procedure END   MAIN ;End of program STATEMENTS Motaz K. Saad, Dept. of CS
Directives ,[object Object],[object Object],Motaz K. Saad, Dept. of CS
; Add two numbers and store the results into the third variable page  60,132 page [length(10-255)],[width(60-132)] TITLE A04ASM1 (EXE)  Move and add operations ; --------------------------------------------- .STACK ; ---------------------------------------------- .DATA FLDD DW   215 FLDE DW   125 FLDF DW   ? ; ----------------------------------------------- .CODE MAIN PROC MOV  AX,@DATA ;Set address of data  MOV  DS,AX ;Segment in DS  MOV   AX,FLDD ;Move 0215 to AX ADD   AX,FLDE ;Add  0125 to AX MOV   FLDF,AX ;Store sum in FLDF MOV   AX,4C00H ;End processing INT   21H MAIN ENDP ;End of procedure END   MAIN ;End of program Page directive Motaz K. Saad, Dept. of CS
; Add two numbers and store the results into the third variable page  10,70 TITLE A04ASM1 (EXE)  Move and add operations ; --------------------------------------------- .STACK ; ---------------------------------------------- .DATA FLDD DW   215 FLDE DW   125 FLDF DW   ? ; ----------------------------------------------- .CODE MAIN PROC MOV  AX,@DATA ;Set address of data  MOV  DS,AX ;Segment in DS  MOV   AX,FLDD ;Move 0215 to AX ADD   AX,FLDE ;Add  0125 to AX MOV   FLDF,AX ;Store sum in FLDF MOV   AX,4C00H ;End processing INT   21H MAIN ENDP ;End of procedure END   MAIN ;End of program Page directive Motaz K. Saad, Dept. of CS
Title directive Motaz K. Saad, Dept. of CS ; Add two numbers and store the results into the third variable page  10,70 TITLE A04ASM1 (EXE)  Move and add operations ; --------------------------------------------- .STACK ; ---------------------------------------------- .DATA FLDD DW   215 FLDE DW   125 FLDF DW   ? ; ----------------------------------------------- .CODE MAIN PROC MOV  AX,@DATA ;Set address of data  MOV  DS,AX ;Segment in DS  MOV   AX,FLDD ;Move 0215 to AX ADD   AX,FLDE ;Add  0125 to AX MOV   FLDF,AX ;Store sum in FLDF MOV   AX,4C00H ;End processing INT   21H MAIN ENDP ;End of procedure END   MAIN ;End of program
; Add two numbers and store the results into the third variable page  60,132 TITLE A04ASM1 (EXE)  Move and add operations ; --------------------------------------------- .STACK ; ---------------------------------------------- .DATA FLDD DW   215 FLDE DW   125 FLDF DW   ? ; ----------------------------------------------- .CODE MAIN PROC MOV  AX,@DATA ;Set address of data  MOV   FLDF,AX ;Store sum in FLDF MOV   AX,4C00H ;End processing INT   21H MAIN ENDP ;End of procedure END   MAIN ;End of program Segment directive Motaz K. Saad, Dept. of CS
; Add two numbers and store the results into the third variable page  60,132 TITLE A04ASM1 (EXE)  Move and add operations ; --------------------------------------------- .STACK ; ---------------------------------------------- .DATA FLDD DW   215 FLDE DW   125 FLDF DW   ? ; ----------------------------------------------- .CODE MAIN PROC MOV  AX,@DATA ;Set address of data  MOV  DS,AX ;Segment in DS  MOV   AX,FLDD ;Move 0215 to AX MOV   FLDF,AX ;Store sum in FLDF MOV   AX,4C00H ;End processing INT   21H MAIN ENDP ; End of procedure END   MAIN ;End of program PROC directive Motaz K. Saad, Dept. of CS
PROC directive ,[object Object],[object Object],[object Object],[object Object],Motaz K. Saad, Dept. of CS
Simplified Segment Directives ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Motaz K. Saad, Dept. of CS
Simplified Segment Directives ,[object Object],[object Object],[object Object],[object Object],Motaz K. Saad, Dept. of CS
Data type ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Motaz K. Saad, Dept. of CS
Data type ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Motaz K. Saad, Dept. of CS
Directives for defining Data ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Motaz K. Saad, Dept. of CS
Some instructions on arithmetic calculation ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Motaz K. Saad, Dept. of CS
Some instructions on arithmetic calculation ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Motaz K. Saad, Dept. of CS
Practice ,[object Object],[object Object],[object Object],[object Object],Motaz K. Saad, Dept. of CS

Más contenido relacionado

La actualidad más candente

Multiplication & division instructions microprocessor 8086
Multiplication & division instructions microprocessor 8086Multiplication & division instructions microprocessor 8086
Multiplication & division instructions microprocessor 8086University of Gujrat, Pakistan
 
assembly language programming organization of IBM PC chapter 9 part-2(decimal...
assembly language programming organization of IBM PC chapter 9 part-2(decimal...assembly language programming organization of IBM PC chapter 9 part-2(decimal...
assembly language programming organization of IBM PC chapter 9 part-2(decimal...Bilal Amjad
 
Assembly Language Programming By Ytha Yu, Charles Marut Chap 7 (Logic, Shift,...
Assembly Language Programming By Ytha Yu, Charles Marut Chap 7 (Logic, Shift,...Assembly Language Programming By Ytha Yu, Charles Marut Chap 7 (Logic, Shift,...
Assembly Language Programming By Ytha Yu, Charles Marut Chap 7 (Logic, Shift,...Bilal Amjad
 
Assembly Language Programming By Ytha Yu, Charles Marut Chap 4 (Introduction ...
Assembly Language Programming By Ytha Yu, Charles Marut Chap 4 (Introduction ...Assembly Language Programming By Ytha Yu, Charles Marut Chap 4 (Introduction ...
Assembly Language Programming By Ytha Yu, Charles Marut Chap 4 (Introduction ...Bilal Amjad
 
8086 instructions
8086 instructions8086 instructions
8086 instructionsRavi Anand
 
Chapter 5The proessor status and the FLAGS registers
Chapter 5The proessor status and the FLAGS registersChapter 5The proessor status and the FLAGS registers
Chapter 5The proessor status and the FLAGS registerswarda aziz
 
instruction set of 8086
instruction set of 8086instruction set of 8086
instruction set of 8086muneer.k
 
Assembly Langauge Chap 1
Assembly Langauge Chap 1Assembly Langauge Chap 1
Assembly Langauge Chap 1warda aziz
 
Chapter 6 Flow control Instructions
Chapter 6 Flow control InstructionsChapter 6 Flow control Instructions
Chapter 6 Flow control Instructionswarda aziz
 
03 Writing Control Structures, Writing with Compatible Data Types Using Expli...
03 Writing Control Structures, Writing with Compatible Data Types Using Expli...03 Writing Control Structures, Writing with Compatible Data Types Using Expli...
03 Writing Control Structures, Writing with Compatible Data Types Using Expli...rehaniltifat
 
Bcd arithmetic instructions
Bcd arithmetic instructionsBcd arithmetic instructions
Bcd arithmetic instructionsDr. Girish GS
 
chapter 7 Logic, shift and rotate instructions
chapter 7 Logic, shift and rotate instructionschapter 7 Logic, shift and rotate instructions
chapter 7 Logic, shift and rotate instructionswarda aziz
 
MASM -UNIT-III
MASM -UNIT-IIIMASM -UNIT-III
MASM -UNIT-IIIDr.YNM
 
Representation of numbers and characters
Representation of numbers and charactersRepresentation of numbers and characters
Representation of numbers and characterswarda aziz
 
assembly language programming and organization of IBM PC" by YTHA YU
assembly language programming and organization of IBM PC" by YTHA YUassembly language programming and organization of IBM PC" by YTHA YU
assembly language programming and organization of IBM PC" by YTHA YUEducation
 
Assembly language (coal)
Assembly language (coal)Assembly language (coal)
Assembly language (coal)Hareem Aslam
 
Lecture 3,4
Lecture 3,4Lecture 3,4
Lecture 3,4shah zeb
 
Lecture 3,4
Lecture 3,4Lecture 3,4
Lecture 3,4shah zeb
 

La actualidad más candente (20)

Multiplication & division instructions microprocessor 8086
Multiplication & division instructions microprocessor 8086Multiplication & division instructions microprocessor 8086
Multiplication & division instructions microprocessor 8086
 
assembly language programming organization of IBM PC chapter 9 part-2(decimal...
assembly language programming organization of IBM PC chapter 9 part-2(decimal...assembly language programming organization of IBM PC chapter 9 part-2(decimal...
assembly language programming organization of IBM PC chapter 9 part-2(decimal...
 
Assembly Language Programming By Ytha Yu, Charles Marut Chap 7 (Logic, Shift,...
Assembly Language Programming By Ytha Yu, Charles Marut Chap 7 (Logic, Shift,...Assembly Language Programming By Ytha Yu, Charles Marut Chap 7 (Logic, Shift,...
Assembly Language Programming By Ytha Yu, Charles Marut Chap 7 (Logic, Shift,...
 
Assembly Language Programming By Ytha Yu, Charles Marut Chap 4 (Introduction ...
Assembly Language Programming By Ytha Yu, Charles Marut Chap 4 (Introduction ...Assembly Language Programming By Ytha Yu, Charles Marut Chap 4 (Introduction ...
Assembly Language Programming By Ytha Yu, Charles Marut Chap 4 (Introduction ...
 
8086 instructions
8086 instructions8086 instructions
8086 instructions
 
Chapter 5The proessor status and the FLAGS registers
Chapter 5The proessor status and the FLAGS registersChapter 5The proessor status and the FLAGS registers
Chapter 5The proessor status and the FLAGS registers
 
Assembly Language -I
Assembly Language -IAssembly Language -I
Assembly Language -I
 
instruction set of 8086
instruction set of 8086instruction set of 8086
instruction set of 8086
 
Assembly Langauge Chap 1
Assembly Langauge Chap 1Assembly Langauge Chap 1
Assembly Langauge Chap 1
 
Chapter 6 Flow control Instructions
Chapter 6 Flow control InstructionsChapter 6 Flow control Instructions
Chapter 6 Flow control Instructions
 
03 Writing Control Structures, Writing with Compatible Data Types Using Expli...
03 Writing Control Structures, Writing with Compatible Data Types Using Expli...03 Writing Control Structures, Writing with Compatible Data Types Using Expli...
03 Writing Control Structures, Writing with Compatible Data Types Using Expli...
 
Bcd arithmetic instructions
Bcd arithmetic instructionsBcd arithmetic instructions
Bcd arithmetic instructions
 
chapter 7 Logic, shift and rotate instructions
chapter 7 Logic, shift and rotate instructionschapter 7 Logic, shift and rotate instructions
chapter 7 Logic, shift and rotate instructions
 
pushdown automata
pushdown automatapushdown automata
pushdown automata
 
MASM -UNIT-III
MASM -UNIT-IIIMASM -UNIT-III
MASM -UNIT-III
 
Representation of numbers and characters
Representation of numbers and charactersRepresentation of numbers and characters
Representation of numbers and characters
 
assembly language programming and organization of IBM PC" by YTHA YU
assembly language programming and organization of IBM PC" by YTHA YUassembly language programming and organization of IBM PC" by YTHA YU
assembly language programming and organization of IBM PC" by YTHA YU
 
Assembly language (coal)
Assembly language (coal)Assembly language (coal)
Assembly language (coal)
 
Lecture 3,4
Lecture 3,4Lecture 3,4
Lecture 3,4
 
Lecture 3,4
Lecture 3,4Lecture 3,4
Lecture 3,4
 

Destacado

Browsing The Source Code of Linux Packages
Browsing The Source Code of Linux PackagesBrowsing The Source Code of Linux Packages
Browsing The Source Code of Linux PackagesMotaz Saad
 
Knowledge discovery thru data mining
Knowledge discovery thru data miningKnowledge discovery thru data mining
Knowledge discovery thru data miningDevakumar Jain
 
Open Source Business Models
Open Source Business ModelsOpen Source Business Models
Open Source Business ModelsMotaz Saad
 
Cross Language Concept Mining
Cross Language Concept Mining Cross Language Concept Mining
Cross Language Concept Mining Motaz Saad
 
3.7 outlier analysis
3.7 outlier analysis3.7 outlier analysis
3.7 outlier analysisKrish_ver2
 
مقدمة في تكنواوجيا المعلومات
مقدمة في تكنواوجيا المعلوماتمقدمة في تكنواوجيا المعلومات
مقدمة في تكنواوجيا المعلوماتMotaz Saad
 
Hewahi, saad 2006 - class outliers mining distance-based approach
Hewahi, saad   2006 - class outliers mining distance-based approachHewahi, saad   2006 - class outliers mining distance-based approach
Hewahi, saad 2006 - class outliers mining distance-based approachMotaz Saad
 
Class Outlier Mining
Class Outlier MiningClass Outlier Mining
Class Outlier MiningMotaz Saad
 
OS Lab: Introduction to Linux
OS Lab: Introduction to LinuxOS Lab: Introduction to Linux
OS Lab: Introduction to LinuxMotaz Saad
 
Browsing Linux Kernel Source
Browsing Linux Kernel SourceBrowsing Linux Kernel Source
Browsing Linux Kernel SourceMotaz Saad
 
The x86 Family
The x86 FamilyThe x86 Family
The x86 FamilyMotaz Saad
 
Intel 64bit Architecture
Intel 64bit ArchitectureIntel 64bit Architecture
Intel 64bit ArchitectureMotaz Saad
 
Data Mining and Business Intelligence Tools
Data Mining and Business Intelligence ToolsData Mining and Business Intelligence Tools
Data Mining and Business Intelligence ToolsMotaz Saad
 
Structured Vs, Object Oriented Analysis and Design
Structured Vs, Object Oriented Analysis and DesignStructured Vs, Object Oriented Analysis and Design
Structured Vs, Object Oriented Analysis and DesignMotaz Saad
 
Data mining: Concepts and Techniques, Chapter12 outlier Analysis
Data mining: Concepts and Techniques, Chapter12 outlier Analysis Data mining: Concepts and Techniques, Chapter12 outlier Analysis
Data mining: Concepts and Techniques, Chapter12 outlier Analysis Salah Amean
 
Introduction to CLIPS Expert System
Introduction to CLIPS Expert SystemIntroduction to CLIPS Expert System
Introduction to CLIPS Expert SystemMotaz Saad
 

Destacado (17)

Browsing The Source Code of Linux Packages
Browsing The Source Code of Linux PackagesBrowsing The Source Code of Linux Packages
Browsing The Source Code of Linux Packages
 
Knowledge discovery thru data mining
Knowledge discovery thru data miningKnowledge discovery thru data mining
Knowledge discovery thru data mining
 
Open Source Business Models
Open Source Business ModelsOpen Source Business Models
Open Source Business Models
 
Cross Language Concept Mining
Cross Language Concept Mining Cross Language Concept Mining
Cross Language Concept Mining
 
3.7 outlier analysis
3.7 outlier analysis3.7 outlier analysis
3.7 outlier analysis
 
مقدمة في تكنواوجيا المعلومات
مقدمة في تكنواوجيا المعلوماتمقدمة في تكنواوجيا المعلومات
مقدمة في تكنواوجيا المعلومات
 
Hewahi, saad 2006 - class outliers mining distance-based approach
Hewahi, saad   2006 - class outliers mining distance-based approachHewahi, saad   2006 - class outliers mining distance-based approach
Hewahi, saad 2006 - class outliers mining distance-based approach
 
Class Outlier Mining
Class Outlier MiningClass Outlier Mining
Class Outlier Mining
 
OS Lab: Introduction to Linux
OS Lab: Introduction to LinuxOS Lab: Introduction to Linux
OS Lab: Introduction to Linux
 
Browsing Linux Kernel Source
Browsing Linux Kernel SourceBrowsing Linux Kernel Source
Browsing Linux Kernel Source
 
The x86 Family
The x86 FamilyThe x86 Family
The x86 Family
 
Intel 64bit Architecture
Intel 64bit ArchitectureIntel 64bit Architecture
Intel 64bit Architecture
 
Data Mining: Outlier analysis
Data Mining: Outlier analysisData Mining: Outlier analysis
Data Mining: Outlier analysis
 
Data Mining and Business Intelligence Tools
Data Mining and Business Intelligence ToolsData Mining and Business Intelligence Tools
Data Mining and Business Intelligence Tools
 
Structured Vs, Object Oriented Analysis and Design
Structured Vs, Object Oriented Analysis and DesignStructured Vs, Object Oriented Analysis and Design
Structured Vs, Object Oriented Analysis and Design
 
Data mining: Concepts and Techniques, Chapter12 outlier Analysis
Data mining: Concepts and Techniques, Chapter12 outlier Analysis Data mining: Concepts and Techniques, Chapter12 outlier Analysis
Data mining: Concepts and Techniques, Chapter12 outlier Analysis
 
Introduction to CLIPS Expert System
Introduction to CLIPS Expert SystemIntroduction to CLIPS Expert System
Introduction to CLIPS Expert System
 

Similar a Assembly Language Lecture 3

Similar a Assembly Language Lecture 3 (20)

Instruction set of 8086
Instruction set of 8086Instruction set of 8086
Instruction set of 8086
 
Part III: Assembly Language
Part III: Assembly LanguagePart III: Assembly Language
Part III: Assembly Language
 
Mcs 17 solved assignment 2015- 16
Mcs 17 solved assignment 2015- 16Mcs 17 solved assignment 2015- 16
Mcs 17 solved assignment 2015- 16
 
System Software
System SoftwareSystem Software
System Software
 
Real to protected_mode
Real to protected_modeReal to protected_mode
Real to protected_mode
 
Sp chap2
Sp chap2Sp chap2
Sp chap2
 
5asm the stackandsubroutines
5asm the stackandsubroutines5asm the stackandsubroutines
5asm the stackandsubroutines
 
15CSL48 MP&MC manual
15CSL48 MP&MC manual15CSL48 MP&MC manual
15CSL48 MP&MC manual
 
PL/SQL and radix tree structure
PL/SQL and radix tree structurePL/SQL and radix tree structure
PL/SQL and radix tree structure
 
Microprocessor 8086-lab-mannual
Microprocessor 8086-lab-mannualMicroprocessor 8086-lab-mannual
Microprocessor 8086-lab-mannual
 
Assembler
AssemblerAssembler
Assembler
 
Assembler
AssemblerAssembler
Assembler
 
Keyboard interrupt
Keyboard interruptKeyboard interrupt
Keyboard interrupt
 
Debug(1).ppt
Debug(1).pptDebug(1).ppt
Debug(1).ppt
 
11thingsabout11g 12659705398222 Phpapp01
11thingsabout11g 12659705398222 Phpapp0111thingsabout11g 12659705398222 Phpapp01
11thingsabout11g 12659705398222 Phpapp01
 
11 Things About11g
11 Things About11g11 Things About11g
11 Things About11g
 
OpenWorld Sep14 12c for_developers
OpenWorld Sep14 12c for_developersOpenWorld Sep14 12c for_developers
OpenWorld Sep14 12c for_developers
 
Assembler
AssemblerAssembler
Assembler
 
Stack and subroutine
Stack and subroutineStack and subroutine
Stack and subroutine
 
Sangam 2019 - The Latest Features
Sangam 2019 - The Latest FeaturesSangam 2019 - The Latest Features
Sangam 2019 - The Latest Features
 

Último

Spring24-Release Overview - Wellingtion User Group-1.pdf
Spring24-Release Overview - Wellingtion User Group-1.pdfSpring24-Release Overview - Wellingtion User Group-1.pdf
Spring24-Release Overview - Wellingtion User Group-1.pdfAnna Loughnan Colquhoun
 
Do we need a new standard for visualizing the invisible?
Do we need a new standard for visualizing the invisible?Do we need a new standard for visualizing the invisible?
Do we need a new standard for visualizing the invisible?SANGHEE SHIN
 
Designing A Time bound resource download URL
Designing A Time bound resource download URLDesigning A Time bound resource download URL
Designing A Time bound resource download URLRuncy Oommen
 
Comparing Sidecar-less Service Mesh from Cilium and Istio
Comparing Sidecar-less Service Mesh from Cilium and IstioComparing Sidecar-less Service Mesh from Cilium and Istio
Comparing Sidecar-less Service Mesh from Cilium and IstioChristian Posta
 
Connector Corner: Extending LLM automation use cases with UiPath GenAI connec...
Connector Corner: Extending LLM automation use cases with UiPath GenAI connec...Connector Corner: Extending LLM automation use cases with UiPath GenAI connec...
Connector Corner: Extending LLM automation use cases with UiPath GenAI connec...DianaGray10
 
PicPay - GenAI Finance Assistant - ChatGPT for Customer Service
PicPay - GenAI Finance Assistant - ChatGPT for Customer ServicePicPay - GenAI Finance Assistant - ChatGPT for Customer Service
PicPay - GenAI Finance Assistant - ChatGPT for Customer ServiceRenan Moreira de Oliveira
 
UiPath Community: AI for UiPath Automation Developers
UiPath Community: AI for UiPath Automation DevelopersUiPath Community: AI for UiPath Automation Developers
UiPath Community: AI for UiPath Automation DevelopersUiPathCommunity
 
Meet the new FSP 3000 M-Flex800™
Meet the new FSP 3000 M-Flex800™Meet the new FSP 3000 M-Flex800™
Meet the new FSP 3000 M-Flex800™Adtran
 
Linked Data in Production: Moving Beyond Ontologies
Linked Data in Production: Moving Beyond OntologiesLinked Data in Production: Moving Beyond Ontologies
Linked Data in Production: Moving Beyond OntologiesDavid Newbury
 
KubeConEU24-Monitoring Kubernetes and Cloud Spend with OpenCost
KubeConEU24-Monitoring Kubernetes and Cloud Spend with OpenCostKubeConEU24-Monitoring Kubernetes and Cloud Spend with OpenCost
KubeConEU24-Monitoring Kubernetes and Cloud Spend with OpenCostMatt Ray
 
Basic Building Blocks of Internet of Things.
Basic Building Blocks of Internet of Things.Basic Building Blocks of Internet of Things.
Basic Building Blocks of Internet of Things.YounusS2
 
Apres-Cyber - The Data Dilemma: Bridging Offensive Operations and Machine Lea...
Apres-Cyber - The Data Dilemma: Bridging Offensive Operations and Machine Lea...Apres-Cyber - The Data Dilemma: Bridging Offensive Operations and Machine Lea...
Apres-Cyber - The Data Dilemma: Bridging Offensive Operations and Machine Lea...Will Schroeder
 
UiPath Studio Web workshop series - Day 7
UiPath Studio Web workshop series - Day 7UiPath Studio Web workshop series - Day 7
UiPath Studio Web workshop series - Day 7DianaGray10
 
Anypoint Code Builder , Google Pub sub connector and MuleSoft RPA
Anypoint Code Builder , Google Pub sub connector and MuleSoft RPAAnypoint Code Builder , Google Pub sub connector and MuleSoft RPA
Anypoint Code Builder , Google Pub sub connector and MuleSoft RPAshyamraj55
 
UiPath Studio Web workshop series - Day 6
UiPath Studio Web workshop series - Day 6UiPath Studio Web workshop series - Day 6
UiPath Studio Web workshop series - Day 6DianaGray10
 
Using IESVE for Loads, Sizing and Heat Pump Modeling to Achieve Decarbonization
Using IESVE for Loads, Sizing and Heat Pump Modeling to Achieve DecarbonizationUsing IESVE for Loads, Sizing and Heat Pump Modeling to Achieve Decarbonization
Using IESVE for Loads, Sizing and Heat Pump Modeling to Achieve DecarbonizationIES VE
 
Introduction to Matsuo Laboratory (ENG).pptx
Introduction to Matsuo Laboratory (ENG).pptxIntroduction to Matsuo Laboratory (ENG).pptx
Introduction to Matsuo Laboratory (ENG).pptxMatsuo Lab
 
Digital magic. A small project for controlling smart light bulbs.
Digital magic. A small project for controlling smart light bulbs.Digital magic. A small project for controlling smart light bulbs.
Digital magic. A small project for controlling smart light bulbs.francesco barbera
 
GenAI and AI GCC State of AI_Object Automation Inc
GenAI and AI GCC State of AI_Object Automation IncGenAI and AI GCC State of AI_Object Automation Inc
GenAI and AI GCC State of AI_Object Automation IncObject Automation
 
Cloud Revolution: Exploring the New Wave of Serverless Spatial Data
Cloud Revolution: Exploring the New Wave of Serverless Spatial DataCloud Revolution: Exploring the New Wave of Serverless Spatial Data
Cloud Revolution: Exploring the New Wave of Serverless Spatial DataSafe Software
 

Último (20)

Spring24-Release Overview - Wellingtion User Group-1.pdf
Spring24-Release Overview - Wellingtion User Group-1.pdfSpring24-Release Overview - Wellingtion User Group-1.pdf
Spring24-Release Overview - Wellingtion User Group-1.pdf
 
Do we need a new standard for visualizing the invisible?
Do we need a new standard for visualizing the invisible?Do we need a new standard for visualizing the invisible?
Do we need a new standard for visualizing the invisible?
 
Designing A Time bound resource download URL
Designing A Time bound resource download URLDesigning A Time bound resource download URL
Designing A Time bound resource download URL
 
Comparing Sidecar-less Service Mesh from Cilium and Istio
Comparing Sidecar-less Service Mesh from Cilium and IstioComparing Sidecar-less Service Mesh from Cilium and Istio
Comparing Sidecar-less Service Mesh from Cilium and Istio
 
Connector Corner: Extending LLM automation use cases with UiPath GenAI connec...
Connector Corner: Extending LLM automation use cases with UiPath GenAI connec...Connector Corner: Extending LLM automation use cases with UiPath GenAI connec...
Connector Corner: Extending LLM automation use cases with UiPath GenAI connec...
 
PicPay - GenAI Finance Assistant - ChatGPT for Customer Service
PicPay - GenAI Finance Assistant - ChatGPT for Customer ServicePicPay - GenAI Finance Assistant - ChatGPT for Customer Service
PicPay - GenAI Finance Assistant - ChatGPT for Customer Service
 
UiPath Community: AI for UiPath Automation Developers
UiPath Community: AI for UiPath Automation DevelopersUiPath Community: AI for UiPath Automation Developers
UiPath Community: AI for UiPath Automation Developers
 
Meet the new FSP 3000 M-Flex800™
Meet the new FSP 3000 M-Flex800™Meet the new FSP 3000 M-Flex800™
Meet the new FSP 3000 M-Flex800™
 
Linked Data in Production: Moving Beyond Ontologies
Linked Data in Production: Moving Beyond OntologiesLinked Data in Production: Moving Beyond Ontologies
Linked Data in Production: Moving Beyond Ontologies
 
KubeConEU24-Monitoring Kubernetes and Cloud Spend with OpenCost
KubeConEU24-Monitoring Kubernetes and Cloud Spend with OpenCostKubeConEU24-Monitoring Kubernetes and Cloud Spend with OpenCost
KubeConEU24-Monitoring Kubernetes and Cloud Spend with OpenCost
 
Basic Building Blocks of Internet of Things.
Basic Building Blocks of Internet of Things.Basic Building Blocks of Internet of Things.
Basic Building Blocks of Internet of Things.
 
Apres-Cyber - The Data Dilemma: Bridging Offensive Operations and Machine Lea...
Apres-Cyber - The Data Dilemma: Bridging Offensive Operations and Machine Lea...Apres-Cyber - The Data Dilemma: Bridging Offensive Operations and Machine Lea...
Apres-Cyber - The Data Dilemma: Bridging Offensive Operations and Machine Lea...
 
UiPath Studio Web workshop series - Day 7
UiPath Studio Web workshop series - Day 7UiPath Studio Web workshop series - Day 7
UiPath Studio Web workshop series - Day 7
 
Anypoint Code Builder , Google Pub sub connector and MuleSoft RPA
Anypoint Code Builder , Google Pub sub connector and MuleSoft RPAAnypoint Code Builder , Google Pub sub connector and MuleSoft RPA
Anypoint Code Builder , Google Pub sub connector and MuleSoft RPA
 
UiPath Studio Web workshop series - Day 6
UiPath Studio Web workshop series - Day 6UiPath Studio Web workshop series - Day 6
UiPath Studio Web workshop series - Day 6
 
Using IESVE for Loads, Sizing and Heat Pump Modeling to Achieve Decarbonization
Using IESVE for Loads, Sizing and Heat Pump Modeling to Achieve DecarbonizationUsing IESVE for Loads, Sizing and Heat Pump Modeling to Achieve Decarbonization
Using IESVE for Loads, Sizing and Heat Pump Modeling to Achieve Decarbonization
 
Introduction to Matsuo Laboratory (ENG).pptx
Introduction to Matsuo Laboratory (ENG).pptxIntroduction to Matsuo Laboratory (ENG).pptx
Introduction to Matsuo Laboratory (ENG).pptx
 
Digital magic. A small project for controlling smart light bulbs.
Digital magic. A small project for controlling smart light bulbs.Digital magic. A small project for controlling smart light bulbs.
Digital magic. A small project for controlling smart light bulbs.
 
GenAI and AI GCC State of AI_Object Automation Inc
GenAI and AI GCC State of AI_Object Automation IncGenAI and AI GCC State of AI_Object Automation Inc
GenAI and AI GCC State of AI_Object Automation Inc
 
Cloud Revolution: Exploring the New Wave of Serverless Spatial Data
Cloud Revolution: Exploring the New Wave of Serverless Spatial DataCloud Revolution: Exploring the New Wave of Serverless Spatial Data
Cloud Revolution: Exploring the New Wave of Serverless Spatial Data
 

Assembly Language Lecture 3

  • 1. Assembly Language Fundamentals of Assembly language Motaz K. Saad Spring 2007 Motaz K. Saad, Dept. of CS
  • 2.
  • 3. 26AE CS 0044 IP Instruction address = ??????? Motaz K. Saad, Dept. of CS
  • 4. 26AE CS 0044 IP Instruction address = 26AE0 + 0044 _______________________ 26B24 25BD DS A03F00 26B24 Data address=?????? Motaz K. Saad, Dept. of CS
  • 5. 26AE CS 0044 IP Data address = 25BD0 + 003F _______________________ 25C0F 25BD DS Motaz K. Saad, Dept. of CS
  • 6.
  • 7.
  • 8. ; <your comments> ; Add two numbers and store the results into the third variable TITLE A04ASM1 (EXE) Move and add operations ; --------------------------------------------- .STACK ; ---------------------------------------------- .DATA FLDD DW 215 FLDE DW 125 FLDF DW ? ; ----------------------------------------------- .CODE MAIN PROC MOV AX,@DATA ;Set address of data MOV DS,AX ; segment in DS MOV AX,FLDD ;Move 0215 to AX ADD AX,FLDE ;Add 0125 to AX MOV FLDF,AX ;Store sum in FLDF MOV AX,4C00H ;End processing INT 21H MAIN ENDP ;End of procedure END MAIN ;End of program Comments COMMENTS Motaz K. Saad, Dept. of CS
  • 9. ; Add two numbers and store the results into the third variable TITLE A04ASM1 (EXE) Move and add operations ; --------------------------------------------- .STACK ; ---------------------------------------------- .DATA FLDD DW 0215H FLDE DW 0125H FLDF DW ? ; ----------------------------------------------- .CODE MAIN PROC MOV @DATA ;Set address of data MOV DS,AX ;Segment in DS MOV AX,FLDD ;Move 0215 to AX ADD AX,FLDE ;Add 0125 to AX MOV FLDF,AX ;Store sum in FLDF MOV AX,4C00H ;End processing INT 21H MAIN ENDP ;End of procedure END MAIN ;End of program IDENTIFIERS Motaz K. Saad, Dept. of CS
  • 10.
  • 11.
  • 12.
  • 13.
  • 14. ; Add two numbers and store the results into the third variable page 60,132 TITLE A04ASM1 (EXE) Move and add operations ; --------------------------------------------- .STACK ; ---------------------------------------------- .DATA FLDD DW 215 FLDE DW 125 FLDF DW ? ; ----------------------------------------------- .CODE MAIN PROC MOV AX,@DATA ;Set address of data MOV DS,AX ;Segment in DS MOV AX,FLDD ;Move 0215 to AX ADD AX,FLDE ;Add 0125 to AX MOV FLDF,AX ;Store sum in FLDF MOV AX,4C00H ;End processing INT 21H MAIN ENDP ;End of procedure END MAIN ;End of program STATEMENTS Motaz K. Saad, Dept. of CS
  • 15.
  • 16. ; Add two numbers and store the results into the third variable page 60,132 page [length(10-255)],[width(60-132)] TITLE A04ASM1 (EXE) Move and add operations ; --------------------------------------------- .STACK ; ---------------------------------------------- .DATA FLDD DW 215 FLDE DW 125 FLDF DW ? ; ----------------------------------------------- .CODE MAIN PROC MOV AX,@DATA ;Set address of data MOV DS,AX ;Segment in DS MOV AX,FLDD ;Move 0215 to AX ADD AX,FLDE ;Add 0125 to AX MOV FLDF,AX ;Store sum in FLDF MOV AX,4C00H ;End processing INT 21H MAIN ENDP ;End of procedure END MAIN ;End of program Page directive Motaz K. Saad, Dept. of CS
  • 17. ; Add two numbers and store the results into the third variable page 10,70 TITLE A04ASM1 (EXE) Move and add operations ; --------------------------------------------- .STACK ; ---------------------------------------------- .DATA FLDD DW 215 FLDE DW 125 FLDF DW ? ; ----------------------------------------------- .CODE MAIN PROC MOV AX,@DATA ;Set address of data MOV DS,AX ;Segment in DS MOV AX,FLDD ;Move 0215 to AX ADD AX,FLDE ;Add 0125 to AX MOV FLDF,AX ;Store sum in FLDF MOV AX,4C00H ;End processing INT 21H MAIN ENDP ;End of procedure END MAIN ;End of program Page directive Motaz K. Saad, Dept. of CS
  • 18. Title directive Motaz K. Saad, Dept. of CS ; Add two numbers and store the results into the third variable page 10,70 TITLE A04ASM1 (EXE) Move and add operations ; --------------------------------------------- .STACK ; ---------------------------------------------- .DATA FLDD DW 215 FLDE DW 125 FLDF DW ? ; ----------------------------------------------- .CODE MAIN PROC MOV AX,@DATA ;Set address of data MOV DS,AX ;Segment in DS MOV AX,FLDD ;Move 0215 to AX ADD AX,FLDE ;Add 0125 to AX MOV FLDF,AX ;Store sum in FLDF MOV AX,4C00H ;End processing INT 21H MAIN ENDP ;End of procedure END MAIN ;End of program
  • 19. ; Add two numbers and store the results into the third variable page 60,132 TITLE A04ASM1 (EXE) Move and add operations ; --------------------------------------------- .STACK ; ---------------------------------------------- .DATA FLDD DW 215 FLDE DW 125 FLDF DW ? ; ----------------------------------------------- .CODE MAIN PROC MOV AX,@DATA ;Set address of data MOV FLDF,AX ;Store sum in FLDF MOV AX,4C00H ;End processing INT 21H MAIN ENDP ;End of procedure END MAIN ;End of program Segment directive Motaz K. Saad, Dept. of CS
  • 20. ; Add two numbers and store the results into the third variable page 60,132 TITLE A04ASM1 (EXE) Move and add operations ; --------------------------------------------- .STACK ; ---------------------------------------------- .DATA FLDD DW 215 FLDE DW 125 FLDF DW ? ; ----------------------------------------------- .CODE MAIN PROC MOV AX,@DATA ;Set address of data MOV DS,AX ;Segment in DS MOV AX,FLDD ;Move 0215 to AX MOV FLDF,AX ;Store sum in FLDF MOV AX,4C00H ;End processing INT 21H MAIN ENDP ; End of procedure END MAIN ;End of program PROC directive Motaz K. Saad, Dept. of CS
  • 21.
  • 22.
  • 23.
  • 24.
  • 25.
  • 26.
  • 27.
  • 28.
  • 29.