Assembly Language Vs Machine Language
Prepared By Hitesh Vataliya
Machine Language is based on 0's and 1's. It understands only binary digits. Hence we can say Binary Language is Machine Understandable Language. Binary Language can't be understandable by the Human Being.
All the data stored inside the CD, DVD, Floppy disk, Memory Card, Hard disk or Pen drive are in the form of Binary Language, whose base is 2.
Machine only understands that two digits.
Storage Media as said above stores the Binary Format but We are seeing the GUI(Graphical User Interface) by which we can say that the data is software, game, website, movie or video. which are possible by the software engineer of scientific officer who understand binary they make Assembly language.
- It greatly depends on machine and is difficult for most people to write in 0-1 forms.
- DEBUGGING is difficult.
- Deciphering the machine code is very difficult. Thus program logic will be difficult to understand.
Assembly Language is Language which has mnemonics or we can say some words which can pass humans message to the CPU or Computer.
Human can understand the Assembly Language, so we can say that programmer writes the program which needs to be converted into computer understandable form and for that assembler plays the role as middle man between HUMAN and CPU.
Assembler is the software program which converts assembly language code to machine language.
- Assembly Language provides more control over handling particular hardware and software, as it allows you to study the instructions set, addressing modes, interrupts etc.
- Assembly Programming generates smaller, more compact executable modules: as the programs are closer to machine, you may be ableto write highly optimised programs. This results in faster execution of programs.
Some Useful Instruction of 8086 Micro Processor or CPU:
LOAD as “Load the accumulator with the content of memory”
STORE as “Store the current value of Accumulator in the memory”
ADD as “Add the value from memory to the Accumulator”
STORE as “Store the current value of Accumulator in the memory”
ADD as “Add the value from memory to the Accumulator”
MOV AH, 08H ; Function to move 08H to AH resister
INT 21H ; The character input in AL is
INT 21H ; The character input in AL is
SUB BL, ‘0’ ; subtract the 0H from BL Resister
MUL BL, 10H ; multiply BL by 10H
MUL BL, 10H ; multiply BL by 10H
DIV BL ; Divide AL Resister By BL and Store Answer in AL
Defining Types of Data
The following format is used for defining data definition:
Format for data definition:
{Name} <Directive> <expression>
Name - a program references the data item throughthe name although it is
optional.
Directive: Specifying the data type of assembly.
Expression: Represent a value or evaluated to value.
The list of directives are given below:
Directive Description Number of Bytes
DB Define byte 1
DW Define word 2
DD Define double word 4
DQ Define Quad word 8
DT Define 10 bytes 10
No comments:
Post a Comment