Advertisement
alamin54017

Write a program to (a) display a "?", (b) read two decimal d

Nov 18th, 2019
267
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. include "emu8086.inc"
  2. .model small
  3. .stack 100h
  4. .code
  5. main proc
  6.     print "?"
  7.     mov ah,1
  8.     int 21h
  9.     mov bl,al
  10.     int 21h
  11.     mov bh,al
  12.    
  13.     printn
  14.    
  15.     print "The Sum of "
  16.     mov ah,2
  17.     mov dl,bl
  18.     int 21h
  19.     print " and "
  20.     mov dl,bh
  21.     int 21h
  22.     print " is: "
  23.    
  24.     add bl,bh
  25.     sub bl,30h
  26.    
  27.     mov ah,2
  28.     mov dl,bl
  29.     int 21h
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement