fixed math error in pgmStrToRAM and updated to support ARM and F()