I have been using the Einstein compiler without any issues so far with quite complicated Basic programs, but recently I ran into a very strange bug when I tried to execute a DOS command.
To demonstrate the problem I have the following one line program, which simply executes the CATALOG command:
10 PRINT CHR$(4)”CATALOG”
When I run it uncompiled under DOS 3.3 or under ProDOS it works perfectly. If I compile it using Einstein, the compiled version works under DOS 3.3, but under ProDOS it ignores the CHR$(4) and just prints on the screen:
I am also not sure why it is printing #10, when I actually disabled tracing in the compiler options.
Is there any trick to make it work under ProDOS? I find it hard to believe that it is not possible to call DOS commands in ProDOS from an Einstein compiled program. I am not really trying to list files in my program, I am just using this as the simplest example to showcase the problem. I tried version 5.2 as well as 5.3 of the compiler, the result is the same.
Thanks in advance!