mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-07 20:08:12 +02:00
29 lines
363 B
ObjectPascal
29 lines
363 B
ObjectPascal
{ %skiptarget=android }
|
|
{ %CPU=i386 }
|
|
{ %OPT=-Cg- }
|
|
{$asmmode intel}
|
|
{$inline on}
|
|
|
|
procedure DoIt;
|
|
begin
|
|
Writeln('DoIt was called');
|
|
end;
|
|
|
|
const
|
|
CB : word = 5;
|
|
|
|
procedure A(B: word); assembler; inline;
|
|
asm
|
|
MOV AX,B
|
|
CMP AX,[CB]
|
|
JZ @OK
|
|
MOV [CB],AX
|
|
CALL DoIt
|
|
@OK: { <-- creates labels with same name }
|
|
end;
|
|
|
|
begin
|
|
A(5);
|
|
A(8);
|
|
end.
|