Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No weird libraries. #20

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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
31 changes: 15 additions & 16 deletions Wasser.s
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
# Die Grundlage für jedes Getränk
.LC0:
.string "Heisses Wasser\n"
.section .text.startup,"ax",@progbits
.globl main
main:
.cfi_startproc
subq $8, %rsp
.cfi_def_cfa_offset 16
movl $.LC0, %edi
xorl %eax, %eax
call printf
xorl %eax, %eax
popq %rdx
.cfi_def_cfa_offset 8
ret
.cfi_endproc
.section .text

.global _start

ingredients:
.string "Heißes Wasser\n"

_start:
mov $4, %eax
mov $1, %ebx
mov $ingredients, %ecx
mov $15, %edx
int $0x80
mov $1, %eax
int $0x80