yes Sir xiahan, the code was copied from bios chip to ram memory, but, I do not think that copying the ram contents back to bios will work 100%, I have read that some bios uncompress code to ram, instead of just copy their contents to ram.
After the code is stored on ram, the rom code is disabled, and ram code is used in their places.