dc_mode1_ct

dc_mode1_ct:: .db 0x00, 0x08, 0x80, 0x88

Mode 1 Color conversion table (PEN to Screen pixel format)

This table converts PEN values (palette indexes from 0 to 4) into screen pixel format values in mode 1.  In mode 1, each byte has 4 pixels (P0, P1, P2, P3).  This table converts to Pixel 0 (P0) format.  Getting values for other pixels require shifting this byte to the right 1 to 3 times (depending on which pixel is required).

Close