Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- DOSSEG
- .MODEL TINY
- .STACK 100h
- .DATA
- A DB 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, '$'
- B DB 11 DUP(0)
- .CODE
- start:
- cld
- mov ax, @DATA
- mov ds, ax
- mov es, ax
- lea si, A
- lea di, B
- mov cx, 11
- rep movsb
- mov cx, 10
- lea si, B
- m2: mov ax, [si]
- add ax, 30h
- mov [si], ax
- add si, 1
- loop m2
- mov cx,10
- mov si, 0
- m1:
- mov dl, [A+si]
- add dl, 30h
- int 21h
- mov ah, 02h
- mov dl, 20h
- int 21h
- inc si
- loop m1
- mov ah, 4ch
- int 21h
- END start
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement