Instruction Types and AssemblerFile
Instruction Types and AssemblerFile
Language Programming
ECE 3010 Microprocessor & Interfacing
Dr. Nu War
Professor
Faculty of Computer Systems and Technologies
Myanmar Institute of Information Technology
Instruction Classification
Instruction Types
Assembly Language
Programming Model
Instruction Format
Instruction Classification
Instruction Types
Assembler
Instruction Types
Halt
Interrupt
Do nothing
Assembly Language
Machine Language
Mnemonics
Assembler
Machine Language
A microprocessor executes instructions given by the user
Instructions should be in a language known to the microprocessor
Microprocessor understands the language of 0’s and 1’s only
This language is called Machine Language
For 01001111,
A valid machine language instruction of 8085
It copies the contents of one of the internal registers of 8085 to another
01001111=4F MOV C, A
Example 1: A Machine language program to add two
numbers
It uses English like words to convey the action/ meaning called as
MNEMONICS
MOV to indicate data transfer
ADD to add two values
SUB to subtract two values
Example 2: Assembly language program to add
two numbers
MVI A, 01H ; Copy value 01H in register A
MVI B, 02H ; Copy value 02H in register B
ADD B ;A=A+ B
RST 5
Assembly Machine
Assembler
Language Language
Program
Program Code
Assignment