Created
June 9, 2020 23:48
-
-
Save brandon22esquivel/7c3cae120003ecb7068af68b758a1f59 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
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