Advertisement
madmaxhasan

Single Digit MUL

Apr 7th, 2018
317
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. .MODEL SMALL
  2. .STACK 100
  3.  
  4. .DATA
  5.  
  6.     D1 DB ?
  7.     D2 DB ?
  8.     D3 DB ?
  9.    
  10. .CODE
  11.  
  12. JOY PROC
  13.    
  14.     MOV AX, @DATA
  15.     MOV DS, AX
  16.    
  17.     MOV AH, 1
  18.     INT 21H
  19.     SUB AL, 30H
  20.     MOV D1, AL
  21.    
  22.     MOV AH, 1
  23.     INT 21H
  24.     SUB AL, 30H
  25.     MOV D2, AL
  26.    
  27.     MUL D1
  28.     MOV D3, AL
  29.    
  30.     ADD AL, 30H
  31.    
  32.     MOV DL, AL
  33.     MOV AH, 2
  34.     INT 21H
  35.    
  36.     MOV AH, 4CH
  37.     INT 21H
  38.    
  39. JOY ENDP
  40. END JOY
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement