Category : C Source Code
Archive   : BCPPTECH.ZIP
Filename : TI708.ASC

Output of file : TI708.ASC contained in archive : BCPPTECH.ZIP

PRODUCT : Borland C++ NUMBER : 708
DATE : February 25, 1992 PAGE : 1/1

TITLE : How to Warm or Cold Boot Computer

This code will let the user specify whether to perform a cold or
warm boot based on the command line option (Warm boot: 'W' or
'S'; any other character results in a cold boot).


int main (int argc, char *argv[])
void (far *bootsystem) (void);

if ((toupper (argv[1][0]) == 'W')
|| (toupper (argv[1][0]) == 'S'))
{ /* Setting this memory location to this value will result
in memory not being checked a.k.a. Warm Boot */

unsigned far *warm;
/* Make a far pointer that points to the specified memory
location that is checked when the system is rebooted */
warm = MK_FP (0x0000, 0x0472);

/* Assign constant to farpointer indicating that memory is
not to be checked
*warm = 0x1234;
puts ("\nWarm boot in progress...\n");
else /* memory will be checked a.k.a. Cold Boot */
puts ("\nCold boot in progress...\n");

/* Assign far function pointer to the required far pointer
for reboot */
bootsystem = MK_FP (0xFFFF, 0x0000);

/* Invoke the reboot process */
(*bootsystem) ();

return (0);

  3 Responses to “Category : C Source Code
Archive   : BCPPTECH.ZIP
Filename : TI708.ASC

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: