Use register constants for names
Make register directory generic