mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-17 20:20:26 +02:00
14 lines
198 B
ObjectPascal
14 lines
198 B
ObjectPascal
{ %CPU=i386 }
|
|
{$asmmode intel}
|
|
Type TFather = Object A : Integer; end;
|
|
TSon = Object (TFather) B : Integer; end;
|
|
|
|
Var Son : TSon;
|
|
|
|
begin
|
|
Asm
|
|
mov ax, Son.A
|
|
mov ax, Son.B
|
|
end;
|
|
end.
|