Skip to content

Instantly share code, notes, and snippets.

@CynthiaMaldonadoR
Created May 31, 2020 08:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CynthiaMaldonadoR/65117eb7574731eb98936e56fa36d5ea to your computer and use it in GitHub Desktop.
Save CynthiaMaldonadoR/65117eb7574731eb98936e56fa36d5ea to your computer and use it in GitHub Desktop.
.model small
.stack 64
.data
num db 11
alta db 0
baja db 0
.code
inicio:
mov dx, @data
mov ds, dx
mov cx, 11
serie:
sub num, 01h
mov al, num
aam
mov alta, ah
mov baja, al
mov ah, 02h
mov dl, alta
add dl, 30h
int 21h
mov ah, 02h
mov dl, baja
add dl, 30h
int 21h
mov ah, 02h
mov dl, 0ah
int 21h
mov ah, 02h
mov dl, 0dh
int 21h
loop serie
mov ax, 4c00h
int 21h
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment