Fixed bug in loading/storing cached registers where instructions may be
branched over e.g. in memory translations).

Found and fixed bug when code segments loop to themselves.