Dynamically allocate memory using system code 9