388
K
A
DAK
AMX 86 Assembler Interface
PROCEDURE
C ASM PURPOSE P ARAMETERS IN OUT AX =
ERRORS E D R
Semaphore Manager
ajsmcre AASMCRE Create a semaphore Initial value (0 to 32767) BX AERISV onn
(-1 for resource semaphore) AERNSB
Tag DX:CX Not e 5
Semaphore id BX
ajsmdel AASMDEL Delete a semaphore Semaphore id BX AERNSS onn
AERSIU
ajsmfre AASMFRE Free a resource (unconditional) Resource semaphore id BX AERNSS onn
AERRNY
ajsmget AASMGET Get use of a semaphore Semaphore id BX AERNSS onn
(no wait) AERSBY
ajsmrls AASMRLS Release a resource (nested) Resource semaphore id BX AERNSS onn
AERRNY
AASMRR Semaphore Manager Note 4 onn
Restart Procedure
ajsmrsv AASMRSV Reserve a resource Resource semaphore id BX AERNSS nno
(optional timeout) Max. wait time (system ticks) DX:CX AERTMO
(0:0 = forever) AERTMV
Wait priority DI
(0 = highest)
ajsmsig AASMSIG Signal to a semaphore Semaphore id BX AERNSS onn
AERNME
ajsmtag AASMTAG Find id of sema ph ore with Tag DX:CX AERNSS on n
specific tag Semaphore id BX Note 5
ajsmwat AAS MWAT Wait on a semaph ore Semaphore id BX AERNSS nno
(optional timeout) Max. wait time (system ticks) DX:CX AERTMO
(0:0 = forever) AERTMV
Waiting priority DI
(0 = highest)