1 // Convert "cell arrange" address to normal address.
2 // (c) Copyright 2007, Grazvydas "notaz" Ignotas
5 static unsigned int cell_map(int celln)
9 switch ((celln >> 12) & 7) { // 0-0x8000
31 row |= (celln & 0x7800) >> 6;
33 default: // never happens, only here to make compiler happy
38 return (col & 0x3f) + row*64;