Intermec PENKEY 6100 Programmer's Reference Manual page 142

Hide thumbs Also See for PENKEY 6100:
Table of Contents

Advertisement

Conversions and Interfaces
Files
"
"
"
Drives
R
6-6
PEN*KEY
6100 Computer Programmer's Reference Guide
fflush()
asm mov ah,0x68
asm mov bx,filehandle
asm int 0x21
int FileCommit(void)
{
REGS
regs;
SREGS sregs;
// Parameter table used by function 5d01h.
// computer_id are used.
struct {
unsigned int ax;
unsigned int bx;
unsigned int cx;
unsigned int dx;
unsigned int si;
unsigned int di;
unsigned int ds;
unsigned int es;
unsigned int RESERVED;
unsigned int computer_id;
unsigned int process_id;
} dos_parm;
dos_parm.computer_id = 0;
dos_parm.process_id = getpsp();//set current process
sregs.ds = FP_SEG(&dos_parm);
regs.x.dx = FP_OFF(&dos_parm);
regs.x.ax = 0x5d01;
intdosx(&regs,&regs,&sregs);
if (regs.x.cflag)
return regs.x.ax;
return 0;
}
Only process_id and
//set current computer
//set up address of parameter table
//commit all files to disk
// if error return code
// completed ok
SECTION 6

Advertisement

Table of Contents
loading

Table of Contents