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;
|
|
|
|
};
|
|
|
|
|
2020-04-18 01:52:24 +02:00
|
|
|
:void DrawDate(dword x, y, color, in_date)
|
|
|
|
{
|
|
|
|
EDI = in_date;
|
|
|
|
EAX = 47;
|
|
|
|
EBX = 2<<16;
|
|
|
|
EDX = x<<16+y;
|
|
|
|
ESI = 0x90<<24+color;
|
|
|
|
ECX = EDI.date.day;
|
|
|
|
$int 0x40;
|
|
|
|
EDX += 20<<16;
|
|
|
|
ECX = EDI.date.month;
|
|
|
|
$int 0x40;
|
|
|
|
EDX += 20<<16;
|
|
|
|
EBX = 4<<16;
|
|
|
|
ECX = EDI.date.year;
|
|
|
|
$int 0x40;
|
|
|
|
DrawBar(x+17,y+10,2,2,color);
|
|
|
|
DrawBar(x+37,y+10,2,2,color);
|
|
|
|
}
|
|
|
|
|
2015-08-02 00:08:58 +02:00
|
|
|
#endif
|