Fancy colour loop

This commit is contained in:
Jarkko Toivanen 2023-09-21 21:06:37 +03:00
parent deadd739fb
commit e4172c14bb
Signed by: jt
GPG Key ID: 9151B109B73ECAD5
1 changed files with 33 additions and 0 deletions

View File

@ -133,6 +133,39 @@ rOSkalogodraw:
jne .loop
.done:
xor eax, eax
xor ebx, ebx
xor ecx, ecx
cloop:
push eax ;col
push ebx ;y
push ecx ;x
call putpixel
pop ecx
pop ebx
pop eax
inc ecx
cmp ecx, VWIDTH
jle cloop
xor ecx, ecx
inc ebx
cmp ebx, VHEIGHT
jle cloop
xor ebx, ebx
add eax, 5
cmp ax, 255
jle cloop
xor eax, eax
jmp cloop
jmp hang
hang: