per
Veteran Member
I am currently trying to modify "Animator" to allocate buffers instead of keeping them in the file (program size reduced from 64K to 6K). However, I've never used the allocation commands before, and I need some help to make routines that works (the ones I got now just seems to work).
The first is to free the not-in-use memory allocated for my program. I decided to use DOS call 4Ah.
This does seems to work, but I won't guarantee if I'm safe. After this, I uses DOS call 48h to allocate just the memory I need.
Is my 4Ah routine safe enough?
The first is to free the not-in-use memory allocated for my program. I decided to use DOS call 4Ah.
Code:
mov ah,4Ah
mov bx,0140h ;rounded-up program size (should I include DOS' file prefix too?)
mov dx,cs
mov es,dx
int 21h
Is my 4Ah routine safe enough?