使用 重新编译旧版 BASIC 程序。用于 64 位计算机的 BAS 文件

Recompiling an legacy BASIC program with .BAS files for 64-bit machines

提问人:Khalil Misbah 提问时间:5/23/2023 更新时间:5/23/2023 访问量:65

问:

我有一个用 Microsoft 编译的 BASIC 编写的旧程序,它由两个组成。BAS 文件。我拥有的唯一可执行文件是使用 QuickBASIC 7.x 编译的 16 位 .exe 文件,专为运行 Microsoft DOS 3.3 或更高版本的旧机器(80286、80386、80486 基于 Intel)而设计。我想在较新的机器上运行此程序,但它与 16 位可执行文件不兼容。有没有办法为较新的机器(Windows 或 MacOS)重新编译此程序?

其他上下文:

The program is written in Basic and consists of two .BAS files and a .MAK linker file.
The goal is to run this program on a newer machine, which is not compatible with 16-bit executables.
Is there any solution or workaround to recompile the program for newer machines?
If possible, please provide step-by-step instructions or suggestions on how to achieve this.

唯一可用的可执行文件是 16 位 .exe 文件,但它与较新的计算机不兼容。

编译 基本 遗留代码

评论

1赞 Bill Hileman 5/24/2023
在 Web 上搜索 vDos。我用它来编译和测试(运行)遗留的 16 位代码。您唯一的其他选择是获取 32 位版本的 Windows。
2赞 nabuchodonossor 6/1/2023
请澄清:您知道该程序由 2 个 bas 文件组成 - 你有它们吗?还是“唯一的可执行文件”是你告诉我们的方式,你只有“可执行文件”?
0赞 Khalil Misbah 7/16/2023
我有两个源代码文件+链接器
1赞 SJB 8/21/2023
如果您有源代码(ASCII 格式),您可以尝试使用 QB64(是 QB 的免费实现,与 QB 高度兼容,并且有很多插入命令)qb64.com
0赞 Carlos J. 8/23/2023
嗨,freebasic.net 它是一个基本编译器,与 Windows/Linux 兼容 Quickbasic。如果需要程序中的现代功能,可以调用 FBC.exe program.bas -Lang qb 来启用与 QB 或 fblite 的兼容性。

答: 暂无答案