Fix DDRAM and mem map offset calculations

I did some tests on 4x20 and the old calculations were wrong.

Signed-off-by: dienet <dienet@poczta.fm>