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 Parameters:

AH = 0x36

 

Returned Values:

AH = 1 (number of sector per cluster)

 

 

BX = number of available clusters

 

 

CX = 1024 (number of bytes per sector)

long TS_free_disk()

{

regs.h.ah= 0x36; int86x(0x21,®s,®s,&segregs); return((long)regs.x.bx*(long)regs.x.cx);

}

1A Enable/disable system key-pressing commands: Warm start, Invoke user command menu, Invoke supervisor mode

Entry Parameters:

AH = 0x1A

 

 

BH = 05

 

 

AL = 0

; disable system keys

 

1

; enable system keys

Returned Values:

None

 

void TD_set_system_key(int status)

{

regs.h.ah= 0x1A;

regs.h.al= (unsigned char)status; regs.h.bh= 5; int86(0x21,®s,®s);

}

1E Change the Keyboard map

Entry Parameters: AH = 0x1E

BH = 1

3-44

Page 45
Image 45
Unitech MR350MKII manual Get free disk cluster, 1E Change the Keyboard map