mapping to RAM

1) videomem in RAM;
2) call stack emulation;
3) registers in RAM.