User`s guide
BDOS FUNCTION 32: SET/GET USER CODE
Entry Parameters:
Registers C: 20H
Returned Value: E: OFFH (get) or User Code (set)
Register A: Current Code or
(no value)
A program can change, or interrogate the currently active user number by calling
Function 32. If register E = OFFH, then the value of the current user number is
returned in register A, where the value is in the range of 0 to 15. If register E is not
OFFH, then the current user number is changed to the value of E, modulo 16.
3-47
BDOS Function Calls CP/M 3 Programmers Guide