Code generator for hardware registers access.