SlideShare a Scribd company logo
1 of 22
Assembler

A short Overview




1
Content

   Language Levels
     High Level  micro code
     Machinecode language

   Assembler languages
     Structure
     Commands




2
Language Levels
    High Level Language




    Assembler Language




    Machine Language      Normally deepest free
                          accessible Level


           Micro             „Firmware“
       -programming


        Hardware
3
High Level  Micro Code
   High Level language
       Formulating program for certain application
        areas
       Hardware independent

   Assembler languages
       Machine oriented language
       Programs orient on special hardware
        properties
       More comfortable than machine code
        (e.g. by using symbolic notations)
4
High Level  Micro Code

   Machine code:

     Set of commands directly executable
      via CPU
     Commands in numeric code
     Lowest semantic level
     Generally 2 executing oportunities:
        • Interpretiv via micro code
        • Directly processing via hardware
5
High Level  Micro Code
   Micro programming:
     Implementing of executing of machine
      commands (Control unit - controller)
     Machine command executed/shown
      as sequence of micro code
      commands
     Micro code commands:
        • Simpliest process controlling
           • Moving of data
           • Opening of grids
6
           • Tests
Machinecode language

   Machinecode command:
       Binary word (fix length, causes
        elementary operations within CPU)

   Machinecode program
       sequence of machinecode commands



7
Machinecode language

   Structure:           OpCode    OpAddress

       Operationcode
         • Defining executable operation
       Operandaddress
         • Spezification of operands
            • Constants/register addresses/storage
              addresses
       Difference between 1/2/3 address
        machines
8
Machinecode language

 Data transport commands
 Arithmetic and logical commands

 Process controlling commands

 In-/output commands

 Special commands

 Disadvantage:
       Difficultly readable
       No symbolic names(Mnemomics)
9
Assembler languages

    Translated into machinecode
     language(Interpreter)
    Each operation code(opcode) owns one
     symbolic command
    Assignments of operand addresses are
     possible
    Labels for command addresses


10
Assembler languages
    Usage of pseudo commands
        Commands for assembler
        Assigment of values/addresses(variables)
        Definition of the programstart addresses
        Allocating of memory for variables




11
Assembler languages-structure
<Label> <Mnemomic> <Operand> Comments
     Label
             symbolic labeling of an assembler address
              (command address at Machine level)
     Mnemomic
             Symbolic description of an operation
     Operands
             Contains of variables or addresse if necessary
     Comments

     12
Assembler Languages
    - Machine Instructions
   Bitpatterns are created, executed as
    commands by CPU
   Classes:
        Arithmetic/logical Operations(ADD,SUB,XOR,
         administrative commands - EQU,
         shifting&rotation commands)
        Data transfer(load/save operations,
         speicher<>register, register<>register)
        Control commands(jump op. [un-]conditional
         /relativ,control op. – STOP)
        In-/output commands
    13
Assembler – Assembler Instructiuons
(Pseudo Commands)

    Instructions to assembler
        Controlling translation process
        No creation of machine code
        Affect creation of machine instructions
    Types:
        Program organisation
        equations and symbolic Addresses
        Definition of Constants and Memory
        Addressing
14
Assembler – All purpose Register

   Arithmetic example:
        Source and Destination Data width has to
         euqal
        AX , BX, CX, DX, SI, DI, BP, SP
    ; arithmetic operations
                                                All purpose
    ADD AX, BX           ; AX := AX+BX          Register
    SUB AH,AL            ; AH := AH - AL
    MOV AL, CL           ; AL := CL        AX   AH   AL
    INC CX               ; CX := CX+1
    DEC CL               ; CL := CL-1      BX   BH   BL
    NEG CX               ; CX := -CX
                                           CX CH     CL

    15
Assembler – Special Register



    Unless to all-purpose registers
        Special register(SS, DS, CS, ES, IP)
          • Never ever are
             • Destination/Source of a „mov“ command
             • Destination of arithmetic operations




16
Assembler – Flag Register

     O   D   I      T   S     Z       A      P          C




                               Zero
                            Sign                            Carry
                     Trap                     Parity
                 Interrupt enable     Auxiliary carry
         Direction

     Overflow
17
Assembler – Flag Register
   FLAG-Bits:
        C Carry            Area crossing of unsigned numbers
        A Aux. Carry       Area crossing at BCD-design
        O Overflow         Area crossing at arithmetic
                            operation with signed numbers
        S Sign             True if result = negativ
        Z Zero             Result = Null
        P Parity           Result has an even number of 1 Bits
        D Direction flag   Defines direction of string-
                            commands
        I Interrupt        Global Interrupt Enable/Disable Flag
        T Trap Flag        Used by debugger, allows single-step-
                            modus




    18
Assembler – Flag Register
    Missing flags:
        • V: Two’s complement overflow indicator
        • H: Half Carry Flag

    Operations and flags
     ADD, SUB, NEG    affects     O, S, Z, A, P, C
     INC, DEC          -“-        O, S, Z, A, P
     MUL, DIV          -“-        O, C
     AND, OR , XOR     -“-        S, Z, P, C



19
Assembler – Jump Operations


 Un-/conditioned        jumps
      Example:
            Mov AX, 0
            CMP CX, 0
     again: JZ end       (jumpzero, conditioned j.)
            ADD AX, CX
            DEC CX
            JMP again    (unconditioned jumped)
     end: NOP


20
Sources
http://www.informatik.ku-eichstaett.de
   /studium/skripte/ws0203/einf2/Vorlesung12.ppt

http://www-ist.massey.ac.nz
/GMoretti/159704/Lectures/1-Languages-Translation-&-Assemblers.pdf

http://www.mathematik.uni-marburg.de
/~priebe/lehre/ws0001/ti1/Skript/TechInf1Lo08.ppt

E:temp4.SemesterIntro into Dig.ComputingDokuBefehlssatz.pdf




        21
Thanks 4 ur Attention




          Any further
           questions
              ??


22

More Related Content

What's hot

Instruction cycle
Instruction cycleInstruction cycle
Instruction cycleKumar
 
Instruction cycle with interrupts
Instruction cycle with interruptsInstruction cycle with interrupts
Instruction cycle with interruptsShubham Jain
 
Direct memory access (dma)
Direct memory access (dma)Direct memory access (dma)
Direct memory access (dma)Zubair Khalid
 
Introduction to Bus | Address, Data, Control Bus
Introduction to Bus | Address, Data, Control BusIntroduction to Bus | Address, Data, Control Bus
Introduction to Bus | Address, Data, Control BusHem Pokhrel
 
Computer registers
Computer registersComputer registers
Computer registersDeepikaT13
 
Microarchitecture
MicroarchitectureMicroarchitecture
Microarchitecturemeashi
 
Stack and its usage in assembly language
Stack and its usage in assembly language Stack and its usage in assembly language
Stack and its usage in assembly language Usman Bin Saad
 
introduction to microprocessor and microcomputer
introduction to microprocessor and microcomputerintroduction to microprocessor and microcomputer
introduction to microprocessor and microcomputerSatya P. Joshi
 
Direct memory access (dma) with 8257 DMA Controller
Direct memory access (dma) with 8257 DMA ControllerDirect memory access (dma) with 8257 DMA Controller
Direct memory access (dma) with 8257 DMA ControllerMuhammed Afsal Villan
 
Assembly and Machine Code
Assembly and Machine CodeAssembly and Machine Code
Assembly and Machine CodeProject Student
 
Arm modes
Arm modesArm modes
Arm modesabhi165
 
Computer architecture instruction formats
Computer architecture instruction formatsComputer architecture instruction formats
Computer architecture instruction formatsMazin Alwaaly
 

What's hot (20)

Instruction cycle
Instruction cycleInstruction cycle
Instruction cycle
 
Instruction cycle with interrupts
Instruction cycle with interruptsInstruction cycle with interrupts
Instruction cycle with interrupts
 
Direct memory access (dma)
Direct memory access (dma)Direct memory access (dma)
Direct memory access (dma)
 
Introduction to Bus | Address, Data, Control Bus
Introduction to Bus | Address, Data, Control BusIntroduction to Bus | Address, Data, Control Bus
Introduction to Bus | Address, Data, Control Bus
 
Computer registers
Computer registersComputer registers
Computer registers
 
Microarchitecture
MicroarchitectureMicroarchitecture
Microarchitecture
 
Direct access memory
Direct access memoryDirect access memory
Direct access memory
 
Stack and its usage in assembly language
Stack and its usage in assembly language Stack and its usage in assembly language
Stack and its usage in assembly language
 
Instruction format
Instruction formatInstruction format
Instruction format
 
Basic Computer Organization and Design
Basic  Computer  Organization  and  DesignBasic  Computer  Organization  and  Design
Basic Computer Organization and Design
 
introduction to microprocessor and microcomputer
introduction to microprocessor and microcomputerintroduction to microprocessor and microcomputer
introduction to microprocessor and microcomputer
 
Memory Addressing
Memory AddressingMemory Addressing
Memory Addressing
 
Direct memory access (dma) with 8257 DMA Controller
Direct memory access (dma) with 8257 DMA ControllerDirect memory access (dma) with 8257 DMA Controller
Direct memory access (dma) with 8257 DMA Controller
 
Input output module
Input output moduleInput output module
Input output module
 
Assembly and Machine Code
Assembly and Machine CodeAssembly and Machine Code
Assembly and Machine Code
 
Windows CE
Windows CEWindows CE
Windows CE
 
Digital electronics - Basics
Digital electronics - BasicsDigital electronics - Basics
Digital electronics - Basics
 
ARM Processors
ARM ProcessorsARM Processors
ARM Processors
 
Arm modes
Arm modesArm modes
Arm modes
 
Computer architecture instruction formats
Computer architecture instruction formatsComputer architecture instruction formats
Computer architecture instruction formats
 

Similar to Assembler

Assembly language programming_fundamentals 8086
Assembly language programming_fundamentals 8086Assembly language programming_fundamentals 8086
Assembly language programming_fundamentals 8086Shehrevar Davierwala
 
Unit 3 assembler and processor
Unit 3   assembler and processorUnit 3   assembler and processor
Unit 3 assembler and processorAbha Damani
 
Ec 252 ec-252-l10-instruction sets and addressing modes
Ec 252 ec-252-l10-instruction sets and addressing modesEc 252 ec-252-l10-instruction sets and addressing modes
Ec 252 ec-252-l10-instruction sets and addressing modesbhshmuec
 
Programming basic computer
Programming basic computerProgramming basic computer
Programming basic computerMartial Kouadio
 
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
 
B.sc cs-ii-u-3.1-basic computer programming and micro programmed control
B.sc cs-ii-u-3.1-basic computer programming and micro programmed controlB.sc cs-ii-u-3.1-basic computer programming and micro programmed control
B.sc cs-ii-u-3.1-basic computer programming and micro programmed controlRai University
 
Bca 2nd sem-u-3.1-basic computer programming and micro programmed control
Bca 2nd sem-u-3.1-basic computer programming and micro programmed controlBca 2nd sem-u-3.1-basic computer programming and micro programmed control
Bca 2nd sem-u-3.1-basic computer programming and micro programmed controlRai University
 
Programming the basic computer
Programming the basic computerProgramming the basic computer
Programming the basic computerKamal Acharya
 
Chapter 1SyllabusCatalog Description Computer structu
Chapter 1SyllabusCatalog Description Computer structuChapter 1SyllabusCatalog Description Computer structu
Chapter 1SyllabusCatalog Description Computer structuEstelaJeffery653
 
Assembly language (Example with mapping from C++ to Assembly)
Assembly language (Example with mapping from C++ to Assembly)Assembly language (Example with mapping from C++ to Assembly)
Assembly language (Example with mapping from C++ to Assembly)Tish997
 
other-architectures.ppt
other-architectures.pptother-architectures.ppt
other-architectures.pptJaya Chavan
 
Part III: Assembly Language
Part III: Assembly LanguagePart III: Assembly Language
Part III: Assembly LanguageAhmed M. Abed
 

Similar to Assembler (20)

Assembler
AssemblerAssembler
Assembler
 
Assembly language programming_fundamentals 8086
Assembly language programming_fundamentals 8086Assembly language programming_fundamentals 8086
Assembly language programming_fundamentals 8086
 
Assembly language part I
Assembly language part IAssembly language part I
Assembly language part I
 
Assembly language part I
Assembly language part IAssembly language part I
Assembly language part I
 
9.cs instrset
9.cs instrset9.cs instrset
9.cs instrset
 
Unit 3 assembler and processor
Unit 3   assembler and processorUnit 3   assembler and processor
Unit 3 assembler and processor
 
Coal (1)
Coal (1)Coal (1)
Coal (1)
 
Ec 252 ec-252-l10-instruction sets and addressing modes
Ec 252 ec-252-l10-instruction sets and addressing modesEc 252 ec-252-l10-instruction sets and addressing modes
Ec 252 ec-252-l10-instruction sets and addressing modes
 
Programming basic computer
Programming basic computerProgramming basic computer
Programming basic computer
 
ISA.pptx
ISA.pptxISA.pptx
ISA.pptx
 
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 ...
 
B.sc cs-ii-u-3.1-basic computer programming and micro programmed control
B.sc cs-ii-u-3.1-basic computer programming and micro programmed controlB.sc cs-ii-u-3.1-basic computer programming and micro programmed control
B.sc cs-ii-u-3.1-basic computer programming and micro programmed control
 
Bca 2nd sem-u-3.1-basic computer programming and micro programmed control
Bca 2nd sem-u-3.1-basic computer programming and micro programmed controlBca 2nd sem-u-3.1-basic computer programming and micro programmed control
Bca 2nd sem-u-3.1-basic computer programming and micro programmed control
 
Programming the basic computer
Programming the basic computerProgramming the basic computer
Programming the basic computer
 
Al2ed chapter17
Al2ed chapter17Al2ed chapter17
Al2ed chapter17
 
SS-assemblers 1.pptx
SS-assemblers 1.pptxSS-assemblers 1.pptx
SS-assemblers 1.pptx
 
Chapter 1SyllabusCatalog Description Computer structu
Chapter 1SyllabusCatalog Description Computer structuChapter 1SyllabusCatalog Description Computer structu
Chapter 1SyllabusCatalog Description Computer structu
 
Assembly language (Example with mapping from C++ to Assembly)
Assembly language (Example with mapping from C++ to Assembly)Assembly language (Example with mapping from C++ to Assembly)
Assembly language (Example with mapping from C++ to Assembly)
 
other-architectures.ppt
other-architectures.pptother-architectures.ppt
other-architectures.ppt
 
Part III: Assembly Language
Part III: Assembly LanguagePart III: Assembly Language
Part III: Assembly Language
 

More from Vaibhav Bajaj (20)

Stroustrup c++0x overview
Stroustrup c++0x overviewStroustrup c++0x overview
Stroustrup c++0x overview
 
P smile
P smileP smile
P smile
 
Ppt history-of-apple2203 (1)
Ppt history-of-apple2203 (1)Ppt history-of-apple2203 (1)
Ppt history-of-apple2203 (1)
 
Os
OsOs
Os
 
Operating system.ppt (1)
Operating system.ppt (1)Operating system.ppt (1)
Operating system.ppt (1)
 
Oop1
Oop1Oop1
Oop1
 
Mem hierarchy
Mem hierarchyMem hierarchy
Mem hierarchy
 
Database
DatabaseDatabase
Database
 
C++0x
C++0xC++0x
C++0x
 
Blu ray disc slides
Blu ray disc slidesBlu ray disc slides
Blu ray disc slides
 
Assembler (2)
Assembler (2)Assembler (2)
Assembler (2)
 
Projection of solids
Projection of solidsProjection of solids
Projection of solids
 
Projection of planes
Projection of planesProjection of planes
Projection of planes
 
Ortographic projection
Ortographic projectionOrtographic projection
Ortographic projection
 
Isometric
IsometricIsometric
Isometric
 
Intersection 1
Intersection 1Intersection 1
Intersection 1
 
Important q
Important qImportant q
Important q
 
Eg o31
Eg o31Eg o31
Eg o31
 
Development of surfaces of solids
Development of surfaces of solidsDevelopment of surfaces of solids
Development of surfaces of solids
 
Development of surfaces of solids copy
Development of surfaces of solids   copyDevelopment of surfaces of solids   copy
Development of surfaces of solids copy
 

Recently uploaded

Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024The Digital Insurer
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxNavinnSomaal
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostZilliz
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr LapshynFwdays
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfRankYa
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clashcharlottematthew16
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 

Recently uploaded (20)

Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptx
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdf
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clash
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 

