PT630 Programming Reference Guide
Page 71 of 59
------------------------------------------------------------------------------------------------------------------
Chapter 3. Update Note
1. Correct error return value on BX on section 1.5.25
Get DOS and Firmware Version Number
Entry Parameter: AH = 30H
AL = 0/1
; with/without OEM version code
Return Value: if AL = 0 when call:
AL= major DOS version number (=2)
AH= minor DOS version number (=10)
CL= major firmware version number
CH= minor firmware version number
BX= OEM firmware version code (=0 for standard version)
if AL = 1 when call:
AL= major DOS version number (=2)
AH= minor DOS version number (=10)
CL= major firmware version number
CH= minor firmware version number
BX= 8
3
0H
2. Correct error entry value on 1.2.1
Select Large Font
Entry Parameter: AH = 0
/1
; select 8*16-dot character font (4 lines * 16
; columns display)
Return
Value:
None
void TL_font(int status)
{
regs.h.ah = (unsigned char)status;
int86(0x09,®s,®s);
}
3.
Correct error entry value for DSR 1.8.7
Get CTS
/DSR
Signal Status of RS232 Port
Entry Parameter: AH =
6
AL =
2
1
; get CTS
AL =
1
2
; get DSR
Return Value:
DH =
0
; High voltage on signal
1 ;
Low
voltage
on
signal
Note:
Only for NONE communication protocol
Example
:
int TC_232_CTS()
{
regs.h.ah = 6;
regs.h.al = 2;
int86(0X33®s,®s);
return((int)regs.h.dh);
}
int TC_232_DSR()
{
regs.h.ah = 6;
regs.h.al = 1;
int86(0X33®s,®s);
return((int)regs.h.dh);
}