pub fn rw_traced(&mut self, register: Register, value: u32) -> (MemoryWriteRecord, u32) {
        let record = self.rt.rw_traced(
            register,
            value,
            self.current_shard,
            self.clk,
            Some(&mut self.local_memory_access),
        );
        (record, record.value)
    }
Write a register and record the memory access.
crates/core/executor/src/syscalls/context.rs