Intr.PAS

Language:
Русский
English

  {Intr.PAS}
  ▀▀▀▀▀▀▀▀▀▀▀▀
 {Sample code for the Intr procedure.}

  uses WinCrt, WinDos;

 var
   date, year, month, day: string;
   regs: TRegisters;

 begin
   regs.ah := $2a;
   with regs do
   intr($21,regs);
   with regs do
     begin
       str(cx ,year);
       str(dh ,month);
       str(dl,day);
     end;
   date := month+'/'+day+'/'+year;
   writeln('Today''s date is ', date);
 end.

Тэги:
| G+
Код для вставки: :: :: :: ::
Поделиться: // //