File: biport.h

package info (click to toggle)
c-cpp-reference 2.0.2-6
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, lenny
  • size: 8,012 kB
  • ctags: 4,612
  • sloc: ansic: 26,960; sh: 11,014; perl: 1,854; cpp: 1,324; asm: 1,239; python: 258; makefile: 115; java: 77; awk: 34; csh: 9
file content (34 lines) | stat: -rwxr-xr-x 845 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*
**  BIPORT.H - Port TC/TC++/BC++ code using register pseudovariables
**
**  public domain by Bob Stout
*/

#include <dos.h>

extern union  REGS  BIP_regs_;
extern struct SREGS BIP_sregs_;

#define _AX BIP_regs_.x.ax
#define _BX BIP_regs_.x.bx
#define _CX BIP_regs_.x.cx
#define _DX BIP_regs_.x.dx
#define _AH BIP_regs_.h.ah
#define _AL BIP_regs_.h.al
#define _BH BIP_regs_.h.ah
#define _BL BIP_regs_.h.al
#define _CH BIP_regs_.h.ah
#define _CL BIP_regs_.h.al
#define _DH BIP_regs_.h.ah
#define _DL BIP_regs_.h.al
#define _SI BIP_regs_.x.si
#define _DI BIP_regs_.x.di
#define _CF BIP_regs_.x.cflag
#define _FF BIP_regs_.x.flags
#define _ES BIP_sregs_.es
#define _CS BIP_sregs_.cs
#define _SS BIP_sregs_.ss
#define _DS BIP_sregs_.ds
#define regload_() segread(&BIP_sregs_)

unsigned _pascal geninterrupt(int);