*type = regs.h.bl;
*dir = regs.h.cl;
} while (wait && i);
return(i);
}
51
Set Scanner Port
Entry Parameter:
AH = 51H
AL = 0
; disable scanner port
1
; enable scanner
Return Value: None
Example:
void TD_set_bar(int status)
{
regs.h.ah= 0x51;
regs.h.al= (unsigned char)status;
int86(0x21,®s,®s);
}
56
Rename File
Entry Parameter:
AH = 56H
DS:DX
; pointer to old file name string
ES:DI
; pointer to new file name string
Return Value: if success, AH = 0 and CARRY flag is cleared
if failed, AH = 1 and CARRY flag is set
Example:
int TS_rename_file(char *inf,char far *outf)
{
segregs.ds = FP_SEG(inf);
regs.x.dx = FP_OFF(inf);
segregs.es = FP_SEG(outf);
regs.x.di = FP_OFF(outf);
regs.h.ah=0x56;
int86x(0x21,®s,®s,&segregs);
if ((regs.x.cflag & 0x01) == 0) return(regs.x.ax);
else return(-1);
}
Содержание PT600
Страница 1: ...PT600 Portable Terminal Programming Reference Guide Document number 3506000120...
Страница 7: ......
Страница 16: ......
Страница 20: ...regs h bh 5 regs h al unsigned char type regs h bl unsigned char status int86 0x21 regs regs...
Страница 57: ......
Страница 66: ...Host Command STX ESC CMD parameters CS1 CS2 ADDR Acknowledgement ACK Negative ACK NAK...