JustPaste
HomeCategoriesAboutDonateContactTerms of UsePrivacy Policy
JustPaste

Free online notepad — write and share instantly

Navigate

  • Home
  • Timeline
  • Categories

Info

  • About
  • Donate
  • Contact

Legal

  • Terms of Use
  • Privacy Policy

© 2026 JustPaste.app. All rights reserved.

Made with ♥ by JustPaste

Untitled Page | JustPaste.app
3 months ago0 views
👨‍💻Programming
.model small 
.stack 100h
.data
 str1 db          "input dividend: $"
 str2 db   13,10 ,"input divisor:  $"
 str3 db   13,10 ,"result:         $"
 str4 db   13,10 ,"undefined!!!!!! $"
.code

main proc
    mov ax, @data
    mov ds, ax  
    
    lea dx, str1
    mov ah,9h
    int 21h
    
    
    mov ah, 1h   ; user input
    int 21h
    sub al, 30h
    mov bl,al
    
    lea dx, str2
    mov ah,9h
    int 21h                                                               
    
    mov ah, 1h   ; user input
    int 21h
    sub al, 30h
    mov bh,al
    
    lea dx, str3
    mov ah,9h
    int 21h
    
    exit:
    mov ah,4ch
    int 21h
    
    main endp
end main
← Back to timeline