SetEVect Set Protected mode exception handler address.

Inputs: AX = 0203h

BL= Exception vector number.

CX:[E]DX = selector:offset of new handler.

Outputs: None

Errors: The number in BL must be in the range 0-1Fh. Anything outside this range returns carry set.

SetMCBMax Set new memory control block (MCB) memory allocation block size.

Inputs: AX = 0ff28h

ECX = New value to set (<=64K)

Outputs: None

Errors: Carry set on error

Notes: The maximum block size that will be allocated from MCB memory is 16 bytes less than the value set by this function. The default value is 16384. The maximum value is 65536.

The CauseWay API memory allocation functions allocate memory from two sources. Allocation requests below the value returned by this function are allocated from a memory pool controlled via conventional style MCB's. Requests above this value are allocated via the normal DPMI functions. Because DPMI memory is always allocated in multiples of 4K it can become very inefficient for any program that needs to allocate small blocks of memory. The value set by this function controls the size of memory chunks that will be allocated to and managed by the MCB system.

A value of zero can be passed to this function to disable the MCB allocation system.

The value passed will be rounded up to the nearest 4K.

Next Page

Previous Page

Go to Table of Contents

Go back to Devore Software & Consulting home page