home *** CD-ROM | disk | FTP | other *** search
- {***********************************************}
- { }
- { R4s_Symbols unit }
- { Copyright (c) 1995, 96 By Bérczi László }
- { }
- {***********************************************}
- {Last Edit: 1996 VIII 10. 12:50}
- {$G+,D-,L-,Y-}
- unit R4s_Symb;
-
- INTERFACE
-
- const {For Keyboard}
- key_None = 0;
- key_Right = 1;
- key_Left = 2;
- key_Both = 3;
-
- SVGA_None = 0; {For Get SVGA}
- SVGA_Trident = 1; { Type}
- SVGA_CirrusL = 2;
- SVGA_Realtek = 3;
- SVGA_Video7 = 4;
- SVGA_82c45x = 5; {Chips & Tech}
- SVGA_ATI = 6;
- SVGA_AHEAD = 7;
- SVGA_Paradise = 8;
- SVGA_OAK = 9;
- SVGA_GENOA = 10;
- SVGA_ZyMos = 11;
- SVGA_TSENG = 12;
- SVGA_SPEA = 13;
- SVGA_S3 = 14;
- SVGA_Phoenix = 15;
- SVGA_Number9 = 16; {Number Nine xy}
- SVGA_Number9I = 17; {Number Nine Imagine-128}
- SVGA_UMC = 18; {UMC xy}
- {SVGA_ = 18;}
- SVGA_Last = 251;
- SVGA_VESA = 252;
- SVGA_NoVESA = 253;
- SVGA_CantUse = 254;
- SVGA_Unknown = 255;
-
- BIOS_AMI = 1;
- BIOS_AMI2 = 2;
- BIOS_Award = 3;
- BIOS_Award2 = 4;
- BIOS_Phoenix = 5;
- BIOS_Quadtel = 6;
- BIOS_Microid = 7;
- BIOS_Toshiba = 8;
- BIOS_AST = 9;
- BIOS_ALR = 10;
- BIOS_Dell = 11;
- BIOS_Tandon = 12;
- BIOS_Vadem = 13;
- BIOS_ZEOS = 14;
- BIOS_Zenith = 15;
- BIOS_GRiD = 16;
- BIOS_Acer = 17;
- BIOS_NEC = 18;
- BIOS_HP = 19;
- BIOS_Mitac = 20;
- BIOS_Kyocera = 21;
- BIOS_Commodore = 22;
- BIOS_DTK = 23;
- BIOS_Mylex = 24;
- BIOS_IBM = 25;
- BIOS_Unknown = 255;
-
- CPU_None = 0; {It's unpossible}
- CPU_8086 = 1;
- CPU_8088 = 2;
- CPU_V20 = 3;
- CPU_V30 = 4;
- CPU_NEC = 5;
- CPU_80188 = 6;
- CPU_80186 = 7;
- CPU_80286 = 8;
- CPU_80386 = 9;
- CPU_80486 = 10;
- CPU_80386SX = 11;
- CPU_80386DX = 12;
- CPU_80486SX = 13;
- CPU_80486SX2 = 14;
- CPU_80486DX = 15;
- CPU_80486DX2 = 16;
- CPU_80486DX4 = 17;
- CPU_i386SX = 18;
- CPU_i386SL = 19;
- CPU_i386DX = 20;
- CPU_i486 = 21;
- CPU_i486DX = 22;
- CPU_i486SX = 23;
- CPU_i486DX2 = 24;
- CPU_i486SX2 = 25;
- CPU_i486DX2WB = 26;
- CPU_i486DX4 = 27;
- CPU_iP5 = 28; {5V 60 / 66 MHz}
- CPU_iP54C = 29; {3V 75 / 90/ 100MHz}
- CPU_iP55C = 30; {2.5V 133/ 150 MHz}
- CPU_iPMMX = 31;
- CPU_iP5Over = 32;
- CPU_iP6 = 33;
- CPU_Am386 = 34;
- CPU_Am386SX = 35;
- CPU_Am386DX = 36;
- CPU_Am486 = 37;
- CPU_Am486DX = 38;
- CPU_Am486SX = 39;
- CPU_Am486DX2 = 40;
- CPU_Am486SX2 = 41;
- CPU_Am486DXWB = 42;
- CPU_Am486DX4 = 43;
- CPU_Am486DX4WB = 44;
- CPU_Am5x86 = 45;
- CPU_Am5x86WB = 46;
- CPU_AmK5 = 47;
- CPU_AmK6 = 48;
- CPU_IBM486SLC = 49;
- CPU_IBM486SLC2 = 50;
- CPU_IBM486DX2 = 51;
- CPU_IBMBL486DX2= 52;
- CPU_IBM486BLX3 = 53;
- CPU_Cx486SX = 54;
- CPU_Cx486SLC = 55;
- CPU_Cx486SLC2 = 56;
- CPU_Cx486DX = 57;
- CPU_Cx486DLC = 58;
- CPU_Cx486DLC2 = 59;
- CPU_Cx486DX2 = 60;
- CPU_Nx586 = 61;
- CPU_80586 = 62;
- CPU_UMC486 = 63;
- CPU_UMC486DX = 64;
- CPU_UMC486SX = 65;
- CPU_UMC486DX2 = 66;
- CPU_UMC486SX2 = 67;
- CPU_Unknown = 255;
-
- FPU_None = 1;
- FPU_Emulated = 2;
- FPU_8087 = 3;
- FPU_80287 = 4;
- FPU_80387 = 5;
- FPU_BuiltIn = 6;
- FPU_Unknown = 255;
-
- EMM386_ON = $00; {For XMS Detect}
- EMM386_OFF = $01;
- EMM386_AUTO = $02;
-
- Drive_NotPresent = 0; {Get Drive Type}
- Drive_FloppyWout = 1; {Floppy without change-line support}
- Drive_FloppyWth = 1; {Floppy with change-line support}
- Drive_HardDisk = 2;
- Drive_RAMDRIVE = 3;
- Drive_SUBSTDrive = 4;
- Drive_Stacker = 6;
- Drive_DoubleDrv = 7;
- Drive_Unknown = 255;
-
- NU_Nothing = $0000; {For Norton Utilities}
- NU_NCache_F = $4346; {'CF' NCache-F v5, NCache v6, NCache2 v7+}
- NU_NCache_S = $4353; {'CS' NCache-S v5 only}
- NU_DiskReet = $4443; {'DC' DiskReet}
- NU_DiskMon = $444D; {'DM' DiskMon}
- NU_SmartCan = $4653; {'FS' FileSave v5, EP v6, SmartCan v7+}
- NU_Unknown = $FFFF;
-
- {For MakeWindow}
- WinCornerLU = 192; {Corner=Sarok }
- WinCornerRU = 193; {L=Left;R=Right}
- WinCornerLD = 194; {U=Up ;D=Down }
- WinCornerRD = 195;
- WinSummitU = 196; {Summit=Tetô }
- WinSummitD = 197;
- WinEdgeL = 198; {Edge=Szél(e) }
- WinEdgeR = 199;
-
- Nothing = 0; {for CodeString}
- InPushStr = 1;
- DePushStr = 2;
- NotStr = 3;
- XORStr = 4;
- XORStrExtended = 5;
- MirrorStr = 6;
- InMirrorANDXORStrExt = 7;
- DeMirrorANDXORStrExt = 8;
-
- MousePointerNormal: Array[0..15] of Byte = {Nyil}
- (0, 0, 64, 96, 112, 120, 124, 126, 126, 120, 76, 12, 4, 6, 6, 0);
- MousePointerOutline: Array[0..15] of Byte = {Nyil OutLine}
- (0, 192, 160, 144, 136, 132, 130, 129, 129, 134, 178, 242, 18, 25, 9, 15);
- MousePointerHGNormal: Array[0..15] of Byte = {HomokOra}
- (0, 0, 254, 130, 130, 170, 84, 56, 16, 56, 84, 170, 214, 254, 0, 0);
- MousePointerHGOutline: Array[0..15] of Byte = {HomokOra Outline}
- (0, 254, 1, 125, 125, 85, 170, 68, 40, 68, 170, 68, 41, 1, 254, 0);
-
- type
- PChrData = ^TChrData; {For NewCharsOn}
- TChrData = Array[0..4095] of Byte;
-
- PChrData16 = ^TChrData16;
- TChrData16 = Array[0..15] of Byte;
-
- PScreen = ^TScreen; { For Video }
- TScreen = Array[1..25,1..80,1..2] of Byte;
-
- PASCIIZ = ^TASCIIZ;
- TASCIIZ = Array[1..255] of Char;
-
- PChar256 = ^TChar256;
- TChar256 = Array[0..255] of Char;
-
- PKeyboardFlag = ^TKeyboardFlag; { For Keyboard }
- TKeyboardFlag = Byte;
-
- PKeyBoardBuffer = ^TKeyBoardBuffer;
- TKeyBoardBuffer = Array[1..32] of Byte;
-
- PMouseBuffer = ^TMouseBuffer;
- TMouseBuffer = Array[1..2, 1..2] of Byte; {For MouseEr Unit}
-
- PPathString = ^TPathString; { For GetCurDir }
- TPathString = Array[0..66] of Char; {64 + 3 (C:\)}
-
- DWord = Array[1..2] of Word; { 4 B}
- QWord = Array[1..4] of Word; { 8 B}
- TByte = Array[1..10] of Byte; {10 B}
- QWord2 = Array[1..8] of Word; {16 B} {For GetCurXYInVideoPage}
-
- PString = ^String;
- TString = String;
-
- PString80 = ^TString80;
- TString80 = String[80];
-
- PString8 = ^TString8;
- TString8 = String[8];
-
- PString3 = ^TString3;
- TString3 = String[3];
-
- PChar8 = ^TChar8;
- TChar8 = Array[1..8] of Char;
-
- PChar3 = ^TChar3;
- TChar3 = Array[1..3] of Char;
-
- Proc = Procedure;
-
- PDeviceHeader = ^TDeviceHeader; {For Drive Info }
- TDeviceHeader = record
- NextDevice: PDeviceHeader;
- DeviceAttr: Word;
- Strategy : Word;
- Intrrupt : Word;
- DeviceName: Array[1..8] of Char;
- end;
-
- PDriveInfo = ^TDriveInfo;
- TDriveInfo = record
- Drive : Byte;
- HeadNumber : Byte;
- CylinderNumber : Word;
- SectorPerCylinder: Byte;
- SectorPerCluster,
- BytePerSector : Word;
- TotalCluster,
- AvaibleCluster : Word;
- BootSizeInSector : Word;
- FirstDataSector,
- FirstDIRsSector : Word;
- FATNumber : Byte;
- SectorPerFAT : Word;
- IsDrive16Bit : Boolean;
- DriveTypeString : String;
- StatusFlag : Byte;
- end;
-
- PDriveParameterBlock = ^TDriveParameterBlock;
- TDriveParameterBlock = record
- Drive : Byte; {0: A, 1: B . . .}
- UNWDeviceDriver : Byte;
- BytePerSector : Word;
- SectorPerCluster : Byte;
- SqrNSectorACluster: Byte;
- BootSizeInSector : Word;
- FATNumber : Byte;
- MaxDirectories : Word;
- FirstDataSector : Word;
- MaxCluster : Word;
- SectorPerFAT : Word;
- FirstDIRsSector : Word;
- DeviceHeader : PDeviceHeader;
- MediaID : Byte;
- AccessByte : Byte;
- NextDPB : PDriveParameterBlock;
- FirstFreeCluster : Word;
- FreeClusterssNumb : Word
- end; {R4s_REM}
-
- PBootSecInforms = ^TBootSecInforms; {SizeOf(TBootSecInforms) = 62 Byte}
- TBootSecInforms = record
- JMP : Array[1..3] of Byte;
- OEMName : Array[1..8] of Char;
- Byte_Sector : Word;
- Sector_Cluster : Byte;
- ReservedSecs : Word;
- FATCount : Byte; {FATCount * SectorInOneFAT }
- MaxRootEntries, {(MaxRootEntries * 32) / Byte_Sector}
- Total_Sector : Word; {DataStart = ReservedSecs + FATSize + RootSize}
- MediaDescriptor: Byte;
- SectorInOneFAT,
- Sector_Track,
- Head_Number,
- Hidden_Sector : Word; {if partitions > 32M then It's the Lo Word }
- Hidden_SectorHi: Word; {if partitions > 32M then used else not used }
- BIGTotal_Sector: Longint; {if (partitions > 32M) And (Total_Sector = 0) }
- PhisicalDriveNo: Byte; { then used else not used }
- InfoLevel : Word; {Must be 0 ???}
- SerialNumber : Longint; {In Hex (bin) }
- VolumeLabel : Array[1..11] of Char; {'NO NAME ' if none present}
- FileSystemType : Array[1..8] of Char; {'FAT12 ' or 'FAT16 ' }
- TempArray : Array[1..1024-62] of Byte;
- end;
-
- PDirectoryEntry = ^TDirectoryEntry;
- TDirectoryEntry = record
- FileName : TChar8;
- Extension: TChar3;
- Attribute: Byte;
- Reserved : Array[1..10] of Byte;
- Time,
- Date,
- ClusterNumber: Word;
- FileSize : Longint;
- end;
-
- PDiskReadPacket = ^TDiskReadPacket;
- TDiskReadPacket = record
- StartSec,
- SecCount: Word;
- PBuffer : Pointer;
- end;
-
- PMemory = ^TMemory;
- TMemory = record
- Segment,
- Offset : Word;
- end;
-
- PFormatTrack = ^TFormatTrack; {FDD Format }
- TFormatTrack = record
- Track,
- Head,
- SectorNumber,
- SectorSize : Byte;
- end;
-
- PSector = ^TSector; {Sector Record }
- TSector = record
- Drive,
- Head : Byte;
- Cylinder: Word;
- Sector : Byte;
- end;
-
- PCylinder = ^TCylinder; {Clyster Record }
- TCylinder = record
- Drive,
- Head : Byte;
- Cylinder: Word;
- end;
-
- PMouseRec = ^TMouseRec;
- TMouseRec = record
- X,
- Y: Word;
- Buttons: Byte;
- end;
-
- PTridentBIOSInfo = ^TTridentBIOSInfo; {Video Info }
- TTridentBIOSInfo = record
- UnknownByte: Byte;
- OEMCode : Byte;
- ID : Word;
- BIOSDate : Array[1..8] of Char;
- UnknownWord: Word;
- BIOSVer : Array[1..8] of Char;
- end;
-
- PVESASuperVGABIOSInfo = ^TVESASuperVGABIOSInfo;
- TVESASuperVGABIOSInfo = record
- VESASignature : Array[1..4] of Char;
- VESAVersionNumb : Word;
- PointToOEMName : Pointer;
- CapabilitiesFlag : DWord;
- PointToListOfSuppVESAandOEMVideoModes : Pointer;
- VideoMemory : Word; {x*64k}
- OEMSoftWareVer : Word; {v1.0 236 Byte Reserved }
- PointToVedorName : Pointer; {|xxxxxxxxxxxxxxxxxxxxxx}
- PointToProductName : Pointer; {|xxxxxxxxxxxxxxxxxxxxxx}
- PointToProducetRevision: Pointer; {|xxxxxxxxxxxxxxxxxxxxxx}
- Reserved222Byte : Array[1..222] of Byte; {+--------------------->}
- end; {v2.0 256 Byte OEM }
- { ScratchPadReserved }
- PTimeRec = ^TTimeRec;
- TTimeRec = record {DOS Time Info }
- Hour,
- Min,
- Sec,
- HSec :Byte
- end;
-
- PDateRec = ^TDateRec;
- TDateRec = record
- Year : Word;
- Month,
- Day : Byte;
- end;
-
- PMyRegisters = ^TMyRegisters;
- TMyRegisters = record
- EAX, EBX, ECX, EDX, ECS, EDS, EES, ESS, EDI, ESI, ESP, EBP,
- EFlags: Longint;
- CarryFlag,
- First1,
- ParityFlag,
- First0,
- AuxiliaryFlag,
- Second0,
- ZeroFlag,
- SignFlag,
- TrapFlag,
- InterruptFlag,
- DirectionFlag,
- OverflowFlag,
- IOPrivilegeLevel1, {286+}
- IOPrivilegeLevel2, {286+}
- NTTaskFlag, {286+}
- Third0,
- ResumeFlag, {386+}
- VirtualModeFlag, {386+}
- NoMore: Boolean;
- end;
-
- PPCIInfo = ^TPCIInfo;
- TPCIInfo = record
- Vendor,
- Device: Word;
- end;
-
- PCIInfoArray = Array[1..25] of TPCIInfo;
-
- IMPLEMENTATION
-
- END.