return((int)regs.h.al);
}
2F
Set Alarm Time
Entry Parameter:
AH = 2FH
CH = hour (0 - 23)
CL = minute (0 - 59)
DH = second (0 - 59)
Return Value: AL = 0/FFH
; OK/Setting error
Example
:
int TS_alarm_time(int hour,int minute,int second)
{
regs.h.ah = 0x2F;
regs.h.ch = hour;
regs.h.cl = minute;
regs.h.dh = second;
int86(0x21,®s,®s);
return((int)regs.h.al);
}
30
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= 810H
Example
:
int TS_version1(int *ver,int *firm,int *oem)
Содержание 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...