Skip to content

Instantly share code, notes, and snippets.

@brandon22esquivel
Created June 9, 2020 23:48
Show Gist options
  • Save brandon22esquivel/7c3cae120003ecb7068af68b758a1f59 to your computer and use it in GitHub Desktop.
Save brandon22esquivel/7c3cae120003ecb7068af68b758a1f59 to your computer and use it in GitHub Desktop.
mov cx,1
mov al, 13h
mov ah, 0
int 10h ; Establecer el modo de video de gráficos.
bucle1:
mov dx, cx
mov al, color ;AL = pixel color
mov ah, 0ch ;Cambiar color para un solo pixel
int 10h ;Establecemos pixel
cmp cx, 101 ;Llegar hasta 100 x 100 (va en diagonal)
jz fin
inc cx ;DX = row.
add color, 2 ;para cambiar colores
jmp bucle1 ;CX = column
fin:
ret
color db 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment