Added support for REG_WRITE instructions