Memory management in assembly language