Added SetState to allow load snapshots of the CPU state
Should be fixed WriteX functions for RAM doing the same pointers trick