Intermec PENKEY 6100 Programmer's Reference Manual page 287

Hide thumbs Also See for PENKEY 6100:
Table of Contents

Advertisement

APPENDIX B
extern
extern
extern
extern
/******************************************************************/
/* Critical error handler routines for the printer follow. ********/
/******************************************************************/
struct reqpk {
struct devhdr{
FP(struct devhdr)
unsigned
void
void
uchar
};
struct
void *offset;
void *segment;
};
union fncptr {
FAR (void)
struct faddr
FP(struct devhdr) fncx;
};
void set24h(fnc)
FP(void) fnc;
{
#asm
xor
mov
mov
mov
mov
cli
mov
mov
sti
#endasm
}
drivercall(fncptr,pak)
FP(void) pak;
FAR (void) (*fncptr)();
{
#asm
les
call dword ptr 4[bp]
#endasm
}
baderr(error,devtype,hdr)
unsigned error,devtype;
FP(struct devhdr) hdr;
{
union fncptr strat;
union fncptr inter;
struct ioargs args;
struct reqpk devpack;
uchar buffer[40];
uchar cmd,exterr;
int
jamindex;
FILE *stdprn;
unsigned page_no;
unsigned line_cnt;
unsigned char reqlen, unit, cmd;
unsigned status;
long rsrv1, rsrv2;
unsigned char lookahead;
FP(unsigned char) buff;
unsigned int bytes;
};
next;
attribute;
(*strategy)();
(*interrupt)();
name[8];
faddr{
(*fnc)();
addr;
ax,ax
es,ax
bx,24h*4
ax,[bp+4]
dx,[bp+6]
es:[bx],ax
es:[bx+2],dx
bx,8[bp]
Common PEN*KEY 6000 Series Information
R
PEN*KEY
6100 Computer Programmer's Reference Guide
B-7

Advertisement

Table of Contents
loading

Table of Contents