| home | contents | previous | next page | send comment | send link | add bookmark |

10. Tables

Table 10.1. Video equipment type codes

code    type                            
0       no display
1       MDA
2       CGA
4       EGA with standard color display
5       EGA with monochrome display
6       PGA (professional graphics adapter)
7       VGA with analog monochrome display
8       VGA with analog color display

Table 10.2. Video mode codes

mode    lines           type            equipment     
0       40x25           B&W text        CGA, EGA, VGA
1       40x25           color text      CGA, EGA, VGA
2       80x25           B&W text        CGA, EGA, VGA
3       80x25           color text      CGA, EGA, VGA
4       320x200         4 colors        CGA, EGA, VGA
5       320x200         B&W             CGA, EGA, VGA
6       640x200         2 colors        CGA, EGA, VGA
7       80x25           monochrome      MDA, EGA, VGA
8       160x200         16 colors       PCjr
9       320x200         16 colors       PCjr
10      640x200         1 color         PCjr
11      reserved
12      reserved
13      320x200         16 colors       EGA, VGA
14      640x200         16 colors       EGA, VGA
15      640x350         monochrome      EGA, VGA
16      640x350         16 colors       EGA, VGA
17      640x480         2 colors        VGA
18      640x480         16 colors       VGA
19      320x200         256 colors      VGA

Table 10.3. Color codes

black           0
blue            1
green           2
cyan            3
red             4
magenta         5
brown           6
light gray      7
dark gray       8
light blue      9
light green    10
light cyan     11
light red      12
light magenta  13
yellow         14
white          15
blink         128

Table 10.4. Keyboard codes

The function getkey returns an integer having one of the values listed below for each combination of keys where:

N = 256

key              value     Shift+    Ctrl+     Alt+    
F1               N+59      N+84      N+94      N+104
F2               N+60      N+85      N+95      N+105
F3               N+61      N+86      N+96      N+106
F4               N+62      N+87      N+97      N+107
F5               N+63      N+88      N+98      N+108
F6               N+64      N+89      N+99      N+109
F7               N+65      N+90      N+100     N+110
F8               N+66      N+91      N+101     N+111
F9               N+67      N+92      N+102     N+112
Fl0              N+68      N+93      N+103     N+113
Print Screen     -         -         N+114     -
Home             N+71      N+71      N+119     -
Up Arrow         N+72      N+72      -         -
Page Up          N+73      N+73      N+132     -
Left Arrow       N+75      N+75      N+115     -
Right Arrow      N+77      N+77      N+116     -
End              N+79      N+79      N+117     -
Down Arrow       N+80      N+80      -         -
Page Down        N+81      N+81      N+118     -
Insert           N+82      N+82      -         -
Delete           N+83      N+83      -         -
Backspace        8         8         127       -
Tab              9         N+15      -         -
Enter            13        13        10        -
Esc              27        27        27        -
space            32        32        32        32
'                39        34        -         -
,                44        60        -         -
-                45        95        -         N+130
.                46        62        -         -
/                47        63        -         -
0                48        41        -         N+129
1                49        33        -         N+120
2                50        64        -         N+121
3                51        35        -         N+122
4                52        36        -         N+123
5                53        37        -         N+124
6                54        94        -         N+125
7                55        38        -         N+126
8                56        42        -         N+127
9                57        40        -         N+128
;                59        58        -         -
=                61        43        -         N+131
[                91        123       27        -
\                92        124       -         -
]                93        125       29        -
`                96        126       -         -
A                97        65        1         N+30
B                98        66        2         N+48
C                99        67        3         N+46
D                100       68        4         N+32
E                101       69        5         N+18
F                102       70        6         N+33
G                103       71        7         N+34
H                104       72        8         N+35
I                105       73        9         N+23
J                106       74        10        N+36
K                107       75        11        N+37
L                108       76        12        N+38
M                109       77        13        N+50
N                110       78        14        N+49
O                111       79        15        N+24
P                112       80        16        N+25
Q                113       81        17        N+16
R                114       82        18        N+19
S                115       83        19        N+31
T                116       84        20        N+20
U                117       85        21        N+22
V                118       86        22        N+47
W                119       87        23        N+17
X                120       88        24        N+45
Y                121       89        25        N+21
Z                122       90        26        N+44

Table 10.5. Limits

maximum value of an integer              2147483647
minimum value of an integer             -2147483648

maximum magnitude of a real number    1.797693e+308
minimum magnitude of a real number    2.225074e-308

maximum value of base 10 exponent               308
minimum value of base 10 exponent              -307

maximum string length                           255

maximum number of array elements               4096


| home | contents | previous | next page | send comment | send link | add bookmark |

Copyright © 2004, Stephen R. Schmitt