Skip to content

Commit

Permalink
Ajout de la commande REBOOT
Browse files Browse the repository at this point in the history
  • Loading branch information
Sylvain Maltais committed Apr 20, 2022
1 parent 33eba6c commit c711f95
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions REBOOT.PAS
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{ @author: Sylvain Maltais ([email protected])
@created: 2022
@website(https://www.gladir.com/unix-0)
@abstract(Target: Turbo Pascal)
}

Program Reboot;

Var
FirstParam:String;

BEGIN
FirstParam:=ParamStr(1);
If FirstParam='/?'Then Begin
WriteLn('REBOOT Cette commande permet de redemarrer l''ordinateur');
WriteLn;
WriteLn('Syntaxe:');
WriteLn;
WriteLn('REBOOT [/?]');
WriteLn;
WriteLn(' /? Ce parametre permet d''afficher l''aide sur cette commande');
End
Else
Begin
{$IFNDEF FPC}
MemW[Seg0040:$72]:=$1234;
ASM
INT 19h
END;
{$ENDIF}
End;
END.

0 comments on commit c711f95

Please sign in to comment.