add memory offset array entry generation in generator
(needs testing)