2010-02-20 18:51:54 +00:00
|
|
|
/*
|
2012-03-31 20:22:13 +00:00
|
|
|
* Copyright (c) 1995 Colin Plumb. All rights reserved.
|
|
|
|
* For licensing and other legal details, see the file legal.c.
|
|
|
|
*
|
2010-02-20 18:51:54 +00:00
|
|
|
* bn8086.c - bnInit() for Intel x86 family in 16-bit mode.
|
|
|
|
*
|
|
|
|
* Written in 1995 by Colin Plumb.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "lbn.h"
|
|
|
|
#include "bn16.h"
|
|
|
|
#include "bn32.h"
|
|
|
|
|
|
|
|
#ifndef BNINCLUDE
|
|
|
|
#error You must define BNINCLUDE to lbn8086.h to use assembly primitives.
|
|
|
|
#endif
|
|
|
|
|
|
|
|
void
|
|
|
|
bnInit(void)
|
|
|
|
{
|
|
|
|
if (not386())
|
|
|
|
bnInit_16();
|
|
|
|
else
|
|
|
|
bnInit_32();
|
|
|
|
}
|