Search code examples
assemblyx86nasmbios

256-color chart for mode 13h?


I am working on a small project, and am trying to match some colors I found on the web. Is there a 256-color chart for mode 13h available to do this? I can't seem to find one on Google.

Example of color code:

0fh ;white
0ah ;light green

Final:

https://upload.wikimedia.org/wikipedia/commons/4/49/VGA_palette.svg vga color pallete


Solution

  • The palette you've got is not the default mode 0x13 palette. It's a custom palette, that values 0 .. 0xff map to. Presumably for the best possible match with the game's artwork. Another example of the default here.

    enter image description here