Advertisement
TShiva

ASM lab0

Feb 27th, 2015
368
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. int main()
  2. {
  3.     int a = 2, b = 3, c = -4, d;
  4.     __asm{
  5.         lea ebx,c
  6.         mov eax,a
  7.         add eax,b
  8.         mov ecx,c
  9.         mul ecx
  10.         mov d,eax
  11.     }
  12.     return 0;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement