implemented ProgramMemory and BTFS[S|C] operations