Hello all,
I wrote a page about Assembly language programming.
I need your advice about it and what else I could add that could be usefull ?
Here it is :
http://www.ifrance.com/programmershouse/ASS-EN.HTML
--------------------
ASSEMBLY :
It is a difficult to code language.
It is very close to the "machine language".
Its single interest is to control directly and exactly what the processor is doing.
It is used to optimize programs on processors with little memory, or to write the BIOS.
The code is not portable from a processor to another from a different trend.
INTEL INSTRUCTIONS :
CALL "address" : Calls a program.
CMP, TEST "register or address" : Compars both arguments.
JMP "address" : Calls a program.
JNE or JE "address" : Jump if (Non) Equal
JZ or JNZ "address" : Jump if (Non) Zero
LEA arg1,arg2 : Loads arg1 with value pointed by arg2
MOV arg1,arg2 : Puts arg2 in arg1
PUSH "hexa number or register" : Push register into stack
POP "hexa number or register" : Pop stack into register
SUB, ADD, MUL arg1,arg2 : results into arg1
COMPILER :
Allows to go from the code (.asm) to executable (.exe).
The best compilers are :
MASM32
MY FIRST PROGRAM IN INTEL ASSEMBLY :
; Data
Data Segment
Message DB "Hello The World ! $"
Data EndS
; Le code
Code Segment
Assume Cs : Code, Ds : Data
Main Proc
; Printing of the message
Mov Ah, 09h
Mov Dx, Offset Message
Int 21h
; end of the program,
; then return to MS-DOS
Mov Ah, 0C00h
Int 21h
Main EndP
Code EndS
End Main
LINKS :