How do computer virus affect RAM?

It can save itself to RAM and set itself as "undeletable".