ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
i just migrated my ancient (1995 or so) MS Basic Compiler 7 to DosBox in Slackware. i was poking around in it a bit with a video test pattern generator i wrote back in 1997. i was wondering if it would be easy or difficult to write linux binaries with it, and what i would need (such as libraries, etc) to do so. or is it SO linked to DOS that it would be more work than it's worth? or maybe just use it for writing programs for FreeDos and DosBox?
Writing DOS programs in DOS MS-Basic to run under DOSBox - sure.
Modifying DOS BASIC to run under Linux instead of DOS ... then modifying it further so that it creates Linux executables instead of DOS ... then modifying all your BASIC programs so they work in a Linux environment instead of DOS .... I don't think so.
The MS Basic Compiler 7 itself is definitely linked to only DOS and would be useful only for writing DosBos and FreeDOS programs. However, you have the source code. Maybe there is a Basic compiler for linux (I haven't looked)? If there is, that could be used to create linux binaries. Alternatively, you could also translate your source code over to C and there is definitely a C compiler for linux.
tnx, that was exactly what i was wondering about... i do still have all of the source code from my video test generator software. i know a lot of the test patterns are obsolete now that a huge majority of computer monitors are now flatscreens, and analog TV is no more. maybe somebody that specializes in old equipment could find it useful. i may just recompile it with all of the vendor blurbs left out (i had written it as commercial software back in the late 90's, and it sold enough copies to make several mortgage payments over the course of a couple of years), and re-release it as freeware. if i can also make a linux release of it that would be nice, but i seem to remember i had quite a few DOS interrupt calls in it, so that might not work so well...
You may be interested in this: http://www.basic-converter.org/
bacon converts basic to C and compiles it. It has some nice extensions so you can even write gtk programs in basic. The executeable produced are tiny.
...if i can also make a linux release of it that would be nice, but i seem to remember i had quite a few DOS interrupt calls in it, so that might not work so well...
Why not? Simply look through the source code and replace all DOS interrupt calls with the corresponding linux system call. If you are converting the program over to C, my understanding is that C has a callable function for just about every linux system call.
that would mean digging some of my old DOS programming guide books out of storage......, either that or give converting the code to C a try and see what happens. i could put it on a bootable FreeDos CDrom and use it that way, or put it in a FreeDos .iso file.
even though most of the test patterns are obsolete with the influx of flatscreens, there are over 50 or so test patterns in the program for testing monochrome, CGA, EGA, VGA and SVGA monitors. with old XT style hardware, the software will autodetect the video card, and bring it to the mono, CGA, EGA, or VGA menu on startup. this was really handy with early VGA "combo" cards that could be set up for mono, CGA, EGA, or VGA with a set of DIP switches. so anybody out there that refurbs old legacy equipment or still works on CRT monitors, let me know and i will send you a copy of the software.
that would mean digging some of my old DOS programming guide books out of storage......, so anybody out there that refurbs old legacy equipment or still works on CRT monitors, let me know and i will send you a copy of the software.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.