The machine read-only machine language, not another language. The assembly language converted programming code into machine language like 0 or 1 form. In this way, The machine executed the code.
Assembly Programming is faster rather than other programming languages.
Assembly language is very helpful to us when we want fast execution for any device or machine.
The programing language like Java, PHP, Programming C, etc. these languages translated into assembly language and then, compiled into 0 or 1 form. It called ‘machine code’ or ‘machine language’. you can see here What Is The Programming Language?
What Is an Assembly Language?
The machine read the instruction of assembly language and run fast. That code converted into 0 or 1 form, It called ‘Binary Number’ or ‘machine code’. But It’s a low-level code in assembly language.
The modern machine has a hexadecimal number. Because the assembler established the code into a high-level language to the growing speed of execution in the machine.
Machine code included in a binary number, decimal number, and hexadecimal number.
The number of binary, octal, decimal and hexadecimal has included in KB(kilobytes), MB(megabytes), GB(gigabytes). you can see about machine language and machine learning.
What Is Machine Learning? Why Does It So Important?
Now, I will show some instructions and definitions of assembly language and how the machine read the instruction of assembly is accessed by the assembler.
Assembly Language Commands
The DB directive used to declare a 2-byte variable. 1 byte is consists of 8 bits. So, It has total of 16 bits.
For example- DB 10h
This instruction the return 10 and terminates the byte.
The DW directive used to word type variable it has 2-byte.
For example- DW 1234h
This instruction set the maximum number of the word into memory or accumulator.
This directive indicates the export of entry symbol which is a label at entry-level.
This directive is substitute values for symbols or labels.
This directive assigned the value to the symbol. you can not define this directive if the EQU directive was used.
This directive set the program or register address
For example:- ORG 0100h
This instruction is to assemble all subsequent code starting address at 0100h
******STRUCT and END:-
The Struct directive provides a structure template for grouping data. END directive provides the end of the structure
The instruction known by machine read as a fast.
This directive is moved from one place to another place
For example:MOV DS,DX
This indicates to move the content of DX into segment register DS
This directive has loaded the value of content
For example:- LDA RS, 10h
These directives indicate to load 10 value into RS
This directive is to add the value in a particular location
For example:- ADD L,3
This instruction to added the value into L location
How assembly programming is helpful?
Today’s many computers are developed by the assembly. Because assembly executed fast in any machine. So It’s important for developing a fast machine or computer.
The Assembly eliminates much of the error-prone, tedious, and time-consuming programming.
The Assembly is used for hardware manipulation to access processor instruction. It avoiding critical performance issues.
Typically, It used in device drivers, embedded system and real-time systems.
Most microcomputers relay on hand-coded assembly language, including an operating system. Because this system had to serve resource constraints.
Microcomputer use a psychological factor may have also to play a role. the first generation of microcomputer programmer retained wires and pliers attitude.
It’s called a low-level programing language. Because there is a very strong correspondence between program statement and machine code instruction.
Now, I will show to you some important things about assembly. this will help you to know about the computer and their parts.
Advantages Of Assembly Language
- The program is interfaced with the os(operating system), processor, BIOS(bus input-output system)
- The data is strongly represented in memory and other external devices
- The Processor accessed and executed an instruction
- That requires less memory and execution time
- That allows complex work in specific hardware
Assembly is faster than others. Therefore, the machine is read the program of assembly. Then, that code converted into machine code. This called assembly language programming 8086.
The code that executed by the assembler and then run. So, The assembler is a compilation of assembly and executes the source program into the machine.
In this way, that targets to the machine and displays the input and output of a program.
The modern assembler has x86 processors. It’s consists of 32-bit, 64-bit, SSE, and AVX.
More of the x86 assembly is the most popular architecture in desktop and laptop computers So, this language used in the operating system, firmware, device drivers, embedded system.
In this, the physical location of memory and control of statements are not done by the program.
The physical location of memory done by the assembly of the machine. So, that depends on the machine.
Assembly Language PDF
1) Evans, David(2006). “x86 assembly guide”
The University of Virginia. Retrieved 18 November 2010
2) “The SPARC architecture manual version 8”
SPARC International.1992 Archived From The Original On 2011-12-10
3) Andrew D. Booth: Kathleen H.V Britten
“General considerations in the design of all-purpose electronic digital computer”
4) Campbell-kelly martin(April 1982)
“The development of computer programing in Britain”
IEEE Annals of the history of computing
I’m Jainish Patel. Started carrier to become a developer. But, more appreciated to online business. So, follow up my passion according to my rules. Now, a full-time blogger. Working Hard and Going toward to put the right value on my ways. Thank You✌👍💲