Advertisement
Guest User

Untitled

a guest
Dec 27th, 2014
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. Unit unit_5; // ( 2014o UTJZ5D kristofbirizdo Birizdó Kristóf )
  2.  
  3. procedure Fgv5 (VAL V1:uns64; VAL V2:uns8; RESULT R:uns64); @external;
  4. procedure Fgv5 (VAL V1:uns64; VAL V2:uns8; RESULT R:uns64);
  5. Begin Fgv5;//R=V1; SHR(V2%32,R)
  6.  
  7. PUSH(EAX);
  8. PUSH(EBX);
  9. PUSH(ECX);
  10. PUSH(EDX);
  11. // V2%32
  12. MOVZX(V2,EAX);
  13. MOV(32,EBX);
  14. cdq;
  15. IDIV(EBX);
  16. // R=V1
  17.  
  18. MOV( V1, EBX);
  19. MOV( [ EBX + 4 ], EAX);
  20. MOV(EAX, (type dword R[4]) );
  21. MOV([EBX+0],EAX);
  22. MOV(EAX, (type dword R[0]) );
  23.  
  24. // SHR(V2%32,R)
  25.  
  26. End Fgv5;
  27.  
  28. end unit_5;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement