周正

周正的博客

他的个人主页  他的博客

感动!gwbasic.exe under Ubuntu

周正  2012年04月01日 星期日 15:10 | 2167次浏览 | 2条评论

最近,我想近20年前的代码放到网上来。突然发现那些GWBASIC的代码,由于当时偷懒。存成了二进制格式。

最近,我想近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哲思注册吗?现在 注册 !
黄维勇

回复 黄维勇  2012年05月26日 星期六 12:07

这是coder独有的怀旧体验了

0条回复

夏武

回复 夏武  2012年04月02日 星期一 08:04

很强大

0条回复

暂时没有评论

Zeuux © 2024

京ICP备05028076号