Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
hello.asm
Language:
Ada
Assembly
Bash
C#
C++ (gcc)
C++ (clang)
C++ (vc++)
C (gcc)
C (clang)
C (vc)
Client Side
Clojure
Common Lisp
D
Elixir
Erlang
F#
Fortran
Go
Haskell
Java
Javascript
Kotlin
Lua
MySql
Node.js
Ocaml
Octave
Objective-C
Oracle
Pascal
Perl
Php
PostgreSQL
Prolog
Python
Python 3
R
Rust
Ruby
Scala
Scheme
Sql Server
Swift
Tcl
Visual Basic
Layout:
Vertical
Horizontal
;nasm 2.13.02 global _start section .data ;INITIALIZED DATA message: db 'hello world', 10 section .text ;UNINITIALIZED DATA _start: mov rax, 1 ;system call number should be stored in rax mov rdi, 1 ;arguement #1 in rdi; where to write (descriptor)? mov rsi, message ;argument #2 in rsi; where does the string start? mov rdx, 14 ;argument #3 in rdx, how many bytes to wrtie? syscall ;this instruction invokes a system call mov rax, 60 ; 'exit' syscall number xor rdi, rdi ;rdi holds a 0 syscall ;invokes system call
Show compiler warnings
[
+
]
Show input
fork mode
|
history
|
discussion