Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #make_com#
- org 100h
- jmp start
- array db 20 dup(0)
- var db ?
- c db 0
- cc db ?
- start:
- xor si,si
- start1:
- cmp si,10
- jge continua
- mov ah,01h
- int 21h
- mov array[si],al
- inc si
- jmp start1
- continua:
- xor si,si
- continua1:
- cmp si,10
- jge stampa
- mov ah,array[si]
- mov cc,ah
- push word ptr cc
- inc si
- jmp continua1
- stampa:
- xor si,si
- stampa1:
- cmp si,10
- jge fine
- pop word ptr cc
- mov ah,cc
- mov array[si],ah
- mov al,array[si]
- mov ah,02h
- int 21h
- inc si
- jmp stampa1
- fine:
- ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement