Fix asm errors and create heap