Allocating memory

In article <>,
   Jake Richards <> wrote:

>I am trying to allocate memory with int 21h function 48h.  I know that
>bx is to contain the number of 16 byte paragraphs desired but every time
>i use it i get error 8(which is in ax after the int 21h).  Does anyone
>know why this is happening?  I tried it in TASM and still didn't work.

My guess is that you have not adjusted your heap size to give it some room. By
default TP uses all memory to run. The interrupt sees that there is no room
left and comes back with an error. Try adjusting the size of the heap downward
and see what happens.