Category : Pascal Source Code
Archive   : PNL010.ZIP
Filename : DOSMEM.PAS

 
Output of file : DOSMEM.PAS contained in archive : PNL010.ZIP
unit DOSMem;

interface

function Alloc (paras:word):word;

procedure Free (p:word);

function Largest:word;

implementation

function Alloc; assembler;

asm
mov ah, $48
mov bx, paras
int $21
jnc @1
xor ax, ax
@1:
end;

procedure Free; assembler;

asm
mov ah, $49
mov es, p
int $21
end;

function Largest; assembler;

asm
mov ah, $48
mov bx, -1
int $21
mov ax, bx
end;

end.


  3 Responses to “Category : Pascal Source Code
Archive   : PNL010.ZIP
Filename : DOSMEM.PAS

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/