before reg upd.
fix reg value calc.
not crashing, but not sure if this is even close to correct...
add some more ops