954,479 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Can't set the vga color palette entrees

I have tried to set the colors of the vga color palette here is my code:

mov ax, 0x13
	int 0x10
	mov ax, 0xa000
	mov es, ax
	mov al, 2
	mov bh, 63
	mov bl, 0
	mov ch, 0
	call SetPalette
	mov si, 344
	mov byte [es:si], 2
	Hang:
	jmp Hang

SetPalette:
	out 0x3c8, al
	mov al, bh
	out 0x3c9, al
	mov al, bl
	out 0x3c9, al
	mov al, ch
	out 0x3c9, al
	ret


It does not set the entree number it always sets palette entree 0.
Can anyone tell me why this is or how to fix it?
Also I was found that the maximum number of each color is 63 why is this?

ThatGuy2244
Light Poster
34 posts since Jan 2011
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: