emulator: Adapt for register file implemented as Vec.
hardware: Register file as Vec needs different writing order.