[Overview][Constants][Types][Classes][Procedures and functions][Variables] Reference for unit 'System' (#rtl)

Sptr

Return current stack pointer

Declaration

Source position: systemh.inc line 594

function Sptr: Pointer;

Description

Sptr returns the current stack pointer.

Errors

None.

See also

SSeg

  

Return stack segment register value.

Example

Program Example64;

{ Program to demonstrate the SPtr function. }
Var
  P :Longint;

begin
  P:=Longint(Sptr); { P Contains now the current stack position. }
end.