Add target_write_memory wrapper: