Advertisement
Guest User

Windows_95_sources

a guest
Jun 28th, 2013
428
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.76 KB | None | 0 0
  1. //Pseudo-code for Microsoft Windows 95
  2. //---idea---TiM
  3.  
  4. //boot the system
  5. init __boot;
  6.  
  7. //load stuff for keyboards, file system drivers, and Display
  8. init __load_basic_drivers;
  9.  
  10. //prepare BoSD
  11. init __prepare__ BLUE_SCREEN_OF_DEATH;
  12.  
  13. //enter event loop
  14. while(!crashed)
  15. {
  16.     sleep(1300); //milisecs
  17.  
  18.     load_kernel_sevices();
  19.  
  20.     if(system_still_running)
  21.     {
  22.     try
  23.     {
  24.         kernel_load( all(system_programs) );
  25.  
  26.         kernel_unload( most_useful(system_programs) );
  27.  
  28.         if(!unloaded(last_kernel_instruction)) throw Exception;
  29.     }
  30.     catch(Errors)
  31.     { fire(BLUE_SCREEN_OF_DEATH); }
  32.     }
  33.  
  34.     kernel_load( Graphics );
  35.     kernel_load( Windows_Explorer );
  36.  
  37.     kernel_init( set( cpu_execution_speed( random % 100 ) ) )
  38.  
  39.     bool legal = verify(Microsoft.Paid.isTrue());
  40.  
  41.     if(legal)
  42.     {
  43.     call( persuading_daemon(ask_for_more_money) )
  44.     }
  45.     else
  46.     {
  47.     kernel_unload(kernel, silently=true, gradually=yes);
  48.     }
  49.  
  50.     if(system_is_ok)
  51.     {
  52.     attempt(crash);
  53.     }
  54.  
  55.     if(system_survived_last_crash_attempt)
  56.     {
  57.     kernel_load( all(backdoors_and_memory_exploits) );
  58.  
  59.     init __set(BLUE_SCREEN_OF_DEATH, fire(in(2000, seconds)));
  60.     }
  61.  
  62.     if(system.isIdle())
  63.     {
  64.     kernel_init( all( sleep(hardware) && sleep(software) ) );
  65.     kernel_interrupt( DISABLE_ALL );
  66.  
  67.     set( kernel.neverWakeUp = true );
  68.     }
  69.  
  70.     while(still_not_crashed)
  71.     {
  72.     do (NOTHING for random.minutes)
  73.     wait_for_user_events();
  74.  
  75.     attempt(crash) && break;
  76.     }
  77.  
  78.     if(is lucky)
  79.     {
  80.     kernel_programs_manager.set( FAIL );
  81.     load( all(programs), haphazardly );
  82.     }
  83.  
  84.     if(execution_reached_this_point)
  85.     {
  86.     kernel_init( kill_All_useful_programs );
  87.  
  88.     fire(BLUE_SCREEN_OF_DEATH);
  89.  
  90.     kernel_unload( kernel );
  91.     }
  92.  
  93.     assert(system_is_DEAD);
  94. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement