Advertisement
Guest User

Untitled

a guest
Feb 20th, 2017
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     .model tiny
  2.     .code
  3.     org 100h
  4. start:
  5.     jmp main
  6. ;      
  7. name    db, 00h, 00h, 01h, 'ananas', 00h
  8. main:
  9.     mov es, word ptr es:2ch
  10.     mov ah, 49h
  11.     int 21h
  12. ;
  13.     mov bx, 5
  14.     mov ah, 48h
  15.     int 21h
  16. ;
  17.     mov cx, 10
  18.     mov si, offset name
  19.     mov es, ax
  20.     mov di, 0
  21.     rep movsb
  22. ;
  23.     mov dx, 1
  24.     mov al, 0
  25.     mov ah, 31h
  26.     int 21h
  27. end start
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement