University stuff.
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.

hellox.s 235B

1234567891011121314151617181920
  1. .extern write_char
  2. .extern write_int
  3. .extern write_string
  4. .global _main
  5. .global main
  6. _main:
  7. main:
  8. call prog$hellox
  9. movl $0,%eax
  10. ret
  11. prog$hellox:
  12. enter $32,$1
  13. movl $120,%eax
  14. pushl %eax
  15. call write_char
  16. addl $4,%esp
  17. leave
  18. ret