Saturday, September 07, 2013

Cold

/*                  Cold Boot                  */


#define star *
#define here 0xFFFF0000ul

void cold (void)
{
    void (far star yonder) (void) = (void (far star) (void)) here;
    (star yonder) ();
}


/*
The usual MSDOS C compilers will accept this code and
compile a module defining the function cold(); calling
this function will do a cold boot of the computer.
*/

2 comments:

  1. Must be a work computer ...

    ReplyDelete
    Replies
    1. I didn't understand your comment and should like to.

      Delete

Zeno for the computer age

If you wish to better understand Zeno's worry about the continuum, you could do worse than to consider loops in software. Case 1: You...