test.S 247 B

1234567891011121314151617181920212223
  1. #include "header.h"
  2. .text
  3. .align 2
  4. .section .data
  5. val:
  6. .long SOME_VALUE
  7. // Multiply input value by 421...
  8. .global mult10
  9. .type mult10, function
  10. mult10:
  11. pushq %rbp
  12. movq %rsp,%rbp
  13. movl val,%eax
  14. imull %edi,%eax
  15. popq %rbp
  16. ret