Files
TeslaRel410/BORLAND/BC45/SOURCE/RTL/RTLINC/COMMON16/_VIDEO.H
T
CydandClaude Fable 5 63312e07f9 source410: literal 4.10 source reconstruction + BC++ 4.52 fleet toolchain archived
- BORLAND/: Borland C++ 4.52 (chosen over 4.5 by byte-match: CODE/RP/CW32.LIB
  is identical to 4.52's install lib). BCC32/TLINK32/TLIB/MAKE run natively on
  Win11; CODE/BT/OPT.MAK is the shipped BTL4OPT.EXE's exact flag recipe
  (extender = Borland PowerPack DPMI32, not Phar Lap TNT).
- restoration/source410/: the literal 1995-form reconstruction of the missing
  BT game source (never mixed into CODE/). Round 1-3 state:
  * 6 of 10 surviving original TUs COMPILE CLEAN under the period toolchain
    (BTMSSN, BTCNSL, BTSCNRL, BTTEAM, BTL4MODE, BTL4ARND) - first builds
    since 1996.
  * BT_L4/BTL4APP.CPP pilot reconstruction: 12/12 functions, Fail() lands on
    its binary-recorded line 400 exactly.
  * BT/BTCNSL.HPP: console wire IDs recovered from the binary's ctors
    (Killed=9, Damaged=10, ScoreUpdate=13, DeathWithoutHonor=15 [T1];
    TeamScore=12 flagged [T4]).
  * MUNGA/: 8 engine-header backfills back-dated from the BT412 WinTesla tree
    (VDATA numbering decomp-verified; AUDREND's OpenAL-era virtual removed -
    the period compiler is the drift detector).
  * Tooling: backdate.py (WinTesla->1995 header transform), compile410.sh
    (per-TU verification sweep under authentic OPT.MAK flags).
  * README: corrected roadmap - MECH.HPP is the capstone grown with the mech
    TU reconstructions; BTREG.CPP green = the header-family milestone.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-19 07:33:26 -05:00

74 lines
2.1 KiB
C++

/*------------------------------------------------------------------------
* filename - _video.h
*
* Private definitions for Turbo Pascal style video functions.
* External interfaces in VIDEO.H
*-----------------------------------------------------------------------*/
/*
* C/C++ Run Time Library - Version 6.5
*
* Copyright (c) 1987, 1994 by Borland International
* All Rights Reserved.
*
*/
typedef unsigned char uchar;
typedef struct
{
uchar windowx1;
uchar windowy1;
uchar windowx2;
uchar windowy2;
uchar attribute;
uchar normattr;
uchar currmode;
uchar screenheight;
uchar screenwidth;
uchar graphicsmode;
uchar snow;
union {
char far * p;
struct { unsigned off,seg; } u;
} displayptr;
} VIDEOREC;
#ifndef __IN_CRTINIT
extern VIDEOREC _video;
#endif
#ifdef __cplusplus
extern "C" {
#endif
unsigned pascal near __cputn(const void *__s, unsigned __n, void *__dontCare);
void near _crtinit(uchar __newmode);
void near _VideoInt(void);
void pascal near __scroll(uchar __dir, uchar __x1, uchar __y1, uchar __x2, uchar __y2, uchar __lines);
unsigned near _wherexy(void);
void far * pascal near __vptr(int __x, int __y);
void pascal near __vram(void far *__dst, void far *__src, int __len);
int pascal near __validatexy(int __x1, int __y1, int __x2, int __y2);
void pascal near __screenio(void far *__dst, void far *__src, int __len);
#ifdef __cplusplus
}
#endif
#define _wherex() ((uchar) _wherexy())
#define _wherey() ((uchar) (_wherexy() >> 8))
#define V_SET_MODE 0x00
#define V_SET_CURSOR_POS 0x02
#define V_GET_CURSOR_POS 0x03
#define V_SCROLL_UP 0x06
#define V_SCROLL_DOWN 0x07
#define V_RD_CHAR_ATTR 0x08
#define V_WR_CHAR_ATTR 0x09
#define V_WR_CHAR 0x0a
#define V_WR_TTY 0x0e
#define V_GET_MODE 0x0f
#define UP V_SCROLL_UP
#define DOWN V_SCROLL_DOWN