PC JANUS SERVICE
This service is called via INT JANUS.
AH contains a function code
J-GET-SERVICE
Gets a new Service Number
Expects:
nothing
Returns:
AL
:
New Service Number to use
-
1
if no service available (J-NOSERVICE)
J-GET-BASE
Gets Segments
€4
offset of Janus Memory
Expects:
AL Janus Service Number
Returns:
ES
:
Janus Parameter Segment
DI
:
Janus Parameter Offset (if defined),
else
-
1
DX
:
Janus Buffer Segment
AL
:
Status (J-OK, J-NO-SERVICE)
JALLOC-MEM
Allocates Janus Memory
Expects:
AL
:
Type of memory to allocate
BX
:
Number of Bytes to allocate
Returns:
BX
:
Offset of registered memory if success,
AL
:
Status (J-OK. J-NO-MEMORY)
J-FREEMEM
Releases Janus Memory
Expects:
AL Type of memory to free
BX Offset of Memory to free
Returns:
Crash if
offsethype was wrong (J-GOODBYE, later)
Set the default parameter memory pointer
Expects:
AL
:
Janus Service Number to support
BX
:
Default Offset of Param Memory to install
Returns:
AL
:
Status (J-OK, J-NOSERVICE)