Factor out result storage and status flags update
Compactify register dump