Category : Pascal Source Code
Archive   : RBOOTP55.ZIP
Filename : REBOOT.PAS

 
Output of file : REBOOT.PAS contained in archive : RBOOTP55.ZIP
program reboot;

{ Make sure that DOS wrote everything out }
PROCEDURE Flush_DOS_Buffers;
begin
Inline( $B8/$40/$00 {MOV AX,0040 }
/$8E/$D8 {MOV DS,AX }
/$89/$C3 {MOV BX,AX }
/$B8/$34/$12 {MOV AX,1234 }
/$A3/$72/$00 {MOV [0072],AX }
/$EA/$00/$00/$FF/$FF {JMP FFFF:0000 }
);

END; { Procedure Boot_PC }




{
Flush DOS' internal file buffers to insure that all data has been
physically written to disk.
}

BEGIN

flush_dos_buffers;
INLINE
($B4/$0D/ { MOV AH,0DH ;function to flush }
$CD/$21); { INT 21H ;perform it }

END. { Procedure Flush_DOS_Buffers }



  3 Responses to “Category : Pascal Source Code
Archive   : RBOOTP55.ZIP
Filename : REBOOT.PAS

  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: http://www.os2museum.com/wp/mtswslnk/