39
правок
Изменения
→Простейшая программа
=== Windows ===
section .text ; code section global _main ; entry point must be global
_main: ; entry point ret ; exit
=== Linux ===
section .text ; code section global _start; entry point must be global
_start: ; entry point mov eax, 1 ; sys_exit system call mov ebx, 0 ; return code 0 int 0x80 ; call kernel
= Компиляция =