What is the right way to read MISA register?

The program that I used is listed

here