test.asm 274 B

123456789101112131415161718
  1. bits 64
  2. default rel
  3. segment .text
  4. global getVal
  5. getVal:
  6. call rcx
  7. mov rcx,2h
  8. add eax,ecx
  9. mov rcx,3h
  10. add eax,ecx
  11. mov rdx,4h
  12. mov edx,edx
  13. mov rcx,5h
  14. add edx,ecx
  15. add eax,edx
  16. ret