Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions helloworldinassembly.s
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
.section .data
hello:
.string "Hello World!\n"
longhello:
.int .-hello

.section .text
.global _start

_start:

mov $4, %eax
mov $1, %ebx
mov $hello, %ecx
mov longhello, %edx
int $0x80

mov $1, %eax
mov $0, %ebx
int $0x80