home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
World of Shareware - Software Farm 2
/
wosw_2.zip
/
wosw_2
/
PASCAL
/
PNL010.ZIP
/
DOSMEM.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1992-03-01
|
454b
|
42 lines
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.