git-svn-id: https://spexeah.com:8443/svn/Asuro@584 6dbc8c32-bb84-406f-8558-d1cf31a0ab0c
This commit is contained in:
@ -3,11 +3,11 @@ unit asuro;
|
||||
interface
|
||||
|
||||
const
|
||||
VERSION = '1.0.0-580a';
|
||||
VERSION = '1.0.0-583a';
|
||||
VERSION_MAJOR = '1';
|
||||
VERSION_MINOR = '0';
|
||||
VERSION_SUB = '0';
|
||||
REVISION = '580';
|
||||
REVISION = '583';
|
||||
RELEASE = 'a';
|
||||
|
||||
implementation
|
||||
|
@ -44,6 +44,7 @@ procedure halt_and_catch_fire();
|
||||
procedure halt_and_dont_catch_fire();
|
||||
procedure BSOD(fault : pchar; info : pchar);
|
||||
procedure psleep(t : uint16);
|
||||
procedure sleep(seconds : uint32);
|
||||
|
||||
function BCDToUint8(bcd : uint8) : uint8;
|
||||
|
||||
@ -54,7 +55,30 @@ var
|
||||
implementation
|
||||
|
||||
uses
|
||||
console;
|
||||
console, RTC;
|
||||
|
||||
procedure sleep1;
|
||||
var
|
||||
DateTimeStart, DateTimeEnd : TDateTime;
|
||||
|
||||
|
||||
begin
|
||||
DateTimeStart:= getDateTime;
|
||||
DateTimeEnd:= DateTimeStart;
|
||||
while DateTimeStart.seconds = DateTimeEnd.seconds do begin
|
||||
DateTimeEnd:= getDateTime;
|
||||
end;
|
||||
end;
|
||||
|
||||
procedure sleep(seconds : uint32);
|
||||
var
|
||||
i : uint32;
|
||||
|
||||
begin
|
||||
for i:=1 to seconds do begin
|
||||
sleep1;
|
||||
end;
|
||||
end;
|
||||
|
||||
function INTE : boolean;
|
||||
var
|
||||
|
Reference in New Issue
Block a user