Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. .mode small ; // 1 segmento de datos y 1 de código
  2.  
  3. .data ; // Las siguientes declaraciones se insertarán en el segmento de datos
  4. a dw 500
  5. b dw 500
  6. c dw 0
  7.  
  8. .code ; // Las siguientes declaraciones se insertarán en el segmento de código
  9. mov ax, seg a
  10. mov ds, ax
  11.  
  12. mov ax, a
  13. sub ax, b
  14. mov c, ax
  15.  
  16. mov ah, 4ch
  17. int 21h
  18.  
  19. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement