Files
linux-kernel-module-cheat/userland/arch/x86_64/freestanding/hello.S
Ciro Santilli 六四事件 法轮功 07000300ab userland: support arch specific examples
2018-11-20 00:00:00 +00:00

20 lines
259 B
ArmAsm

.data
s:
.ascii "hello\n"
len = . - s
.text
.global _start
_start:
/* Write. */
mov $1, %rax
mov $1, %rdi
mov $s, %rsi
mov $len, %rdx
syscall
/* Exit. */
mov $60, %rax
mov $0, %rdi
syscall