Turbo Pascal 5.5 "Error 3: Unknown Identifier" with ASM keyword

2.7k views Asked by At

I downloaded TP 5.5 and installed it in my Virtual Machine which is running FreeDOS.

I tried this short code:

Program test;

begin
asm
   mov ax, ax
end;
end.

Turbo Pascal says: "Error 3: Unknown Identifier."

I can use the keyword inline works BUT I can't use mnemonics with it and my goal is just to learn some assembly while being in Real Mode so I can't go to Delphi and use mnemonics there.

1

There are 1 answers

0
Marco van de Voort On

Integrated "basm" assembler was a TP 6.0 feature indeed. 5.5 is the newest that is free though.

Better use Free Pascal.