Dynamic Memory Allocation
>
>
> In this create the ability to dynamically allocate and free memory. Please follow the steps below. Be sure to thoroughly test your procs and macros.
>
>
> 1. Create a proc to allocate memory. The proc must
> .accept all arguments via the stack
> .find the heap
> .allocate memory from the heap
> .return the address of the allocated memory via the eax register
>
> 2. Create a macro called malloc that calls the proc defined above
>
> 3. Create a proc to free allocated memory. This proc must
> .accept all arguments via the stack
> .free the memory
>
> 4. Create a macro called free that calls the proc defined above