
Return Value: None
Example
:
void TS_end_program(int ret_code)
{
regs.h.ah= 0x4C;
regs.h.al= (unsigned char)ret_code;
int86(0x21,®s,®s);
}
50
Read Data from Scanner Port or RFID
Entry Parameter:
AH = 50H
DS:DX
; pointer to data buffer
Return Value: 1) AX =0
; has data input
DS:DX ; pointer to input data string
BL = 1 ; Code 39
2
; Interleaved 2 of 5
3
; Codabar
5
; Code 128
6
; EAN 128
7
; Code 93
11H ; UPC-A
12H ; UPC-E
13H ; EAN-13
14H ; EAN-8
21H ; User Code 1 (TRIOPTIC)
22H ; User Code 2 (TOSHIBA)
CL = 0 ; scan direction from left to right
1 ; scan direction from right to left
2) AX = 1
; no data input
Example:
int TD_get_bar1(unsigned char *str,int wait,int *type,int *dir)
{
int i;
do
{
regs.h.ah=0x50;
segregs.ds = FP_SEG(str);
regs.x.dx = FP_OFF(str);
int86x(0x21,®s,®s,&segregs);
i = regs.x.ax;
Содержание 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...