Function 18, subfunction 9 - system shutdown with the parameter.
Parameters:
- eax = 18 - function number
- ebx = 9 - subfunction number
- ecx = parameter:
- 1 = on the last step of shutdown save ramdisk on a floppy and
then show the exit menu and request further operations
from the user
- 2 = turn off computer
- 3 = reboot computer
- 4 = restart the kernel from the file 'kernel.mnt' on ramdisk
Returned value:
- at incorrect ecx the registers do not change (i.e. eax=18)
- by correct call function always returns eax=0
as the tag of success
Remarks:
- Do not rely on returned value by incorrect call, it can be
changed in future versions of the kernel.
- It is possible to use subfunction 1, that on the last step
the user makes choice himself.
- It is not recommended to use value ecx=1 (to not irritate the user
with excessive questions); to save ramdisk on a floppy use
function 16 (which admits specification, on which floppy to
write), and to shutdown with the exit menu use already mentioned
subfunction 1.