Advertisement
Guest User

Untitled

a guest
Nov 28th, 2014
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. t2_check: ;---
  2. ; -- your code here ---
  3. movsx EAX, byte[seq]
  4. movsx ECX, byte[seq+1]
  5. movsx EDX, byte[seq+2]
  6. sub EAX, 2
  7. sub ECX, 2
  8. sub EDX, 2
  9. call mul3 ;---
  10. _check 2 ;---
  11. jmp task_3 ;--- jump over to 'task_3' to avoid
  12. ; running into the mul3 function
  13. mul3: ;---
  14. push EAX
  15. imul EAX, ECX
  16. imul EAX, EDX
  17. mov EDX, EAX
  18. pop EAX
  19. ret ; place return from subroutine here
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement