《操作系统》的实验代码。
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
169 B

  1. .include "defines.h"
  2. .data
  3. hello:
  4. .string "hello world\n"
  5. .globl main
  6. main:
  7. movl $SYS_write,%eax
  8. movl $STDOUT,%ebx
  9. movl $hello,%ecx
  10. movl $12,%edx
  11. int $0x80
  12. ret