flat assembler
Message board for the users of flat assembler.

Index > DOS > Heap sample

Author
Thread Post new topic Reply to topic
zxcvbn



Joined: 04 Sep 2013
Posts: 3
zxcvbn
Hi there, where can i get heap code sample for dos? I've found some heap allocation examples, but it's only for linux, or windows Sad
Post 04 Sep 2013, 17:24
View user's profile Send private message Reply with quote
AsmGuru62



Joined: 28 Jan 2004
Posts: 1419
Location: Toronto, Canada
AsmGuru62
So, how about using DOS Function 48H?
Or you need better heap implementation than this function?
Post 04 Sep 2013, 19:09
View user's profile Send private message Send e-mail Reply with quote
zxcvbn



Joined: 04 Sep 2013
Posts: 3
zxcvbn
actually i could use 48h function, but i rather want to know the way it need to be implemented to "improve" my skills
Post 04 Sep 2013, 19:13
View user's profile Send private message Reply with quote
AsmGuru62



Joined: 28 Jan 2004
Posts: 1419
Location: Toronto, Canada
AsmGuru62
I'll try to help... but it may be a few days.
Post 04 Sep 2013, 20:25
View user's profile Send private message Send e-mail Reply with quote
zxcvbn



Joined: 04 Sep 2013
Posts: 3
zxcvbn
oh, thanks so, it would be nice...
Post 05 Sep 2013, 08:12
View user's profile Send private message Reply with quote
AsmGuru62



Joined: 28 Jan 2004
Posts: 1419
Location: Toronto, Canada
AsmGuru62
Attached is Heap Sample for DOS.
Heap code is contained within two files:

HEAP.INC
HEAP.ASM
(Also, some macros are used from MACROS.INC)

The rest of files are testing framework.
Please use monospaced font to read the code -- a lot of ASCII drawings in there.


Description: DosHeap folder inside.
Download
Filename: DosHeap.zip
Filesize: 12.29 KB
Downloaded: 279 Time(s)

Post 14 Oct 2013, 11:09
View user's profile Send private message Send e-mail Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.