Skip to content

Instantly share code, notes, and snippets.

@CynthiaMaldonadoR
Created May 31, 2020 08:08
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/905152e7026becfbebe8526b52121865 to your computer and use it in GitHub Desktop.
Save CynthiaMaldonadoR/905152e7026becfbebe8526b52121865 to your computer and use it in GitHub Desktop.
.model small
.stack 64
.data
num db 0
alta db 0
baja db 0
msjr db '1 / $'
.code
inicio:
mov dx, @data
mov ds, dx
mov cx, 09h
serie:
lea dx, msjr
mov ah, 9h
int 21h
add 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