Microprocessor Based Systems Spring 2014 Department of Electrical Engineering University of Gujrat
2
= Machine that can solve problems HOW? YOU tell it what to do~~ IN A PROGRAM!!!
0010100110101001001 1101011011110100101 1101101010000100110 1000001001001001101 •A collection of instructions. •The instructions are a series of 1’s and zero’s that control the internal circuitry of the processor. •The instructions are written in a language called: Machine Language
• Difficult and tedious for people to use because of simplicity • A large gap between what is convenient for People and what for computers • People want to do X but computers limitation is only to Y
Machine Language Ex. 10100001 00000000 00000000 00000101 00000100 00000000 10100011 00000000 00000000 Collection of binary numbers Assembly Language Computer languages Assembly Language High-Level Language Ex. MOV AX,A ADD AX,4 MOV A,AX Ex. A = A + 4 Combines algebraic language (I.e. symbolic names are used to represent operations, registers & memory locations expressions & symbols taken from English language (ex. Pascal, COBOL FORTRAN, …etc)
Computer languages (Continue) Not standard (I.e. different Not standard (I.e. different Standard (I.e. programs are machine language for assembly language for independent of the machine every type of machine every type of machine) on which they will be executed) Machine Language Assembly Language High-Level Language Directly understood by a Assembler Compiler (or interpreter) computer converts to machine converts to machine language language 1 assembly language 1 HLL instruction = many instruction = 1 machine machine language language instruction instructions
Advantages of Assembly Language • Performance: • A well-written Assembly language program produces a faster, shorter machine language program. For Some applications speed and size is critical • Access to hardware: •Some operations, such as reading or writing to specific memory locations & I/O ports can be done easily in Assembly but may be impossible by a higher level language. • Studying ASM language gain a feeling of the way the computer thinks and the way things happen inside the computer.

Assembly Language Programming By Ytha Yu, Charles Marut Chap 1(Microcomputer Systems)

  • 1.
    Microprocessor Based Systems Spring2014 Department of Electrical Engineering University of Gujrat
  • 2.
  • 3.
    = Machine thatcan solve problems HOW? YOU tell it what to do~~ IN A PROGRAM!!!
  • 4.
    0010100110101001001 1101011011110100101 1101101010000100110 1000001001001001101 •A collection ofinstructions. •The instructions are a series of 1’s and zero’s that control the internal circuitry of the processor. •The instructions are written in a language called: Machine Language
  • 5.
    • Difficult andtedious for people to use because of simplicity • A large gap between what is convenient for People and what for computers • People want to do X but computers limitation is only to Y
  • 6.
    Machine Language Ex. 10100001 0000000000000000 00000101 00000100 00000000 10100011 00000000 00000000 Collection of binary numbers Assembly Language Computer languages Assembly Language High-Level Language Ex. MOV AX,A ADD AX,4 MOV A,AX Ex. A = A + 4 Combines algebraic language (I.e. symbolic names are used to represent operations, registers & memory locations expressions & symbols taken from English language (ex. Pascal, COBOL FORTRAN, …etc)
  • 7.
    Computer languages (Continue) Notstandard (I.e. different Not standard (I.e. different Standard (I.e. programs are machine language for assembly language for independent of the machine every type of machine every type of machine) on which they will be executed) Machine Language Assembly Language High-Level Language Directly understood by a Assembler Compiler (or interpreter) computer converts to machine converts to machine language language 1 assembly language 1 HLL instruction = many instruction = 1 machine machine language language instruction instructions
  • 8.
    Advantages of AssemblyLanguage • Performance: • A well-written Assembly language program produces a faster, shorter machine language program. For Some applications speed and size is critical • Access to hardware: •Some operations, such as reading or writing to specific memory locations & I/O ports can be done easily in Assembly but may be impossible by a higher level language. • Studying ASM language gain a feeling of the way the computer thinks and the way things happen inside the computer.