APPENDIX B
Common PEN*KEY 6000 Series Information
B-12 PEN*KEY
R
6200/6300 Hand-Held Computer Programmer’s Reference Guide
/*COL 4 */
0x47,0x20, /* 32 ROW 0
home */
0x4b,0x00, /* 33 ROW 1
left */
0x4f,0x20, /* 34 ROW 2
end */
0x52,0x20, /* 35 ROW 3
Ins */
0x12,0x20, /* 36 ROW 4
E */
0x32,0x20, /* 37 ROW 5
M */
0x16,0x20, /* 38 ROW 6
U */
0x33,0x20, /* 39 ROW 7
, */
/*COL 5 */
0x48,0x00, /* 40 ROW 0
up */
0x4d,0x00, /* 41 ROW 1
right */
0x51,0x20, /* 42 ROW 2
pgdn */
0x53,0x20, /* 43 ROW 3
del */
0x21,0x20, /* 44 ROW 4
F */
0x31,0x20, /* 45 ROW 5
N */
0x2f,0x20, /* 46 ROW 6
V */
0x34,0x20, /* 47 ROW 7
. */
/*COL 6 */
0x49,0x20, /* 48 ROW 0
pgup */
0x4c,0x20, /* 49 ROW 1
kb5 */
0x50,0x00, /* 50 ROW 2
down */
0x38,0x20, /* 51 ROW 3
L ALT */
0x22,0x20, /* 52 ROW 4
G */
0x18,0x20, /* 53 ROW 5
O */
0x11,0x20, /* 54 ROW 6
W */
0x35,0x20, /* 55 ROW 7
/ */
/*COL 7 */
0x2b,0x20, /* 40 ROW 0
\ */
0x27,0x20, /* 41 ROW 1
; */
0x28,0x20, /* 42 ROW 2
’ */
0x1d,0x30, /* 43 ROW 3
cntl */
0x23,0x20, /* 44 ROW 4
H */
0x19,0x20, /* 45 ROW 5
P */
0x2d,0x02, /* 46 ROW 6
X */
0x36,0x30
/* 47 ROW 7
Shift */
};
void DownloadKBD()
{
UC keynum, I;
for (keynum = 0; keynum < 64; +)
DefineKey(keynum,KBDKEYS[keynum][0],KBDKEYS[keynum][1]);
}
main()
{
DownloadKBD();
DownloadMacros();
printf(”\nKeyboard Installed\n”);
}
Critical Error Handler
CRITICAL.C is a C++ program that demonstrates a method for handling critical
errors. The following is a listing of that program.
#include “stdio.h”
#include “compat.h”
#include “4800.h”
extern
uchar jamarray[4][1024];
extern
int jamindex;
extern
FILE *stdprn;
extern unsigned page_no;
extern unsigned line_cnt;
/******************************************************************/
/* Critical error handler routines for the printer follow. ********/
B. Common PEN*KEY
6000 Series Info.