I am supposed to write a program to show all possible color combinations, but I am having problems. It will give me all 256 colors, but not in all possible combinations.
Here is me code.
include irvine32.inc
.data
colors byte 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15
.code
main PROC
mov ecx, 16
mov esi, offset colors
mov eax, 0
Outer:
push ecx
mov al, [esi]
call settextcolor
mov al, '#'
call gotoxy
call Writechar
mov ecx, 16
mov esi, offset colors
Inner:
mov al, [esi]
inc esi
call settextcolor
mov al, '#'
call Writechar
inc dh
loop Inner
inc esi
pop ecx
loop Outer
exit
main ENDP
END main