fpc/tests/webtbs/tbug735.pp
2000-03-15 23:23:22 +00:00

28 lines
325 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
CLI
MOV [CB],AX
STI
CALL DoIt
@OK: { <-- creates labels with same name }
end;
begin
A(5);
A(8);
end.