Modify port and instruction