It's a 256-color mode, and uses the 256-color palette registers directly.
Each palette entry contains R, G and B components.
These components use up to 6 bits.
So we can select colors from a range of 18-bit colors (262,144 colors).
Code: Select all
;Version 2013-03-10
;;
PALETTE_320x200x256:
PALETTE_320x200x256_Color_0: db 0x0,0x0,0x0
PALETTE_320x200x256_Color_1: db 0x0,0x0,0x2A
PALETTE_320x200x256_Color_2: db 0x0,0x2A,0x0
PALETTE_320x200x256_Color_3: db 0x0,0x2A,0x2A
PALETTE_320x200x256_Color_4: db 0x2A,0x0,0x0
PALETTE_320x200x256_Color_5: db 0x2A,0x0,0x2A
PALETTE_320x200x256_Color_6: db 0x2A,0x15,0x0
PALETTE_320x200x256_Color_7: db 0x2A,0x2A,0x2A
PALETTE_320x200x256_Color_8: db 0x15,0x15,0x15
PALETTE_320x200x256_Color_9: db 0x15,0x15,0x3F
PALETTE_320x200x256_Color_10: db 0x15,0x3F,0x15
PALETTE_320x200x256_Color_11: db 0x15,0x3F,0x3F
PALETTE_320x200x256_Color_12: db 0x3F,0x15,0x15
PALETTE_320x200x256_Color_13: db 0x3F,0x15,0x3F
PALETTE_320x200x256_Color_14: db 0x3F,0x3F,0x15
PALETTE_320x200x256_Color_15: db 0x3F,0x3F,0x3F
PALETTE_320x200x256_Color_16: db 0x0,0x0,0x0
PALETTE_320x200x256_Color_17: db 0x5,0x5,0x5
PALETTE_320x200x256_Color_18: db 0x8,0x8,0x8
PALETTE_320x200x256_Color_19: db 0xB,0xB,0xB
PALETTE_320x200x256_Color_20: db 0xE,0xE,0xE
PALETTE_320x200x256_Color_21: db 0x11,0x11,0x11
PALETTE_320x200x256_Color_22: db 0x14,0x14,0x14
PALETTE_320x200x256_Color_23: db 0x18,0x18,0x18
PALETTE_320x200x256_Color_24: db 0x1C,0x1C,0x1C
PALETTE_320x200x256_Color_25: db 0x20,0x20,0x20
PALETTE_320x200x256_Color_26: db 0x24,0x24,0x24
PALETTE_320x200x256_Color_27: db 0x28,0x28,0x28
PALETTE_320x200x256_Color_28: db 0x2D,0x2D,0x2D
PALETTE_320x200x256_Color_29: db 0x32,0x32,0x32
PALETTE_320x200x256_Color_30: db 0x38,0x38,0x38
PALETTE_320x200x256_Color_31: db 0x3F,0x3F,0x3F
PALETTE_320x200x256_Color_32: db 0x0,0x0,0x3F
PALETTE_320x200x256_Color_33: db 0x10,0x0,0x3F
PALETTE_320x200x256_Color_34: db 0x1F,0x0,0x3F
PALETTE_320x200x256_Color_35: db 0x2F,0x0,0x3F
PALETTE_320x200x256_Color_36: db 0x3F,0x0,0x3F
PALETTE_320x200x256_Color_37: db 0x3F,0x0,0x2F
PALETTE_320x200x256_Color_38: db 0x3F,0x0,0x1F
PALETTE_320x200x256_Color_39: db 0x3F,0x0,0x10
PALETTE_320x200x256_Color_40: db 0x3F,0x0,0x0
PALETTE_320x200x256_Color_41: db 0x3F,0x10,0x0
PALETTE_320x200x256_Color_42: db 0x3F,0x1F,0x0
PALETTE_320x200x256_Color_43: db 0x3F,0x2F,0x0
PALETTE_320x200x256_Color_44: db 0x3F,0x3F,0x0
PALETTE_320x200x256_Color_45: db 0x2F,0x3F,0x0
PALETTE_320x200x256_Color_46: db 0x1F,0x3F,0x0
PALETTE_320x200x256_Color_47: db 0x10,0x3F,0x0
PALETTE_320x200x256_Color_48: db 0x0,0x3F,0x0
PALETTE_320x200x256_Color_49: db 0x0,0x3F,0x10
PALETTE_320x200x256_Color_50: db 0x0,0x3F,0x1F
PALETTE_320x200x256_Color_51: db 0x0,0x3F,0x2F
PALETTE_320x200x256_Color_52: db 0x0,0x3F,0x3F
PALETTE_320x200x256_Color_53: db 0x0,0x2F,0x3F
PALETTE_320x200x256_Color_54: db 0x0,0x1F,0x3F
PALETTE_320x200x256_Color_55: db 0x0,0x10,0x3F
PALETTE_320x200x256_Color_56: db 0x1F,0x1F,0x3F
PALETTE_320x200x256_Color_57: db 0x27,0x1F,0x3F
PALETTE_320x200x256_Color_58: db 0x2F,0x1F,0x3F
PALETTE_320x200x256_Color_59: db 0x37,0x1F,0x3F
PALETTE_320x200x256_Color_60: db 0x3F,0x1F,0x3F
PALETTE_320x200x256_Color_61: db 0x3F,0x1F,0x37
PALETTE_320x200x256_Color_62: db 0x3F,0x1F,0x2F
PALETTE_320x200x256_Color_63: db 0x3F,0x1F,0x27
PALETTE_320x200x256_Color_64: db 0x3F,0x1F,0x1F
PALETTE_320x200x256_Color_65: db 0x3F,0x27,0x1F
PALETTE_320x200x256_Color_66: db 0x3F,0x2F,0x1F
PALETTE_320x200x256_Color_67: db 0x3F,0x37,0x1F
PALETTE_320x200x256_Color_68: db 0x3F,0x3F,0x1F
PALETTE_320x200x256_Color_69: db 0x37,0x3F,0x1F
PALETTE_320x200x256_Color_70: db 0x2F,0x3F,0x1F
PALETTE_320x200x256_Color_71: db 0x27,0x3F,0x1F
PALETTE_320x200x256_Color_72: db 0x1F,0x3F,0x1F
PALETTE_320x200x256_Color_73: db 0x1F,0x3F,0x27
PALETTE_320x200x256_Color_74: db 0x1F,0x3F,0x2F
PALETTE_320x200x256_Color_75: db 0x1F,0x3F,0x37
PALETTE_320x200x256_Color_76: db 0x1F,0x3F,0x3F
PALETTE_320x200x256_Color_77: db 0x1F,0x37,0x3F
PALETTE_320x200x256_Color_78: db 0x1F,0x2F,0x3F
PALETTE_320x200x256_Color_79: db 0x1F,0x27,0x3F
PALETTE_320x200x256_Color_80: db 0x2D,0x2D,0x3F
PALETTE_320x200x256_Color_81: db 0x31,0x2D,0x3F
PALETTE_320x200x256_Color_82: db 0x36,0x2D,0x3F
PALETTE_320x200x256_Color_83: db 0x3A,0x2D,0x3F
PALETTE_320x200x256_Color_84: db 0x3F,0x2D,0x3F
PALETTE_320x200x256_Color_85: db 0x3F,0x2D,0x3A
PALETTE_320x200x256_Color_86: db 0x3F,0x2D,0x36
PALETTE_320x200x256_Color_87: db 0x3F,0x2D,0x31
PALETTE_320x200x256_Color_88: db 0x3F,0x2D,0x2D
PALETTE_320x200x256_Color_89: db 0x3F,0x31,0x2D
PALETTE_320x200x256_Color_90: db 0x3F,0x36,0x2D
PALETTE_320x200x256_Color_91: db 0x3F,0x3A,0x2D
PALETTE_320x200x256_Color_92: db 0x3F,0x3F,0x2D
PALETTE_320x200x256_Color_93: db 0x3A,0x3F,0x2D
PALETTE_320x200x256_Color_94: db 0x36,0x3F,0x2D
PALETTE_320x200x256_Color_95: db 0x31,0x3F,0x2D
PALETTE_320x200x256_Color_96: db 0x2D,0x3F,0x2D
PALETTE_320x200x256_Color_97: db 0x2D,0x3F,0x31
PALETTE_320x200x256_Color_98: db 0x2D,0x3F,0x36
PALETTE_320x200x256_Color_99: db 0x2D,0x3F,0x3A
PALETTE_320x200x256_Color_100: db 0x2D,0x3F,0x3F
PALETTE_320x200x256_Color_101: db 0x2D,0x3A,0x3F
PALETTE_320x200x256_Color_102: db 0x2D,0x36,0x3F
PALETTE_320x200x256_Color_103: db 0x2D,0x31,0x3F
PALETTE_320x200x256_Color_104: db 0x0,0x0,0x1C
PALETTE_320x200x256_Color_105: db 0x7,0x0,0x1C
PALETTE_320x200x256_Color_106: db 0xE,0x0,0x1C
PALETTE_320x200x256_Color_107: db 0x15,0x0,0x1C
PALETTE_320x200x256_Color_108: db 0x1C,0x0,0x1C
PALETTE_320x200x256_Color_109: db 0x1C,0x0,0x15
PALETTE_320x200x256_Color_110: db 0x1C,0x0,0xE
PALETTE_320x200x256_Color_111: db 0x1C,0x0,0x7
PALETTE_320x200x256_Color_112: db 0x1C,0x0,0x0
PALETTE_320x200x256_Color_113: db 0x1C,0x7,0x0
PALETTE_320x200x256_Color_114: db 0x1C,0xE,0x0
PALETTE_320x200x256_Color_115: db 0x1C,0x15,0x0
PALETTE_320x200x256_Color_116: db 0x1C,0x1C,0x0
PALETTE_320x200x256_Color_117: db 0x15,0x1C,0x0
PALETTE_320x200x256_Color_118: db 0xE,0x1C,0x0
PALETTE_320x200x256_Color_119: db 0x7,0x1C,0x0
PALETTE_320x200x256_Color_120: db 0x0,0x1C,0x0
PALETTE_320x200x256_Color_121: db 0x0,0x1C,0x7
PALETTE_320x200x256_Color_122: db 0x0,0x1C,0xE
PALETTE_320x200x256_Color_123: db 0x0,0x1C,0x15
PALETTE_320x200x256_Color_124: db 0x0,0x1C,0x1C
PALETTE_320x200x256_Color_125: db 0x0,0x15,0x1C
PALETTE_320x200x256_Color_126: db 0x0,0xE,0x1C
PALETTE_320x200x256_Color_127: db 0x0,0x7,0x1C
PALETTE_320x200x256_Color_128: db 0xE,0xE,0x1C
PALETTE_320x200x256_Color_129: db 0x11,0xE,0x1C
PALETTE_320x200x256_Color_130: db 0x15,0xE,0x1C
PALETTE_320x200x256_Color_131: db 0x18,0xE,0x1C
PALETTE_320x200x256_Color_132: db 0x1C,0xE,0x1C
PALETTE_320x200x256_Color_133: db 0x1C,0xE,0x18
PALETTE_320x200x256_Color_134: db 0x1C,0xE,0x15
PALETTE_320x200x256_Color_135: db 0x1C,0xE,0x11
PALETTE_320x200x256_Color_136: db 0x1C,0xE,0xE
PALETTE_320x200x256_Color_137: db 0x1C,0x11,0xE
PALETTE_320x200x256_Color_138: db 0x1C,0x15,0xE
PALETTE_320x200x256_Color_139: db 0x1C,0x18,0xE
PALETTE_320x200x256_Color_140: db 0x1C,0x1C,0xE
PALETTE_320x200x256_Color_141: db 0x18,0x1C,0xE
PALETTE_320x200x256_Color_142: db 0x15,0x1C,0xE
PALETTE_320x200x256_Color_143: db 0x11,0x1C,0xE
PALETTE_320x200x256_Color_144: db 0xE,0x1C,0xE
PALETTE_320x200x256_Color_145: db 0xE,0x1C,0x11
PALETTE_320x200x256_Color_146: db 0xE,0x1C,0x15
PALETTE_320x200x256_Color_147: db 0xE,0x1C,0x18
PALETTE_320x200x256_Color_148: db 0xE,0x1C,0x1C
PALETTE_320x200x256_Color_149: db 0xE,0x18,0x1C
PALETTE_320x200x256_Color_150: db 0xE,0x15,0x1C
PALETTE_320x200x256_Color_151: db 0xE,0x11,0x1C
PALETTE_320x200x256_Color_152: db 0x14,0x14,0x1C
PALETTE_320x200x256_Color_153: db 0x16,0x14,0x1C
PALETTE_320x200x256_Color_154: db 0x18,0x14,0x1C
PALETTE_320x200x256_Color_155: db 0x1A,0x14,0x1C
PALETTE_320x200x256_Color_156: db 0x1C,0x14,0x1C
PALETTE_320x200x256_Color_157: db 0x1C,0x14,0x1A
PALETTE_320x200x256_Color_158: db 0x1C,0x14,0x18
PALETTE_320x200x256_Color_159: db 0x1C,0x14,0x16
PALETTE_320x200x256_Color_160: db 0x1C,0x14,0x14
PALETTE_320x200x256_Color_161: db 0x1C,0x16,0x14
PALETTE_320x200x256_Color_162: db 0x1C,0x18,0x14
PALETTE_320x200x256_Color_163: db 0x1C,0x1A,0x14
PALETTE_320x200x256_Color_164: db 0x1C,0x1C,0x14
PALETTE_320x200x256_Color_165: db 0x1A,0x1C,0x14
PALETTE_320x200x256_Color_166: db 0x18,0x1C,0x14
PALETTE_320x200x256_Color_167: db 0x16,0x1C,0x14
PALETTE_320x200x256_Color_168: db 0x14,0x1C,0x14
PALETTE_320x200x256_Color_169: db 0x14,0x1C,0x16
PALETTE_320x200x256_Color_170: db 0x14,0x1C,0x18
PALETTE_320x200x256_Color_171: db 0x14,0x1C,0x1A
PALETTE_320x200x256_Color_172: db 0x14,0x1C,0x1C
PALETTE_320x200x256_Color_173: db 0x14,0x1A,0x1C
PALETTE_320x200x256_Color_174: db 0x14,0x18,0x1C
PALETTE_320x200x256_Color_175: db 0x14,0x16,0x1C
PALETTE_320x200x256_Color_176: db 0x0,0x0,0x10
PALETTE_320x200x256_Color_177: db 0x4,0x0,0x10
PALETTE_320x200x256_Color_178: db 0x8,0x0,0x10
PALETTE_320x200x256_Color_179: db 0xC,0x0,0x10
PALETTE_320x200x256_Color_180: db 0x10,0x0,0x10
PALETTE_320x200x256_Color_181: db 0x10,0x0,0xC
PALETTE_320x200x256_Color_182: db 0x10,0x0,0x8
PALETTE_320x200x256_Color_183: db 0x10,0x0,0x4
PALETTE_320x200x256_Color_184: db 0x10,0x0,0x0
PALETTE_320x200x256_Color_185: db 0x10,0x4,0x0
PALETTE_320x200x256_Color_186: db 0x10,0x8,0x0
PALETTE_320x200x256_Color_187: db 0x10,0xC,0x0
PALETTE_320x200x256_Color_188: db 0x10,0x10,0x0
PALETTE_320x200x256_Color_189: db 0xC,0x10,0x0
PALETTE_320x200x256_Color_190: db 0x8,0x10,0x0
PALETTE_320x200x256_Color_191: db 0x4,0x10,0x0
PALETTE_320x200x256_Color_192: db 0x0,0x10,0x0
PALETTE_320x200x256_Color_193: db 0x0,0x10,0x4
PALETTE_320x200x256_Color_194: db 0x0,0x10,0x8
PALETTE_320x200x256_Color_195: db 0x0,0x10,0xC
PALETTE_320x200x256_Color_196: db 0x0,0x10,0x10
PALETTE_320x200x256_Color_197: db 0x0,0xC,0x10
PALETTE_320x200x256_Color_198: db 0x0,0x8,0x10
PALETTE_320x200x256_Color_199: db 0x0,0x4,0x10
PALETTE_320x200x256_Color_200: db 0x8,0x8,0x10
PALETTE_320x200x256_Color_201: db 0xA,0x8,0x10
PALETTE_320x200x256_Color_202: db 0xC,0x8,0x10
PALETTE_320x200x256_Color_203: db 0xE,0x8,0x10
PALETTE_320x200x256_Color_204: db 0x10,0x8,0x10
PALETTE_320x200x256_Color_205: db 0x10,0x8,0xE
PALETTE_320x200x256_Color_206: db 0x10,0x8,0xC
PALETTE_320x200x256_Color_207: db 0x10,0x8,0xA
PALETTE_320x200x256_Color_208: db 0x10,0x8,0x8
PALETTE_320x200x256_Color_209: db 0x10,0xA,0x8
PALETTE_320x200x256_Color_210: db 0x10,0xC,0x8
PALETTE_320x200x256_Color_211: db 0x10,0xE,0x8
PALETTE_320x200x256_Color_212: db 0x10,0x10,0x8
PALETTE_320x200x256_Color_213: db 0xE,0x10,0x8
PALETTE_320x200x256_Color_214: db 0xC,0x10,0x8
PALETTE_320x200x256_Color_215: db 0xA,0x10,0x8
PALETTE_320x200x256_Color_216: db 0x8,0x10,0x8
PALETTE_320x200x256_Color_217: db 0x8,0x10,0xA
PALETTE_320x200x256_Color_218: db 0x8,0x10,0xC
PALETTE_320x200x256_Color_219: db 0x8,0x10,0xE
PALETTE_320x200x256_Color_220: db 0x8,0x10,0x10
PALETTE_320x200x256_Color_221: db 0x8,0xE,0x10
PALETTE_320x200x256_Color_222: db 0x8,0xC,0x10
PALETTE_320x200x256_Color_223: db 0x8,0xA,0x10
PALETTE_320x200x256_Color_224: db 0xB,0xB,0x10
PALETTE_320x200x256_Color_225: db 0xC,0xB,0x10
PALETTE_320x200x256_Color_226: db 0xD,0xB,0x10
PALETTE_320x200x256_Color_227: db 0xF,0xB,0x10
PALETTE_320x200x256_Color_228: db 0x10,0xB,0x10
PALETTE_320x200x256_Color_229: db 0x10,0xB,0xF
PALETTE_320x200x256_Color_230: db 0x10,0xB,0xD
PALETTE_320x200x256_Color_231: db 0x10,0xB,0xC
PALETTE_320x200x256_Color_232: db 0x10,0xB,0xB
PALETTE_320x200x256_Color_233: db 0x10,0xC,0xB
PALETTE_320x200x256_Color_234: db 0x10,0xD,0xB
PALETTE_320x200x256_Color_235: db 0x10,0xF,0xB
PALETTE_320x200x256_Color_236: db 0x10,0x10,0xB
PALETTE_320x200x256_Color_237: db 0xF,0x10,0xB
PALETTE_320x200x256_Color_238: db 0xD,0x10,0xB
PALETTE_320x200x256_Color_239: db 0xC,0x10,0xB
PALETTE_320x200x256_Color_240: db 0xB,0x10,0xB
PALETTE_320x200x256_Color_241: db 0xB,0x10,0xC
PALETTE_320x200x256_Color_242: db 0xB,0x10,0xD
PALETTE_320x200x256_Color_243: db 0xB,0x10,0xF
PALETTE_320x200x256_Color_244: db 0xB,0x10,0x10
PALETTE_320x200x256_Color_245: db 0xB,0xF,0x10
PALETTE_320x200x256_Color_246: db 0xB,0xD,0x10
PALETTE_320x200x256_Color_247: db 0xB,0xC,0x10
PALETTE_320x200x256_Color_248: db 0x0,0x0,0x0
PALETTE_320x200x256_Color_249: db 0x0,0x0,0x0
PALETTE_320x200x256_Color_250: db 0x0,0x0,0x0
PALETTE_320x200x256_Color_251: db 0x0,0x0,0x0
PALETTE_320x200x256_Color_252: db 0x0,0x0,0x0
PALETTE_320x200x256_Color_253: db 0x0,0x0,0x0
PALETTE_320x200x256_Color_254: db 0x0,0x0,0x0
PALETTE_320x200x256_Color_255: db 0x0,0x0,0x0