Advertisement
Guest User

Untitled

a guest
Mar 12th, 2013
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. .MODEL SMALL
  2. .STACK 256
  3.  
  4. .data
  5. Z dd 00000000h
  6. X dd 12345678h
  7. Y dd 2BADC0DEh
  8. result dw 3 dup (0); под результат тройное слово для избеж перепол
  9.  
  10. .code
  11.  
  12. begin:
  13. mov eax, offset X
  14. push eax
  15. mov ebx, offset Y
  16. push ebx
  17. mov ecx, offset Z
  18.  
  19. add ecx, eax
  20. add ecx, ebx
  21. mov result, ecx
  22. push result
  23.  
  24. pop result
  25.  
  26. mov ah,9h
  27. int 21h
  28. end Begin
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement