
Example
:
void TD_beeper_vol(int status)
{
regs.h.ah= 0x1A;
regs.h.bh= 3;
regs.h.al= (unsigned char)status;
int86(0x21,®s,®s);
}
1A
Enable/Disable RS232 Port
Entry Parameter:
AH = 1AH
BH = 4
AL = 0/1
; disable/enable
Return Value: None
Example
:
void TD_serial(int status)
{
regs.h.ah= 0x1A;
regs.h.bh= 4;
regs.h.al= (unsigned char)status;
int86(0x21,®s,®s);
}
1A
Enable/Disable Key or Key Function
Entry Parameter:
AH = 1AH
BH = 5
AL = 0 ; All keys
1
; Supervisor mode
2
; Cold start
3
; Warm start
4
; User mode (press [CMD] for 2 seconds)
5
; ALPHA key
BL = 0
; Disable key or key function
1
; Enable key or key function
Return Value: None
Example
:
void TD_keylock(int type,int status)
{
regs.h.ah= 0x1A;
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...