File: bn8086.c

package info (click to toggle)
bnlib 1.1-2.1
  • links: PTS
  • area: main
  • in suites: sarge, woody
  • size: 768 kB
  • ctags: 874
  • sloc: ansic: 6,526; asm: 1,380; makefile: 197; sh: 156
file content (22 lines) | stat: -rw-r--r-- 333 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/*
 * 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();
}