2
votes

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
Evidently, symbolic inline assembler hadn't yet been added to the language at the time when version 5.5 was released.500 - Internal Server Error
Perhaps it's using at&t syntax? Have you tried mov %ax, %ax?David Wohlferd
@500 - Internal Server Error It may be it but I've seen a Turbo Pascal code with mnemonics.user250327
@David Wohlerd It's not that because even if I remove that line it says that it doesn't know what "asm" means.user250327
@user250327: It was indeed supported in some versions of Turbo Pascal but apparently not the one you have.500 - Internal Server Error

1 Answers

2
votes

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

Better use Free Pascal.