Advertisement
Guest User

Untitled

a guest
Apr 4th, 2020
22,528
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. %include "rw32-2018.inc"
  2.  
  3. section .data
  4.     chill dw 12
  5.     netflix db -3
  6.     ; zde budou vase data
  7.  
  8.  
  9. section .text
  10. ;int schedule(char netflix, short chill);
  11. schedule:
  12.     push ebp
  13.     mov ebp,esp
  14.    
  15.     mov ax,0
  16.     mov al,[ebp+4]
  17.     mov bx,[ebp+8]
  18.    
  19.     imul bx
  20.    
  21.     mov esp,ebp
  22.     pop ebp
  23.     ret
  24.  
  25. _main:
  26.     push ebp
  27.     mov ebp, esp
  28.    
  29.     push dword [chill]
  30.     push dword [netflix]
  31.     call schedule
  32.     add esp,8
  33.     ; zde bude vas kod
  34.  
  35.     pop ebp
  36.     ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement