bool getStatus_Layer_Stack(bit32 a, int pos) { if(pos>31 || pos < 0) { DebugN("Index pos out of range"); return false; } unsigned mask= (1 << (pos-1)); return a & mask; } //****************************************************// //******************************************************// string Command;