toInt functionality for program counter