50Read data from external reader(only available for Barcode and Magnetic reader)

Entry Parameters:

AH = 0x50

 

Returned Values:

DS:DX = buffer pointer

 

AX =

0

;data input

 

 

1

;no data input

 

 

 

Scanning direction

 

CL =

0

;from right to left

 

 

1

;from left to right

int TD_get_external(unsigned char *str,int,intwait

*direction)

{

int i; do

{

segregs.ds = FP_SEG(str); regs.x.dx = FP_OFF(str); regs.h.ah=0x50; int86x(0x21,®s,®s,&segregs); *direction =regs.h.cl;

} while (wait && regs.h.al); return(regs.h.al);

 

}

 

52

Read Internal port

 

 

Entry Parameters:

AH = 0x52

 

Returned Values:

DS:DX = buffer pointer

AX = 0

; data input

1

; no data input

 

Scanning direction

CH = 0

; Barcode data

CL =

0

;from right to left

 

1

;from left to right

BL =

0x010

; Code 39

 

0x02

; Interleaved 2 of 5

 

0x03

: CODABAR

 

0x05

: Code 128

 

0x06

: EAN 128

 

0x07

: Code 93

 

0x11

: UPC-A

 

0x12

: UPC-E

3-39

Page 40
Image 40
Unitech MR350MKII manual Read Internal port, Codabar