Refactoring MemoryStack to be able to use the constante immediate.