vineri, 28 mai 2010

How to write a program in assembly language? (Advanced)

Assembly language is a low-level programming language.
In fact at this level you can control visible registries of processor.


An assembly program requires some lines to work properly:

.model small

.stack ; without stack you will get a warning

.data ;data segment starts here

;here you define variables

.code ;code segment starts here

start: ;program beginning label

; .
; .
; .
; .
; .
; .

mov ah,4Ch ; end of the program
int 21h
end start

Niciun comentariu :