
}
2D
Set System Time
Entry Parameter:
AH = 2DH
CH = hour (0 - 23)
CL = minute (0 - 59)
DH = second (0 - 59)
Return Value: AL = 0/FFH
; OK/Setting error
Example
:
int TS_set_time(int hour,int minute,int second)
{
regs.h.ah = 0x2d;
regs.h.ch = hour;
regs.h.cl = minute;
regs.h.dh = second;
int86(0x21,®s,®s);
return((int)regs.h.al);
}
2E
Set Alarm Date
Entry Parameter:
AH = 2EH
AL = 0
; disable alarm
1 ; enable alarm everyday
2 ; enable alarm by date
If AL = 2:
CX = year (1980 - 2079)
DH = month (1 - 12)
DL = day (1 - 31)
Return Value: AL = 0/FFH
; OK/Setting error
Example
:
int TS_alarm_date(int status,int year,int month,int day)
{
regs.h.ah = 0x2E;
regs.h.al = (unsigned char)status;
regs.x.cx = year;
regs.h.dh = (unsigned char)month;
regs.h.dl = (unsigned char)day;
int86(0x21,®s,®s);
Summary of Contents for PT600
Page 1: ...PT600 Portable Terminal Programming Reference Guide Document number 3506000120...
Page 7: ......
Page 16: ......
Page 20: ...regs h bh 5 regs h al unsigned char type regs h bl unsigned char status int86 0x21 regs regs...
Page 57: ......
Page 66: ...Host Command STX ESC CMD parameters CS1 CS2 ADDR Acknowledgement ACK Negative ACK NAK...