Posts

Showing posts with the label assembly language

Assembly language basic instruction set

Image
Assembly language is languages that must be learn in order to become a good programmer. This post is special for the people whose want to learn assembly language for IBM computer. Below is some of the example of instruction set. 1)    MOV -->Move data Move the value of 100 into the AX, thus AX will have 100 after the execution of the instruction set. 2)    JMP -->unconditional Jump It is use to transfer the programs to the Instruction Pointer (IP) that you want to execute. For example JMP 100 mean jump to the IP 100. 3)    CMP -->Compare Must use with others instruction like JE, JZ, JNE, JNZ. Use to compare two values. 4)    JE/JZ,JNE/JNZ-->Jump if equals/zero, Jump if not equals/not zero CMP instruction set must be first then only use this instruction set. Jump to the Certain IP that you set. 5)    SHL-->Shift algebraic left Shift bit to left. For example: MOV AX, 0002 SHL...

Benefit and reason using Assembly Languages

Image
Basically there are 3 levels of Programming Languages: Machine Language Consists of individual instructions that will be executed by the CPU one at a time Using Binary code ,since machines/ computer only know "on" and "off". Assembly Language (Low Level Language) Designed for a specific family of processors (different processor groups/family has different Assembly Language) Consists of symbolic instructions directly related to machine language instructions one-for-one and are assembled into machine language. High level Language For example:C, C++, java and Vbasic Designed to eliminate the technicalities of a particular computer.Statements compiled in a high level language typically generate many low-level instructions.  The main point of this post is not about the machine language nor High Level Language , but the assembly Language. Machine Language is make up from 0 and 1 ,thus assembly language is easier for human to read since  is usi...