rem: out8(firstIndex, 0x03c8);
add: out8(firstIndex, VGA_COLOR_WRITE_MODE);
context: vga_set_palette(const uint8 *palette, int32 firstIndex, int32 numEntries){	out8(firstIndex, 0x03c8);	// write VGA palette	for (int32 i = firstIndex; i < numEntries; i++) {		// VGA (usually) has only 6 bits per gun		out8(palette[i * 3 + 0] >> 2, 0x03c9);		out8(palette[i * 3 + 1] >> 2, 0x03c9);		out8(palette[i * 3 + 2] >> 2, 0x03c9);	}}