周正 2012年04月01日 星期日 15:10 | 2291次浏览 | 2条评论
最近,我想
最近,我想近20年前的代码放到网上来。突然发现那些GWBASIC的代码,由于当时偷懒。存成了二进制格式。今天居然在网上找到了解决方法:
http://stackoverflow.com/questions/5593236/how-to-run-gw-basic-under-ubuntu
DOSbox works for running gwbasic, and many old dos programs.
To install it: sudo apt-get install dosbox
To run it: dosbox gwbasic.exe
Caveats: DOSbox emulates the CPU, so it runs apps slower than on Wine or as a native app. However, anything that originally ran on a 486 should run fine with DOSbox.
Speaking of gwbasic, by default it saves the source in a binary format.
You can save in a text format with the a (ascii) switch, like this:
save "filename",a
As far as a basic interpreter that runs gwbasic code on Ubuntu, I haven't found one yet, but I am still looking.
附:
gwbasic.exe
http://code.google.com/p/basicshell/downloads/detail?name=gwbasic.exe&can=2&q=
bas2txt c++代码,但我没有调试成功
http://bbc.nvg.org/util/BAS2TXT.zip
Zeuux © 2024
京ICP备05028076号
回复 黄维勇 2012年05月26日 星期六 12:07