cleanup code an move convert 16.16 (AHC_LEVEL)from RISC