CSC GEM Emulator Firmware Code