modes:
dd mcu100,color100,8,8  ;monocromo
dd mcu111,color111,8,8
dd mcu211,color211,16,8
dd mcu411,color411,16,16

zigzag:
db  0,0,  4+1,0,  32,1,  64,1,  36,2,  8+1,0,  12+1,0, 40,4
db  68,2, 96,1, 128,1, 100,2, 72,4, 44,8,  16+1,0,  20+1,0
db  48,16, 76,8, 104,4, 132,2, 160,1, 192,1, 164,2, 136,4
db  108,8, 80,16, 52,32,  24+1,0,  28+1,0, 56,64, 84,32, 112,16
db  140,8, 168,4, 196,2, 224,1, 228,2, 200,4, 172,8, 144,16
db  116,32, 88,64, 60,128, 92,128, 120,64, 148,32, 176,16, 204,8
db  232,4, 236,8, 208,16, 180,32, 152,64, 124,128, 156,128, 184,64
db  212,32, 240,16, 244,32, 216,64, 188,128, 220,128, 248,64, 252,128

k:
dd 1.41421,1.84776,1.08239,-2.6131
k2:
dd 0.3535534,0.49039264,0.46193953,0.415734806
dd 0.3535534,0.277785116,0.191341716,0.0975451609