Added implementations for LDRegsToI and LDRegsFromI which load and store the cpu registers in Ram.