getInstr and corrected r/i/j types