Advertisement
Guest User

Untitled

a guest
Sep 30th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. .386
  2. .model flat, stdcall
  3. include c:\masm32\include\masm32rt.inc
  4.  
  5. option casemap : none
  6.  
  7. .code
  8. start:
  9.     mov eax, 0
  10.     mov ebx, 0
  11.    
  12.     mov al, 22
  13.     mov bl, 3
  14.     mul bl
  15.     mov bh, al
  16.    
  17.     mov ax, 45
  18.     mov bl, 6
  19.     div bl
  20.    
  21.     sub bh, al
  22.    
  23.     mov ax, 0
  24.     mov al, bh
  25.     mov bl, 14
  26.     div bl
  27.     mov bh, al
  28.    
  29.     mov al, 7
  30.     mov bl, 5
  31.     mul bl
  32.    
  33.     mov ah, al
  34.     mov al, 134
  35.     sub al, ah
  36.    
  37.     mov ah, 0
  38.     mov bl, 13
  39.     div bl
  40.    
  41.     mov bl, al
  42.     mov ax, 0
  43.     mov al, bh
  44.     div bl
  45.    
  46.     mov bl, 2
  47.     mul bl
  48.    
  49.     add ax, 4
  50.    
  51.     printf ("%d\n", ax)
  52.     invoke ExitProcess, 0
  53.     ret
  54.     end start
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement