Download Print this page

Commodore Amiga A500 Technical Reference Manual page 161

Hide thumbs Also See for Amiga A500:

Advertisement

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:
A L
:
New Service Number t o use
-
1 if no service available (J-NOSERVICE)
J-GET-BASE
Gets Segments
€4
offset of Janus Memory
Expects:
A L
Janus Service Number
Returns:
ES
:
Janus Parameter Segment
DI
:
Janus Parameter Offset (if defined),
else
-
1
D X
:
Janus Buffer Segment
A L
:
Status (J-OK, J-NO-SERVICE)
JALLOC-MEM
Allocates Janus Memory
Expects:
A L
:
Type of memory t o allocate
BX
:
Number of Bytes t o allocate
Returns:
BX
:
Offset of registered memory if success,
A L
:
Status (J-OK. J-NO-MEMORY)
J-FREEMEM
Releases Janus Memory
Expects:
A L
Type of memory t o free
B X
Offset of Memory t o free
Returns:
Crash if offsethype was wrong (J-GOODBYE, later)
Set the default parameter memory pointer
Expects:
A L
:
Janus Service Number t o support
B X
:
Default Offset of Param Memory t o install
Returns:
A L
:
Status (J-OK, J-NOSERVICE)

Advertisement

loading

This manual is also suitable for:

Amiga a2000