Category : Dbase (Clipper, FoxBase, etc) Languages Source Code
Archive   : NFLIB21.ZIP
Filename : FTINT86.CH

 
Output of file : FTINT86.CH contained in archive : NFLIB21.ZIP
/*
* File......: FTINT86.CH - Header file for users of FT_INT86() function
* Author....: Ted Means
* Date......: $Date: 01 Jul 1992 01:00:52 $
* Revision..: $Revision: 1.3 $
* Log file..: $Logfile: C:/nanfor/src/ftint86.chv $
*
* This is an original work by Ted Means and is placed in the
* public domain.
*
* Modification history:
* ---------------------
*
* $Log: C:/nanfor/src/ftint86.chv $
*
* Rev 1.3 01 Jul 1992 01:00:52 GLENN
* Rodgers Moore submitted some fixes to the highbyte() and lowbyte()
* macros that take negative numbers into account. Ted Means and
* Glenn Scott added #defines for the Flag registers. General cleanup
* of formatting, etc.
*
*
* Rev 1.2 15 Aug 1991 23:08:48 GLENN
* Forest Belt proofread/edited/cleaned up doc
*
* Rev 1.1 27 May 1991 13:25:18 GLENN
* Revised for new version of ft_int86() package, which is written in C
* (CINT86.C), assembler (AINT86.ASM).
*
* Rev 1.0 01 Apr 1991 01:02:38 GLENN
* Nanforum Toolkit
*
*
*/

#ifndef __FTINT86_CH__
#define __FTINT86_CH__

#define INT86_MAX_REGS 10

#define AX 1
#define BX 2
#define CX 3
#define DX 4
#define SI 5
#define DI 6
#define BP 7
#define DS 8
#define ES 9
#define FLAGS 10

#define FLAG_CARRY 0 // Carry flag
#define FLAG_PARITY 2 // Parity flag
#define FLAG_AUX 4 // Auxillary flag
#define FLAG_ZERO 6 // Zero flag
#define FLAG_SIGN 7 // Sign flag
#define FLAG_TRAP 8 // Trap flag
#define FLAG_INT 9 // Interrupt flag
#define FLAG_DIR 10 // Direction flag
#define FLAG_OFLOW 11 // Overflow flag

#translate makehi( ) => (() * 256)
#translate REG_DS => .T.
#translate REG_ES => .F.
#translate highbyte( ) => (int( () / 256 ) + iif( () >= 0,0,255))
#translate lowbyte( ) => (int( () % 256 ) + iif( () >= 0,0,256))
#translate carrySet( ) => (ft_isbiton((), FLAG_CARRY))

#endif // __FTINT86_CH__


  3 Responses to “Category : Dbase (Clipper, FoxBase, etc) Languages Source Code
Archive   : NFLIB21.ZIP
Filename : FTINT86.CH

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/