- autocad1012@yahoo.com

 

 

()

 

. MS-DOS. 7-11, 01-11.

 

 

?

 

(! , , .

NASM http://www.opennet.ru/docs/RUS/nasm/

NASM http://www.nasm.us/)

Linux :

: lonesome TSH/Digital Daemons
: .01.2003
: Linux

 

, . , . . , 4.03.2011, , , . .

 

txt segment 'code'

assume cs:txt,ds:data,es:data,ss:stack

myproc proc

mov ax,data

mov ds,ax

mov ah,40h

mov bx,1

mov cx,meslen

mov dx,offset mes

int 21h

mov ah,4ch

int 21h

myproc endp

txt ends

data segment

mes db 'Privet'

meslen=$-mes

data ends

stack segment stack

db 256 dup (0)

stack ends

end myproc

global _start
 
 
_start:
 
mov eax, 4
mov ebx, 1
mov ecx, msg
mov edx, msglen
int 0x80
 
mov eax, 1
mov ebx, 0
int 0x80
 
section .data
 
msg: db "Linux rulez 4ever",0x0A,0
msglen equ $-msg

 

MS-DOS TASM

LINUX NASM