Assembler

  • 2. Content  Language Levels  High Level  micro code  Machinecode language  Assembler languages  Structure  Commands 2
  • 3. Language Levels High Level Language Assembler Language Machine Language Normally deepest free accessible Level Micro „Firmware“ -programming Hardware 3
  • 4. High Level  Micro Code  High Level language  Formulating program for certain application areas  Hardware independent  Assembler languages  Machine oriented language  Programs orient on special hardware properties  More comfortable than machine code (e.g. by using symbolic notations) 4
  • 5. High Level  Micro Code  Machine code:  Set of commands directly executable via CPU  Commands in numeric code  Lowest semantic level  Generally 2 executing oportunities: • Interpretiv via micro code • Directly processing via hardware 5
  • 6. High Level  Micro Code  Micro programming:  Implementing of executing of machine commands (Control unit - controller)  Machine command executed/shown as sequence of micro code commands  Micro code commands: • Simpliest process controlling • Moving of data • Opening of grids 6 • Tests
  • 7. Machinecode language  Machinecode command:  Binary word (fix length, causes elementary operations within CPU)  Machinecode program  sequence of machinecode commands 7
  • 8. Machinecode language  Structure: OpCode OpAddress  Operationcode • Defining executable operation  Operandaddress • Spezification of operands • Constants/register addresses/storage addresses  Difference between 1/2/3 address machines 8
  • 9. Machinecode language  Data transport commands  Arithmetic and logical commands  Process controlling commands  In-/output commands  Special commands  Disadvantage:  Difficultly readable  No symbolic names(Mnemomics) 9
  • 10. Assembler languages  Translated into machinecode language(Interpreter)  Each operation code(opcode) owns one symbolic command  Assignments of operand addresses are possible  Labels for command addresses 10
  • 11. Assembler languages  Usage of pseudo commands  Commands for assembler  Assigment of values/addresses(variables)  Definition of the programstart addresses  Allocating of memory for variables 11
  • 12. Assembler languages-structure <Label> <Mnemomic> <Operand> Comments  Label  symbolic labeling of an assembler address (command address at Machine level)  Mnemomic  Symbolic description of an operation  Operands  Contains of variables or addresse if necessary  Comments 12
  • 13. Assembler Languages - Machine Instructions  Bitpatterns are created, executed as commands by CPU  Classes:  Arithmetic/logical Operations(ADD,SUB,XOR, administrative commands - EQU, shifting&rotation commands)  Data transfer(load/save operations, speicher<>register, register<>register)  Control commands(jump op. [un-]conditional /relativ,control op. – STOP)  In-/output commands 13
  • 14. Assembler – Assembler Instructiuons (Pseudo Commands)  Instructions to assembler  Controlling translation process  No creation of machine code  Affect creation of machine instructions  Types:  Program organisation  equations and symbolic Addresses  Definition of Constants and Memory  Addressing 14
  • 15. Assembler – All purpose Register  Arithmetic example:  Source and Destination Data width has to euqal  AX , BX, CX, DX, SI, DI, BP, SP ; arithmetic operations All purpose ADD AX, BX ; AX := AX+BX Register SUB AH,AL ; AH := AH - AL MOV AL, CL ; AL := CL AX AH AL INC CX ; CX := CX+1 DEC CL ; CL := CL-1 BX BH BL NEG CX ; CX := -CX CX CH CL 15
  • 16. Assembler – Special Register  Unless to all-purpose registers  Special register(SS, DS, CS, ES, IP) • Never ever are • Destination/Source of a „mov“ command • Destination of arithmetic operations 16
  • 17. Assembler – Flag Register O D I T S Z A P C Zero Sign Carry Trap Parity Interrupt enable Auxiliary carry Direction Overflow 17
  • 18. Assembler – Flag Register  FLAG-Bits:  C Carry Area crossing of unsigned numbers  A Aux. Carry Area crossing at BCD-design  O Overflow Area crossing at arithmetic operation with signed numbers  S Sign True if result = negativ  Z Zero Result = Null  P Parity Result has an even number of 1 Bits  D Direction flag Defines direction of string- commands  I Interrupt Global Interrupt Enable/Disable Flag  T Trap Flag Used by debugger, allows single-step- modus 18
  • 19. Assembler – Flag Register  Missing flags: • V: Two’s complement overflow indicator • H: Half Carry Flag  Operations and flags ADD, SUB, NEG affects O, S, Z, A, P, C INC, DEC -“- O, S, Z, A, P MUL, DIV -“- O, C AND, OR , XOR -“- S, Z, P, C 19
  • 20. Assembler – Jump Operations  Un-/conditioned jumps  Example: Mov AX, 0 CMP CX, 0 again: JZ end (jumpzero, conditioned j.) ADD AX, CX DEC CX JMP again (unconditioned jumped) end: NOP 20
  • 21. Sources http://www.informatik.ku-eichstaett.de /studium/skripte/ws0203/einf2/Vorlesung12.ppt http://www-ist.massey.ac.nz /GMoretti/159704/Lectures/1-Languages-Translation-&-Assemblers.pdf http://www.mathematik.uni-marburg.de /~priebe/lehre/ws0001/ti1/Skript/TechInf1Lo08.ppt E:temp4.SemesterIntro into Dig.ComputingDokuBefehlssatz.pdf 21
  • 22. Thanks 4 ur Attention Any further questions ?? 22