fix print registers to ignore null registers
Merge branch 'master' of https://github.com/mulias/csc207-hw4