Skip to main content

Assembly Level Language

Assembly Level Language

Assembly language is a middle level language. Assembly level language in computer programming has evolved with the advancements in the machine language. Assembly language uses symbols, such as letters, digits, and special characters. So it is a alphanumeric code. In assembly language, we use predefined words called mnemonics. Mnemonics in computer terminology to write the instructions. So, comparatively writing a program in Assembly language is more understandable to the Human than Machine Language.

As we know that computer only understand the binary codes but assembly language uses alphanumeric codes so that purpose a translator is required to translate it into machine code. The Assembly language code will be converted into a Machine language code with the help of an Assembler so that the computer can understand the binary converted Assembly Language.

Assembler

Assembler is a translator which converts assembly language code to machine language code. It acts as a intermediary between humans and computers. it  takes assembly code as input and produces machine code as output that can be understood by the computer.

Example of Assembly language is- 

  1. ADD A,B                               :Add the content of the B register into the A register
  2. MOV A,3                               :Transfer the value 3 to the A register
  3. INC COUNT                         : Increment the memory variable
  4. COUNT MOV TOTAL, 48 : Transfer the value 48 in the ; memory variable
  5. TOTAL ADD AH, BH         : Add the content of the ; BH register into the AH                                                        register
  6. ADD MARKS, 10                 : Add 10 to the variable MARKS
  7. MOV AL, 10                          : Transfer the value 10 to the AL register

Comments

Popular posts from this blog

How to write and naming a java program

Java program can be created by using any editor.  The source code in java contains one or multiple number of classes.  Naming a java program Java program must be saved with a .java extension.  The primary name of the program must be same as class name if the class is declared as public.  It can be any name if no class is declared as public.  In one Java program there is only one public class.  How to compile a java program To compile a java program in command prompt (CMD)  Syntax- javac <file_name.java> Example- javac Hello.java How to run a java program To run a java program in command prompt Syntax- java class_name Example- java Hello

Command Prompt (CMD) Basic commands to Compile and Run java programs

How to change the drive in CMD (Command Prompt) To access another drive, type the drive’s letter, followed by : For instance, if you wanted to change the drive from C: to E:, you should type- Example-  E: ⤶ How to change the directory in CMD (CD in Command Prompt) The first command from the list is CD (Change Directory). This command enables you to change the current directory or, in other words, to navigate to another folder from your PC. Syntax- CD <Folder_Name> ⤶ Example- CD Saubhagya ⤶ How to go to the root of the drive in CMD (CD\) The first iteration of the CD command you should know is CD\. It takes you to the top of the directory tree. To see how it works, after you open the Command Prompt, type: Example- CD\ ⤶ How to change the parent directory in CMD (CD..) When you need to go one folder up, use the cd.. command. Let's assume that you’re inside the system32 folder and want to go back to the Windows folder. Type Example-  CD.. ⤶

Features of Java

  Features of Java The primary objective of Java programming language creation was to make it portable, simple and secure programming language. Apart from this, there are also some excellent features which play an important role in the popularity of this language. The features of Java are also known as Java buzzwords . A list of the most important features of the Java language is given below. Simple Object-Oriented Portable Platform independent Secured Robust Architecture neutral Interpreted High Performance Multithreaded Distributed Dynamic Simple Java is very easy to learn, and its syntax is simple, clean and easy to understand. According to Sun Microsystem, Java language is a simple programming language because: Java syntax is based on C++ (so easier for programmers to learn it after C++). Java has removed many complicated and rarely-used features, for example, explicit pointers, operator overloading, etc. There is no need to remove unreferenced objects because there is an Autom...