Implement RegNumToIntCode method