set_reg and write_mem_op_word