Fancy colour loop
This commit is contained in:
parent
deadd739fb
commit
e4172c14bb
1 changed files with 33 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue