added a way to get reg number
makes step and run work for add and addi