{
regs.h.ah= 0x30;
regs.h.al= 0;
int86(0x21,®s,®s);
*ver = regs.h.al * 100 + regs.h.ah;
*firm= regs.h.cl * 100 + regs.h.ch;
*oem = regs.x.bx;
return(regs.h.al * 100 + regs.h.ah);
}
35
Get Interrupt Vector
Entry Parameter:
AH = 35H
AL = interrupt number
Return Value: DS:BX = address of interrupt routine
Example
:
void TS_get_interrupt_vector(int vect,unsigned int *es,unsigned int *bx)
{
regs.h.ah= 0x35;
regs.h.al= (unsigned char)vect;
int86x(0x21,®s,®s,&segregs);
*es = segregs.es;
*bx = regs.x.bx;
}
36
Get Free Disk Cluster
Entry Parameter:
AH = 36H
Return Value: AX = 1 (number of sectors per cluster)
BX = number of available clusters
CX = 1024 (number of bytes per sector)
DX = number of total clusters in RAM disk
Example:
long TS_free_disk(int drive)
{
regs.h.al = (unsigned char)drive;
regs.h.ah = 0x36;
int86(0x21,®s,®s);
return((long)regs.x.bx*(long)regs.x.cx);
}
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...