author: Tomasz Biela (Tebe)
http://www.freepascal.org/docs-html/rtl/system/index-5.html
name: | value: | description: |
---|---|---|
__PORTB_BANKS | $0101 | memory banks array |
M_PI_2 | pi*2 | |
D_PI_2 | pi/2 | |
D_PI_180 | pi/180 | |
mGTIA | 0 | |
mVBXE | $80 | |
// WINDOW | $10 | text window |
// NARROW | $20 | narrow screen |
VBXE_XDLADR | $0000 | XDLIST |
VBXE_BCBTMP | $00E0 | BLITTER TEMP |
VBXE_BCBADR | $0100 | BLITTER LIST ADDRESS |
VBXE_MAPADR | $1000 | COLOR MAP ADDRESS |
VBXE_CHBASE | $1000 | CHARSET BASE ADDRESS |
VBXE_OVRADR | $5000 | OVERLAY ADDRESS |
VBXE_WINDOW | $B000 | 4K WINDOW $B000..$BFFF |
iDLI | 0 | set new DLI vector |
iVBL | 1 | set new VBL vector |
iTIM1 | 2 | set new IRQ TIMER1 vector |
iTIM2 | 3 | set new IRQ TIMER2 vector |
iTIM4 | 4 | set new IRQ TIMER4 vector |
CH_DELCHR | chr($FE) | delete char under the cursor |
CH_ENTER | chr($9B) | |
CH_ESC | chr($1B) | |
CH_CURS_UP | chr(28) | |
CH_CURS_DOWN | chr(29) | |
CH_CURS_LEFT | chr(30) | |
CH_CURS_RIGHT | chr(31) | |
CH_TAB | chr($7F) | tabulator |
CH_EOL | chr($9B) | end-of-line marker |
CH_CLR | chr($7D) | clear screen |
CH_BELL | chr($FD) | bell |
CH_DEL | chr($7E) | back space (delete char to the left) |
CH_DELLINE | chr($9C) | delete line |
CH_INSLINE | chr($9D) | insert line |
PAL_PMCOLOR0 | 0 | palette index Palette[..] , HPalette[..] |
PAL_PMCOLOR1 | 1 | |
PAL_PMCOLOR2 | 2 | |
PAL_PMCOLOR3 | 3 | |
PAL_COLOR0 | 4 | |
PAL_COLOR1 | 5 | |
PAL_COLOR2 | 6 | |
PAL_COLOR3 | 7 | |
PAL_COLBAK | 8 | |
COLOR_BLACK | $00 | |
COLOR_WHITE | $0e | |
COLOR_RED | $32 | |
COLOR_CYAN | $96 | |
COLOR_VIOLET | $68 | |
COLOR_GREEN | $c4 | |
COLOR_BLUE | $74 | |
COLOR_YELLOW | $ee | |
COLOR_ORANGE | $28 | |
COLOR_BROWN | $e4 | |
COLOR_LIGHTRED | $3c | |
COLOR_GRAY1 | $04 | |
COLOR_GRAY2 | $06 | |
COLOR_GRAY3 | $0a | |
COLOR_LIGHTGREEN | $cc | |
COLOR_LIGHTBLUE | $7c | |
fmOpenRead | $04 | |
fmOpenWrite | $08 | |
fmOpenAppend | $09 | |
fmOpenReadWrite | $0c | |
threehalfs: single | 1.5 |
name: | type: | description: |
---|---|---|
TString | string[32] | |
TSize | record cx, cy: smallint end | TSize is a type to describe the size of a rectangular area, where cx is the width, cy is the height (in pixels) of the rectangle. |
TRect | record left, top, right, bottom: smallint end | TRect is a type to describe a rectangular area. |
TPoint | record x,y: SmallInt end | This record describes a coordinate. |
TDateTime | record yy,mm,dd,h,m,s: byte end | This record describes Date-Time. |
TLastArcCoords | record x,y,xstart,ystart,xend,yend: smallint end | |
PtrUInt | word | |
PBoolean | ^Boolean | |
PByte | ^byte | |
PWord | ^word | |
PLongWord | ^cardinal | |
PCardinal | ^cardinal | |
PSmallint | ^smallint | |
PInteger | ^integer | |
PSingle | ^single | |
PFloat16 | ^float16 | |
PString | ^string | |
PByteArray | ^byte | |
PWordArray | ^word |
name: | address: | type: | description: |
---|---|---|---|
[volatile] Rnd | $d20a | byte | |
Palette | 704 | array [0..8] of byte | |
HPalette | $d012 | array [0..8] of byte |
name: | type: | description: |
---|---|---|
ScreenWidth | smallint = 40 | current screen width |
ScreenHeight | smallint = 24 | current screen height |
GraphMode | byte | current screen mode |
IOResult | byte | result of last file IO operation |
EoLn | Boolean | end of line status |
name: | description: |
---|---|
RunError | procedure RunError(a: byte);Print error message
parameters: |
HexStr | function HexStr(Value: cardinal; Digits: byte): TString; register; assembler;Convert cardinal value to string with hexadecimal representation.
parameters:returns: |
Peek | function Peek(a: word): byte; register; stdcall; assembler;Reads BYTE from the desired memory address
parameters:returns: |
DPeek | function DPeek(a: word): word; register; stdcall; assembler;Reads WORD from the desired memory address
parameters:returns: |
Abs | function Abs(x: Real): Real; register; assembler; overload;Abs returns the absolute value of a variable. The result of the function has the same type as its argument, which can be any numerical type.
parameters:returns: |
Abs | function Abs(x: Single): Single; register; assembler; overload;Abs returns the absolute value of a variable. The result of the function has the same type as its argument, which can be any numerical type.
parameters:returns: |
Abs | function Abs(x: float16): float16; register; assembler; overload;Abs returns the absolute value of a variable. The result of the function has the same type as its argument, which can be any numerical type.
parameters:returns: |
Abs | function Abs(x: shortint): shortint; register; assembler; overload;Abs returns the absolute value of a variable. The result of the function has the same type as its argument, which can be any numerical type.
parameters:returns: |
Abs | function Abs(x: smallint): smallint; register; assembler; overload;Abs returns the absolute value of a variable. The result of the function has the same type as its argument, which can be any numerical type.
parameters:returns: |
Abs | function Abs(x: Integer): Integer; register; assembler; overload;Abs returns the absolute value of a variable. The result of the function has the same type as its argument, which can be any numerical type.
parameters:returns: |
Sqr | function Sqr(x: Real): Real; overload;Sqr returns the square of its argument X
parameters:returns: |
Sqr | function Sqr(x: Single): Single; overload;Sqr returns the square of its argument X
parameters:returns: |
Sqr | function Sqr(x: integer): integer; overload;Sqr returns the square of its argument X
parameters:returns: |
Sqrt | function Sqrt(x: Real): Real; overload;Sqrt returns the square root of its argument X, which must be positive
parameters:returns: |
Sqrt | function Sqrt(x: Single): Single; overload;Sqrt returns the square root of its argument X, which must be positive
parameters:returns: |
Sqrt | function Sqrt(x: float16): float16; overload;Sqrt returns the square root of its argument X, which must be positive
parameters:returns: |
Sqrt | function Sqrt(x: Integer): Single; overload;Sqrt returns the square root of its argument X, which must be positive
parameters:returns: |
iSqrt | function iSqrt(number: Single): Single;Fast inverse square root https://en.wikipedia.org/wiki/Fast_inverse_square_root https://pl.wikipedia.org/wiki/Szybka_odwrotno%C5%9B%C4%87_pierwiastka_kwadratowego
parameters:returns: |
ArcTan | function ArcTan(value: real): real; overload;Arctan returns the Arctangent of Value, which can be any Real type. The resulting angle is in radial units.
parameters:returns: |
ArcTan | function ArcTan(value: single): single; overload;Arctan returns the Arctangent of Value, which can be any Real type. The resulting angle is in radial units.
parameters:returns: |
Exp | function Exp(x: Real): Real; overload;Exp returns the exponent of X, i.e. the number e to the power X. https://www.codeproject.com/Tips/311714/Natural-Logarithms-and-Exponent
parameters:returns: |
Exp | function Exp(x: Float): Float; overload;Exp returns the exponent of X, i.e. the number e to the power X. https://www.codeproject.com/Tips/311714/Natural-Logarithms-and-Exponent
parameters:returns: |
Ln | function Ln(x: Real): Real; overload;Ln returns the natural logarithm of the Real parameter X. X must be positive. https://www.codeproject.com/Tips/311714/Natural-Logarithms-and-Exponent
parameters:returns: |
Ln | function Ln(x: Float): Float; overload;Ln returns the natural logarithm of the Real parameter X. X must be positive. https://www.codeproject.com/Tips/311714/Natural-Logarithms-and-Exponent
parameters:returns: |
FileSize | function FileSize(var f: file): cardinal; assembler;Size of file (SDX only)
parameters:returns: |
FilePos | function FilePos(var f: file): cardinal; assembler;Get position in file (SDX only)
parameters:returns: |
Seek | procedure Seek(var f: file; a: cardinal); assembler;Set file position (SDX only)
parameters: |
Eof | function Eof(var f: file): Boolean;Check for end of file
parameters:returns: |
IsLetter | function IsLetter(A: char): Boolean;Check if A is a letter.
parameters:returns: |
IsDigit | function IsDigit(A: char): Boolean;Check if A is a digit.
parameters:returns: |
LowerCase | function LowerCase(a: char): char;Converts a character to lowercase
parameters:returns: |
UpCase | function UpCase(a: char): char;Converts a character to uppercase
parameters:returns: |
Val | procedure Val(s: PString; var v: integer; var code: byte); assembler; overload;Calculate numerical value of a string
parameters: |
Val | procedure Val(s: PString; var v: real; var code: byte); overload; //register;Calculate numerical value of a string
parameters: |
Val | procedure Val(s: PString; var v: single; var code: byte); overload; //register;Calculate numerical value of a string
parameters: |
FloatToStr | function FloatToStr(a: real): TString; stdcall; assembler;Convert a float value to a string
parameters:returns: |
Str | procedure Str(a: integer; var s: TString); overload; stdcall; assembler;Convert a numerical value to a string
parameters: |
Str | procedure Str(a: cardinal; var s: TString); overload; stdcall; assembler;Convert a numerical value to a string
parameters: |
Poke | procedure Poke(a: word; value: byte); register; stdcall; assembler;Store BYTE at the desired memory address
parameters: |
DPoke | procedure DPoke(a: word; value: word); register; stdcall; assembler;Store WORD at the desired memory address
parameters: |
FillChar | procedure FillChar(a: pointer; count: word; value: char); assembler; register; overload; inline;Fills the memory starting at A with Count Characters with value equal to Value
parameters: |
FillChar | procedure FillChar(a: pointer; count: word; value: byte); assembler; register; overload; inline;Fills the memory starting at A with Count Characters with value equal to Value
parameters: |
FillChar | procedure FillChar(a: pointer; count: word; value: Boolean); assembler; register; overload; inline;Fills the memory starting at A with Count Characters with value equal to Value
parameters: |
FillChar | procedure FillChar(var a; count: word; value: Boolean); assembler; register; overload; inline;Fills the memory starting at A with Count Characters with value equal to Value
parameters: |
FillChar | procedure FillChar(var a; count: word; value: Byte); assembler; register; overload; inline;Fills the memory starting at A with Count Characters with value equal to Value
parameters: |
FillByte | procedure FillByte(a: pointer; count: word; value: byte); assembler; register; inline;Fills the memory starting at A with Count Characters with value equal to Value
parameters: |
Move | procedure Move(source, dest: pointer; count: word); assembler; register; overload; inline;Moves Count bytes from Source to Dest
parameters:returns: |
Move | procedure Move(var source, dest; count: word); assembler; register; overload; inline; |
Move | procedure Move(var source; dest: pointer; count: word); assembler; register; overload; inline; |
Move | procedure Move(source: pointer;var dest; count: word); assembler; register; overload; inline; |
Sin | function Sin(x: Real): Real; overload;Calculate sine of angle
parameters:returns: |
Cos | function Cos(x: Real): Real; overload;Calculate cosine of angle
parameters:returns: |
Sin | function Sin(x: single): single; overload;Calculate sine of angle
parameters:returns: |
Cos | function Cos(x: single): single; overload;Calculate cosine of angle
parameters:returns: |
Sin | function Sin(x: float16): float16; overload;Calculate sine of angle
parameters:returns: |
Cos | function Cos(x: float16): float16; overload;Calculate cosine of angle
parameters:returns: |
Space | function Space(b: Byte): ^string; assembler;Return a string of spaces
parameters:returns: |
StringOfChar | function StringOfChar(c: Char; l: byte): ^string; assembler;Return a string consisting of 1 character repeated N times.
parameters:returns: |
SetLength | procedure SetLength(var S: string; Len: byte); register; assembler;Set length of a string.
parameters: |
BinStr | function BinStr(Value: cardinal; Digits: byte): TString; assembler;Convert integer to string with binary representation.
parameters:returns: |
OctStr | function OctStr(Value: cardinal; Digits: byte): TString; assembler;Convert integer to a string with octal representation.
parameters:returns: |
Delete | procedure Delete(var s: string; index, count: byte);Delete removes Count characters from string S, starting at position Index.
parameters: |
Pos | function Pos(c: char; s: string): byte; overload;Pos returns the index of Substr in S, if S contains Substr. In case Substr isn't found, 0 is returned. The search is case-sensitive.
parameters: |
Pos | function Pos(s1: string; s2: string): byte; overload;Pos returns the index of Substr in S, if S contains Substr. In case Substr isn't found, 0 is returned. The search is case-sensitive.
parameters: |
Concat | function Concat(a,b: PString): string; assembler; overload;Append one string to another.
parameters:returns: |
Concat | function Concat(a: PString; b: char): string; assembler; overload; |
Concat | function Concat(a: char; b: PString): string; assembler; overload; |
Concat | function Concat(a,b: char): string; overload; |
Copy | function Copy(var S: String; Index: Byte; Count: Byte): string; assembler; |
Swap | function Swap(a: word): word; overload;Swap high and low bytes of a variable
parameters:returns: |
Swap | function Swap(a: cardinal): cardinal; overload;Swap high and low words of a variable
parameters:returns: |
GetMem | procedure GetMem(var p; size: word); assembler; register;Getmem reserves Size bytes memory, and returns a pointer to this memory in p.
parameters: |
FreeMem | procedure FreeMem(var p; size: word); assembler; register;Freemem releases the memory occupied by the pointer P
parameters: |
CompareByte | function CompareByte(P1,P2: PByte; Len: word): smallint; register; overload;Compare 2 memory buffers byte per byte
parameters: |
CompareByte | function CompareByte(P1,P2: PByte; Len: byte): smallint; register; overload;Compare 2 memory buffers byte per byte
parameters: |
NtoBE | function NtoBE(AValue: word): word; overload;Convert Native-ordered integer to a Big Endian-ordered integer https://www.freepascal.org/docs-html/rtl/system/ntobe.html
parameters: |
NtoBE | function NtoBE(AValue: cardinal): cardinal; overload;Convert Native-ordered integer to a Big Endian-ordered integer
parameters: |