2015-08-02 00:08:58 +02:00
|
|
|
//IO library
|
|
|
|
#ifndef INCLUDE_DATE_H
|
|
|
|
#define INCLUDE_DATE_H
|
|
|
|
|
|
|
|
#ifndef INCLUDE_STRING_H
|
|
|
|
#include "../lib/strings.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
:struct date
|
|
|
|
{
|
|
|
|
byte day;
|
|
|
|
byte month;
|
|
|
|
word year;
|
|
|
|
};
|
|
|
|
|
2022-01-14 21:04:36 +01:00
|
|
|
:struct time
|
2020-04-18 01:52:24 +02:00
|
|
|
{
|
2022-01-14 21:04:36 +01:00
|
|
|
byte seconds;
|
|
|
|
byte minutes;
|
|
|
|
byte hours;
|
|
|
|
byte rez;
|
|
|
|
};
|
|
|
|
|
|
|
|
:void DrawDateTime(dword x, y, color, _date, _time)
|
|
|
|
{
|
|
|
|
EDI = _date;
|
2020-04-18 01:52:24 +02:00
|
|
|
EAX = 47;
|
|
|
|
EBX = 2<<16;
|
|
|
|
EDX = x<<16+y;
|
|
|
|
ESI = 0x90<<24+color;
|
|
|
|
ECX = EDI.date.day;
|
2021-12-31 01:35:57 +01:00
|
|
|
$int 64
|
2022-01-14 21:04:36 +01:00
|
|
|
EDX += 24<<16;
|
2020-04-18 01:52:24 +02:00
|
|
|
ECX = EDI.date.month;
|
2021-12-31 01:35:57 +01:00
|
|
|
$int 64
|
2022-01-14 21:04:36 +01:00
|
|
|
EDX += 24<<16;
|
2020-04-18 01:52:24 +02:00
|
|
|
EBX = 4<<16;
|
|
|
|
ECX = EDI.date.year;
|
2021-12-31 01:35:57 +01:00
|
|
|
$int 64
|
2022-01-14 21:04:36 +01:00
|
|
|
|
|
|
|
EDI = _time;
|
|
|
|
EDX += 40<<16;
|
|
|
|
EBX = 2<<16;
|
|
|
|
ECX = EDI.time.hours;
|
|
|
|
$int 64
|
|
|
|
EDX += 24<<16;
|
|
|
|
ECX = EDI.time.minutes;
|
|
|
|
$int 64
|
|
|
|
EDX += 24<<16;
|
|
|
|
ECX = EDI.time.seconds;
|
2021-12-31 01:35:57 +01:00
|
|
|
$int 64
|
2022-01-14 21:04:36 +01:00
|
|
|
|
|
|
|
WriteText(x,y,0x90,color, " . . : :");
|
2020-04-18 01:52:24 +02:00
|
|
|
}
|
|
|
|
|
2015-08-02 00:08:58 +02:00
|
|
|
#endif
|