菜鳥工具
WEB 在線工具
漸變色工具
圖片編輯器
在線畫圖
SVG 在線工具
菜鳥教程
語言
English
搜索
點擊運行
Groovy 在線工具
Assembly 在線工具
R 在線工具
VB.NET 在線工具
TypeScript 在線工具
Kotlin 在線工具
Pascal 在線工具
Lua 在線工具
Node.js 在線工具
Go 在線工具
Swift 在線工具
RUST 在線工具
Bash 在線工具
Perl 在線工具
Erlang 在線工具
Scala 在線工具
C# 在線工具
Ruby 在線工具
C++ 在線工具
C 在線工具
Java 在線工具
Python3 在線工具
Python2 在線工具
PHP 在線工具
複制
清空
郵件反饋
section .data hello: db 'Hello world!',10 ; 'Hello world!' plus a linefeed character helloLen: equ $-hello ; Length of the 'Hello world!' string section .text global _start _start: mov eax,4 ; The system call for write (sys_write) mov ebx,1 ; File descriptor 1 - standard output mov ecx,hello ; Put the offset of hello in ecx mov edx,helloLen ; helloLen is a constant, so we don't need to say ; mov edx,[helloLen] to get it's actual value int 80h ; Call the kernel mov eax,1 ; The system call for exit (sys_exit) mov ebx,0 ; Exit with return "code" of 0 (no error) int 80h;
Hello, world!