getStatusReg()

make getStatusReg() into inline function.
make code use this function frequently.