drc: update invalid_code for RAM when mirrors are touched