memory reference monitor in SW