Implemeting XCHG() for HDD to RAM