User`s guide

BDOS FUNCTION 45: SET BDOS ERROR MODE
Entry Parameters:
Registers C: 2DH
E: BDOS Error Mode
Returned Value: None
Function 45 sets the BDOS error mode for the calling program to the mode speci-
fied in register E. If register E is set to OFFH, 255 decimal, the error mode is set to
Return Error mode. If register E is set to OFEH, 254 decimal, the error mode is set
to Return and Display mode. If register E is set to any other value, the error mode is
set to the default mode.
The SET BDOS Error Mode function determines how physical and extended errors
(see Section 2.2.13) are handled for a program. The Error Mode can exist in three
modes: the default mode, Return Error mode, and Return and Display Error mode.
In the default mode, the BDOS displays a system message at the console that identi-
fies the error and terminates the calling program. In the return modes, the BDOS sets
register A to OFFH, 255 decimal, places an error code that identifies the physical or
extended error in register H and returns to the calling program. In Return and
Display mode, the BDOS displays the system message before returning to the calling
program. No system messages are displayed, however, when the BDOS is in Return
Error mode.
3-64
BDOS Function Calls CP/M 3 Programmers Guide