summaryrefslogtreecommitdiff
path: root/fpcsrc/packages/amunits/src/coreunits/input.pas
blob: 6626f9fab7e9459ad99af2dbcaf5e67804113952 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
{
    This file is part of the Free Pascal run time library.

    A file in Amiga system run time library.
    Copyright (c) 1998 by Nils Sjoholm
    member of the Amiga RTL development team.

    See the file COPYING.FPC, included in this distribution,
    for details about the copyright.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

 **********************************************************************}

unit input;

INTERFACE

uses exec;


const

    IND_ADDHANDLER      = CMD_NONSTD + 0;
    IND_REMHANDLER      = CMD_NONSTD + 1;
    IND_WRITEEVENT      = CMD_NONSTD + 2;
    IND_SETTHRESH       = CMD_NONSTD + 3;
    IND_SETPERIOD       = CMD_NONSTD + 4;
    IND_SETMPORT        = CMD_NONSTD + 5;
    IND_SETMTYPE        = CMD_NONSTD + 6;
    IND_SETMTRIG        = CMD_NONSTD + 7;

VAR InputBase : pDevice;

FUNCTION PeekQualifier : WORD;

IMPLEMENTATION

FUNCTION PeekQualifier : WORD;
BEGIN
  ASM
    MOVE.L  A6,-(A7)
    MOVEA.L InputBase,A6
    JSR -042(A6)
    MOVEA.L (A7)+,A6
    MOVE.L  D0,@RESULT
  END;
END;

END. (* UNIT INPUT *)