os_kernel_lab/related_info/lab1/lab1-ex0.s
2015-03-07 22:37:54 +08:00

15 lines
169 B
ArmAsm

.include "defines.h"
.data
hello:
.string "hello world\n"
.globl main
main:
movl $SYS_write,%eax
movl $STDOUT,%ebx
movl $hello,%ecx
movl $12,%edx
int $0x80
ret