fpc/tests/webtbs/tbug735.pp
2000-05-08 13:21:44 +00:00

26 lines
311 B
ObjectPascal

{$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.