os_kernel_lab/related_info/lab1/lab1-ex0.s

15 lines
169 B
ArmAsm
Raw Permalink Normal View History

2013-09-17 20:36:57 +08:00
.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