struct SMALL_RECT {
    short Left;
    short Top;
    short Right;
    short Bottom;
};

struct CONSOLE_SCREEN_BUFFER_INFO { // csbi
    COORD      dwSize;
    COORD      dwCursorPosition;
    word       wAttributes;
    SMALL_RECT srWindow;
    COORD      dwMaximumWindowSize;
};

struct CONSOLE_CURSOR_INFO { // cci
    dword  dwSize;
    dword  bVisible;
};

struct INPUT_RECORD { // ir
    word EventType;
    word pad;
    KEY_EVENT_RECORD KeyEvent;
    byte pad2;
};

//#define _lstrcmp lstrcmp

:_lstrcmp(dword from,to)
{
  ESI=from;
  EDI=to;
  $cld
  do{
    $lodsb
    IF(AL!=DSBYTE[EDI])RETURN 1;
    EDI++;
  }while(AL);
  return 0;
}
// */