Due to the nature of implementation I need som dynamic memory allocation (or as dynamic as it gets in DOS )
Since DOS allocates all free memory for my program when it loads, as heap, I need to deallocate this first
Here's the code I'm using right now
mov ax,es ; let AX = segment of PSP base mov bx,ss ; and BX = segment of stack base sub bx,ax ; reserve seg stack - seg psp add bx,STKSIZE/16 ; plus paragraphs of stack mov ah,4Ah ; fxn 4ah = modify memory int 21h
This however, crashes DOS on the calculator :/