Created
May 31, 2020 07:41
-
-
Save CynthiaMaldonadoR/d2edab62a7931db7dec2d53c4ad8ff7b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.stack 64 | |
.data | |
nom db 'CYNTHIA ','$' | |
ape db 'RAMIREZ','$' | |
nomcom db 'ABCDEFGHIJKLMNO','$' | |
.code | |
begin proc far | |
mov ax,@data | |
mov ds,ax | |
mov es,ax | |
mov cx,08 | |
lea si,nom | |
lea di,nomcom | |
b20: | |
mov al,[si] | |
mov [di],al | |
inc si | |
inc di | |
dec cx | |
jnz b20 | |
mov cx,07 | |
lea si,ape | |
b21: | |
mov al,[si] | |
mov [di],al | |
inc si | |
inc di | |
dec cx | |
jnz b21 | |
mov ah,09h ;peticion para desplegar | |
lea dx,nomcom ;carga la direccion de la indicacion | |
int 21h ;llama al dos | |
mov ax,4c00h | |
int 21h | |
begin endp | |
end begin |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment