LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 12-26-2009, 06:44 PM   #1
unclejed613
Member
 
Registered: Mar 2009
Posts: 352

Rep: Reputation: 32
resurrecting a very old compiler


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?
 
Old 12-26-2009, 08:22 PM   #2
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Hi -

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.

If you like BASIC, try Gambas:

http://gambas.sourceforge.net/en/main.html
 
Old 12-26-2009, 08:28 PM   #3
xode
Member
 
Registered: Aug 2003
Distribution: Mandrake 9.0; FC4; FC8; SUSE 10.3; SUSE 12.1; SUSE 13.2
Posts: 638
Blog Entries: 1

Rep: Reputation: 52
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.
 
Old 12-26-2009, 09:00 PM   #4
unclejed613
Member
 
Registered: Mar 2009
Posts: 352

Original Poster
Rep: Reputation: 32
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...
 
Old 12-27-2009, 01:33 AM   #5
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
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.
 
Old 12-27-2009, 02:35 PM   #6
xode
Member
 
Registered: Aug 2003
Distribution: Mandrake 9.0; FC4; FC8; SUSE 10.3; SUSE 12.1; SUSE 13.2
Posts: 638
Blog Entries: 1

Rep: Reputation: 52
Quote:
Originally Posted by unclejed613 View Post
...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.
 
Old 12-28-2009, 12:38 AM   #7
unclejed613
Member
 
Registered: Mar 2009
Posts: 352

Original Poster
Rep: Reputation: 32
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.
 
Old 12-28-2009, 12:34 PM   #8
smeezekitty
Senior Member
 
Registered: Sep 2009
Location: Washington U.S.
Distribution: M$ Windows / Debian / Ubuntu / DSL / many others
Posts: 2,339

Rep: Reputation: 231Reputation: 231Reputation: 231
Oh cool, i want...even though it is in basic!!! DOS FOREVER!
 
Old 12-28-2009, 01:40 PM   #9
xode
Member
 
Registered: Aug 2003
Distribution: Mandrake 9.0; FC4; FC8; SUSE 10.3; SUSE 12.1; SUSE 13.2
Posts: 638
Blog Entries: 1

Rep: Reputation: 52
Quote:
Originally Posted by unclejed613 View Post
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.
Could you please send me a copy of the software.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Planning on resurrecting some older computers need advice extraz Linux - Newbie 13 10-08-2009 10:40 PM
resurrecting md* devices - how come? GSMD Linux - Software 2 05-03-2007 08:02 AM
Resurrecting a thinkpad 365XD BetterButterBuddha Linux - Laptop and Netbook 4 01-28-2006 08:32 PM
Resurrecting an RS/6000 gers4302 AIX 10 11-10-2004 04:41 AM
Resurrecting my Linux Vlad_M Linux - General 5 02-05-2003 12:03 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration